Version Description
( 2021-10-06 ) =
- New: NewsArticle schema added automatically for types included in the news sitemap
- New: Included publication language code in the news sitemap
- New: SEO Checkup tool depreciated in favor of SEO Audit
- New: Added Product ID and SKU as options for MPN and other identifiers in WooCommerce Product schema
- New: Added default value for priceValidUntil to fix warnings in WooCommerce Product schema
- Fix: Incorrect taxonomy term loaded in schema type builder conditions
- Improvement: Schema builder code improvements
Download this release
Release Info
Developer | khaxan |
Plugin | SmartCrawl SEO |
Version | 2.15.0 |
Comparing to | |
See all releases |
Code changes from version 2.14.2 to 2.15.0
- changelog.txt +10 -0
- constants.php +2 -2
- includes/admin/settings/schema.php +1 -1
- includes/admin/templates/checkup/lighthouse-notice.php +18 -28
- includes/admin/templates/native-dismissible-notice-javascript.php +6 -2
- includes/assets/js/build/assets.php +1 -1
- includes/assets/js/build/wds-admin-sitemaps.js +1 -1
- includes/assets/js/build/wds-configs.js +1 -1
- includes/assets/js/build/wds-schema-types.js +1 -1
- includes/assets/js/components/notice.js +2 -1
- includes/assets/js/components/schema/add-schema-type-wizard-modal.js +56 -78
- includes/assets/js/components/schema/schema-builder.js +122 -474
- includes/assets/js/components/schema/schema-properties.js +22 -36
- includes/assets/js/components/schema/schema-properties/article/article.js +1 -1
- includes/assets/js/components/schema/schema-properties/book/book-edition.js +3 -3
- includes/assets/js/components/schema/schema-properties/book/book.js +6 -6
- includes/assets/js/components/schema/schema-properties/course/course-instance.js +4 -2
- includes/assets/js/components/schema/schema-properties/course/course.js +2 -2
- includes/assets/js/components/schema/schema-properties/event/event.js +8 -4
- includes/assets/js/components/schema/schema-properties/faq-page/faq-page.js +1 -1
- includes/assets/js/components/schema/schema-properties/how-to/how-to.js +5 -5
- includes/assets/js/components/schema/schema-properties/job-posting/job-hiring-organization.js +1 -1
- includes/assets/js/components/schema/schema-properties/job-posting/job-posting.js +2 -2
- includes/assets/js/components/schema/schema-properties/local-business/local-business.js +3 -3
- includes/assets/js/components/schema/schema-properties/local-business/local-review.js +2 -0
- includes/assets/js/components/schema/schema-properties/movie/movie.js +1 -1
changelog.txt
CHANGED
@@ -2,6 +2,16 @@ Plugin Name: SmartCrawl SEO
|
|
2 |
|
3 |
Change Log:
|
4 |
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
2.14.2 - 2021-09-28
|
6 |
----------------------------------------------------------------------
|
7 |
Fix: Special characters not handled properly in news sitemap
|
2 |
|
3 |
Change Log:
|
4 |
----------------------------------------------------------------------
|
5 |
+
2.15.0 - 2021-10-06
|
6 |
+
----------------------------------------------------------------------
|
7 |
+
New: NewsArticle schema added automatically for types included in the news sitemap
|
8 |
+
New: Included publication language code in the news sitemap
|
9 |
+
New: SEO Checkup tool depreciated in favor of SEO Audit
|
10 |
+
New: Added Product ID and SKU as options for MPN and other identifiers in WooCommerce Product schema
|
11 |
+
New: Added default value for priceValidUntil to fix warnings in WooCommerce Product schema
|
12 |
+
Fix: Incorrect taxonomy term loaded in schema type builder conditions
|
13 |
+
Improvement: Schema builder code improvements
|
14 |
+
|
15 |
2.14.2 - 2021-09-28
|
16 |
----------------------------------------------------------------------
|
17 |
Fix: Special characters not handled properly in news sitemap
|
constants.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/**
|
3 |
* Internal constants, not to be overridden
|
4 |
*/
|
5 |
-
define( 'SMARTCRAWL_VERSION', '2.
|
6 |
-
define( 'SMARTCRAWL_BUILD', '
|
7 |
define( 'SMARTCRAWL_BUILD_TYPE', 'free' );
|
8 |
define( 'SMARTCRAWL_SUI_VERSION', '2.10.9' );
|
9 |
define( 'SMARTCRAWL_PACKAGE_ID', 167 );
|
2 |
/**
|
3 |
* Internal constants, not to be overridden
|
4 |
*/
|
5 |
+
define( 'SMARTCRAWL_VERSION', '2.15.0' );
|
6 |
+
define( 'SMARTCRAWL_BUILD', '1633521812730' );
|
7 |
define( 'SMARTCRAWL_BUILD_TYPE', 'free' );
|
8 |
define( 'SMARTCRAWL_SUI_VERSION', '2.10.9' );
|
9 |
define( 'SMARTCRAWL_PACKAGE_ID', 167 );
|
includes/admin/settings/schema.php
CHANGED
@@ -207,7 +207,7 @@ class Smartcrawl_Schema_Settings extends Smartcrawl_Settings_Admin {
|
|
207 |
'hide_empty' => false,
|
208 |
'taxonomy' => $taxonomy,
|
209 |
);
|
210 |
-
if ( $request_type === '
|
211 |
$args['include'] = array( $term_id );
|
212 |
$args['number'] = 1;
|
213 |
} else {
|
207 |
'hide_empty' => false,
|
208 |
'taxonomy' => $taxonomy,
|
209 |
);
|
210 |
+
if ( $request_type === 'text' && $term_id ) {
|
211 |
$args['include'] = array( $term_id );
|
212 |
$args['number'] = 1;
|
213 |
} else {
|
includes/admin/templates/checkup/lighthouse-notice.php
CHANGED
@@ -2,36 +2,26 @@
|
|
2 |
if ( ! current_user_can( 'manage_options' ) ) {
|
3 |
return;
|
4 |
}
|
5 |
-
$key = 'lighthouse-checkup-notice';
|
6 |
-
$dismissed_messages = get_user_meta( get_current_user_id(), 'wds_dismissed_messages', true );
|
7 |
-
$is_message_dismissed = smartcrawl_get_array_value( $dismissed_messages, $key ) === true;
|
8 |
-
if ( $is_message_dismissed ) {
|
9 |
-
return;
|
10 |
-
}
|
11 |
|
12 |
-
$logo_url = sprintf( '%s/assets/images/%s', SMARTCRAWL_PLUGIN_URL, 'lighthouse-logo.svg' );
|
13 |
$lighthouse_url = Smartcrawl_Settings_Admin::admin_url( Smartcrawl_Settings::TAB_HEALTH ) . '&tab=tab_settings#seo-test-mode';
|
|
|
14 |
?>
|
15 |
-
<div class="
|
16 |
-
<
|
17 |
-
<img src="<?php echo esc_attr( $logo_url ); ?>"
|
18 |
-
alt="<?php esc_attr_e( 'Lighthouse Logo', 'wds' ); ?>"
|
19 |
-
/>
|
20 |
-
</div>
|
21 |
-
<div class="smartcrawl-notice-message">
|
22 |
<?php printf(
|
23 |
-
esc_html__(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
37 |
</div>
|
2 |
if ( ! current_user_can( 'manage_options' ) ) {
|
3 |
return;
|
4 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
|
|
6 |
$lighthouse_url = Smartcrawl_Settings_Admin::admin_url( Smartcrawl_Settings::TAB_HEALTH ) . '&tab=tab_settings#seo-test-mode';
|
7 |
+
$user = Smartcrawl_Model_User::get( get_current_user_id() );
|
8 |
?>
|
9 |
+
<div class="notice-warning notice">
|
10 |
+
<p style="margin-bottom: 10px;">
|
|
|
|
|
|
|
|
|
|
|
11 |
<?php printf(
|
12 |
+
esc_html__( "Heads up, %s! %s functionality will soon be deprecated in favor of %s powered by %s. We recommend switching to SEO Audits now.", 'wds' ),
|
13 |
+
$user->get_first_name(),
|
14 |
+
sprintf( '<strong>%s</strong>', 'SmartCrawl’s SEO Checkup' ),
|
15 |
+
sprintf( '<strong>%s</strong>', 'SEO Audits' ),
|
16 |
+
sprintf( '<strong>%s</strong>', 'Google Lighthouse' )
|
17 |
+
); ?>
|
18 |
+
</p>
|
19 |
+
<a href="<?php echo esc_attr( $lighthouse_url ); ?>"
|
20 |
+
class="button button-primary">
|
21 |
+
<?php esc_html_e( 'Switch to SEO Audits', 'wds' ); ?>
|
22 |
+
</a>
|
23 |
+
<a target="_blank"
|
24 |
+
class="wds-inline-notice-link"
|
25 |
+
href="https://wpmudev.com/blog/lighthouse-seo-scan-smartcrawl/"><?php esc_html_e( 'Learn More', 'wds' ); ?></a>
|
26 |
+
<p></p>
|
27 |
</div>
|
includes/admin/templates/native-dismissible-notice-javascript.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<style type="text/css">
|
2 |
-
.wds-native-dismiss
|
|
|
3 |
vertical-align: -4px;
|
4 |
font-size: 12px;
|
5 |
-
font-weight: bold;
|
6 |
margin-left: 8px;
|
7 |
color: inherit;
|
8 |
text-decoration: none;
|
9 |
}
|
10 |
|
|
|
|
|
|
|
|
|
11 |
.wds-native-dismissible-notice button.notice-dismiss[disabled] {
|
12 |
cursor: wait;
|
13 |
}
|
1 |
<style type="text/css">
|
2 |
+
.wds-native-dismiss,
|
3 |
+
.wds-inline-notice-link {
|
4 |
vertical-align: -4px;
|
5 |
font-size: 12px;
|
|
|
6 |
margin-left: 8px;
|
7 |
color: inherit;
|
8 |
text-decoration: none;
|
9 |
}
|
10 |
|
11 |
+
.wds-native-dismiss {
|
12 |
+
font-weight: bold;
|
13 |
+
}
|
14 |
+
|
15 |
.wds-native-dismissible-notice button.notice-dismiss[disabled] {
|
16 |
cursor: wait;
|
17 |
}
|
includes/assets/js/build/assets.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('wds-schema-types.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('wds-schema-types.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c7bb58fb122fc45572c682f88b434d12'), 'wds-configs.js' => array('dependencies' => array('react', 'react-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '93a4ac2dcdaa7f1fe2a1afa7b551f13e'), 'wds-admin-autolinks.js' => array('dependencies' => array('react', 'react-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c1971a68b6de9f74faa65a1a72557b3b'), 'wds-admin-sitemaps.js' => array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f464bc6a2a4e5a8f76e53057c399647a'), 'wds-admin-settings.js' => array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c374ecf4dc97e5fd8a71f36478efc82d'), 'wds-link-format-button.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-polyfill'), 'version' => '66b79d1ba3bc2cad9841e916643b4f74'), 'wds-macro-replacement.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'da6490266328f6a7c39be8619e539ba0'), 'wds-metabox-components.js' => array('dependencies' => array('wp-polyfill'), 'version' => '794bf38c27e1755ef60e51db4764ce6e'), 'wds-onpage-components.js' => array('dependencies' => array('wp-polyfill'), 'version' => '980d7976c1a851ad264ec152967cb9b8'));
|
includes/assets/js/build/wds-admin-sitemaps.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e={4184:function(e,t){var s;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=r.apply(null,s);o&&e.push(o)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var a in s)n.call(s,a)&&s[a]&&e.push(a);else e.push(s.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()},7145:function(e,t){"use strict";function s(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function r(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=r;var i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString;function l(e){return a.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(s){i.call(t,s)&&(e[s]=t[s])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=c({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var s=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||r(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),r("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(s.commands).join(", ")+"."}));var o=e;return u(n).forEach((function(t){if(i.call(s.commands,t)){var r=e===o;o=s.commands[t](n[t],o,n,e),r&&s.isEquals(o,e)&&(o=e)}else{var a="Map"===l(e)?s.update(e.get(t),n[t]):s.update(e[t],n[t]),c="Map"===l(o)?o.get(t):o[t];s.isEquals(a,c)&&(void 0!==a||i.call(e,t))||(o===e&&(o=d(e)),"Map"===l(o)?o.set(t,a):o[t]=a)}})),o},e}();t.Context=p;var h={$push:function(e,t,s){return g(t,s,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,s){return g(t,s,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+s(e)})),f(t.$splice)}(t,n),e.forEach((function(e){f(e),t===i&&e.length&&(t=d(i)),o.apply(t,e)})),t},$set:function(e,t,s){return function(e){r(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(s),e},$toggle:function(e,t){w(e,"$toggle");var s=e.length?d(t):t;return e.forEach((function(e){s[e]=!t[e]})),s},$unset:function(e,t,s,n){return w(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=d(n)),delete t[e])})),t},$add:function(e,t,s,n){return b(t,"$add"),w(e,"$add"),"Map"===l(t)?e.forEach((function(e){var s=e[0],r=e[1];t===n&&t.get(s)!==r&&(t=d(n)),t.set(s,r)})):e.forEach((function(e){t!==n||t.has(e)||(t=d(n)),t.add(e)})),t},$remove:function(e,t,s,n){return b(t,"$remove"),w(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=d(n)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+s(a)})),r(o&&"object"==typeof o,(function(){return"update(): $merge expects a target of type 'object'; got "+s(o)})),u(e).forEach((function(s){e[s]!==t[s]&&(t===i&&(t=d(i)),t[s]=e[s])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+s(n)+"."})),e(t)}},m=new p;function g(e,t,n){r(Array.isArray(e),(function(){return"update(): expected target of "+s(n)+" to be an array; got "+s(e)+"."})),w(t[n],n)}function w(e,t){r(Array.isArray(e),(function(){return"update(): expected spec of "+s(t)+" to be an array; got "+s(e)+". Did you forget to wrap your parameter in an array?"}))}function f(e){r(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+s(e)+". Did you forget to wrap your parameters in an array?"}))}function b(e,t){var n=l(e);r("Map"===n||"Set"===n,(function(){return"update(): "+s(t)+" expects a target of type Set or Map; got "+s(n)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=c(t.default,t)}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,s),i.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.React,n=s.n(t);class r extends n().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var i=r,o=window.ReactDOM,a=s.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function c(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u=window.wp.i18n,d=s(4184),p=s.n(d);class h extends n().Component{constructor(e){super(e),this.state={open:!1}}toggle(e){const t=e.target.className||"";("BUTTON"!==(e.target.tagName||"")||t.includes("sui-accordion-open-indicator"))&&this.setState({open:!this.state.open})}render(){return(0,e.createElement)("div",{className:p()("sui-accordion-item",this.props.className,{"sui-accordion-item--open":this.state.open})},(0,e.createElement)("div",{className:"sui-accordion-item-header",onClick:e=>this.toggle(e)},this.props.header),this.props.children&&(0,e.createElement)("div",{className:"sui-accordion-item-body"},(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-body"},this.props.children))))}}c(h,"defaultProps",{className:""});class m extends n().Component{constructor(e){super(e),this.state={activeTab:"issues"}}render(){const t=this.props.activeIssues,s=Object.keys(t).length,r=this.props.ignoredIssues,i=s+Object.keys(r).length>0,o=this.getTabData(t,r);return(0,e.createElement)(h,{className:p()({[this.props.warningClass]:s>0,"sui-success":s<1,"wds-no-crawl-issues":!i}),header:(0,e.createElement)(n().Fragment,null,(0,e.createElement)("div",{className:"sui-accordion-item-title"},(0,e.createElement)("span",{"aria-hidden":"true",className:p()({"sui-icon-warning-alert":s>0,[this.props.warningClass]:s>0,"sui-success sui-icon-check-tick":s<1})}),this.getTitle(s)),i&&(0,e.createElement)("div",null,(0,e.createElement)("span",{className:"sui-accordion-open-indicator"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("button",{type:"button",className:"sui-screen-reader-text"},(0,u.__)("Expand issue","wds")))))},i&&(0,e.createElement)(n().Fragment,null,(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,u.__)("Overview","wds"))),(0,e.createElement)("p",null,(0,e.createElement)("small",null,this.props.description)),(0,e.createElement)("div",{className:"sui-tabs"},(0,e.createElement)("div",{"data-tabs":""},Object.keys(o).map((t=>(0,e.createElement)("div",{key:t,className:p()({active:this.state.activeTab===t}),onClick:()=>this.setState({activeTab:t})},o[t].label)))),(0,e.createElement)("div",{"data-panes":""},Object.keys(o).map((t=>(0,e.createElement)("div",{key:t,className:p()({active:this.state.activeTab===t})},this.getPane(o[t]))))))))}getTabData(e,t){return{issues:{label:(0,u.__)("Issues","wds"),items:e,noItemsNotice:(0,u.__)("No active issues.","wds"),tableClass:"wds-crawl-issues-table"},ignored:{label:(0,u.__)("Ignored","wds"),items:t,noItemsNotice:(0,u.__)("No ignored issues.","wds"),tableClass:"wds-ignored-items-table"}}}getPane(t){const s=t.items,r=Object.keys(s).length>0;return(0,e.createElement)(n().Fragment,null,(0,e.createElement)("table",{className:t.tableClass},(0,e.createElement)("tbody",null,r&&(0,e.createElement)(n().Fragment,null,Object.keys(s).map((e=>this.props.renderIssue(e,s[e]))),(0,e.createElement)("tr",{className:"wds-controls-row"},(0,e.createElement)("td",{colSpan:"4"},this.props.renderControls(this.props.type,this.state.activeTab)))),!r&&(0,e.createElement)("tr",{className:"wds-no-results-row"},(0,e.createElement)("td",{colSpan:"2"},(0,e.createElement)("small",null,t.noItemsNotice))))))}getTitle(e){return(0,u.sprintf)(1===e?this.props.singularTitle:this.props.pluralTitle,e>0?e:(0,u.__)("No","wds"))}}c(m,"defaultProps",{type:"",activeIssues:{},ignoredIssues:{},singularTitle:"",pluralTitle:"",description:"",warningClass:"sui-warning",renderIssue:()=>!1,renderControls:()=>!1});class g extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL has multiple redirections","wds"),pluralTitle:(0,u.__)("%s URLs have multiple redirections","wds"),description:(0,u.__)("Some of your URLs have multiple redirections. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class w extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is resulting in 4xx error","wds"),pluralTitle:(0,u.__)("%s URLs are resulting in 4xx errors","wds"),description:(0,u.__)("Some of your URLs are resulting in 4xx errors. Either the page no longer exists or the URL has changed. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class f extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is resulting in 5xx server error","wds"),pluralTitle:(0,u.__)("%s URLs are resulting in 5xx server errors","wds"),description:(0,u.__)("Some of your URLs are resulting in 5xx server errors. These errors are indicative of errors in your server-side code. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class b extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL could not be processed","wds"),pluralTitle:(0,u.__)("%s URLs could not be processed","wds"),description:(0,u.__)("Some of your URLs could not be processed by our crawlers. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class E extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is missing from the sitemap","wds"),pluralTitle:(0,u.__)("%s URLs are missing from the sitemap","wds"),description:(0,u.__)("SmartCrawl couldn’t find these URLs in your Sitemap. You can choose to add them to your Sitemap, or ignore the warning if you don’t want them included.","wds"),warningClass:"sui-default"}))}}class y extends n().Component{render(){const t=p()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,u.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,s)=>(0,e.createElement)("li",{key:s},t)))))}}c(y,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class v extends n().Component{render(){return(0,e.createElement)("button",{className:p()({"sui-option-red":this.props.red}),onClick:()=>this.props.onClick(),type:"button"},(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}),this.props.text)}}c(v,"defaultProps",{text:"",icon:"",red:!1,onClick:()=>!1});class _ extends n().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,s,n=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},n," ",this.props.text),s=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,n," ",this.props.text),s=""),(0,e.createElement)("button",{className:p()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,s)}}c(_,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});class x extends n().Component{render(){return(0,e.createElement)("tr",null,(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-warning-alert"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,this.props.path))),(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)(y,{loading:this.props.loading,disabled:this.props.disabled,buttons:[(0,e.createElement)(v,{icon:"sui-icon-plus",text:(0,u.__)("Add to Sitemap","wds"),onClick:()=>this.props.onAddToSitemap()}),(0,e.createElement)(v,{icon:"sui-icon-eye-hide",text:(0,u.__)("Ignore","wds"),onClick:()=>this.props.onIgnore()})]}),this.props.ignored&&(0,e.createElement)(_,{icon:"sui-icon-plus",text:(0,u.__)("Restore","wds"),ghost:!0,loading:this.props.loading,disabled:this.props.disabled,onClick:()=>this.props.onRestore()})))}}c(x,"defaultProps",{path:"",loading:!1,disabled:!1,onAddToSitemap:()=>!1,onIgnore:()=>!1,onRestore:()=>!1});var C=SUI,I=s.n(C),N=jQuery,S=s.n(N);class k extends n().Component{constructor(e){super(e),this.props=e}componentDidMount(){I().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){I().closeModal()}handleKeyDown(e){S()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),s=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:p()("sui-modal",s),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:p()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:p()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:p()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:p()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:p()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,u.__)("Close this dialog window","wds")))}}c(k,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class A extends n().Component{render(){const t=[...new Set(this.props.origin)],s=(0,e.createInterpolateElement)((0,u.sprintf)((0,u.__)("We found links to <strong>%s</strong> in these locations, you might want to remove these links or direct them somewhere else.","wds"),this.props.path),{strong:(0,e.createElement)("strong",null)});return(0,e.createElement)(k,{id:"wds-issue-occurrences",title:(0,u.__)("Broken URL Locations","wds"),description:s,onClose:()=>this.props.onClose(),focusAfterOpen:"wds-close-occurrences-modal-button",small:!0},(0,e.createElement)("div",{className:"wds-issue-occurrences"},(0,e.createElement)("ul",null,t.map((t=>(0,e.createElement)("li",{key:t},(0,e.createElement)("a",{href:t},t)))))),(0,e.createElement)(_,{id:"wds-close-occurrences-modal-button",onClick:()=>this.props.onClose(),ghost:!0,text:(0,u.__)("Close","wds")}))}}c(A,"defaultProps",{path:"",origin:[],onClose:()=>!1});class P extends n().Component{constructor(e){super(e),this.state={showingOccurrences:!1}}render(){return(0,e.createElement)("tr",null,(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-warning sui-icon-warning-alert"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,this.props.path))),!this.props.ignored&&(0,e.createElement)("td",null,(0,e.createElement)("span",{className:"sui-tag sui-tag-warning"},!!this.props.origin&&this.props.origin.length)),(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)(y,{loading:this.props.loading,disabled:this.props.disabled,buttons:[(0,e.createElement)(v,{text:(0,u.__)("List Occurrences","wds"),icon:"sui-icon-list-bullet",onClick:()=>this.startShowingOccurrences()}),(0,e.createElement)(v,{text:(0,u.__)("Redirect","wds"),icon:"sui-icon-arrow-right",onClick:()=>this.props.onRedirect()}),(0,e.createElement)(v,{text:(0,u.__)("Ignore","wds"),icon:"sui-icon-eye-hide",onClick:()=>this.props.onIgnore()})]}),this.props.ignored&&(0,e.createElement)(_,{icon:"sui-icon-plus",text:(0,u.__)("Restore","wds"),ghost:!0,loading:this.props.loading,disabled:this.props.disabled,onClick:()=>this.props.onRestore()}),this.state.showingOccurrences&&(0,e.createElement)(A,{path:this.props.path,origin:this.props.origin,onClose:()=>this.stopShowingOccurrences()})))}startShowingOccurrences(){this.setState({showingOccurrences:!0})}stopShowingOccurrences(){this.setState({showingOccurrences:!1})}}c(P,"defaultProps",{path:"",origin:[],loading:!1,disabled:!1,onRedirect:()=>!1,onIgnore:()=>!1,onRestore:()=>!1});var O=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let s=window["_wds_"+t]||{};return e.forEach((e=>{s=s&&s.hasOwnProperty(e)?s[e]:""})),s}static get_bool(e,t="general"){return!!this.get(e,t)}},T=ajaxurl,j=s.n(T);class R{static redirect(e,t){return this.post("wds_redirect_crawl_item",{source:e,destination:t})}static changeIssueStatus(e,t){return this.post(t,{issue_id:e})}static ignoreIssue(e){return this.changeIssueStatus(e,"wds_ignore_crawl_item")}static restoreIssue(e){return this.changeIssueStatus(e,"wds_restore_crawl_item")}static restoreAll(){return this.post("wds_restore_all_crawl_items")}static addToSitemap(e){return this.post("wds_sitemap_add_extra",{path:e})}static post(e,t){const s=O.get("nonce","crawler");return class{static post(e,t,s={}){return new Promise((function(n,r){const i=Object.assign({},{action:e,_wds_nonce:t},s);S().post(j(),i).done((function(e){var t;e.success?n(null==e?void 0:e.data):r(null==e||null===(t=e.data)||void 0===t?void 0:t.message)})).fail((()=>r()))}))}}.post(e,s,t)}}class U extends n().Component{constructor(e){super(e)}render(){return(0,e.createElement)("div",{className:p()("sui-form-field",{"sui-form-field-error":!this.props.isValid})},(0,e.createElement)("label",{className:"sui-label"},this.props.label),(0,e.createElement)("input",{id:this.props.id,type:"text",className:"sui-form-control",onChange:e=>this.props.onChange(e.target.value),value:this.props.value,placeholder:this.props.placeholder}),!!this.props.description&&(0,e.createElement)("p",{className:"sui-description"},(0,e.createElement)("small",null,this.props.description)))}}c(U,"defaultProps",{id:"",label:"",description:"",value:"",isValid:!0,placeholder:"",onChange:()=>!1});class q{static isNonEmpty(e){return e&&e.trim()}static isValuePlainText(e){return S()("<div>").html(e).text()===e}}const L=($=U,D=[q.isNonEmpty,q.isValuePlainText],class extends n().Component{constructor(e){super(e),this.state={initial:!0}}isValueValid(e){if(this.state.initial)return!0;if(Array.isArray(D)){let t=!0;return D.forEach((s=>{t=t&&s(e)})),t}return D(e)}handleChange(e){this.setState({initial:!1},(()=>{this.props.onChange(e,this.isValueValid(e))}))}render(){return(0,e.createElement)($,l({},this.props,{isValid:this.isValueValid(this.props.value),onChange:e=>this.handleChange(e)}))}});var $,D;class V extends n().Component{constructor(e){super(e),this.state={destination:this.props.destination,isDestinationValid:q.isNonEmpty(this.props.destination)}}handleDestinationChange(e,t){this.setState({destination:e,isDestinationValid:t})}render(){const t=(0,e.createInterpolateElement)((0,u.sprintf)((0,u.__)("Choose where to redirect <strong>%s</strong>","wds"),this.props.source),{strong:(0,e.createElement)("strong",null)}),s=(0,e.createInterpolateElement)((0,u.__)("Formats include relative URLs like <strong>/cats</strong> or absolute URLs like <strong>https://website.com/cats</strong>. This feature will automatically redirect traffic from the broken URL to this new URL, you can view all your redirects under <strong><a>Advanced Tools</a></strong>.","wds"),{strong:(0,e.createElement)("strong",null),a:(0,e.createElement)("a",{href:O.get("advanced_tools_url","crawler")})}),n=()=>this.props.onSave(this.state.destination.trim()),r=!this.state.isDestinationValid;return(0,e.createElement)(k,{id:"wds-issue-redirect",title:(0,u.__)("Redirect URL","wds"),description:t,focusAfterOpen:"wds-crawler-redirect-destination",onEnter:n,enterDisabled:r,onClose:()=>this.props.onClose(),disableCloseButton:this.props.requestInProgress,small:!0},(0,e.createElement)(L,{id:"wds-crawler-redirect-destination",label:(0,u.__)("New URL","wds"),placeholder:(0,u.__)("Enter new URL","wds"),description:s,value:this.state.destination,onChange:(e,t)=>this.handleDestinationChange(e,t)}),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(_,{text:(0,u.__)("Cancel","wds"),ghost:!0,onClick:()=>this.props.onClose(),disabled:this.props.requestInProgress}),(0,e.createElement)(_,{text:(0,u.__)("Apply","wds"),onClick:n,icon:"sui-icon-check",disabled:r,loading:this.props.requestInProgress})))}}c(V,"defaultProps",{source:"",destination:"",requestInProgress:!1,onSave:()=>!1,onClose:()=>!1});class W extends n().Component{render(){return(0,e.createElement)("div",{className:"sui-floating-notices"},(0,e.createElement)("div",{role:"alert",id:this.props.id,className:"sui-notice","aria-live":"assertive"}))}}c(W,"defaultProps",{id:""});class M{static showSuccessNotice(e,t,s=!0){return this.showNotice(e,t,"success",s)}static showErrorNotice(e,t,s=!0){return this.showNotice(e,t,"error",s)}static showInfoNotice(e,t,s=!0){return this.showNotice(e,t,"info",s)}static showWarningNotice(e,t,s=!0){return this.showNotice(e,t,"warning",s)}static showNotice(e,t,s="success",n=!0){SUI.closeNotice(e),SUI.openNotice(e,"<p>"+t+"</p>",{type:s,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[s],dismiss:{show:n}})}}var B=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function F(e,t){if(e.length!==t.length)return!1;for(var s=0;s<e.length;s++)if(!((n=e[s])===(r=t[s])||B(n)&&B(r)))return!1;var n,r;return!0}var G=function(e,t){var s;void 0===t&&(t=F);var n,r=[],i=!1;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return i&&s===this&&t(o,r)||(n=e.apply(this,o),i=!0,s=this,r=o),n}};class K extends n().Component{constructor(e){super(e),this.state={issues:O.get("issues","crawler")||{},redirectInProgress:!1,requestInProgress:!1},this.getAllActiveIssueKeysMemoized=G((e=>this.getAllActiveIssueKeys(e))),this.getActiveSitemapIssuesMemoized=G((e=>this.getActiveSitemapIssueCount(e)))}componentDidUpdate(e,t,s){const n=this.getIssues(),r=this.getAllActiveIssueKeysMemoized(n),i=this.getActiveSitemapIssuesMemoized(n);this.props.onActiveIssueCountChange(r.length,i)}render(){const t=this.getIssues()||{},s=Array.from(new Set([...Object.keys(t),"3xx","4xx","5xx","sitemap","inaccessible"])),r=this.getAllActiveIssueKeysMemoized(t);return(0,e.createElement)(n().Fragment,null,r.length>0&&this.getIgnoreAllButton(),(0,e.createElement)("p",null,(0,u.__)("Here are potential issues SmartCrawl has picked up. We recommend fixing them up to ensure you aren’t penalized by search engines - you can however ignore any of these warnings.","wds")),(0,e.createElement)(W,{id:"wds-crawl-report-notice"}),(0,e.createElement)("div",{className:"sui-accordion wds-draw-left"},s.map((s=>{const n=this.getGroupComponent(s),r=t.hasOwnProperty(s)?t[s]:{},i="sitemap"===s?(e,t)=>this.renderSitemapIssue(e,t):(e,t)=>this.renderIssue(e,t),o="sitemap"===s?(e,t)=>this.renderSitemapControls(e,t):(e,t)=>this.renderControls(e,t);return(0,e.createElement)(n,{type:s,key:s,activeIssues:this.getActiveIssues(r),ignoredIssues:this.getIgnoredIssues(r),renderIssue:i,renderControls:o})}))),this.maybeShowRedirectModal())}renderSitemapIssue(t,s){return(0,e.createElement)(x,l({},s,{key:t,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onIgnore:()=>this.ignoreItem(t),onAddToSitemap:()=>this.addToSitemap(t),onRestore:()=>this.restoreItem(t)}))}renderIssue(t,s){return(0,e.createElement)(P,l({},s,{key:t,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onRedirect:()=>this.startRedirecting(t),onIgnore:()=>this.ignoreItem(t),onRestore:()=>this.restoreItem(t)}))}addToSitemap(e){this.setState({requestInProgress:e},(()=>{const t=this.getIssue(e);R.addToSitemap(t.path).then((e=>{this.showSuccessNotice((0,u.__)("The missing item has been added to your sitemap as an extra URL.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}ignoreItem(e){this.setState({requestInProgress:e},(()=>{R.ignoreIssue(e).then((e=>{this.showSuccessNotice((0,u.__)("The issue has been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}restoreItem(e){this.setState({requestInProgress:e},(()=>{R.restoreIssue(e).then((e=>{this.showSuccessNotice((0,u.__)("The issue has been restored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}maybeShowRedirectModal(){if(!this.state.redirectInProgress)return!1;const t=this.state.redirectInProgress,s=this.getIssue(t);return!!s&&(0,e.createElement)(V,{source:s.path,destination:s.redirect,onSave:e=>this.redirect(s.path,e),onClose:()=>this.stopRedirecting(),requestInProgress:this.state.requestInProgress})}startRedirecting(e){this.setState({redirectInProgress:e})}redirect(e,t){this.setState({requestInProgress:!0},(()=>{R.redirect(e,t).then((e=>{this.showSuccessNotice((0,u.__)("The URL has been redirected successfully.","wds")),this.setState({redirectInProgress:!1,issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}stopRedirecting(){this.setState({redirectInProgress:!1})}renderControls(e,t){return"issues"===t?this.getIgnoreAllOfTypeButton(e):this.getRestoreAllButton(e)}getIgnoreAllOfTypeButton(t){return(0,e.createElement)(_,{icon:"sui-icon-eye-hide",text:(0,u.__)("Ignore All","wds"),ghost:!0,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onClick:()=>this.ignoreAllOfType(t)})}getIgnoreAllButton(){const t=function(t,s){return class extends n().Component{render(){const n=document.getElementById(s);return n?a().createPortal((0,e.createElement)(t,this.props),n):null}}}(_,"wds-ignore-all-button-placeholder");return(0,e.createElement)(t,{text:(0,u.__)("Ignore All","wds"),ghost:!0,icon:"sui-icon-eye-hide",onClick:()=>this.ignoreAll(),loading:"ignore-all"===this.state.requestInProgress,disabled:this.state.requestInProgress})}getRestoreAllButton(t){return(0,e.createElement)(_,{icon:"sui-icon-plus",text:(0,u.__)("Restore All","wds"),ghost:!0,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onClick:()=>this.restoreAll(t)})}renderSitemapControls(t,s){return"issues"!==s?this.getRestoreAllButton(t):(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},this.getIgnoreAllOfTypeButton(t),(0,e.createElement)(_,{icon:"sui-icon-plus",text:(0,u.__)("Add All to Sitemap","wds"),color:"blue",loading:"add-all-to-sitemap"===this.state.requestInProgress,disabled:this.state.requestInProgress,onClick:()=>this.addAllToSitemap(t)}))}restoreAll(e){const t=this.getIssues(),s=Object.keys(this.getIgnoredIssues(t[e]));this.setState({requestInProgress:e},(()=>{R.restoreIssue(s).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been restored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}ignoreAll(){const e=this.getIssues(),t=this.getAllActiveIssueKeys(e);this.setState({requestInProgress:"ignore-all"},(()=>{R.ignoreIssue(t).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}getActiveSitemapIssueCount(e){const t=this.getActiveIssues(e.sitemap||{});return Object.keys(t).length}getAllActiveIssueKeys(e){const t=this.getFlattenedIssues(e);return Object.keys(this.getActiveIssues(t))}getFlattenedIssues(e){return Object.keys(e).reduce(((t,s)=>Object.assign(t,e[s])),{})}ignoreAllOfType(e){const t=this.getIssues(),s=Object.keys(this.getActiveIssues(t[e]));this.setState({requestInProgress:e},(()=>{R.ignoreIssue(s).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}addAllToSitemap(e){const t=this.getIssues(),s=Object.keys(this.getActiveIssues(t[e])).map((s=>t[e][s].path));this.setState({requestInProgress:"add-all-to-sitemap"},(()=>{R.addToSitemap(s).then((e=>{this.showSuccessNotice((0,u.__)("The missing items have been added to your sitemap as extra URLs.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}getGroupComponent(e){const t={"3xx":g,"4xx":w,"5xx":f,inaccessible:b,sitemap:E};return!!t.hasOwnProperty(e)&&t[e]}getIssue(e){const t=this.getIssues();let s=!1;return Object.keys(t).some((n=>{const r=Object.keys(t[n]).find((t=>t===e));return r&&(s=t[n][r]),r})),s}getActiveIssues(e){return this.filterIssues((t=>!e[t].ignored),e)}getIgnoredIssues(e){return this.filterIssues((t=>e[t].ignored),e)}filterIssues(e,t){return t=t||{},Object.keys(t).filter(e).reduce(((e,s)=>Object.assign(e,{[s]:t[s]})),{})}getIssues(){return this.state.issues||{}}showSuccessNotice(e){M.showSuccessNotice("wds-crawl-report-notice",e,!1)}showError(e){M.showErrorNotice("wds-crawl-report-notice",e||(0,u.__)("An unknown error occurred, please reload the page and try again.","wds"),!1)}markRequestAsComplete(){this.setState({requestInProgress:!1})}}c(K,"defaultProps",{onActiveIssueCountChange:()=>!1});class z extends n().Component{render(){return(0,e.createElement)("div",{className:"sui-box-settings-row"},(0,e.createElement)("div",{className:"sui-box-settings-col-1"},(0,e.createElement)("span",{className:"sui-settings-label"},this.props.label),(0,e.createElement)("span",{className:"sui-description"},this.props.description)),(0,e.createElement)("div",{className:"sui-box-settings-col-2"},this.props.children))}}c(z,"defaultProps",{label:"",description:""});class H extends n().Component{render(){const t=this.props.tabs;return(0,e.createElement)("div",{className:"sui-side-tabs"},(0,e.createElement)("div",{className:"sui-tabs-menu"},Object.keys(t).map((s=>(0,e.createElement)("div",{className:p()("sui-tab-item",{active:this.props.value===s}),key:s,onClick:()=>this.props.onChange(s)},t[s])))),this.props.children&&(0,e.createElement)("div",{className:"sui-tab-content sui-tab-boxed"},this.props.children))}}c(H,"defaultProps",{tabs:{},value:"",onChange:()=>!1});class Q extends n().Component{render(){return(0,e.createElement)("button",{type:"button",className:"sui-button-icon sui-accordion-open-indicator"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,u.__)("Expand item","wds")))}}class Y extends n().Component{render(){return(0,e.createElement)("label",{className:"sui-checkbox"},(0,e.createElement)("input",{id:this.props.id,type:"checkbox",checked:this.props.checked,onChange:e=>this.props.onChange(e.target.checked)}),(0,e.createElement)("span",{"aria-hidden":"true"}))}}c(Y,"defaultProps",{id:"",checked:!1,onChange:()=>!1});class J extends n().Component{render(){const t=this.props.formControl;return(0,e.createElement)("div",{className:p()("sui-form-field",{"sui-form-field-error":!this.props.isValid})},(0,e.createElement)("label",{className:"sui-label"},this.props.label),(0,e.createElement)(t,this.props),!!this.props.description&&(0,e.createElement)("p",{className:"sui-description"},(0,e.createElement)("small",null,this.props.description)))}}c(J,"defaultProps",{label:"",description:"",isValid:!0,formControl:!1});class X extends n().Component{constructor(e){super(e),this.props=e,this.state={loadingText:!1},this.selectElement=n().createRef(),this.selectElementContainer=n().createRef()}componentDidMount(){const e=S()(this.selectElement.current);e.addClass(this.props.small?"sui-select sui-select-sm":"sui-select").SUIselect2(this.getSelect2Args()),this.includeSelectedValueAsDynamicOption(),e.on("change",(e=>this.handleChange(e)))}includeSelectedValueAsDynamicOption(){this.props.selectedValue&&this.noOptionsAvailable()&&(this.props.tagging?Array.isArray(this.props.selectedValue)?this.props.selectedValue.forEach((e=>{this.addOption(e,e,!0)})):this.addOption(this.props.selectedValue,this.props.selectedValue,!0):this.props.loadTextAjaxUrl&&this.loadTextFromRemote())}loadTextFromRemote(){this.state.loadingText||(this.setState({loadingText:!0}),S().get(this.props.loadTextAjaxUrl,{id:this.props.selectedValue}).done((e=>{e&&e.results&&e.results.length&&e.results.forEach((e=>{this.addOption(e.id,e.text,!0)})),this.setState({loadingText:!1})})))}addOption(e,t,s){let n=new Option(t,e,!1,s);S()(this.selectElement.current).append(n).trigger("change")}noOptionsAvailable(){return!Object.keys(this.props.options).length}componentWillUnmount(){S()(this.selectElement.current).off().SUIselect2("destroy")}getSelect2Args(){let e={dropdownParent:S()(this.selectElementContainer.current),dropdownCssClass:"sui-select-dropdown",minimumResultsForSearch:this.props.minimumResultsForSearch,multiple:this.props.multiple,tagging:this.props.tagging};return this.props.placeholder&&(e.placeholder=this.props.placeholder),this.props.ajaxUrl&&(e.ajax={url:this.props.ajaxUrl},e.minimumInputLength=this.props.minimumInputLength),this.props.templateResult&&(e.templateResult=this.props.templateResult),this.props.templateSelection&&(e.templateSelection=this.props.templateSelection),this.props.ajaxUrl&&this.props.tagging&&(e.ajax.processResults=(e,t)=>e.results&&!e.results.length?{results:[{id:t.term,text:t.term}]}:e),e}handleChange(e){let t=e.target.value;this.props.multiple&&(t=Array.from(e.target.selectedOptions,(e=>e.value))),this.props.onSelect(t)}isOptGroup(e){return"object"==typeof e&&e.label&&e.options}printOptions(t){return Object.keys(t).map((s=>{const n=t[s];return this.isOptGroup(n)?(0,e.createElement)("optgroup",{key:s,label:n.label},this.printOptions(n.options)):(0,e.createElement)("option",{key:s,value:s},n)}))}render(){const t=this.props.options;let s;return s=Object.keys(t).length?this.printOptions(t):(0,e.createElement)("option",null),(0,e.createElement)("div",{ref:this.selectElementContainer},(0,e.createElement)("select",{disabled:this.state.loadingText,value:this.props.selectedValue,onChange:()=>!0,ref:this.selectElement,multiple:this.props.multiple},s))}}c(X,"defaultProps",{small:!1,tagging:!1,placeholder:"",ajaxUrl:"",loadTextAjaxUrl:"",selectedValue:"",minimumResultsForSearch:10,minimumInputLength:3,multiple:!1,options:{},templateResult:!1,templateSelection:!1,onSelect:()=>!1});class Z extends n().Component{render(){const t=this.props.taxonomies||{};return this.props.included?(0,e.createElement)(h,{className:"sui-builder-field",header:(0,e.createElement)(n().Fragment,null,this.getHeader(),(0,e.createElement)(Q,null))},Object.keys(t).map((s=>{const n=t[s],r=n.terms||{};return(0,e.createElement)("div",{className:"wds-news-taxonomy",key:s},(0,e.createElement)("strong",null,(0,u.sprintf)((0,u.__)("Exclude %s","wds"),n.label)),(0,e.createElement)("p",{className:"sui-description"},(0,u.sprintf)((0,u.__)("Select %s that should be excluded from the Google News sitemap.","wds"),n.label)),(0,e.createElement)("div",{className:"wds-news-taxonomy-terms"},Object.keys(r).map((t=>{const n="wds-news-"+this.props.name+"-term-"+t,i=r[t];return(0,e.createElement)("span",{className:"wds-news-term",key:n},(0,e.createElement)(Y,{id:n,checked:i.excluded,onChange:e=>this.props.onTermExclusionChange(this.props.name,s,i.id,e)}),(0,e.createElement)("label",{htmlFor:n},i.label))}))))})),(0,e.createElement)(J,{label:(0,u.sprintf)((0,u.__)("%s to exclude","wds"),this.props.label),description:(0,u.__)("Search for and select posts that should be excluded from the Google News sitemap.","wds"),formControl:X,placeholder:(0,u.__)("Start typing...","wds"),selectedValue:this.props.excluded,multiple:!0,ajaxUrl:this.getAjaxSearchUrl(),loadTextAjaxUrl:this.getAjaxSearchUrl("text"),onSelect:e=>this.props.onPostExclusion(this.props.name,e)})):(0,e.createElement)(h,{className:"sui-builder-field disabled",header:this.getHeader()})}getAjaxSearchUrl(e=""){return(0,u.sprintf)("%s?action=wds-search-post&type=%s&request_type=%s",j(),this.props.name,e)}getHeader(){return(0,e.createElement)(n().Fragment,null,(0,e.createElement)(Y,{checked:this.props.included,onChange:e=>this.props.onPostTypeInclusionChange(this.props.name,e)}),(0,e.createElement)("div",{className:"sui-builder-field-label"},(0,e.createElement)("span",null,this.props.label),(0,e.createElement)("span",null,"(",this.props.name,")")))}}c(Z,"defaultProps",{name:"",label:"",included:!1,excluded:[],taxonomies:{},onPostTypeInclusionChange:()=>!1,onTermExclusionChange:()=>!1,onPostExclusion:()=>!1});var ee=s(7145),te=s.n(ee);class se extends n().Component{render(){const t=this.getIcon(this.props.type);return(0,e.createElement)("div",{className:p()("sui-notice","sui-notice-"+this.props.type)},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},t&&(0,e.createElement)("span",{className:p()("sui-notice-icon sui-md",t),"aria-hidden":"true"}),(0,e.createElement)("p",null,this.props.message))))}getIcon(e){return{warning:"sui-icon-warning-alert",info:"sui-icon-info",success:"sui-icon-check-tick",purple:"sui-icon-info"}[e]}}c(se,"defaultProps",{type:"warning",message:""});class ne extends n().Component{constructor(e){super(e),this.state={requestInProgress:!1,enabled:this.props.enabled,publication:this.props.publication,postTypes:this.props.postTypes}}render(){const t=this.state.enabled,s=this.state.publication,n=this.state.postTypes;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)(W,{id:"wds-news-sitemap-notice"}),(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,u.__)("News Sitemap","wds"))),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("p",null,(0,e.createInterpolateElement)((0,u.__)("Are you publishing newsworthy content? Use the Google News Sitemap to list news articles and posts published in the last 48 hours so that they show up in Google News. <a>Learn More</a>","wds"),{a:(0,e.createElement)("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#news-sitemap",target:"_blank"})})),t&&(0,e.createElement)(se,{type:"info",message:(0,e.createInterpolateElement)((0,u.__)("Your sitemap is available at <a>/news-sitemap.xml</a>","wds"),{a:(0,e.createElement)("a",{target:"_blank",href:this.props.homeUrl+"news-sitemap.xml"})})}),(0,e.createElement)(z,{label:(0,u.__)("Enable News Sitemap","wds"),description:(0,u.__)("Use this option to enable or disable the Google News Sitemap feature.","wds")},(0,e.createElement)(H,{value:t?"enable":"disable",onChange:e=>this.toggleNewsSitemap(e),tabs:{enable:(0,u.__)("Enable","wds"),disable:(0,u.__)("Disable","wds")}})),t&&(0,e.createElement)(z,{label:(0,u.__)("News Publication","wds"),description:(0,u.__)("Enter your Google News publication name.","wds")},(0,e.createElement)(U,{label:(0,u.__)("Publication Name","wds"),description:(0,e.createInterpolateElement)((0,u.__)("The publication name must match your publication name on <span>news.google.com</span>","wds"),{span:(0,e.createElement)("span",{style:{color:"#000"}})}),value:s,onChange:e=>this.updatePublication(e)})),t&&(0,e.createElement)(z,{label:(0,u.__)("Inclusions","wds"),description:(0,u.__)("Select Post Types to include in your news sitemap.","wds")},(0,e.createElement)("strong",null,(0,u.__)("Post types to include","wds")),(0,e.createElement)("p",{className:"sui-description",style:{margin:"10px 0 20px 0"}},(0,u.__)("Select post types to be included in the Google News sitemap. Expand a post type to exclude specific items or groups.","wds")),(0,e.createElement)("div",{className:"sui-box-builder"},(0,e.createElement)("div",{className:"sui-box-builder-body"},(0,e.createElement)("div",{className:"sui-builder-fields sui-accordion"},Object.keys(n).map((t=>{const s=n[t];return(0,e.createElement)(Z,l({key:t},s,{onPostTypeInclusionChange:(e,t)=>this.updatePostTypeInclusionStatus(e,t),onTermExclusionChange:(e,t,s,n)=>this.updateTermExclusionStatus(e,t,s,n),onPostExclusion:(e,t)=>this.updatePostExclusion(e,t)}))}))))))),(0,e.createElement)("div",{className:"sui-box-footer"},(0,e.createElement)("input",{type:"hidden",name:"wds_sitemap_options[news-settings]",value:JSON.stringify(this.state)}),(0,e.createElement)("button",{name:"submit",type:"submit",className:"sui-button sui-button-blue"},(0,e.createElement)("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,u.__)("Save Settings","wds"))))}updatePostExclusion(e,t){const s=this.formatSpec([e,"excluded"],{$set:t}),n=te()(this.state.postTypes,s);this.setState({postTypes:n})}updatePostTypeInclusionStatus(e,t){const s=te()(this.state.postTypes,{[e]:{included:{$set:t}}});this.setState({postTypes:s})}updateTermExclusionStatus(e,t,s,n){const r=this.formatSpec([e,"taxonomies",t,"terms",s,"excluded"],{$set:n}),i=te()(this.state.postTypes,r);this.setState({postTypes:i})}formatSpec(e,t){return e.slice().reverse().forEach((e=>{t={[e]:t}})),t}toggleNewsSitemap(e){this.setState({enabled:"enable"===e})}updatePublication(e){this.setState({publication:e})}}c(ne,"defaultProps",{homeUrl:"",enabled:!1,publication:"",postTypes:{}}),function(t,s){const n=document.getElementById("wds-url-crawler-report");n&&(0,o.render)((0,e.createElement)(i,null,(0,e.createElement)(K,{onActiveIssueCountChange:function(e,s){const n=t("#tab_url_crawler .sui-box-header .sui-tag"),r=t("li.tab_url_crawler"),i=r.find(".sui-tag"),o=r.find(".sui-icon-check-tick"),a=r.find(".sui-icon-loader"),l=t(".wds-new-crawl-button"),c=t(".sui-summary-large"),u=t('.sui-summary-large + [class*="sui-icon-"]'),d=t(".wds-invisible-urls-count"),p=t(".sui-box-header .wds-ignore-all").closest("div");undefined!==e&&(e>0?(n.show().html(e),i.show().html(e),p.show(),o.hide(),u.removeClass("sui-icon-check-tick sui-success").addClass("sui-icon-info sui-warning")):(n.hide(),i.hide(),p.hide(),o.show(),u.removeClass("sui-icon-info sui-warning").addClass("sui-icon-check-tick sui-success")),c.html(e),d.html(s),a.hide(),l.show())}})),n);const r=document.getElementById("wds-news-sitemap-tab");function a(){t(".tab_url_crawler").find(".wds-url-crawler-progress").length&&t.post(ajaxurl,{action:"wds_get_crawl_progress",_wds_nonce:Wds.get("crawler","nonce")},(()=>!1),"json").done((function(e){var s,n;const r=null==e||null===(s=e.data)||void 0===s?void 0:s.in_progress,i=null==e||null===(n=e.data)||void 0===n?void 0:n.progress,o=t("#tab_url_crawler .wds-progress");r?(Wds.update_progress_bar(o,i),setTimeout(a,5e3)):(Wds.update_progress_bar(o,100),window.location.reload())}))}function l(){t(".wds-sitemap-toggleable").each((function(){const e=t(this),s=e.next("tr").find(".sui-table");e.find('input[type="checkbox"]').is(":checked")?s.show():s.hide()}))}function c(){const e=t("#wds-switch-to-native-button");Wds.open_dialog("wds-switch-to-native-modal","wds-switch-to-native-sitemap",e.attr("id")),e.off().on("click",(function(){e.addClass("sui-button-onload"),p(!1,(function(){window.location.href=d({"switched-to-native":1})}))}))}function u(){const e=t("#wds-switch-to-smartcrawl-button");Wds.open_dialog("wds-switch-to-smartcrawl-modal","wds-switch-to-smartcrawl-sitemap",e.attr("id")),e.off().on("click",(function(){e.addClass("sui-button-onload"),p(!0,(function(){window.location.href=d({"switched-to-sc":1})}))}))}function d(e){const s=window.location.href,n=new URLSearchParams(window.location.search);return s.split("?")[0]+"?"+t.param(t.extend({},{page:n.get("page")},e))}function p(e,s){return t.post(ajaxurl,{action:"wds-override-native",override:e?"1":"0",_wds_nonce:Wds.get("sitemaps","nonce")},s,"json")}function h(){const e=t(this);return e.addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-manually-update-engines",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){Wds.show_floating_message("wds-sitemap-manually-notify-search-engines",Wds.l10n("sitemaps","manually_notified_engines"),"success"),e.removeClass("sui-button-onload")}),"json")}function m(){const e=t(this);return e.addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-manually-update-sitemap",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){Wds.show_floating_message("wds-sitemap-manually-updated",Wds.l10n("sitemaps","manually_updated"),"success"),e.removeClass("sui-button-onload")}),"json")}function g(){return t(this).addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-deactivate-sitemap-module",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){window.location.reload()}),"json")}r&&(0,o.render)((0,e.createElement)(i,null,(0,e.createElement)(ne,{homeUrl:O.get("home_url","news"),enabled:O.get("enabled","news"),publication:O.get("publication","news"),postTypes:O.get("post_types","news")})),r),t((function(){window.Wds.hook_conditionals(),window.Wds.hook_toggleables(),window.Wds.conditional_fields(),window.Wds.dismissible_message(),window.Wds.vertical_tabs(),window.Wds.reporting_schedule(),a(),class{static getQueryParam(e){const t=location.search;return new URLSearchParams(t).get(e)}static removeQueryParam(e){const t=location.search,s=new URLSearchParams(t);if(!s.get(e))return;s.delete(e);const n=location.href.replace(t,"?"+s.toString());history.replaceState({},"",n)}}.removeQueryParam("crawl-in-progress"),t(document).on("change",'.wds-sitemap-toggleable input[type="checkbox"]',l).on("change","#wds_sitemap_options-sitemap-disable-automatic-regeneration",(function(){const e=t(this);e.closest(".sui-toggle").find(".sui-notice").toggleClass("hidden",e.is(":checked"))})).on("click","#wds-switch-to-native-sitemap",c).on("click","#wds-switch-to-smartcrawl-sitemap",u).on("click","#wds-deactivate-sitemap-module",g).on("click","#wds-manually-update-sitemap",m).on("click","#wds-manually-notify-search-engines",h),t(l)}))}(jQuery)}()}();
|
1 |
+
!function(){var e={4184:function(e,t){var s;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=r.apply(null,s);o&&e.push(o)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var a in s)n.call(s,a)&&s[a]&&e.push(a);else e.push(s.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()},7145:function(e,t){"use strict";function s(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function r(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=r;var i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString;function l(e){return a.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(s){i.call(t,s)&&(e[s]=t[s])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=c({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var s=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||r(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),r("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(s.commands).join(", ")+"."}));var o=e;return u(n).forEach((function(t){if(i.call(s.commands,t)){var r=e===o;o=s.commands[t](n[t],o,n,e),r&&s.isEquals(o,e)&&(o=e)}else{var a="Map"===l(e)?s.update(e.get(t),n[t]):s.update(e[t],n[t]),c="Map"===l(o)?o.get(t):o[t];s.isEquals(a,c)&&(void 0!==a||i.call(e,t))||(o===e&&(o=d(e)),"Map"===l(o)?o.set(t,a):o[t]=a)}})),o},e}();t.Context=p;var h={$push:function(e,t,s){return g(t,s,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,s){return g(t,s,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+s(e)})),f(t.$splice)}(t,n),e.forEach((function(e){f(e),t===i&&e.length&&(t=d(i)),o.apply(t,e)})),t},$set:function(e,t,s){return function(e){r(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(s),e},$toggle:function(e,t){w(e,"$toggle");var s=e.length?d(t):t;return e.forEach((function(e){s[e]=!t[e]})),s},$unset:function(e,t,s,n){return w(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=d(n)),delete t[e])})),t},$add:function(e,t,s,n){return b(t,"$add"),w(e,"$add"),"Map"===l(t)?e.forEach((function(e){var s=e[0],r=e[1];t===n&&t.get(s)!==r&&(t=d(n)),t.set(s,r)})):e.forEach((function(e){t!==n||t.has(e)||(t=d(n)),t.add(e)})),t},$remove:function(e,t,s,n){return b(t,"$remove"),w(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=d(n)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+s(a)})),r(o&&"object"==typeof o,(function(){return"update(): $merge expects a target of type 'object'; got "+s(o)})),u(e).forEach((function(s){e[s]!==t[s]&&(t===i&&(t=d(i)),t[s]=e[s])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+s(n)+"."})),e(t)}},m=new p;function g(e,t,n){r(Array.isArray(e),(function(){return"update(): expected target of "+s(n)+" to be an array; got "+s(e)+"."})),w(t[n],n)}function w(e,t){r(Array.isArray(e),(function(){return"update(): expected spec of "+s(t)+" to be an array; got "+s(e)+". Did you forget to wrap your parameter in an array?"}))}function f(e){r(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+s(e)+". Did you forget to wrap your parameters in an array?"}))}function b(e,t){var n=l(e);r("Map"===n||"Set"===n,(function(){return"update(): "+s(t)+" expects a target of type Set or Map; got "+s(n)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=c(t.default,t)}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,s),i.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.React,n=s.n(t);class r extends n().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var i=r,o=window.ReactDOM,a=s.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function c(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u=window.wp.i18n,d=s(4184),p=s.n(d);class h extends n().Component{constructor(e){super(e),this.state={open:!1}}toggle(e){const t=e.target.className||"";("BUTTON"!==(e.target.tagName||"")||t.includes("sui-accordion-open-indicator"))&&this.setState({open:!this.state.open})}render(){return(0,e.createElement)("div",{className:p()("sui-accordion-item",this.props.className,{"sui-accordion-item--open":this.state.open})},(0,e.createElement)("div",{className:"sui-accordion-item-header",onClick:e=>this.toggle(e)},this.props.header),this.props.children&&(0,e.createElement)("div",{className:"sui-accordion-item-body"},(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-body"},this.props.children))))}}c(h,"defaultProps",{className:""});class m extends n().Component{constructor(e){super(e),this.state={activeTab:"issues"}}render(){const t=this.props.activeIssues,s=Object.keys(t).length,r=this.props.ignoredIssues,i=s+Object.keys(r).length>0,o=this.getTabData(t,r);return(0,e.createElement)(h,{className:p()({[this.props.warningClass]:s>0,"sui-success":s<1,"wds-no-crawl-issues":!i}),header:(0,e.createElement)(n().Fragment,null,(0,e.createElement)("div",{className:"sui-accordion-item-title"},(0,e.createElement)("span",{"aria-hidden":"true",className:p()({"sui-icon-warning-alert":s>0,[this.props.warningClass]:s>0,"sui-success sui-icon-check-tick":s<1})}),this.getTitle(s)),i&&(0,e.createElement)("div",null,(0,e.createElement)("span",{className:"sui-accordion-open-indicator"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("button",{type:"button",className:"sui-screen-reader-text"},(0,u.__)("Expand issue","wds")))))},i&&(0,e.createElement)(n().Fragment,null,(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,u.__)("Overview","wds"))),(0,e.createElement)("p",null,(0,e.createElement)("small",null,this.props.description)),(0,e.createElement)("div",{className:"sui-tabs"},(0,e.createElement)("div",{"data-tabs":""},Object.keys(o).map((t=>(0,e.createElement)("div",{key:t,className:p()({active:this.state.activeTab===t}),onClick:()=>this.setState({activeTab:t})},o[t].label)))),(0,e.createElement)("div",{"data-panes":""},Object.keys(o).map((t=>(0,e.createElement)("div",{key:t,className:p()({active:this.state.activeTab===t})},this.getPane(o[t]))))))))}getTabData(e,t){return{issues:{label:(0,u.__)("Issues","wds"),items:e,noItemsNotice:(0,u.__)("No active issues.","wds"),tableClass:"wds-crawl-issues-table"},ignored:{label:(0,u.__)("Ignored","wds"),items:t,noItemsNotice:(0,u.__)("No ignored issues.","wds"),tableClass:"wds-ignored-items-table"}}}getPane(t){const s=t.items,r=Object.keys(s).length>0;return(0,e.createElement)(n().Fragment,null,(0,e.createElement)("table",{className:t.tableClass},(0,e.createElement)("tbody",null,r&&(0,e.createElement)(n().Fragment,null,Object.keys(s).map((e=>this.props.renderIssue(e,s[e]))),(0,e.createElement)("tr",{className:"wds-controls-row"},(0,e.createElement)("td",{colSpan:"4"},this.props.renderControls(this.props.type,this.state.activeTab)))),!r&&(0,e.createElement)("tr",{className:"wds-no-results-row"},(0,e.createElement)("td",{colSpan:"2"},(0,e.createElement)("small",null,t.noItemsNotice))))))}getTitle(e){return(0,u.sprintf)(1===e?this.props.singularTitle:this.props.pluralTitle,e>0?e:(0,u.__)("No","wds"))}}c(m,"defaultProps",{type:"",activeIssues:{},ignoredIssues:{},singularTitle:"",pluralTitle:"",description:"",warningClass:"sui-warning",renderIssue:()=>!1,renderControls:()=>!1});class g extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL has multiple redirections","wds"),pluralTitle:(0,u.__)("%s URLs have multiple redirections","wds"),description:(0,u.__)("Some of your URLs have multiple redirections. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class w extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is resulting in 4xx error","wds"),pluralTitle:(0,u.__)("%s URLs are resulting in 4xx errors","wds"),description:(0,u.__)("Some of your URLs are resulting in 4xx errors. Either the page no longer exists or the URL has changed. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class f extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is resulting in 5xx server error","wds"),pluralTitle:(0,u.__)("%s URLs are resulting in 5xx server errors","wds"),description:(0,u.__)("Some of your URLs are resulting in 5xx server errors. These errors are indicative of errors in your server-side code. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class b extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL could not be processed","wds"),pluralTitle:(0,u.__)("%s URLs could not be processed","wds"),description:(0,u.__)("Some of your URLs could not be processed by our crawlers. In the options menu you can List occurrences to see where these links can be found, and also set up and 301 redirects to a newer version of these pages.","wds")}))}}class E extends n().Component{render(){return(0,e.createElement)(m,l({},this.props,{singularTitle:(0,u.__)("%s URL is missing from the sitemap","wds"),pluralTitle:(0,u.__)("%s URLs are missing from the sitemap","wds"),description:(0,u.__)("SmartCrawl couldn’t find these URLs in your Sitemap. You can choose to add them to your Sitemap, or ignore the warning if you don’t want them included.","wds"),warningClass:"sui-default"}))}}class y extends n().Component{render(){const t=p()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,u.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,s)=>(0,e.createElement)("li",{key:s},t)))))}}c(y,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class _ extends n().Component{render(){return(0,e.createElement)("button",{className:p()({"sui-option-red":this.props.red}),onClick:()=>this.props.onClick(),type:"button"},(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}),this.props.text)}}c(_,"defaultProps",{text:"",icon:"",red:!1,onClick:()=>!1});class v extends n().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,s,n=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},n," ",this.props.text),s=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,n," ",this.props.text),s=""),(0,e.createElement)("button",{className:p()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,s)}}c(v,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});class x extends n().Component{render(){return(0,e.createElement)("tr",null,(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-warning-alert"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,this.props.path))),(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)(y,{loading:this.props.loading,disabled:this.props.disabled,buttons:[(0,e.createElement)(_,{icon:"sui-icon-plus",text:(0,u.__)("Add to Sitemap","wds"),onClick:()=>this.props.onAddToSitemap()}),(0,e.createElement)(_,{icon:"sui-icon-eye-hide",text:(0,u.__)("Ignore","wds"),onClick:()=>this.props.onIgnore()})]}),this.props.ignored&&(0,e.createElement)(v,{icon:"sui-icon-plus",text:(0,u.__)("Restore","wds"),ghost:!0,loading:this.props.loading,disabled:this.props.disabled,onClick:()=>this.props.onRestore()})))}}c(x,"defaultProps",{path:"",loading:!1,disabled:!1,onAddToSitemap:()=>!1,onIgnore:()=>!1,onRestore:()=>!1});var C=SUI,I=s.n(C),N=jQuery,S=s.n(N);class k extends n().Component{constructor(e){super(e),this.props=e}componentDidMount(){I().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){I().closeModal()}handleKeyDown(e){S()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),s=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:p()("sui-modal",s),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:p()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:p()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:p()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:p()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:p()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,u.__)("Close this dialog window","wds")))}}c(k,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class A extends n().Component{render(){const t=[...new Set(this.props.origin)],s=(0,e.createInterpolateElement)((0,u.sprintf)((0,u.__)("We found links to <strong>%s</strong> in these locations, you might want to remove these links or direct them somewhere else.","wds"),this.props.path),{strong:(0,e.createElement)("strong",null)});return(0,e.createElement)(k,{id:"wds-issue-occurrences",title:(0,u.__)("Broken URL Locations","wds"),description:s,onClose:()=>this.props.onClose(),focusAfterOpen:"wds-close-occurrences-modal-button",small:!0},(0,e.createElement)("div",{className:"wds-issue-occurrences"},(0,e.createElement)("ul",null,t.map((t=>(0,e.createElement)("li",{key:t},(0,e.createElement)("a",{href:t},t)))))),(0,e.createElement)(v,{id:"wds-close-occurrences-modal-button",onClick:()=>this.props.onClose(),ghost:!0,text:(0,u.__)("Close","wds")}))}}c(A,"defaultProps",{path:"",origin:[],onClose:()=>!1});class P extends n().Component{constructor(e){super(e),this.state={showingOccurrences:!1}}render(){return(0,e.createElement)("tr",null,(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-warning sui-icon-warning-alert"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,this.props.path))),!this.props.ignored&&(0,e.createElement)("td",null,(0,e.createElement)("span",{className:"sui-tag sui-tag-warning"},!!this.props.origin&&this.props.origin.length)),(0,e.createElement)("td",null,!this.props.ignored&&(0,e.createElement)(y,{loading:this.props.loading,disabled:this.props.disabled,buttons:[(0,e.createElement)(_,{text:(0,u.__)("List Occurrences","wds"),icon:"sui-icon-list-bullet",onClick:()=>this.startShowingOccurrences()}),(0,e.createElement)(_,{text:(0,u.__)("Redirect","wds"),icon:"sui-icon-arrow-right",onClick:()=>this.props.onRedirect()}),(0,e.createElement)(_,{text:(0,u.__)("Ignore","wds"),icon:"sui-icon-eye-hide",onClick:()=>this.props.onIgnore()})]}),this.props.ignored&&(0,e.createElement)(v,{icon:"sui-icon-plus",text:(0,u.__)("Restore","wds"),ghost:!0,loading:this.props.loading,disabled:this.props.disabled,onClick:()=>this.props.onRestore()}),this.state.showingOccurrences&&(0,e.createElement)(A,{path:this.props.path,origin:this.props.origin,onClose:()=>this.stopShowingOccurrences()})))}startShowingOccurrences(){this.setState({showingOccurrences:!0})}stopShowingOccurrences(){this.setState({showingOccurrences:!1})}}c(P,"defaultProps",{path:"",origin:[],loading:!1,disabled:!1,onRedirect:()=>!1,onIgnore:()=>!1,onRestore:()=>!1});var O=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let s=window["_wds_"+t]||{};return e.forEach((e=>{s=s&&s.hasOwnProperty(e)?s[e]:""})),s}static get_bool(e,t="general"){return!!this.get(e,t)}},T=ajaxurl,j=s.n(T);class R{static redirect(e,t){return this.post("wds_redirect_crawl_item",{source:e,destination:t})}static changeIssueStatus(e,t){return this.post(t,{issue_id:e})}static ignoreIssue(e){return this.changeIssueStatus(e,"wds_ignore_crawl_item")}static restoreIssue(e){return this.changeIssueStatus(e,"wds_restore_crawl_item")}static restoreAll(){return this.post("wds_restore_all_crawl_items")}static addToSitemap(e){return this.post("wds_sitemap_add_extra",{path:e})}static post(e,t){const s=O.get("nonce","crawler");return class{static post(e,t,s={}){return new Promise((function(n,r){const i=Object.assign({},{action:e,_wds_nonce:t},s);S().post(j(),i).done((function(e){var t;e.success?n(null==e?void 0:e.data):r(null==e||null===(t=e.data)||void 0===t?void 0:t.message)})).fail((()=>r()))}))}}.post(e,s,t)}}class U extends n().Component{constructor(e){super(e)}render(){return(0,e.createElement)("div",{className:p()("sui-form-field",{"sui-form-field-error":!this.props.isValid})},(0,e.createElement)("label",{className:"sui-label"},this.props.label),(0,e.createElement)("input",{id:this.props.id,type:"text",className:"sui-form-control",onChange:e=>this.props.onChange(e.target.value),value:this.props.value,placeholder:this.props.placeholder}),!!this.props.description&&(0,e.createElement)("p",{className:"sui-description"},(0,e.createElement)("small",null,this.props.description)))}}c(U,"defaultProps",{id:"",label:"",description:"",value:"",isValid:!0,placeholder:"",onChange:()=>!1});class q{static isNonEmpty(e){return e&&e.trim()}static isValuePlainText(e){return S()("<div>").html(e).text()===e}}const L=($=U,D=[q.isNonEmpty,q.isValuePlainText],class extends n().Component{constructor(e){super(e),this.state={initial:!0}}isValueValid(e){if(this.state.initial)return!0;if(Array.isArray(D)){let t=!0;return D.forEach((s=>{t=t&&s(e)})),t}return D(e)}handleChange(e){this.setState({initial:!1},(()=>{this.props.onChange(e,this.isValueValid(e))}))}render(){return(0,e.createElement)($,l({},this.props,{isValid:this.isValueValid(this.props.value),onChange:e=>this.handleChange(e)}))}});var $,D;class V extends n().Component{constructor(e){super(e),this.state={destination:this.props.destination,isDestinationValid:q.isNonEmpty(this.props.destination)}}handleDestinationChange(e,t){this.setState({destination:e,isDestinationValid:t})}render(){const t=(0,e.createInterpolateElement)((0,u.sprintf)((0,u.__)("Choose where to redirect <strong>%s</strong>","wds"),this.props.source),{strong:(0,e.createElement)("strong",null)}),s=(0,e.createInterpolateElement)((0,u.__)("Formats include relative URLs like <strong>/cats</strong> or absolute URLs like <strong>https://website.com/cats</strong>. This feature will automatically redirect traffic from the broken URL to this new URL, you can view all your redirects under <strong><a>Advanced Tools</a></strong>.","wds"),{strong:(0,e.createElement)("strong",null),a:(0,e.createElement)("a",{href:O.get("advanced_tools_url","crawler")})}),n=()=>this.props.onSave(this.state.destination.trim()),r=!this.state.isDestinationValid;return(0,e.createElement)(k,{id:"wds-issue-redirect",title:(0,u.__)("Redirect URL","wds"),description:t,focusAfterOpen:"wds-crawler-redirect-destination",onEnter:n,enterDisabled:r,onClose:()=>this.props.onClose(),disableCloseButton:this.props.requestInProgress,small:!0},(0,e.createElement)(L,{id:"wds-crawler-redirect-destination",label:(0,u.__)("New URL","wds"),placeholder:(0,u.__)("Enter new URL","wds"),description:s,value:this.state.destination,onChange:(e,t)=>this.handleDestinationChange(e,t)}),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(v,{text:(0,u.__)("Cancel","wds"),ghost:!0,onClick:()=>this.props.onClose(),disabled:this.props.requestInProgress}),(0,e.createElement)(v,{text:(0,u.__)("Apply","wds"),onClick:n,icon:"sui-icon-check",disabled:r,loading:this.props.requestInProgress})))}}c(V,"defaultProps",{source:"",destination:"",requestInProgress:!1,onSave:()=>!1,onClose:()=>!1});class W extends n().Component{render(){return(0,e.createElement)("div",{className:"sui-floating-notices"},(0,e.createElement)("div",{role:"alert",id:this.props.id,className:"sui-notice","aria-live":"assertive"}))}}c(W,"defaultProps",{id:""});class M{static showSuccessNotice(e,t,s=!0){return this.showNotice(e,t,"success",s)}static showErrorNotice(e,t,s=!0){return this.showNotice(e,t,"error",s)}static showInfoNotice(e,t,s=!0){return this.showNotice(e,t,"info",s)}static showWarningNotice(e,t,s=!0){return this.showNotice(e,t,"warning",s)}static showNotice(e,t,s="success",n=!0){SUI.closeNotice(e),SUI.openNotice(e,"<p>"+t+"</p>",{type:s,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[s],dismiss:{show:n}})}}var B=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function F(e,t){if(e.length!==t.length)return!1;for(var s=0;s<e.length;s++)if(!((n=e[s])===(r=t[s])||B(n)&&B(r)))return!1;var n,r;return!0}var G=function(e,t){var s;void 0===t&&(t=F);var n,r=[],i=!1;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return i&&s===this&&t(o,r)||(n=e.apply(this,o),i=!0,s=this,r=o),n}};class K extends n().Component{constructor(e){super(e),this.state={issues:O.get("issues","crawler")||{},redirectInProgress:!1,requestInProgress:!1},this.getAllActiveIssueKeysMemoized=G((e=>this.getAllActiveIssueKeys(e))),this.getActiveSitemapIssuesMemoized=G((e=>this.getActiveSitemapIssueCount(e)))}componentDidUpdate(e,t,s){const n=this.getIssues(),r=this.getAllActiveIssueKeysMemoized(n),i=this.getActiveSitemapIssuesMemoized(n);this.props.onActiveIssueCountChange(r.length,i)}render(){const t=this.getIssues()||{},s=Array.from(new Set([...Object.keys(t),"3xx","4xx","5xx","sitemap","inaccessible"])),r=this.getAllActiveIssueKeysMemoized(t);return(0,e.createElement)(n().Fragment,null,r.length>0&&this.getIgnoreAllButton(),(0,e.createElement)("p",null,(0,u.__)("Here are potential issues SmartCrawl has picked up. We recommend fixing them up to ensure you aren’t penalized by search engines - you can however ignore any of these warnings.","wds")),(0,e.createElement)(W,{id:"wds-crawl-report-notice"}),(0,e.createElement)("div",{className:"sui-accordion wds-draw-left"},s.map((s=>{const n=this.getGroupComponent(s),r=t.hasOwnProperty(s)?t[s]:{},i="sitemap"===s?(e,t)=>this.renderSitemapIssue(e,t):(e,t)=>this.renderIssue(e,t),o="sitemap"===s?(e,t)=>this.renderSitemapControls(e,t):(e,t)=>this.renderControls(e,t);return(0,e.createElement)(n,{type:s,key:s,activeIssues:this.getActiveIssues(r),ignoredIssues:this.getIgnoredIssues(r),renderIssue:i,renderControls:o})}))),this.maybeShowRedirectModal())}renderSitemapIssue(t,s){return(0,e.createElement)(x,l({},s,{key:t,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onIgnore:()=>this.ignoreItem(t),onAddToSitemap:()=>this.addToSitemap(t),onRestore:()=>this.restoreItem(t)}))}renderIssue(t,s){return(0,e.createElement)(P,l({},s,{key:t,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onRedirect:()=>this.startRedirecting(t),onIgnore:()=>this.ignoreItem(t),onRestore:()=>this.restoreItem(t)}))}addToSitemap(e){this.setState({requestInProgress:e},(()=>{const t=this.getIssue(e);R.addToSitemap(t.path).then((e=>{this.showSuccessNotice((0,u.__)("The missing item has been added to your sitemap as an extra URL.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}ignoreItem(e){this.setState({requestInProgress:e},(()=>{R.ignoreIssue(e).then((e=>{this.showSuccessNotice((0,u.__)("The issue has been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}restoreItem(e){this.setState({requestInProgress:e},(()=>{R.restoreIssue(e).then((e=>{this.showSuccessNotice((0,u.__)("The issue has been restored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}maybeShowRedirectModal(){if(!this.state.redirectInProgress)return!1;const t=this.state.redirectInProgress,s=this.getIssue(t);return!!s&&(0,e.createElement)(V,{source:s.path,destination:s.redirect,onSave:e=>this.redirect(s.path,e),onClose:()=>this.stopRedirecting(),requestInProgress:this.state.requestInProgress})}startRedirecting(e){this.setState({redirectInProgress:e})}redirect(e,t){this.setState({requestInProgress:!0},(()=>{R.redirect(e,t).then((e=>{this.showSuccessNotice((0,u.__)("The URL has been redirected successfully.","wds")),this.setState({redirectInProgress:!1,issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}stopRedirecting(){this.setState({redirectInProgress:!1})}renderControls(e,t){return"issues"===t?this.getIgnoreAllOfTypeButton(e):this.getRestoreAllButton(e)}getIgnoreAllOfTypeButton(t){return(0,e.createElement)(v,{icon:"sui-icon-eye-hide",text:(0,u.__)("Ignore All","wds"),ghost:!0,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onClick:()=>this.ignoreAllOfType(t)})}getIgnoreAllButton(){const t=function(t,s){return class extends n().Component{render(){const n=document.getElementById(s);return n?a().createPortal((0,e.createElement)(t,this.props),n):null}}}(v,"wds-ignore-all-button-placeholder");return(0,e.createElement)(t,{text:(0,u.__)("Ignore All","wds"),ghost:!0,icon:"sui-icon-eye-hide",onClick:()=>this.ignoreAll(),loading:"ignore-all"===this.state.requestInProgress,disabled:this.state.requestInProgress})}getRestoreAllButton(t){return(0,e.createElement)(v,{icon:"sui-icon-plus",text:(0,u.__)("Restore All","wds"),ghost:!0,loading:this.state.requestInProgress===t,disabled:this.state.requestInProgress,onClick:()=>this.restoreAll(t)})}renderSitemapControls(t,s){return"issues"!==s?this.getRestoreAllButton(t):(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},this.getIgnoreAllOfTypeButton(t),(0,e.createElement)(v,{icon:"sui-icon-plus",text:(0,u.__)("Add All to Sitemap","wds"),color:"blue",loading:"add-all-to-sitemap"===this.state.requestInProgress,disabled:this.state.requestInProgress,onClick:()=>this.addAllToSitemap(t)}))}restoreAll(e){const t=this.getIssues(),s=Object.keys(this.getIgnoredIssues(t[e]));this.setState({requestInProgress:e},(()=>{R.restoreIssue(s).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been restored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}ignoreAll(){const e=this.getIssues(),t=this.getAllActiveIssueKeys(e);this.setState({requestInProgress:"ignore-all"},(()=>{R.ignoreIssue(t).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}getActiveSitemapIssueCount(e){const t=this.getActiveIssues(e.sitemap||{});return Object.keys(t).length}getAllActiveIssueKeys(e){const t=this.getFlattenedIssues(e);return Object.keys(this.getActiveIssues(t))}getFlattenedIssues(e){return Object.keys(e).reduce(((t,s)=>Object.assign(t,e[s])),{})}ignoreAllOfType(e){const t=this.getIssues(),s=Object.keys(this.getActiveIssues(t[e]));this.setState({requestInProgress:e},(()=>{R.ignoreIssue(s).then((e=>{this.showSuccessNotice((0,u.__)("The issues have been ignored.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}addAllToSitemap(e){const t=this.getIssues(),s=Object.keys(this.getActiveIssues(t[e])).map((s=>t[e][s].path));this.setState({requestInProgress:"add-all-to-sitemap"},(()=>{R.addToSitemap(s).then((e=>{this.showSuccessNotice((0,u.__)("The missing items have been added to your sitemap as extra URLs.","wds")),this.setState({issues:e.issues})})).catch(this.showError).finally((()=>this.markRequestAsComplete()))}))}getGroupComponent(e){const t={"3xx":g,"4xx":w,"5xx":f,inaccessible:b,sitemap:E};return!!t.hasOwnProperty(e)&&t[e]}getIssue(e){const t=this.getIssues();let s=!1;return Object.keys(t).some((n=>{const r=Object.keys(t[n]).find((t=>t===e));return r&&(s=t[n][r]),r})),s}getActiveIssues(e){return this.filterIssues((t=>!e[t].ignored),e)}getIgnoredIssues(e){return this.filterIssues((t=>e[t].ignored),e)}filterIssues(e,t){return t=t||{},Object.keys(t).filter(e).reduce(((e,s)=>Object.assign(e,{[s]:t[s]})),{})}getIssues(){return this.state.issues||{}}showSuccessNotice(e){M.showSuccessNotice("wds-crawl-report-notice",e,!1)}showError(e){M.showErrorNotice("wds-crawl-report-notice",e||(0,u.__)("An unknown error occurred, please reload the page and try again.","wds"),!1)}markRequestAsComplete(){this.setState({requestInProgress:!1})}}c(K,"defaultProps",{onActiveIssueCountChange:()=>!1});class z extends n().Component{render(){return(0,e.createElement)("div",{className:"sui-box-settings-row"},(0,e.createElement)("div",{className:"sui-box-settings-col-1"},(0,e.createElement)("span",{className:"sui-settings-label"},this.props.label),(0,e.createElement)("span",{className:"sui-description"},this.props.description)),(0,e.createElement)("div",{className:"sui-box-settings-col-2"},this.props.children))}}c(z,"defaultProps",{label:"",description:""});class H extends n().Component{render(){const t=this.props.tabs;return(0,e.createElement)("div",{className:"sui-side-tabs"},(0,e.createElement)("div",{className:"sui-tabs-menu"},Object.keys(t).map((s=>(0,e.createElement)("div",{className:p()("sui-tab-item",{active:this.props.value===s}),key:s,onClick:()=>this.props.onChange(s)},t[s])))),this.props.children&&(0,e.createElement)("div",{className:"sui-tab-content sui-tab-boxed"},this.props.children))}}c(H,"defaultProps",{tabs:{},value:"",onChange:()=>!1});class Q extends n().Component{render(){return(0,e.createElement)("button",{type:"button",className:"sui-button-icon sui-accordion-open-indicator"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,u.__)("Expand item","wds")))}}class Y extends n().Component{render(){return(0,e.createElement)("label",{className:"sui-checkbox"},(0,e.createElement)("input",{id:this.props.id,type:"checkbox",checked:this.props.checked,onChange:e=>this.props.onChange(e.target.checked)}),(0,e.createElement)("span",{"aria-hidden":"true"}))}}c(Y,"defaultProps",{id:"",checked:!1,onChange:()=>!1});class J extends n().Component{render(){const t=this.props.formControl;return(0,e.createElement)("div",{className:p()("sui-form-field",{"sui-form-field-error":!this.props.isValid})},(0,e.createElement)("label",{className:"sui-label"},this.props.label),(0,e.createElement)(t,this.props),!!this.props.description&&(0,e.createElement)("p",{className:"sui-description"},(0,e.createElement)("small",null,this.props.description)))}}c(J,"defaultProps",{label:"",description:"",isValid:!0,formControl:!1});class X extends n().Component{constructor(e){super(e),this.props=e,this.state={loadingText:!1},this.selectElement=n().createRef(),this.selectElementContainer=n().createRef()}componentDidMount(){const e=S()(this.selectElement.current);e.addClass(this.props.small?"sui-select sui-select-sm":"sui-select").SUIselect2(this.getSelect2Args()),this.includeSelectedValueAsDynamicOption(),e.on("change",(e=>this.handleChange(e)))}includeSelectedValueAsDynamicOption(){this.props.selectedValue&&this.noOptionsAvailable()&&(this.props.tagging?Array.isArray(this.props.selectedValue)?this.props.selectedValue.forEach((e=>{this.addOption(e,e,!0)})):this.addOption(this.props.selectedValue,this.props.selectedValue,!0):this.props.loadTextAjaxUrl&&this.loadTextFromRemote())}loadTextFromRemote(){this.state.loadingText||(this.setState({loadingText:!0}),S().get(this.props.loadTextAjaxUrl,{id:this.props.selectedValue}).done((e=>{e&&e.results&&e.results.length&&e.results.forEach((e=>{this.addOption(e.id,e.text,!0)})),this.setState({loadingText:!1})})))}addOption(e,t,s){let n=new Option(t,e,!1,s);S()(this.selectElement.current).append(n).trigger("change")}noOptionsAvailable(){return!Object.keys(this.props.options).length}componentWillUnmount(){S()(this.selectElement.current).off().SUIselect2("destroy")}getSelect2Args(){let e={dropdownParent:S()(this.selectElementContainer.current),dropdownCssClass:"sui-select-dropdown",minimumResultsForSearch:this.props.minimumResultsForSearch,multiple:this.props.multiple,tagging:this.props.tagging};return this.props.placeholder&&(e.placeholder=this.props.placeholder),this.props.ajaxUrl&&(e.ajax={url:this.props.ajaxUrl},e.minimumInputLength=this.props.minimumInputLength),this.props.templateResult&&(e.templateResult=this.props.templateResult),this.props.templateSelection&&(e.templateSelection=this.props.templateSelection),this.props.ajaxUrl&&this.props.tagging&&(e.ajax.processResults=(e,t)=>e.results&&!e.results.length?{results:[{id:t.term,text:t.term}]}:e),e}handleChange(e){let t=e.target.value;this.props.multiple&&(t=Array.from(e.target.selectedOptions,(e=>e.value))),this.props.onSelect(t)}isOptGroup(e){return"object"==typeof e&&e.label&&e.options}printOptions(t){return Object.keys(t).map((s=>{const n=t[s];return this.isOptGroup(n)?(0,e.createElement)("optgroup",{key:s,label:n.label},this.printOptions(n.options)):(0,e.createElement)("option",{key:s,value:s},n)}))}render(){const t=this.props.options;let s;return s=Object.keys(t).length?this.printOptions(t):(0,e.createElement)("option",null),(0,e.createElement)("div",{ref:this.selectElementContainer},(0,e.createElement)("select",{disabled:this.state.loadingText,value:this.props.selectedValue,onChange:()=>!0,ref:this.selectElement,multiple:this.props.multiple},s))}}c(X,"defaultProps",{small:!1,tagging:!1,placeholder:"",ajaxUrl:"",loadTextAjaxUrl:"",selectedValue:"",minimumResultsForSearch:10,minimumInputLength:3,multiple:!1,options:{},templateResult:!1,templateSelection:!1,onSelect:()=>!1});class Z extends n().Component{render(){const t=this.props.taxonomies||{};return this.props.included?(0,e.createElement)(h,{className:"sui-builder-field",header:(0,e.createElement)(n().Fragment,null,this.getHeader(),(0,e.createElement)(Q,null))},Object.keys(t).map((s=>{const n=t[s],r=n.terms||{};return(0,e.createElement)("div",{className:"wds-news-taxonomy",key:s},(0,e.createElement)("strong",null,(0,u.sprintf)((0,u.__)("Exclude %s","wds"),n.label)),(0,e.createElement)("p",{className:"sui-description"},(0,u.sprintf)((0,u.__)("Select %s that should be excluded from the Google News sitemap.","wds"),n.label)),(0,e.createElement)("div",{className:"wds-news-taxonomy-terms"},Object.keys(r).map((t=>{const n="wds-news-"+this.props.name+"-term-"+t,i=r[t];return(0,e.createElement)("span",{className:"wds-news-term",key:n},(0,e.createElement)(Y,{id:n,checked:i.excluded,onChange:e=>this.props.onTermExclusionChange(this.props.name,s,i.id,e)}),(0,e.createElement)("label",{htmlFor:n},i.label))}))))})),(0,e.createElement)(J,{label:(0,u.sprintf)((0,u.__)("%s to exclude","wds"),this.props.label),description:(0,u.__)("Search for and select posts that should be excluded from the Google News sitemap.","wds"),formControl:X,placeholder:(0,u.__)("Start typing...","wds"),selectedValue:this.props.excluded,multiple:!0,ajaxUrl:this.getAjaxSearchUrl(),loadTextAjaxUrl:this.getAjaxSearchUrl("text"),onSelect:e=>this.props.onPostExclusion(this.props.name,e)})):(0,e.createElement)(h,{className:"sui-builder-field disabled",header:this.getHeader()})}getAjaxSearchUrl(e=""){return(0,u.sprintf)("%s?action=wds-search-post&type=%s&request_type=%s",j(),this.props.name,e)}getHeader(){return(0,e.createElement)(n().Fragment,null,(0,e.createElement)(Y,{checked:this.props.included,onChange:e=>this.props.onPostTypeInclusionChange(this.props.name,e)}),(0,e.createElement)("div",{className:"sui-builder-field-label"},(0,e.createElement)("span",null,this.props.label),(0,e.createElement)("span",null,"(",this.props.name,")")))}}c(Z,"defaultProps",{name:"",label:"",included:!1,excluded:[],taxonomies:{},onPostTypeInclusionChange:()=>!1,onTermExclusionChange:()=>!1,onPostExclusion:()=>!1});var ee=s(7145),te=s.n(ee);class se extends n().Component{render(){const t=this.getIcon(this.props.type);return(0,e.createElement)("div",{className:p()("sui-notice","sui-notice-"+this.props.type)},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},t&&(0,e.createElement)("span",{className:p()("sui-notice-icon sui-md",t),"aria-hidden":"true"}),(0,e.createElement)("p",null,this.props.message))))}getIcon(e){return{warning:"sui-icon-warning-alert",info:"sui-icon-info",success:"sui-icon-check-tick",purple:"sui-icon-info","":"sui-icon-info"}[e]}}c(se,"defaultProps",{type:"warning",message:""});class ne extends n().Component{constructor(e){super(e),this.state={requestInProgress:!1,enabled:this.props.enabled,publication:this.props.publication,postTypes:this.props.postTypes}}render(){const t=this.state.enabled,s=this.state.publication,n=this.state.postTypes;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)(W,{id:"wds-news-sitemap-notice"}),(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,u.__)("News Sitemap","wds"))),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("p",null,(0,e.createInterpolateElement)((0,u.__)("Are you publishing newsworthy content? Use the Google News Sitemap to list news articles and posts published in the last 48 hours so that they show up in Google News. <a>Learn More</a>","wds"),{a:(0,e.createElement)("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#news-sitemap",target:"_blank"})})),t&&(0,e.createElement)(se,{type:"info",message:(0,e.createInterpolateElement)((0,u.__)("Your sitemap is available at <a>/news-sitemap.xml</a>","wds"),{a:(0,e.createElement)("a",{target:"_blank",href:this.props.homeUrl+"news-sitemap.xml"})})}),(0,e.createElement)(z,{label:(0,u.__)("Enable News Sitemap","wds"),description:(0,u.__)("Use this option to enable or disable the Google News Sitemap feature.","wds")},(0,e.createElement)("div",{style:{marginBottom:"10px"}},(0,e.createElement)(H,{value:t?"enable":"disable",onChange:e=>this.toggleNewsSitemap(e),tabs:{enable:(0,u.__)("Enable","wds"),disable:(0,u.__)("Disable","wds")}})),t&&this.props.schemaEnabled&&(0,e.createElement)(se,{type:"",message:(0,e.createInterpolateElement)((0,u.__)("SmartCrawl automatically changes the schema to <strong>NewsArticle</strong> for all included posts/pages to ensure your newsworthy content is properly crawled and indexed. Note that if some schema types have been added using the Types Builder, the <strong>NewsArticle</strong> schema will not be displayed.","wds"),{strong:(0,e.createElement)("strong",null)})})),t&&(0,e.createElement)(z,{label:(0,u.__)("News Publication","wds"),description:(0,u.__)("Enter your Google News publication name.","wds")},(0,e.createElement)(U,{label:(0,u.__)("Publication Name","wds"),description:(0,e.createInterpolateElement)((0,u.__)("The publication name must match your publication name on <span>news.google.com</span>","wds"),{span:(0,e.createElement)("span",{style:{color:"#000"}})}),value:s,onChange:e=>this.updatePublication(e)})),t&&(0,e.createElement)(z,{label:(0,u.__)("Inclusions","wds"),description:(0,u.__)("Select Post Types to include in your news sitemap.","wds")},(0,e.createElement)("strong",null,(0,u.__)("Post types to include","wds")),(0,e.createElement)("p",{className:"sui-description",style:{margin:"10px 0 20px 0"}},(0,u.__)("Select post types to be included in the Google News sitemap. Expand a post type to exclude specific items or groups.","wds")),(0,e.createElement)("div",{className:"sui-box-builder"},(0,e.createElement)("div",{className:"sui-box-builder-body"},(0,e.createElement)("div",{className:"sui-builder-fields sui-accordion"},Object.keys(n).map((t=>{const s=n[t];return(0,e.createElement)(Z,l({key:t},s,{onPostTypeInclusionChange:(e,t)=>this.updatePostTypeInclusionStatus(e,t),onTermExclusionChange:(e,t,s,n)=>this.updateTermExclusionStatus(e,t,s,n),onPostExclusion:(e,t)=>this.updatePostExclusion(e,t)}))}))))))),(0,e.createElement)("div",{className:"sui-box-footer"},(0,e.createElement)("input",{type:"hidden",name:"wds_sitemap_options[news-settings]",value:JSON.stringify(this.state)}),(0,e.createElement)("button",{name:"submit",type:"submit",className:"sui-button sui-button-blue"},(0,e.createElement)("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,u.__)("Save Settings","wds"))))}updatePostExclusion(e,t){const s=this.formatSpec([e,"excluded"],{$set:t}),n=te()(this.state.postTypes,s);this.setState({postTypes:n})}updatePostTypeInclusionStatus(e,t){const s=te()(this.state.postTypes,{[e]:{included:{$set:t}}});this.setState({postTypes:s})}updateTermExclusionStatus(e,t,s,n){const r=this.formatSpec([e,"taxonomies",t,"terms",s,"excluded"],{$set:n}),i=te()(this.state.postTypes,r);this.setState({postTypes:i})}formatSpec(e,t){return e.slice().reverse().forEach((e=>{t={[e]:t}})),t}toggleNewsSitemap(e){this.setState({enabled:"enable"===e})}updatePublication(e){this.setState({publication:e})}}c(ne,"defaultProps",{homeUrl:"",enabled:!1,publication:"",schemaEnabled:"",postTypes:{}}),function(t,s){const n=document.getElementById("wds-url-crawler-report");n&&(0,o.render)((0,e.createElement)(i,null,(0,e.createElement)(K,{onActiveIssueCountChange:function(e,s){const n=t("#tab_url_crawler .sui-box-header .sui-tag"),r=t("li.tab_url_crawler"),i=r.find(".sui-tag"),o=r.find(".sui-icon-check-tick"),a=r.find(".sui-icon-loader"),l=t(".wds-new-crawl-button"),c=t(".sui-summary-large"),u=t('.sui-summary-large + [class*="sui-icon-"]'),d=t(".wds-invisible-urls-count"),p=t(".sui-box-header .wds-ignore-all").closest("div");undefined!==e&&(e>0?(n.show().html(e),i.show().html(e),p.show(),o.hide(),u.removeClass("sui-icon-check-tick sui-success").addClass("sui-icon-info sui-warning")):(n.hide(),i.hide(),p.hide(),o.show(),u.removeClass("sui-icon-info sui-warning").addClass("sui-icon-check-tick sui-success")),c.html(e),d.html(s),a.hide(),l.show())}})),n);const r=document.getElementById("wds-news-sitemap-tab");function a(){t(".tab_url_crawler").find(".wds-url-crawler-progress").length&&t.post(ajaxurl,{action:"wds_get_crawl_progress",_wds_nonce:Wds.get("crawler","nonce")},(()=>!1),"json").done((function(e){var s,n;const r=null==e||null===(s=e.data)||void 0===s?void 0:s.in_progress,i=null==e||null===(n=e.data)||void 0===n?void 0:n.progress,o=t("#tab_url_crawler .wds-progress");r?(Wds.update_progress_bar(o,i),setTimeout(a,5e3)):(Wds.update_progress_bar(o,100),window.location.reload())}))}function l(){t(".wds-sitemap-toggleable").each((function(){const e=t(this),s=e.next("tr").find(".sui-table");e.find('input[type="checkbox"]').is(":checked")?s.show():s.hide()}))}function c(){const e=t("#wds-switch-to-native-button");Wds.open_dialog("wds-switch-to-native-modal","wds-switch-to-native-sitemap",e.attr("id")),e.off().on("click",(function(){e.addClass("sui-button-onload"),p(!1,(function(){window.location.href=d({"switched-to-native":1})}))}))}function u(){const e=t("#wds-switch-to-smartcrawl-button");Wds.open_dialog("wds-switch-to-smartcrawl-modal","wds-switch-to-smartcrawl-sitemap",e.attr("id")),e.off().on("click",(function(){e.addClass("sui-button-onload"),p(!0,(function(){window.location.href=d({"switched-to-sc":1})}))}))}function d(e){const s=window.location.href,n=new URLSearchParams(window.location.search);return s.split("?")[0]+"?"+t.param(t.extend({},{page:n.get("page")},e))}function p(e,s){return t.post(ajaxurl,{action:"wds-override-native",override:e?"1":"0",_wds_nonce:Wds.get("sitemaps","nonce")},s,"json")}function h(){const e=t(this);return e.addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-manually-update-engines",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){Wds.show_floating_message("wds-sitemap-manually-notify-search-engines",Wds.l10n("sitemaps","manually_notified_engines"),"success"),e.removeClass("sui-button-onload")}),"json")}function m(){const e=t(this);return e.addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-manually-update-sitemap",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){Wds.show_floating_message("wds-sitemap-manually-updated",Wds.l10n("sitemaps","manually_updated"),"success"),e.removeClass("sui-button-onload")}),"json")}function g(){return t(this).addClass("sui-button-onload"),t.post(ajaxurl,{action:"wds-deactivate-sitemap-module",_wds_nonce:Wds.get("sitemaps","nonce")},(function(){window.location.reload()}),"json")}r&&(0,o.render)((0,e.createElement)(i,null,(0,e.createElement)(ne,{homeUrl:O.get("home_url","news"),schemaEnabled:O.get("schema_enabled","news"),enabled:O.get("enabled","news"),publication:O.get("publication","news"),postTypes:O.get("post_types","news")})),r),t((function(){window.Wds.hook_conditionals(),window.Wds.hook_toggleables(),window.Wds.conditional_fields(),window.Wds.dismissible_message(),window.Wds.vertical_tabs(),window.Wds.reporting_schedule(),a(),class{static getQueryParam(e){const t=location.search;return new URLSearchParams(t).get(e)}static removeQueryParam(e){const t=location.search,s=new URLSearchParams(t);if(!s.get(e))return;s.delete(e);const n=location.href.replace(t,"?"+s.toString());history.replaceState({},"",n)}}.removeQueryParam("crawl-in-progress"),t(document).on("change",'.wds-sitemap-toggleable input[type="checkbox"]',l).on("change","#wds_sitemap_options-sitemap-disable-automatic-regeneration",(function(){const e=t(this);e.closest(".sui-toggle").find(".sui-notice").toggleClass("hidden",e.is(":checked"))})).on("click","#wds-switch-to-native-sitemap",c).on("click","#wds-switch-to-smartcrawl-sitemap",u).on("click","#wds-deactivate-sitemap-module",g).on("click","#wds-manually-update-sitemap",m).on("click","#wds-manually-notify-search-engines",h),t(l)}))}(jQuery)}()}();
|
includes/assets/js/build/wds-configs.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e={4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},4239:function(e,t,n){var r=n(2705),i=n(9607),s=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},98:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,s){for(var o=-1,a=n(t((r-e)/(i||1)),0),u=Array(a);a--;)u[s?a:++o]=e,e+=i;return u}},7561:function(e,t,n){var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7445:function(e,t,n){var r=n(98),i=n(6612),s=n(8601);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&i(t,n,o)&&(n=o=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),o=void 0===o?t<n?1:-1:s(o),r(t,n,o,e)}}},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9607:function(e,t,n){var r=n(2705),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:function(e,t,n){var r=n(7813),i=n(8612),s=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&s(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},7990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},8612:function(e,t,n){var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3560:function(e,t,n){var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6026:function(e,t,n){var r=n(7445)();e.exports=r},8601:function(e,t,n){var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},4841:function(e,t,n){var r=n(7561),i=n(3218),s=n(3448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},9490:function(e,t){"use strict";function n(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 r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(){return(i=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}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){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(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function d(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 f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(l(Error)),m=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return s(t,e),t}(h),p=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return s(t,e),t}(h),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return s(t,e),t}(h),y=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(h),v=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return s(t,e),t}(h),w=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(h),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return s(t,e),t}(h),k="numeric",N="short",E="long",C={year:k,month:k,day:k},S={year:k,month:N,day:k},O={year:k,month:N,day:k,weekday:N},T={year:k,month:E,day:k},D={year:k,month:E,day:k,weekday:E},_={hour:k,minute:k},x={hour:k,minute:k,second:k},M={hour:k,minute:k,second:k,timeZoneName:N},P={hour:k,minute:k,second:k,timeZoneName:E},I={hour:k,minute:k,hourCycle:"h23"},V={hour:k,minute:k,second:k,hourCycle:"h23"},A={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:N},j={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:E},F={year:k,month:k,day:k,hour:k,minute:k},Z={year:k,month:k,day:k,hour:k,minute:k,second:k},U={year:k,month:N,day:k,hour:k,minute:k},L={year:k,month:N,day:k,hour:k,minute:k,second:k},q={year:k,month:N,day:k,weekday:N,hour:k,minute:k},z={year:k,month:E,day:k,hour:k,minute:k,timeZoneName:N},W={year:k,month:E,day:k,hour:k,minute:k,second:k,timeZoneName:N},H={year:k,month:E,day:k,weekday:E,hour:k,minute:k,timeZoneName:E},R={year:k,month:E,day:k,weekday:E,hour:k,minute:k,second:k,timeZoneName:E};function Y(e){return void 0===e}function G(e){return"number"==typeof e}function J(e){return"number"==typeof e&&e%1==0}function B(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function K(e,t,n){return J(e)&&e>=t&&e<=n}function X(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length<t?("0".repeat(t)+r).slice(-t):r.toString())}function ee(e){return Y(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!Y(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ne(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function re(e){return e%4==0&&(e%100!=0||e%400==0)}function ie(e){return re(e)?366:365}function se(e,t){var n,r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?re(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function oe(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ae(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function ce(e,t,n,r){void 0===r&&(r=null);var s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=i({timeZoneName:t},o),u=new Intl.DateTimeFormat(n,a).formatToParts(s).find((function(e){return"timezonename"===e.type.toLowerCase()}));return u?u.value:null}function le(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function de(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new w("Invalid unit value "+e);return t}function fe(e,t){var n={};for(var r in e)if(Q(e,r)){var i=e[r];if(null==i)continue;n[t(r)]=de(i)}return n}function he(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+X(n,2)+":"+X(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+X(n,2)+X(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return function(e,t){return["hour","minute","second","millisecond"].reduce((function(t,n){return t[n]=e[n],t}),{})}(e)}var pe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ve=["J","F","M","A","M","J","J","A","S","O","N","D"];function we(e){switch(e){case"narrow":return[].concat(ve);case"short":return[].concat(ye);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ne=["M","T","W","T","F","S","S"];function Ee(e){switch(e){case"narrow":return[].concat(Ne);case"short":return[].concat(ke);case"long":return[].concat(be);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],Se=["Before Christ","Anno Domini"],Oe=["BC","AD"],Te=["B","A"];function De(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(Oe);case"long":return[].concat(Se);default:return null}}function _e(e,t){for(var n,r="",i=f(e);!(n=i()).done;){var s=n.value;s.literal?r+=s.val:r+=t(s.val)}return r}var xe={D:C,DD:S,DDD:T,DDDD:D,t:_,tt:x,ttt:M,tttt:P,T:I,TT:V,TTT:A,TTTT:j,f:F,ff:U,fff:z,ffff:H,F:Z,FF:L,FFF:W,FFFF:R},Me=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],s=0;s<e.length;s++){var o=e.charAt(s);"'"===o?(n.length>0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return xe[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(e,t);var n=i({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(e,n){return r.loc.extract(t,e,n)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(e,n){return i?function(e,t){return we(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?function(e,t){return Ee(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(e){return i?function(e,t){return De(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return _e(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?function(e){return Ce[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?o({day:"numeric"},"day"):r.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):r.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):r.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,s=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),a=o.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),u=t.shiftTo.apply(t,a.map(s).filter((function(e){return e})));return _e(o,(r=u,function(e){var t=s(e);return t?i.num(r.get(t),e.length):e}))},e}(),Pe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ie=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},r(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ve=null,Ae=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ce(e,t.format,t.locale)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},r(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ve&&(Ve=new t),Ve}}]),t}(Ie),je=RegExp("^"+pe.source+"$"),Fe={},Ze={year:0,month:1,day:2,hour:3,minute:4,second:5},Ue={},Le=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}s(t,e),t.create=function(e){return Ue[e]||(Ue[e]=new t(e)),Ue[e]},t.resetCache=function(){Ue={},Fe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(je))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return ce(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,Fe[n]||(Fe[n]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var s=n[i],o=s.type,a=s.value,u=Ze[o];Y(u)||(r[u]=parseInt(a,10))}return r}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],s=r[2];return[r[3],i,s,r[4],r[5],r[6]]}(r,t),s=+t,o=s%1e3;return(oe({year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:0})-(s-=o>=0?o:1e3+o))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ie),qe=null,ze=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}s(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(le(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return he(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+he(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===qe&&(qe=new t(0)),qe}}]),t}(Ie),We=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}s(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ie);function He(e,t){var n;if(Y(e)||null===e)return t;if(e instanceof Ie)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r||"system"===r?t:"utc"===r||"gmt"===r?ze.utcInstance:null!=(n=Le.parseGMTOffset(e))?ze.instance(n):Le.isValidSpecifier(r)?Le.create(e):ze.parseSpecifier(r)||new We(e)}return G(e)?ze.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new We(e)}var Re,Ye=function(){return Date.now()},Ge="system",Je=null,Be=null,$e=null,Qe=function(){function e(){}return e.resetCaches=function(){ut.resetCache(),Le.resetCache()},r(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZone",get:function(){return He(Ge,Ae.instance)},set:function(e){Ge=e}},{key:"defaultLocale",get:function(){return Je},set:function(e){Je=e}},{key:"defaultNumberingSystem",get:function(){return Be},set:function(e){Be=e}},{key:"defaultOutputCalendar",get:function(){return $e},set:function(e){$e=e}},{key:"throwOnInvalid",get:function(){return Re},set:function(e){Re=e}}]),e}(),Ke=["base"],Xe={};function et(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Xe[n];return r||(r=new Intl.DateTimeFormat(e,t),Xe[n]=r),r}var tt={},nt={};var rt=null;function it(e,t,n,r,i){var s=e.listingMode(n);return"error"===s?null:"en"===s?r(t):i(t)}var st=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.NumberFormat(e,t),tt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return X(this.floor?Math.floor(e):ne(e,3),this.padTo)},e}(),ot=function(){function e(e,t,n){var r;if(this.opts=n,e.zone.isUniversal){var s=e.offset/60*-1,o=s>=0?"Etc/GMT+"+s:"Etc/GMT"+s,a=Le.isValidZone(o);0!==e.offset&&a?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ur.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);var u=i({},this.opts);r&&(u.timeZone=r),this.dtf=et(t,u)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),at=function(){function e(e,t,n){this.opts=i({style:"long"},n),!t&&B()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,Ke),i=JSON.stringify([e,r]),s=nt[i];return s||(s=new Intl.RelativeTimeFormat(e,t),nt[i]=s),s}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var a=Object.is(t,-0)||t<0,u=Math.abs(t),c=1===u,l=i[e],d=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return a?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ut=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=et(e).resolvedOptions()}catch(e){n=et(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),s=i[0],o=i[1],a=i[2];this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var s=t||Qe.defaultLocale;return new e(s||(i?"en-US":rt||(rt=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Qe.defaultNumberingSystem,r||Qe.defaultOutputCalendar,s)},e.resetCache=function(){rt=null,Xe={},tt={},nt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,s=n.outputCalendar;return e.create(r,i,s)};var t=e.prototype;return t.listingMode=function(e){var t=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&n?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,we,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=ur.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,Ee,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=ur.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),it(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[ur.utc(2016,11,13,9),ur.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),it(this,e,t,De,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[ur.utc(-40,1,1),ur.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ot(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+r+"$")}function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){var r=t[0],s=t[1],o=t[2],a=n(e,o),u=a[0],c=a[1],l=a[2];return[i({},r,u),s||c,l]}),[{},null,1]).slice(0,2)}}function dt(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,s=n;i<s.length;i++){var o=s[i],a=o[0],u=o[1],c=a.exec(e);if(c)return u(c)}return[null,null]}function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=ee(e[n+r]);return[i,null,n+r]}}var ht=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,pt=RegExp(""+mt.source+ht.source+"?"),gt=RegExp("(?:T"+pt.source+")?"),yt=ft("weekYear","weekNumber","weekDay"),vt=ft("year","ordinal"),wt=RegExp(mt.source+" ?(?:"+ht.source+"|("+pe.source+"))?"),bt=RegExp("(?: "+wt.source+")?");function kt(e,t,n){var r=e[t];return Y(r)?n:ee(r)}function Nt(e,t){return[{year:kt(e,t),month:kt(e,t+1,1),day:kt(e,t+2,1)},null,t+3]}function Et(e,t){return[{hours:kt(e,t,0),minutes:kt(e,t+1,0),seconds:kt(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function Ct(e,t){var n=!e[t]&&!e[t+1],r=le(e[t+1],e[t+2]);return[{},n?null:ze.instance(r),t+3]}function St(e,t){return[{},e[t]?Le.create(e[t]):null,t+1]}var Ot=RegExp("^T?"+mt.source+"$"),Tt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Dt(e){var t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],c=e[8],l="-"===t[0],d=u&&"-"===u[0],f=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&l)?-e:e};return[{years:f(ee(n)),months:f(ee(r)),weeks:f(ee(i)),days:f(ee(s)),hours:f(ee(o)),minutes:f(ee(a)),seconds:f(ee(u),"-0"===u),milliseconds:f(te(c),d)}]}var _t={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e,t,n,r,i,s,o){var a={year:2===t.length?ue(ee(t)):ee(t),month:ye.indexOf(n)+1,day:ee(r),hour:ee(i),minute:ee(s)};return o&&(a.second=ee(o)),e&&(a.weekday=e.length>3?be.indexOf(e)+1:ke.indexOf(e)+1),a}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Pt(e){var t,n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],c=e[8],l=e[9],d=e[10],f=e[11],h=xt(n,s,i,r,o,a,u);return t=c?_t[c]:l?0:le(d,f),[h,new ze(t)]}var It=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Vt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jt(e){var t=e[1],n=e[2],r=e[3];return[xt(t,e[4],r,n,e[5],e[6],e[7]),ze.utcInstance]}function Ft(e){var t=e[1],n=e[2],r=e[3],i=e[4],s=e[5],o=e[6];return[xt(t,e[7],n,r,i,s,o),ze.utcInstance]}var Zt=ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Ut=ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),Lt=ct(/(\d{4})-?(\d{3})/,gt),qt=ct(pt),zt=lt(Nt,Et,Ct),Wt=lt(yt,Et,Ct),Ht=lt(vt,Et,Ct),Rt=lt(Et,Ct),Yt=lt(Et),Gt=ct(/(\d{4})-(\d\d)-(\d\d)/,bt),Jt=ct(wt),Bt=lt(Nt,Et,Ct,St),$t=lt(Et,Ct,St),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Kt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),Xt=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),en=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tn=en.slice(0).reverse();function nn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:i({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new sn(r)}function rn(e,t,n,r,i){var s=e[i][n],o=t[n]/s,a=Math.sign(o)!==Math.sign(r[i])&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=a,t[n]-=a*s}var sn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Kt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new w("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit),loc:ut.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return dt(e,[Tt,Dt])}(t)[0];return r?e.fromObject(r,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return dt(e,[Ot,Yt])}(t)[0];return r?e.fromObject(r,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the Duration is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new g(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Me.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ne(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var s=n.toFormat(r);return e.includePrefix&&(s="T"+s),s},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=on(e),r={},i=f(en);!(t=i()).done;){var s=t.value;(Q(n.values,s)||Q(this.values,s))&&(r[s]=n.get(s)+this.get(s))}return nn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=on(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=de(e(this.values[i],i))}return nn(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?nn(this,{values:i({},this.values,fe(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,s={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(s.conversionAccuracy=i),nn(this,s)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){tn.reduce((function(n,r){return Y(t[r])?n:(n&&rn(e,t,n,t,r),r)}),null)}(this.matrix,e),nn(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(t){return e.normalizeUnit(t)}));for(var i,s,o={},a={},u=this.toObject(),c=f(en);!(s=c()).done;){var l=s.value;if(n.indexOf(l)>=0){i=l;var d=0;for(var h in a)d+=this.matrix[h][l]*a[h],a[h]=0;G(u[l])&&(d+=u[l]);var m=Math.trunc(d);for(var p in o[l]=m,a[l]=d-m,u)en.indexOf(p)>en.indexOf(l)&&rn(this.matrix,u,p,o,l)}else G(u[l])&&(a[l]=u[l])}for(var g in a)0!==a[g]&&(o[i]+=g===i?a[g]:a[g]/this.matrix[i][g]);return nn(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return nn(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=f(en);!(t=n()).done;){var r=t.value;if(i=this.values[r],s=e.values[r],!(void 0===i||0===i?void 0===s||0===s:i===s))return!1}var i,s;return!0},r(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function on(e){if(G(e))return sn.fromMillis(e);if(sn.isDuration(e))return e;if("object"==typeof e)return sn.fromObject(e);throw new w("Unknown duration argument "+e+" of type "+typeof e)}var an="Invalid Interval";function un(e,t){return e&&e.isValid?t&&t.isValid?t<e?cn.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:cn.invalid("missing or invalid end"):cn.invalid("missing or invalid start")}var cn=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the Interval is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.fromDateTimes=function(t,n){var r=cr(t),i=cr(n),s=un(r,i);return null==s?new e({start:r,end:i}):s},e.after=function(t,n){var r=on(n),i=cr(t);return e.fromDateTimes(i,i.plus(r))},e.before=function(t,n){var r=on(n),i=cr(t);return e.fromDateTimes(i.minus(r),i)},e.fromISO=function(t,n){var r=(t||"").split("/",2),i=r[0],s=r[1];if(i&&s){var o,a,u,c;try{a=(o=ur.fromISO(i,n)).isValid}catch(s){a=!1}try{c=(u=ur.fromISO(s,n)).isValid}catch(s){c=!1}if(a&&c)return e.fromDateTimes(o,u);if(a){var l=sn.fromISO(s,n);if(l.isValid)return e.after(o,l)}else if(c){var d=sn.fromISO(i,n);if(d.isValid)return e.before(u,d)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var s=r.map(cr).filter((function(e){return t.contains(e)})).sort(),o=[],a=this.s,u=0;a<this.e;){var c=s[u]||this.e,l=+c>+this.e?this.e:c;o.push(e.fromDateTimes(a,l)),a=l,u+=1}return o},t.splitBy=function(t){var n=on(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,s=1,o=[];i<this.e;){var a=this.start.plus(n.mapUnits((function(e){return e*s})));r=+a>+this.e?this.e:a,o.push(e.fromDateTimes(i,r)),i=r,s+=1}return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,s=0,o=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=f((n=Array.prototype).concat.apply(n,a).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var c=r.value;1===(s+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.xor([this].concat(r)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":an},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):an},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():an},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):an},t.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(e)+r+this.e.toFormat(e):an},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):sn.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},r(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),ln=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Qe.defaultZone);var t=ur.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Le.isValidSpecifier(e)&&Le.isValidZone(e)},e.normalizeZone=function(e){return He(e,Qe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,c=n.outputCalendar,l=void 0===c?"gregory":c;return(u||ut.create(i,o,l)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,c=n.outputCalendar,l=void 0===c?"gregory":c;return(u||ut.create(i,o,l)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||ut.create(i,o,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||ut.create(i,o,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return ut.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return ut.create(r,null,"gregory").eras(e)},e.features=function(){return{relative:B()}},e}();function dn(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(sn.fromMillis(r).as("days"))}var fn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},hn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mn=fn.hanidec.replace(/[\[|\]]/g,"").split("");function pn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+fn[n||"latn"]+t)}function gn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(fn.hanidec))t+=mn.indexOf(e[n]);else for(var i in hn){var s=hn[i],o=s[0],a=s[1];r>=o&&r<=a&&(t+=r-o)}}return parseInt(t,10)}return t}(n))}}}var yn="( |"+String.fromCharCode(160)+")",vn=new RegExp(yn,"g");function wn(e){return e.replace(/\./g,"\\.?").replace(vn,yn)}function bn(e){return e.replace(/\./g,"").replace(vn," ").toLowerCase()}function kn(e,t){return null===e?null:{regex:RegExp(e.map(wn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return bn(r)===bn(e)}))+t}}}function Nn(e,t){return{regex:e,deser:function(e){return le(e[1],e[2])},groups:t}}function En(e){return{regex:e,deser:function(e){return e[0]}}}var Cn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Sn=null;function On(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return function(e,t){if(e.literal)return e;var n=Me.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Me.create(t,n).formatDateTimeParts((Sn||(Sn=ur.fromMillis(1555555555555)),Sn)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var s=n[r],o=Cn[r];return"object"==typeof o&&(o=o[s]),o?{literal:!1,val:o}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}(e,t)})))}(Me.parseFormat(n),e),i=r.map((function(t){return n=t,i=pn(r=e),s=pn(r,"{2}"),o=pn(r,"{3}"),a=pn(r,"{4}"),u=pn(r,"{6}"),c=pn(r,"{1,2}"),l=pn(r,"{1,3}"),d=pn(r,"{1,6}"),f=pn(r,"{1,9}"),h=pn(r,"{2,4}"),m=pn(r,"{4,6}"),p=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(g=function(e){if(n.literal)return p(e);switch(e.val){case"G":return kn(r.eras("short",!1),0);case"GG":return kn(r.eras("long",!1),0);case"y":return gn(d);case"yy":return gn(h,ue);case"yyyy":return gn(a);case"yyyyy":return gn(m);case"yyyyyy":return gn(u);case"M":return gn(c);case"MM":return gn(s);case"MMM":return kn(r.months("short",!0,!1),1);case"MMMM":return kn(r.months("long",!0,!1),1);case"L":return gn(c);case"LL":return gn(s);case"LLL":return kn(r.months("short",!1,!1),1);case"LLLL":return kn(r.months("long",!1,!1),1);case"d":return gn(c);case"dd":return gn(s);case"o":return gn(l);case"ooo":return gn(o);case"HH":return gn(s);case"H":return gn(c);case"hh":return gn(s);case"h":return gn(c);case"mm":return gn(s);case"m":case"q":return gn(c);case"qq":return gn(s);case"s":return gn(c);case"ss":return gn(s);case"S":return gn(l);case"SSS":return gn(o);case"u":return En(f);case"a":return kn(r.meridiems(),0);case"kkkk":return gn(a);case"kk":return gn(h,ue);case"W":return gn(c);case"WW":return gn(s);case"E":case"c":return gn(i);case"EEE":return kn(r.weekdays("short",!1,!1),1);case"EEEE":return kn(r.weekdays("long",!1,!1),1);case"ccc":return kn(r.weekdays("short",!0,!1),1);case"cccc":return kn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Nn(new RegExp("([+-]"+c.source+")(?::("+s.source+"))?"),2);case"ZZZ":return Nn(new RegExp("([+-]"+c.source+")("+s.source+")?"),2);case"z":return En(/[a-z_+-/]{1,256}?/i);default:return p(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=n,g;var n,r,i,s,o,a,u,c,l,d,f,h,m,p,g})),s=i.find((function(e){return e.invalidReason}));if(s)return{input:t,tokens:r,invalidReason:s.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),a=o[0],u=o[1],c=RegExp(a,"i"),l=function(e,t,n){var r=e.match(t);if(r){var i={},s=1;for(var o in n)if(Q(n,o)){var a=n[o],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(s,s+u))),s+=u}return[r,i]}return[r,{}]}(t,c,u),d=l[0],f=l[1],h=f?function(e){var t;return t=Y(e.Z)?Y(e.z)?null:Le.create(e.z):new ze(e.Z),Y(e.q)||(e.M=3*(e.q-1)+1),Y(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Y(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(f):[null,null],m=h[0],p=h[1];if(Q(f,"a")&&Q(f,"H"))throw new y("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:d,matches:f,result:m,zone:p}}var Tn=[0,31,59,90,120,151,181,212,243,273,304,334],Dn=[0,31,60,91,121,152,182,213,244,274,305,335];function xn(e,t){return new Pe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Mn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Pn(e,t,n){return n+(re(e)?Dn:Tn)[t-1]}function In(e,t){var n=re(e)?Dn:Tn,r=n.findIndex((function(e){return e<t}));return{month:r+1,day:t-n[r]}}function Vn(e){var t,n=e.year,r=e.month,s=e.day,o=Pn(n,r,s),a=Mn(n,r,s),u=Math.floor((o-a+10)/7);return u<1?u=ae(t=n-1):u>ae(n)?(t=n+1,u=1):t=n,i({weekYear:t,weekNumber:u,weekday:a},me(e))}function An(e){var t,n=e.weekYear,r=e.weekNumber,s=e.weekday,o=Mn(n,1,4),a=ie(n),u=7*r+s-o-3;u<1?u+=ie(t=n-1):u>a?(t=n+1,u-=ie(n)):t=n;var c=In(t,u);return i({year:t,month:c.month,day:c.day},me(e))}function jn(e){var t=e.year;return i({year:t,ordinal:Pn(t,e.month,e.day)},me(e))}function Fn(e){var t=e.year,n=In(t,e.ordinal);return i({year:t,month:n.month,day:n.day},me(e))}function Zn(e){var t=J(e.year),n=K(e.month,1,12),r=K(e.day,1,se(e.year,e.month));return t?n?!r&&xn("day",e.day):xn("month",e.month):xn("year",e.year)}function Un(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,s=K(t,0,23)||24===t&&0===n&&0===r&&0===i,o=K(n,0,59),a=K(r,0,59),u=K(i,0,999);return s?o?a?!u&&xn("millisecond",i):xn("second",r):xn("minute",n):xn("hour",t)}var Ln="Invalid DateTime",qn=864e13;function zn(e){return new Pe("unsupported zone",'the zone "'+e.name+'" is not supported')}function Wn(e){return null===e.weekData&&(e.weekData=Vn(e.c)),e.weekData}function Hn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ur(i({},n,t,{old:n}))}function Rn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var s=n.offset(r);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}function Yn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Gn(e,t,n){return Rn(oe(e),t,n)}function Jn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},e.c,{year:r,month:s,day:Math.min(e.c.day,se(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=sn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Rn(oe(o),n,e.zone),c=u[0],l=u[1];return 0!==a&&(c+=a,l=e.zone.offset(c)),{ts:c,o:l}}function Bn(e,t,n,r,s){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var u=t||a,c=ur.fromObject(e,i({},n,{zone:u}));return o?c:c.setZone(a)}return ur.invalid(new Pe("unparsable",'the input "'+s+"\" can't be parsed as "+r))}function $n(e,t,n){return void 0===n&&(n=!0),e.isValid?Me.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,s=void 0!==i&&i,o=t.includeOffset,a=t.includePrefix,u=void 0!==a&&a,c=t.includeZone,l=void 0!==c&&c,d=t.spaceZone,f=void 0!==d&&d,h=t.format,m=void 0===h?"extended":h,p="basic"===m?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(p+="basic"===m?"ss":":ss",s&&0===e.millisecond||(p+=".SSS")),(l||o)&&f&&(p+=" "),l?p+="z":o&&(p+="basic"===m?"ZZZ":"ZZ");var g=$n(e,p);return u&&(g="T"+g),g}var Kn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Xn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},er={ordinal:1,hour:0,minute:0,second:0,millisecond:0},tr=["year","month","day","hour","minute","second","millisecond"],nr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function ir(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new v(e);return t}function sr(e,t){var n,r,i=He(t.zone,Qe.defaultZone),s=ut.fromObject(t),o=Qe.now();if(Y(e.year))n=o;else{for(var a,u=f(tr);!(a=u()).done;){var c=a.value;Y(e[c])&&(e[c]=Kn[c])}var l=Zn(e)||Un(e);if(l)return ur.invalid(l);var d=Gn(e,i.offset(o),i);n=d[0],r=d[1]}return new ur({ts:n,zone:i,loc:s,o:r})}function or(e,t,n){var r=!!Y(n.round)||n.round,i=function(e,i){return e=ne(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},s=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(s(n.unit),n.unit);for(var o,a=f(n.units);!(o=a()).done;){var u=o.value,c=s(u);if(Math.abs(c)>=1)return i(c,u)}return i(e>t?-0:0,n.units[n.units.length-1])}function ar(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var ur=function(){function e(e){var t=e.zone||Qe.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Pe("invalid input"):null)||(t.isValid?null:zn(t));this.ts=Y(e.ts)?Qe.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var s=[e.old.c,e.old.o];r=s[0],i=s[1]}else{var o=t.offset(this.ts);r=Yn(this.ts,o),r=(n=Number.isNaN(r.year)?new Pe("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||ut.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=ar(arguments),t=e[0],n=e[1],r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6];return sr({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:c},t)},e.utc=function(){var e=ar(arguments),t=e[0],n=e[1],r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6];return t.zone=ze.utcInstance,sr({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:c},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var s=He(n.zone,Qe.defaultZone);return s.isValid?new e({ts:i,zone:s,loc:ut.fromObject(n)}):e.invalid(zn(s))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),G(t))return t<-qn||t>qn?e.invalid("Timestamp out of range"):new e({ts:t,zone:He(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new w("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),G(t))return new e({ts:1e3*t,zone:He(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new w("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=He(n.zone,Qe.defaultZone);if(!r.isValid)return e.invalid(zn(r));var i=Qe.now(),s=r.offset(i),o=fe(t,ir),a=!Y(o.ordinal),u=!Y(o.year),c=!Y(o.month)||!Y(o.day),l=u||c,d=o.weekYear||o.weekNumber,h=ut.fromObject(n);if((l||a)&&d)throw new y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new y("Can't mix ordinal dates with month/day");var m,p,g=d||o.weekday&&!l,v=Yn(i,s);g?(m=nr,p=Xn,v=Vn(v)):a?(m=rr,p=er,v=jn(v)):(m=tr,p=Kn);for(var w,b=!1,k=f(m);!(w=k()).done;){var N=w.value;Y(o[N])?o[N]=b?p[N]:v[N]:b=!0}var E=(g?function(e){var t=J(e.weekYear),n=K(e.weekNumber,1,ae(e.weekYear)),r=K(e.weekday,1,7);return t?n?!r&&xn("weekday",e.weekday):xn("week",e.week):xn("weekYear",e.weekYear)}(o):a?function(e){var t=J(e.year),n=K(e.ordinal,1,ie(e.year));return t?!n&&xn("ordinal",e.ordinal):xn("year",e.year)}(o):Zn(o))||Un(o);if(E)return e.invalid(E);var C=Gn(g?An(o):a?Fn(o):o,s,r),S=new e({ts:C[0],zone:r,o:C[1],loc:h});return o.weekday&&l&&t.weekday!==S.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[Zt,zt],[Ut,Wt],[Lt,Ht],[qt,Rt])}(e);return Bn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return dt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Mt,Pt])}(e);return Bn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[It,jt],[Vt,jt],[At,Ft])}(e);return Bn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),Y(t)||Y(n))throw new w("fromFormat requires an input string and a format");var i=r,s=i.locale,o=void 0===s?null:s,a=i.numberingSystem,u=void 0===a?null:a,c=function(e,t,n){var r=On(e,t,n);return[r.result,r.zone,r.invalidReason]}(ut.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),t,n),l=c[0],d=c[1],f=c[2];return f?e.invalid(f):Bn(l,d,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[Gt,Bt],[Jt,$t])}(e);return Bn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the DateTime is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new m(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Me.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(ze.instance(e),t)},t.toLocal=function(){return this.setZone(Qe.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,s=void 0!==i&&i,o=r.keepCalendarTime,a=void 0!==o&&o;if((t=He(t,Qe.defaultZone)).equals(this.zone))return this;if(t.isValid){var u=this.ts;if(s||a){var c=t.offset(this.ts);u=Gn(this.toObject(),c,t)[0]}return Hn(this,{ts:u,zone:t})}return e.invalid(zn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Hn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=fe(e,ir),r=!Y(n.weekYear)||!Y(n.weekNumber)||!Y(n.weekday),s=!Y(n.ordinal),o=!Y(n.year),a=!Y(n.month)||!Y(n.day),u=o||a,c=n.weekYear||n.weekNumber;if((u||s)&&c)throw new y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new y("Can't mix ordinal dates with month/day");r?t=An(i({},Vn(this.c),n)):Y(n.ordinal)?(t=i({},this.toObject(),n),Y(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Fn(i({},jn(this.c),n));var l=Gn(t,this.o,this.zone);return Hn(this,{ts:l[0],o:l[1]})},t.plus=function(e){return this.isValid?Hn(this,Jn(this,on(e))):this},t.minus=function(e){return this.isValid?Hn(this,Jn(this,on(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=sn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Me.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ln},t.toLocaleString=function(e,t){return void 0===e&&(e=C),void 0===t&&(t={}),this.isValid?Me.create(this.loc.clone(t),e).formatDateTime(this):Ln},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Me.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),$n(this,n)},t.toISOWeekDate=function(){return $n(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,s=void 0!==i&&i,o=t.includeOffset,a=void 0===o||o,u=t.includePrefix,c=void 0!==u&&u,l=t.format;return Qn(this,{suppressSeconds:s,suppressMilliseconds:r,includeOffset:a,includePrefix:c,format:void 0===l?"extended":l})},t.toRFC2822=function(){return $n(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return $n(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return $n(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Qn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Ln},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=i({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return sn.invalid("created by diffing an invalid DateTime");var r,s=i({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(sn.normalizeUnit),a=e.valueOf()>this.valueOf(),u=function(e,t,n,r){var i,s=function(e,t,n){for(var r,i,s={},o=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=dn(e,t);return(n-n%7)/7}],["days",dn]];o<a.length;o++){var u=a[o],c=u[0],l=u[1];if(n.indexOf(c)>=0){var d;r=c;var f,h=l(e,t);(i=e.plus(((d={})[c]=h,d)))>t?(e=e.plus(((f={})[c]=h-1,f)),h-=1):e=i,s[c]=h}}return[e,s,i,r]}(e,t,n),o=s[0],a=s[1],u=s[2],c=s[3],l=t-o,d=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===d.length&&(u<t&&(u=o.plus(((i={})[c]=1,i))),u!==o&&(a[c]=(a[c]||0)+l/(u-o)));var f,h=sn.fromObject(a,r);return d.length>0?(f=sn.fromMillis(l,r)).shiftTo.apply(f,d).plus(h):h}(a?this:e,a?e:this,o,s);return a?u.negate():u},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?cn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,s=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(s=t.unit,o=void 0),or(n,this.plus(r),i({},t,{numeric:"always",units:s,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?or(t.base||e.fromObject({},{zone:this.zone}),this,i({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w("min requires all arguments be DateTimes");return $(n,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w("max requires all arguments be DateTimes");return $(n,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,s=void 0===i?null:i,o=r.numberingSystem,a=void 0===o?null:o;return On(ut.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,n,r){return void 0===r&&(r={}),e.fromFormatExplain(t,n,r)},r(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Wn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Wn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Wn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?jn(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?ln.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?ln.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?ln.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?ln.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return re(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ie(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ae(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return C}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return O}},{key:"DATE_FULL",get:function(){return T}},{key:"DATE_HUGE",get:function(){return D}},{key:"TIME_SIMPLE",get:function(){return _}},{key:"TIME_WITH_SECONDS",get:function(){return x}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return I}},{key:"TIME_24_WITH_SECONDS",get:function(){return V}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return A}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return F}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return Z}},{key:"DATETIME_MED",get:function(){return U}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return L}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return q}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return W}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return R}}]),e}();function cr(e){if(ur.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return ur.fromJSDate(e);if(e&&"object"==typeof e)return ur.fromObject(e);throw new w("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=ur}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.React,r=n.n(t),i=window.ReactDOM;class s extends r().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var o=s,a=window.wp.domReady,u=n.n(a),c=window.wp.i18n,l=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let n=window["_wds_"+t]||{};return e.forEach((e=>{n=n&&n.hasOwnProperty(e)?n[e]:""})),n}static get_bool(e,t="general"){return!!this.get(e,t)}},d=jQuery,f=n.n(d),h=ajaxurl,m=n.n(h);class p{static sync(){return this.post("wds_sync_hub_configs")}static applyConfig(e){return this.post("wds_apply_config",{config_id:e})}static deleteConfig(e){return this.post("wds_delete_config",{config_id:e})}static updateConfig(e,t,n){return this.post("wds_update_config",{config_id:e,name:t,description:n})}static createConfig(e,t){return this.post("wds_create_new_config",{name:e,description:t})}static uploadConfig(e){const t=new FormData;return t.append("file",e),t.append("action","wds_upload_config"),t.append("_wds_nonce",l.get("nonce","config")),new Promise(((e,n)=>{f().ajax({url:m(),cache:!1,contentType:!1,processData:!1,type:"post",data:t}).done((function(t){t.success?e((t||{}).data):n()})).fail((function(){n()}))}))}static post(e,t){const n=l.get("nonce","config");return class{static post(e,t,n={}){return new Promise((function(r,i){const s=Object.assign({},{action:e,_wds_nonce:t},n);f().post(m(),s).done((function(e){var t;e.success?r(null==e?void 0:e.data):i(null==e||null===(t=e.data)||void 0===t?void 0:t.message)})).fail((()=>i()))}))}}.post(e,n,t)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=n(4184),v=n.n(y),w=SUI,b=n.n(w);class k extends r().Component{constructor(e){super(e),this.props=e}componentDidMount(){b().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){b().closeModal()}handleKeyDown(e){f()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),n=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:v()("sui-modal",n),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:v()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:v()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:v()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:v()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:v()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Close this dialog window","wds")))}}g(k,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class N extends r().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,n,r=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},r," ",this.props.text),n=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,r," ",this.props.text),n=""),(0,e.createElement)("button",{className:v()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,n)}}g(N,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});class E extends r().Component{render(){return(0,e.createElement)(k,{id:"wds-apply-config-modal",title:(0,c.__)("Apply config","wds"),description:this.getDescription(),small:!0,onClose:()=>this.props.onClose(),focusAfterOpen:"wds-cancel-config-apply",disableCloseButton:this.props.inProgress},(0,e.createElement)(N,{id:"wds-cancel-config-apply",ghost:!0,text:(0,c.__)("Cancel","wds"),disabled:this.props.inProgress,onClick:()=>this.props.onClose()}),(0,e.createElement)(N,{color:"blue",loading:this.props.inProgress,icon:"sui-icon-check",text:(0,c.__)("Apply","wds"),onClick:()=>this.props.onApply()}))}getDescription(){return(0,e.createInterpolateElement)((0,c.sprintf)((0,c.__)("Are you sure you want to apply the <strong>%s</strong> settings config? We recommend you have a backup available as your <strong>existing settings configuration will be overridden</strong>.","wds"),this.props.configName),{strong:(0,e.createElement)("strong",null)})}}g(E,"defaultProps",{configName:"",inProgress:!1,onClose:()=>!1,onApply:()=>!1});class C extends r().Component{render(){return(0,e.createElement)(k,{id:"wds-delete-config-modal",title:(0,c.__)("Delete Configuration File","wds"),description:this.getDescription(),small:!0,disableCloseButton:this.props.inProgress,focusAfterOpen:"wds-cancel-config-delete",onClose:()=>this.props.onClose()},(0,e.createElement)(N,{id:"wds-cancel-config-delete",ghost:!0,disabled:this.props.inProgress,text:(0,c.__)("Cancel","wds"),onClick:()=>this.props.onClose()}),(0,e.createElement)(N,{color:"red",loading:this.props.inProgress,icon:"sui-icon-trash",text:(0,c.__)("Delete","wds"),onClick:()=>this.props.onDelete()}))}getDescription(){return(0,e.createInterpolateElement)((0,c.sprintf)((0,c.__)("Are you sure you want to delete the <strong>%s</strong> config file? You will no longer be able to apply it to this or other connected sites.","wds"),this.props.configName),{strong:(0,e.createElement)("strong",null)})}}g(C,"defaultProps",{configName:"",inProgress:!1,onClose:()=>!1,onDelete:()=>!1});class S{static isNonEmpty(e){return e&&e.trim()}static isValuePlainText(e){return f()("<div>").html(e).text()===e}}class O extends r().Component{constructor(e){super(e),this.props=e,this.state={configName:this.props.configName,configNameValid:!0,configDescription:this.props.configDescription,configDescriptionValid:!0,saveButtonDisabled:!0}}handleNameChange(e){const t=this.isNameValid(e);this.setState({configName:e,configNameValid:t},(()=>{this.updateSaveButtonState()}))}isNameValid(e){return S.isNonEmpty(e)&&S.isValuePlainText(e)&&this.hasWhitelistCharactersOnly(e)}hasWhitelistCharactersOnly(e){return!!e.match(/^[@.'_\-\sa-zA-Z0-9]+$/)}handleDescriptionChange(e){const t=this.isDescriptionValid(e);this.setState({configDescription:e,configDescriptionValid:t},(()=>{this.updateSaveButtonState()}))}isDescriptionValid(e){return S.isValuePlainText(e)}updateSaveButtonState(){const e=this.isNameValid(this.state.configName),t=this.isDescriptionValid(this.state.configDescription);this.setState({saveButtonDisabled:!e||!t})}render(){let t,n,i;this.props.configName?(t=(0,c.__)("Rename Config","wds"),n=(0,c.__)("Change your config name to something recognizable.","wds"),i=(0,c.__)("New Config Name","wds")):(t=(0,c.__)("Save Config","wds"),n=(0,c.__)("Save your current Smartcrawl settings configurations. You'll be able to then download and apply it to your other sites with Smartcrawl installed.","wds"),i=(0,c.__)("Config Name","wds"));const s=()=>this.props.onSave(this.state.configName,this.state.configDescription),o=this.state.saveButtonDisabled;return(0,e.createElement)(k,{id:"wds-config-modal",title:t,description:n,onClose:()=>this.props.onClose(),disableCloseButton:this.props.inProgress,small:!0,enterDisabled:o,onEnter:s,focusAfterOpen:"wds-config-name",footer:(0,e.createElement)(r().Fragment,null,(0,e.createElement)("div",{className:"sui-flex-child-right"},(0,e.createElement)(N,{text:(0,c.__)("Cancel","wds"),ghost:!0,disabled:this.props.inProgress,onClick:this.props.onClose})),(0,e.createElement)("div",{className:"sui-actions-right"},(0,e.createElement)(N,{text:(0,c.__)("Save","wds"),color:"blue",disabled:o,onClick:s,loading:this.props.inProgress,icon:"sui-icon-save"})))},(0,e.createElement)("div",{className:v()("sui-form-field",{"sui-form-field-error":!this.state.configNameValid})},(0,e.createElement)("label",{htmlFor:"wds-config-name",className:"sui-label"},i," ",(0,e.createElement)("span",{className:"wds-required-asterisk"},"*")),(0,e.createElement)("input",{id:"wds-config-name",type:"text",onChange:e=>this.handleNameChange(e.target.value),value:this.state.configName,className:"sui-form-control"}),!this.state.configNameValid&&(0,e.createElement)("span",{className:"sui-error-message",role:"alert"},(0,c.__)("Invalid config name. Use only alphanumeric characters (a-z, A-Z, 0-9) and allowed special characters (@.'_-).","wds"))),(0,e.createElement)("div",{className:v()("sui-form-field",{"sui-form-field-error":!this.state.configDescriptionValid})},(0,e.createElement)("label",{htmlFor:"wds-config-description",id:"wds-config-description-label",className:"sui-label"},(0,c.__)("Config Description","wds")),(0,e.createElement)("textarea",{id:"wds-config-description","aria-labelledby":"wds-config-description-label",onChange:e=>this.handleDescriptionChange(e.target.value),className:"sui-form-control",value:this.state.configDescription})))}}g(O,"defaultProps",{configName:"",configDescription:"",inProgress:!1,onClose:()=>!1,onSave:()=>!1});class T extends r().Component{constructor(e){super(e),this.props=e,this.state={applyingConfig:!1,deletingConfig:!1,creatingConfig:!1,updatingConfig:!1,uploadingConfig:!1,requestInProgress:!1,configs:l.get("configs","config")}}syncWithHub(){this.setState({syncing:!0},(()=>{p.sync().then((e=>{this.setConfigs(e.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error syncing your configs with the hub.","wds"))})).finally((()=>{this.setState({syncing:!1})}))}))}render(){const t=this.props.mainComponent;return(0,e.createElement)(r().Fragment,null,(0,e.createElement)(t,{configs:this.state.configs,syncing:this.state.syncing,uploadInProgress:this.state.uploadingConfig,onSave:()=>this.startCreatingConfig(),onUpload:e=>this.uploadConfig(e),onApply:e=>this.startApplyingConfig(e),onUpdate:e=>this.startUpdatingConfig(e),onDownload:e=>this.downloadConfig(e),onDelete:e=>this.startDeletingConfig(e),triggerSync:()=>this.syncWithHub()}),this.maybeShowApplyModal(),this.maybeShowDeleteModal(),this.maybeShowUpdateModal(),this.maybeShowCreateModal())}maybeShowApplyModal(){const t=this.state.applyingConfig;return t&&(0,e.createElement)(E,{configName:this.getConfigName(t),onClose:()=>this.stopApplyingConfig(),onApply:()=>this.applyConfig(),inProgress:t&&this.state.requestInProgress})}startApplyingConfig(e){this.setState({applyingConfig:e})}applyConfig(){this.setState({requestInProgress:!0},(()=>{const e=this.state.applyingConfig;p.applyConfig(e).then((()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been applied successfully."),e)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error applying the config.","wds"))})).finally((()=>{this.stopApplyingConfig()}))}))}stopApplyingConfig(){this.setState({applyingConfig:!1,requestInProgress:!1})}maybeShowDeleteModal(){const t=this.state.deletingConfig;return t&&(0,e.createElement)(C,{configName:this.getConfigName(t),onClose:()=>this.stopDeletingConfig(),onDelete:()=>this.deleteConfig(),inProgress:t&&this.state.requestInProgress})}startDeletingConfig(e){this.setState({deletingConfig:e})}deleteConfig(){this.setState({requestInProgress:!0},(()=>{const e=this.state.deletingConfig;p.deleteConfig(e).then((t=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been deleted successfully."),e),this.setConfigs(t.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error deleting the config.","wds"))})).finally((()=>{this.stopDeletingConfig()}))}))}stopDeletingConfig(){this.setState({deletingConfig:!1,requestInProgress:!1})}downloadConfig(e){const t=this.getConfig(e);if(t&&t.name){const e="smartcrawl-config-"+t.name.replaceAll(" ","-");this.triggerConfigFileDownload(t,e)}}triggerConfigFileDownload(e,t){const n=document.createElement("a"),r=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),i=window.URL.createObjectURL(r);n.href=i,n.download=t,n.click(),window.URL.revokeObjectURL(i)}maybeShowUpdateModal(){const t=this.state.updatingConfig,n=this.getConfig(t);if(n)return t&&(0,e.createElement)(O,{configName:n.name,configDescription:n.description,onClose:()=>this.stopUpdatingConfig(),onSave:(e,n)=>this.updateConfig(t,e,n),inProgress:t&&this.state.requestInProgress})}startUpdatingConfig(e){this.setState({updatingConfig:e})}updateConfig(e,t,n){this.setState({requestInProgress:!0},(()=>{p.updateConfig(e,t,n).then((t=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been renamed successfully."),e),this.setConfigs(t.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error updating the config.","wds"))})).finally((()=>{this.stopUpdatingConfig()}))}))}stopUpdatingConfig(){this.setState({updatingConfig:!1,requestInProgress:!1})}maybeShowCreateModal(){const t=this.state.creatingConfig;return t&&(0,e.createElement)(O,{configName:"",configDescription:"",onClose:()=>this.stopCreatingConfig(),onSave:(e,t)=>this.createConfig(e,t),inProgress:t&&this.state.requestInProgress})}startCreatingConfig(){this.setState({creatingConfig:!0})}createConfig(e,t){this.setState({requestInProgress:!0},(()=>{p.createConfig(e,t).then((e=>{this.setConfigs(e.configs,(()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config saved successfully."),e.config_id)}))})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error creating the config.","wds"))})).finally((()=>{this.stopCreatingConfig()}))}))}stopCreatingConfig(){this.setState({creatingConfig:!1,requestInProgress:!1})}uploadConfig(e){this.setState({uploadingConfig:!0},(()=>{p.uploadConfig(e).then((e=>{this.setConfigs(e.configs,(()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config uploaded successfully."),e.config_id)}))})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error uploading the config.","wds"))})).finally((()=>{this.setState({uploadingConfig:!1})}))}))}getConfigName(e){const t=this.getConfig(e);return t?t.name:""}getConfig(e){if(!e)return!1;const t="config-"+e;return!(!this.state.configs||!this.state.configs.hasOwnProperty(t))&&this.state.configs[t]}showSuccessNoticeWithConfigName(e,t){const n=this.getConfigName(t);this.showNotice((0,c.sprintf)(e,"<strong>"+n+"</strong>"),"success",!0)}showSuccessNotice(e){this.showNotice(e,"success")}showErrorNotice(e){this.showNotice(e,"error")}showNotice(e,t="success"){b().closeNotice("wds-config-notice"),b().openNotice("wds-config-notice","<p>"+e+"</p>",{type:t,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[t],dismiss:{show:!0}})}setConfigs(e,t=(()=>!1)){this.setState({configs:e},t)}}function D(){return(D=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}).apply(this,arguments)}class _ extends r().Component{handleFileChange(e){const t=e.target.files[0];this.props.onUpload(t)}render(){return(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,c.__)("Configs","wds")),(0,e.createElement)("div",{className:"sui-actions-right"},(0,e.createElement)("label",{className:v()("sui-button sui-button-ghost",{"sui-button-onload":this.props.uploadInProgress,disabled:this.props.disabled}),htmlFor:"wds-upload-configs-input"},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"})," ",(0,c.__)("Upload","wds")),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("input",{id:"wds-upload-configs-input",type:"file",name:"config_file",className:"sui-hidden",readOnly:"",accept:".json",onChange:e=>this.handleFileChange(e),value:""}),(0,e.createElement)(N,{color:"blue",onClick:()=>this.props.onSave(),disabled:this.props.uploadInProgress||this.props.disabled,text:(0,c.__)("Save config","wds")})))}}g(_,"defaultProps",{uploadInProgress:!1,disabled:!1,onUpload:()=>!1,onSave:()=>!1});class x extends r().Component{render(){const t=this.getIcon(this.props.type);return(0,e.createElement)("div",{className:v()("sui-notice","sui-notice-"+this.props.type)},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},t&&(0,e.createElement)("span",{className:v()("sui-notice-icon sui-md",t),"aria-hidden":"true"}),(0,e.createElement)("p",null,this.props.message))))}getIcon(e){return{warning:"sui-icon-warning-alert",info:"sui-icon-info",success:"sui-icon-check-tick",purple:"sui-icon-info"}[e]}}g(x,"defaultProps",{type:"warning",message:""});class M extends r().Component{constructor(e){super(e),this.state={open:!1}}toggle(e){const t=e.target.className||"";("BUTTON"!==(e.target.tagName||"")||t.includes("sui-accordion-open-indicator"))&&this.setState({open:!this.state.open})}render(){return(0,e.createElement)("div",{className:v()("sui-accordion-item",this.props.className,{"sui-accordion-item--open":this.state.open})},(0,e.createElement)("div",{className:"sui-accordion-item-header",onClick:e=>this.toggle(e)},this.props.header),this.props.children&&(0,e.createElement)("div",{className:"sui-accordion-item-body"},(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-body"},this.props.children))))}}g(M,"defaultProps",{className:""});class P extends r().Component{render(){return(0,e.createElement)("button",{className:v()({"sui-option-red":this.props.red}),onClick:()=>this.props.onClick(),type:"button"},(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}),this.props.text)}}g(P,"defaultProps",{text:"",icon:"",red:!1,onClick:()=>!1});class I extends r().Component{render(){const t=v()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,c.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))}}g(I,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class V extends r().Component{render(){return(0,e.createElement)(I,{icon:"sui-icon-more",buttons:this.getDropdownButtons()})}getDropdownButtons(){const t=[(0,e.createElement)(P,{onClick:()=>this.props.onApply(),icon:"sui-icon-check",text:(0,c.__)("Apply","wds")}),(0,e.createElement)(P,{onClick:()=>this.props.onDownload(),icon:"sui-icon-download",text:(0,c.__)("Download","wds")})];return this.props.editable&&t.push((0,e.createElement)(P,{onClick:()=>this.props.onUpdate(),icon:"sui-icon-pencil",text:(0,c.__)("Name and Description","wds")})),this.props.removable&&t.push((0,e.createElement)(P,{onClick:()=>this.props.onDelete(),icon:"sui-icon-trash",red:!0,text:(0,c.__)("Delete","wds")})),t}}g(V,"defaultProps",{editable:!0,removable:!0,onApply:()=>!1,onDownload:()=>!1,onUpdate:()=>!1,onDelete:()=>!1});var A=n(9490);class j extends r().Component{formatDateTime(e){const t=1e3*e,n="numeric";return new A.ou.fromMillis(t).setZone(l.get("timezone","config")).toLocaleString({year:n,month:"short",day:n,hour:n,minute:n,hour12:!0})}titleColClass(){let e=9;return this.props.showDescription&&(e-=4),this.props.showDate&&(e-=2),"sui-accordion-col-"+e}render(){const t=l.get("default_icon","config");return(0,e.createElement)(M,{header:(0,e.createElement)(r().Fragment,null,(0,e.createElement)("div",{className:v()("sui-accordion-item-title",this.titleColClass())},(0,e.createElement)("span",{className:"sui-icon-smart-crawl","aria-hidden":"true"}),this.props.name," ",this.props.official&&(0,e.createElement)("img",{src:t,alt:""})),this.props.showDescription&&(0,e.createElement)("div",{className:"wds-config-description sui-accordion-col-4"},this.props.description),this.props.showDate&&(0,e.createElement)("div",{className:"wds-config-timestamp sui-accordion-col-2"},this.props.timestamp&&this.formatDateTime(this.props.timestamp)),(0,e.createElement)("div",{className:"sui-accordion-col-3",style:{justifyContent:"flex-end"}},this.props.showApplyButton&&(0,e.createElement)("button",{type:"button",onClick:this.props.onApply,className:"sui-button sui-button-ghost sui-accordion-item-action wds-config-apply-button"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-check sui-no-margin-right"})," ",(0,c.__)("Apply","wds")),(0,e.createElement)(V,{editable:this.props.editable,removable:this.props.removable,onApply:this.props.onApply,onDownload:this.props.onDownload,onUpdate:this.props.onUpdate,onDelete:this.props.onDelete}),(0,e.createElement)("span",{className:"sui-button-icon sui-accordion-open-indicator sui-no-margin-left"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("button",{type:"button",className:"sui-screen-reader-text"},(0,c.sprintf)((0,c.__)("Expand %s","wds"),this.props.name)))))},(0,e.createElement)("div",{className:"wds-config-details"},(0,e.createElement)("div",null,(0,e.createElement)("strong",null,this.props.name),(0,e.createElement)("p",{className:"sui-description"},this.props.description)),(0,e.createElement)("div",null,this.props.editable&&(0,e.createElement)("span",{className:"sui-tooltip","data-tooltip":(0,c.__)("Edit Name and Description","wds")},(0,e.createElement)(N,{icon:"sui-icon-pencil",ghost:!0,onClick:this.props.onUpdate})))),(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("tbody",null,Object.keys(this.props.strings).map((t=>{const n=this.props.strings[t];return(0,e.createElement)("tr",{key:t,className:t},(0,e.createElement)("th",null,this.getLabel(t)),(0,e.createElement)("td",null,n.split("\n").map((function(t,n){return(0,e.createElement)(r().Fragment,{key:n},(0,e.createElement)("span",null,t),(0,e.createElement)("br",null))}))))})))))}getLabel(e){const t={health:(0,c.__)("SEO Health","wds"),onpage:(0,c.__)("Title & Meta","wds"),schema:(0,c.__)("Schema","wds"),social:(0,c.__)("Social","wds"),sitemap:(0,c.__)("Sitemap","wds"),advanced:(0,c.__)("Advanced Tools","wds"),settings:(0,c.__)("Settings","wds")};return t.hasOwnProperty(e)?t[e]:""}}g(j,"defaultProps",{id:"",name:"",description:"",timestamp:"",strings:{},editable:!0,removable:!0,showDescription:!0,showApplyButton:!0,showDate:!0,onApply:()=>!1,onDownload:()=>!1,onUpdate:()=>!1,onDelete:()=>!1});class F extends r().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){return(0,e.createElement)("p",{className:"sui-description"},(0,e.createInterpolateElement)((0,c.__)("Created or updated configs via the Hub? <a>Check again</a>","wds"),{a:(0,e.createElement)("a",{onClick:e=>this.handleClick(e),href:"#"})}))}}g(F,"defaultProps",{onClick:()=>!1});var Z=n(6026),U=n.n(Z);class L{static getPage(e,t,n){const r={};return Object.keys(e).slice((t-1)*n,t*n).forEach((t=>r[t]=e[t])),r}static getPageCount(e,t){const n=Math.ceil(e/t);return n<1?1:n}}class q extends r().Component{handleClick(e,t){e.preventDefault(),this.props.onClick(t)}getPageNumbers(){const e=this.getPageCount(),t=U()(1,e+1);if(e<=7)return t;const n=this.props.currentPage;let r,i;n<=3?(r=n-1,i=7-r-1):e-n<=3?(i=e-n,r=7-i-1):(r=2,i=3);let s=-1;const o=t.map((e=>e<n-r||e>n+i?s:(s--,e)));return Array.from(new Set(o))}render(){const t=this.getPageCount(),n=this.getPageNumbers();return(0,e.createElement)("div",{className:"sui-pagination-wrap"},(0,e.createElement)("span",{className:"sui-pagination-results"},(0,c.sprintf)((0,c.__)("%s results","wds"),this.props.count)),(0,e.createElement)("ul",{className:"sui-pagination"},(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,1),disabled:1===this.props.currentPage},(0,e.createElement)("span",{className:"sui-icon-arrow-skip-back","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to first page","wds")))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,this.props.currentPage-1),disabled:1===this.props.currentPage},(0,e.createElement)("span",{className:"sui-icon-chevron-left","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to previous page","wds")))),n.map((t=>t<0?(0,e.createElement)("li",{key:t},(0,e.createElement)("a",{style:{pointerEvents:"none"}},"...")):(0,e.createElement)("li",{key:t,className:v()({"sui-active":t===this.props.currentPage})},(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,t)},t)))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,this.props.currentPage+1),disabled:this.props.currentPage===t},(0,e.createElement)("span",{className:"sui-icon-chevron-right","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to next page","wds")))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,t),disabled:this.props.currentPage===t},(0,e.createElement)("span",{className:"sui-icon-arrow-skip-forward","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to last page","wds"))))))}getPageCount(){return L.getPageCount(this.props.count,this.props.perPage)}}g(q,"defaultProps",{count:0,perPage:10,currentPage:1,onClick:()=>!1});class z extends r().Component{constructor(e){super(e),this.configsPerPage=10,this.props.triggerSync(),this.state={currentPageNumber:1}}componentDidUpdate(e){const t=Object.keys(this.getConfigs()).length,n=Object.keys(e.configs||{}).length;t>n?this.setState({currentPageNumber:1}):t<n&&this.setState({currentPageNumber:this.newPageNumberAfterDeletion()})}render(){const t=this.getConfigsPage(),n=l.get("is_member","config"),i=this.getConfigs(),s=Object.keys(i).length>0;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)(_,{uploadInProgress:this.props.uploadInProgress,disabled:this.props.syncing,onSave:()=>this.props.onSave(),onUpload:e=>this.props.onUpload(e)}),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("p",null,(0,c.__)("Use configs to save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks! You can easily apply configs to multiple sites at once via the Hub.","wds")),(0,e.createElement)("div",{id:"wds-configs-list",className:v()({syncing:this.props.syncing})},(0,e.createElement)("div",{id:"wds-configs-list-loader"},(0,e.createElement)("span",{className:"sui-description"},(0,e.createElement)("span",{className:"sui-icon-loader sui-loading sui-md","aria-hidden":"true"})," ",(0,c.__)("Updating the configs list ...","wds"))),!s&&(0,e.createElement)(x,{type:"info",message:(0,c.__)("You don’t have any available config. Save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks!","wds")}),(0,e.createElement)("div",{id:"wds-configs-list-inner"},s&&(0,e.createElement)(r().Fragment,null,this.getPagination(),(0,e.createElement)("div",{className:"sui-row"},(0,e.createElement)("div",{className:"sui-col-md-3"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Config Name","wds")))),(0,e.createElement)("div",{className:"sui-col-md-4"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Description","wds")))),(0,e.createElement)("div",{className:"sui-col-md-5"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Date Created","wds"))))),(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed"},Object.keys(t).map((n=>{const r=t[n];return(0,e.createElement)(j,D({},r,{key:r.id,onApply:()=>this.props.onApply(r.id),onUpdate:()=>this.props.onUpdate(r.id),onDownload:()=>this.props.onDownload(r.id),onDelete:()=>this.props.onDelete(r.id)}))}))),this.getPagination()),n&&(0,e.createElement)(F,{onClick:()=>this.props.triggerSync()}),!n&&(0,e.createElement)(x,{type:"purple",message:(0,e.createInterpolateElement)((0,c.__)("Tired of saving, downloading and uploading your configs across your sites? WPMU DEV members use The Hub to easily apply configs to multiple sites at once... Try it free today!<br/> <a>Try The Hub</a>","wds"),{br:(0,e.createElement)("br",null),a:(0,e.createElement)("a",{target:"_blank",className:"sui-button sui-button-purple",href:"https://wpmudev.com/project/smartcrawl-wordpress-seo/?utm_source=smartcrawl&utm_medium=plugin&utm_campaign=smartcrawl_configs_upsell_notice"},(0,c.__)("Try The Hub","wds"))})})))))}newPageNumberAfterDeletion(){const e=this.getCurrentPageNumber();return e>this.getPageCount()?e-1:e}getPageCount(){const e=Object.keys(this.props.configs).length,t=this.configsPerPage;return L.getPageCount(e,t)}getConfigsPage(){return L.getPage(this.getConfigs(),this.getCurrentPageNumber(),this.configsPerPage)}getPagination(){const t=this.getConfigs(),n=Object.keys(t).length,r=this.configsPerPage,i=this.getCurrentPageNumber();if(n>r)return(0,e.createElement)(q,{count:n,perPage:r,onClick:e=>{this.setState({currentPageNumber:e})},currentPage:i})}getConfigs(){return this.props.configs||{}}getCurrentPageNumber(){return this.state.currentPageNumber}}g(z,"defaultProps",{syncing:!1,uploadInProgress:!1,configs:{},onSave:()=>!1,onUpload:()=>!1,onApply:()=>!1,onUpdate:()=>!1,onDownload:()=>!1,onDelete:()=>!1,triggerSync:()=>!1});class W extends r().Component{render(){return(0,e.createElement)(T,{mainComponent:z})}}class H extends r().Component{render(){const t=this.getConfigs(),n=Object.keys(t).length,r=!!n;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,e.createElement)("span",{className:"sui-icon-wrench-tool","aria-hidden":"true"})," ",(0,c.__)("Preset Configs","wds")),r&&(0,e.createElement)("div",{className:"sui-actions-left"},(0,e.createElement)("span",{className:"sui-tag"},n))),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("div",{id:"wds-configs-list"},(0,e.createElement)("div",{id:"wds-configs-list-inner"},(0,e.createElement)("p",null,(0,c.__)("Use configs to save preset configurations of your settings.","wds")),!r&&(0,e.createElement)(x,{type:"info",message:(0,c.__)("You don’t have any available config. Save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks!","wds")}),r&&(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed"},Object.keys(t).map((n=>{const r=t[n];return(0,e.createElement)(j,D({},r,{showDescription:!1,showApplyButton:!1,showDate:!1,onApply:()=>this.props.onApply(r.id),onUpdate:()=>this.props.onUpdate(r.id),onDownload:()=>this.props.onDownload(r.id),onDelete:()=>this.props.onDelete(r.id)}))}))),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"30px"}},(0,e.createElement)(N,{color:"blue",text:(0,c.__)("Save Config","wds"),icon:"sui-icon-save",onClick:()=>this.props.onSave()}),(0,e.createElement)("a",{href:l.get("manage_url","config"),className:"sui-button sui-button-ghost"},(0,e.createElement)("span",{className:"sui-icon-wrench-tool","aria-hidden":"true"}),(0,c.__)("Manage Configs","wds")))))))}getConfigs(){return this.props.configs||{}}}g(H,"defaultProps",{configs:{},onSave:()=>!1,onApply:()=>!1,onUpdate:()=>!1,onDownload:()=>!1,onDelete:()=>!1});class R extends r().Component{render(){return(0,e.createElement)(T,{mainComponent:H})}}u()((()=>{const t=document.getElementById("wds-config-components");t&&(0,i.render)((0,e.createElement)(o,null,(0,e.createElement)(W,null)),t);const n=document.getElementById("wds-config-widget");n&&(0,i.render)((0,e.createElement)(o,null,(0,e.createElement)(R,null)),n)}))}()}();
|
1 |
+
!function(){var e={4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},4239:function(e,t,n){var r=n(2705),i=n(9607),s=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},98:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,s){for(var o=-1,a=n(t((r-e)/(i||1)),0),u=Array(a);a--;)u[s?a:++o]=e,e+=i;return u}},7561:function(e,t,n){var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7445:function(e,t,n){var r=n(98),i=n(6612),s=n(8601);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&i(t,n,o)&&(n=o=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),o=void 0===o?t<n?1:-1:s(o),r(t,n,o,e)}}},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9607:function(e,t,n){var r=n(2705),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:function(e,t,n){var r=n(7813),i=n(8612),s=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&s(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},7990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},8612:function(e,t,n){var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3560:function(e,t,n){var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6026:function(e,t,n){var r=n(7445)();e.exports=r},8601:function(e,t,n){var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},4841:function(e,t,n){var r=n(7561),i=n(3218),s=n(3448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},9490:function(e,t){"use strict";function n(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 r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(){return(i=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}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){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(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function d(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 f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(l(Error)),m=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return s(t,e),t}(h),p=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return s(t,e),t}(h),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return s(t,e),t}(h),y=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(h),v=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return s(t,e),t}(h),w=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t}(h),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return s(t,e),t}(h),k="numeric",N="short",E="long",C={year:k,month:k,day:k},S={year:k,month:N,day:k},O={year:k,month:N,day:k,weekday:N},T={year:k,month:E,day:k},D={year:k,month:E,day:k,weekday:E},_={hour:k,minute:k},x={hour:k,minute:k,second:k},M={hour:k,minute:k,second:k,timeZoneName:N},P={hour:k,minute:k,second:k,timeZoneName:E},I={hour:k,minute:k,hourCycle:"h23"},V={hour:k,minute:k,second:k,hourCycle:"h23"},A={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:N},j={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:E},F={year:k,month:k,day:k,hour:k,minute:k},Z={year:k,month:k,day:k,hour:k,minute:k,second:k},U={year:k,month:N,day:k,hour:k,minute:k},L={year:k,month:N,day:k,hour:k,minute:k,second:k},q={year:k,month:N,day:k,weekday:N,hour:k,minute:k},z={year:k,month:E,day:k,hour:k,minute:k,timeZoneName:N},W={year:k,month:E,day:k,hour:k,minute:k,second:k,timeZoneName:N},H={year:k,month:E,day:k,weekday:E,hour:k,minute:k,timeZoneName:E},R={year:k,month:E,day:k,weekday:E,hour:k,minute:k,second:k,timeZoneName:E};function Y(e){return void 0===e}function G(e){return"number"==typeof e}function J(e){return"number"==typeof e&&e%1==0}function B(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function K(e,t,n){return J(e)&&e>=t&&e<=n}function X(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length<t?("0".repeat(t)+r).slice(-t):r.toString())}function ee(e){return Y(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!Y(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ne(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function re(e){return e%4==0&&(e%100!=0||e%400==0)}function ie(e){return re(e)?366:365}function se(e,t){var n,r=(n=t-1)-12*Math.floor(n/12)+1;return 2===r?re(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function oe(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ae(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function ce(e,t,n,r){void 0===r&&(r=null);var s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=i({timeZoneName:t},o),u=new Intl.DateTimeFormat(n,a).formatToParts(s).find((function(e){return"timezonename"===e.type.toLowerCase()}));return u?u.value:null}function le(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function de(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new w("Invalid unit value "+e);return t}function fe(e,t){var n={};for(var r in e)if(Q(e,r)){var i=e[r];if(null==i)continue;n[t(r)]=de(i)}return n}function he(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+X(n,2)+":"+X(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+X(n,2)+X(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return function(e,t){return["hour","minute","second","millisecond"].reduce((function(t,n){return t[n]=e[n],t}),{})}(e)}var pe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ve=["J","F","M","A","M","J","J","A","S","O","N","D"];function we(e){switch(e){case"narrow":return[].concat(ve);case"short":return[].concat(ye);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ne=["M","T","W","T","F","S","S"];function Ee(e){switch(e){case"narrow":return[].concat(Ne);case"short":return[].concat(ke);case"long":return[].concat(be);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],Se=["Before Christ","Anno Domini"],Oe=["BC","AD"],Te=["B","A"];function De(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(Oe);case"long":return[].concat(Se);default:return null}}function _e(e,t){for(var n,r="",i=f(e);!(n=i()).done;){var s=n.value;s.literal?r+=s.val:r+=t(s.val)}return r}var xe={D:C,DD:S,DDD:T,DDDD:D,t:_,tt:x,ttt:M,tttt:P,T:I,TT:V,TTT:A,TTTT:j,f:F,ff:U,fff:z,ffff:H,F:Z,FF:L,FFF:W,FFFF:R},Me=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],s=0;s<e.length;s++){var o=e.charAt(s);"'"===o?(n.length>0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return xe[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(e,t);var n=i({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(e,n){return r.loc.extract(t,e,n)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(e,n){return i?function(e,t){return we(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?function(e,t){return Ee(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(e){return i?function(e,t){return De(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return _e(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?function(e){return Ce[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?o({day:"numeric"},"day"):r.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):r.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):r.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,s=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),a=o.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),u=t.shiftTo.apply(t,a.map(s).filter((function(e){return e})));return _e(o,(r=u,function(e){var t=s(e);return t?i.num(r.get(t),e.length):e}))},e}(),Pe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ie=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},r(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ve=null,Ae=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ce(e,t.format,t.locale)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},r(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ve&&(Ve=new t),Ve}}]),t}(Ie),je=RegExp("^"+pe.source+"$"),Fe={},Ze={year:0,month:1,day:2,hour:3,minute:4,second:5},Ue={},Le=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}s(t,e),t.create=function(e){return Ue[e]||(Ue[e]=new t(e)),Ue[e]},t.resetCache=function(){Ue={},Fe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(je))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return ce(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,Fe[n]||(Fe[n]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var s=n[i],o=s.type,a=s.value,u=Ze[o];Y(u)||(r[u]=parseInt(a,10))}return r}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],s=r[2];return[r[3],i,s,r[4],r[5],r[6]]}(r,t),s=+t,o=s%1e3;return(oe({year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:0})-(s-=o>=0?o:1e3+o))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ie),qe=null,ze=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}s(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(le(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return he(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+he(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===qe&&(qe=new t(0)),qe}}]),t}(Ie),We=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}s(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ie);function He(e,t){var n;if(Y(e)||null===e)return t;if(e instanceof Ie)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r||"system"===r?t:"utc"===r||"gmt"===r?ze.utcInstance:null!=(n=Le.parseGMTOffset(e))?ze.instance(n):Le.isValidSpecifier(r)?Le.create(e):ze.parseSpecifier(r)||new We(e)}return G(e)?ze.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new We(e)}var Re,Ye=function(){return Date.now()},Ge="system",Je=null,Be=null,$e=null,Qe=function(){function e(){}return e.resetCaches=function(){ut.resetCache(),Le.resetCache()},r(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZone",get:function(){return He(Ge,Ae.instance)},set:function(e){Ge=e}},{key:"defaultLocale",get:function(){return Je},set:function(e){Je=e}},{key:"defaultNumberingSystem",get:function(){return Be},set:function(e){Be=e}},{key:"defaultOutputCalendar",get:function(){return $e},set:function(e){$e=e}},{key:"throwOnInvalid",get:function(){return Re},set:function(e){Re=e}}]),e}(),Ke=["base"],Xe={};function et(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Xe[n];return r||(r=new Intl.DateTimeFormat(e,t),Xe[n]=r),r}var tt={},nt={};var rt=null;function it(e,t,n,r,i){var s=e.listingMode(n);return"error"===s?null:"en"===s?r(t):i(t)}var st=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.NumberFormat(e,t),tt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return X(this.floor?Math.floor(e):ne(e,3),this.padTo)},e}(),ot=function(){function e(e,t,n){var r;if(this.opts=n,e.zone.isUniversal){var s=e.offset/60*-1,o=s>=0?"Etc/GMT+"+s:"Etc/GMT"+s,a=Le.isValidZone(o);0!==e.offset&&a?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ur.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);var u=i({},this.opts);r&&(u.timeZone=r),this.dtf=et(t,u)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),at=function(){function e(e,t,n){this.opts=i({style:"long"},n),!t&&B()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,Ke),i=JSON.stringify([e,r]),s=nt[i];return s||(s=new Intl.RelativeTimeFormat(e,t),nt[i]=s),s}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var a=Object.is(t,-0)||t<0,u=Math.abs(t),c=1===u,l=i[e],d=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return a?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ut=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=et(e).resolvedOptions()}catch(e){n=et(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),s=i[0],o=i[1],a=i[2];this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var s=t||Qe.defaultLocale;return new e(s||(i?"en-US":rt||(rt=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Qe.defaultNumberingSystem,r||Qe.defaultOutputCalendar,s)},e.resetCache=function(){rt=null,Xe={},tt={},nt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,s=n.outputCalendar;return e.create(r,i,s)};var t=e.prototype;return t.listingMode=function(e){var t=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&n?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,we,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=ur.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,Ee,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=ur.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),it(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[ur.utc(2016,11,13,9),ur.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),it(this,e,t,De,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[ur.utc(-40,1,1),ur.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ot(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+r+"$")}function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){var r=t[0],s=t[1],o=t[2],a=n(e,o),u=a[0],c=a[1],l=a[2];return[i({},r,u),s||c,l]}),[{},null,1]).slice(0,2)}}function dt(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,s=n;i<s.length;i++){var o=s[i],a=o[0],u=o[1],c=a.exec(e);if(c)return u(c)}return[null,null]}function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=ee(e[n+r]);return[i,null,n+r]}}var ht=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,pt=RegExp(""+mt.source+ht.source+"?"),gt=RegExp("(?:T"+pt.source+")?"),yt=ft("weekYear","weekNumber","weekDay"),vt=ft("year","ordinal"),wt=RegExp(mt.source+" ?(?:"+ht.source+"|("+pe.source+"))?"),bt=RegExp("(?: "+wt.source+")?");function kt(e,t,n){var r=e[t];return Y(r)?n:ee(r)}function Nt(e,t){return[{year:kt(e,t),month:kt(e,t+1,1),day:kt(e,t+2,1)},null,t+3]}function Et(e,t){return[{hours:kt(e,t,0),minutes:kt(e,t+1,0),seconds:kt(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function Ct(e,t){var n=!e[t]&&!e[t+1],r=le(e[t+1],e[t+2]);return[{},n?null:ze.instance(r),t+3]}function St(e,t){return[{},e[t]?Le.create(e[t]):null,t+1]}var Ot=RegExp("^T?"+mt.source+"$"),Tt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Dt(e){var t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],c=e[8],l="-"===t[0],d=u&&"-"===u[0],f=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&l)?-e:e};return[{years:f(ee(n)),months:f(ee(r)),weeks:f(ee(i)),days:f(ee(s)),hours:f(ee(o)),minutes:f(ee(a)),seconds:f(ee(u),"-0"===u),milliseconds:f(te(c),d)}]}var _t={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e,t,n,r,i,s,o){var a={year:2===t.length?ue(ee(t)):ee(t),month:ye.indexOf(n)+1,day:ee(r),hour:ee(i),minute:ee(s)};return o&&(a.second=ee(o)),e&&(a.weekday=e.length>3?be.indexOf(e)+1:ke.indexOf(e)+1),a}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Pt(e){var t,n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],c=e[8],l=e[9],d=e[10],f=e[11],h=xt(n,s,i,r,o,a,u);return t=c?_t[c]:l?0:le(d,f),[h,new ze(t)]}var It=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Vt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jt(e){var t=e[1],n=e[2],r=e[3];return[xt(t,e[4],r,n,e[5],e[6],e[7]),ze.utcInstance]}function Ft(e){var t=e[1],n=e[2],r=e[3],i=e[4],s=e[5],o=e[6];return[xt(t,e[7],n,r,i,s,o),ze.utcInstance]}var Zt=ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Ut=ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),Lt=ct(/(\d{4})-?(\d{3})/,gt),qt=ct(pt),zt=lt(Nt,Et,Ct),Wt=lt(yt,Et,Ct),Ht=lt(vt,Et,Ct),Rt=lt(Et,Ct),Yt=lt(Et),Gt=ct(/(\d{4})-(\d\d)-(\d\d)/,bt),Jt=ct(wt),Bt=lt(Nt,Et,Ct,St),$t=lt(Et,Ct,St),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Kt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),Xt=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),en=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tn=en.slice(0).reverse();function nn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:i({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new sn(r)}function rn(e,t,n,r,i){var s=e[i][n],o=t[n]/s,a=Math.sign(o)!==Math.sign(r[i])&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=a,t[n]-=a*s}var sn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Kt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new w("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit),loc:ut.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return dt(e,[Tt,Dt])}(t)[0];return r?e.fromObject(r,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return dt(e,[Ot,Yt])}(t)[0];return r?e.fromObject(r,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the Duration is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new g(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Me.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ne(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var s=n.toFormat(r);return e.includePrefix&&(s="T"+s),s},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=on(e),r={},i=f(en);!(t=i()).done;){var s=t.value;(Q(n.values,s)||Q(this.values,s))&&(r[s]=n.get(s)+this.get(s))}return nn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=on(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=de(e(this.values[i],i))}return nn(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?nn(this,{values:i({},this.values,fe(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,s={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(s.conversionAccuracy=i),nn(this,s)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){tn.reduce((function(n,r){return Y(t[r])?n:(n&&rn(e,t,n,t,r),r)}),null)}(this.matrix,e),nn(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(t){return e.normalizeUnit(t)}));for(var i,s,o={},a={},u=this.toObject(),c=f(en);!(s=c()).done;){var l=s.value;if(n.indexOf(l)>=0){i=l;var d=0;for(var h in a)d+=this.matrix[h][l]*a[h],a[h]=0;G(u[l])&&(d+=u[l]);var m=Math.trunc(d);for(var p in o[l]=m,a[l]=d-m,u)en.indexOf(p)>en.indexOf(l)&&rn(this.matrix,u,p,o,l)}else G(u[l])&&(a[l]=u[l])}for(var g in a)0!==a[g]&&(o[i]+=g===i?a[g]:a[g]/this.matrix[i][g]);return nn(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return nn(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=f(en);!(t=n()).done;){var r=t.value;if(i=this.values[r],s=e.values[r],!(void 0===i||0===i?void 0===s||0===s:i===s))return!1}var i,s;return!0},r(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function on(e){if(G(e))return sn.fromMillis(e);if(sn.isDuration(e))return e;if("object"==typeof e)return sn.fromObject(e);throw new w("Unknown duration argument "+e+" of type "+typeof e)}var an="Invalid Interval";function un(e,t){return e&&e.isValid?t&&t.isValid?t<e?cn.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:cn.invalid("missing or invalid end"):cn.invalid("missing or invalid start")}var cn=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the Interval is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.fromDateTimes=function(t,n){var r=cr(t),i=cr(n),s=un(r,i);return null==s?new e({start:r,end:i}):s},e.after=function(t,n){var r=on(n),i=cr(t);return e.fromDateTimes(i,i.plus(r))},e.before=function(t,n){var r=on(n),i=cr(t);return e.fromDateTimes(i.minus(r),i)},e.fromISO=function(t,n){var r=(t||"").split("/",2),i=r[0],s=r[1];if(i&&s){var o,a,u,c;try{a=(o=ur.fromISO(i,n)).isValid}catch(s){a=!1}try{c=(u=ur.fromISO(s,n)).isValid}catch(s){c=!1}if(a&&c)return e.fromDateTimes(o,u);if(a){var l=sn.fromISO(s,n);if(l.isValid)return e.after(o,l)}else if(c){var d=sn.fromISO(i,n);if(d.isValid)return e.before(u,d)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var s=r.map(cr).filter((function(e){return t.contains(e)})).sort(),o=[],a=this.s,u=0;a<this.e;){var c=s[u]||this.e,l=+c>+this.e?this.e:c;o.push(e.fromDateTimes(a,l)),a=l,u+=1}return o},t.splitBy=function(t){var n=on(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,s=1,o=[];i<this.e;){var a=this.start.plus(n.mapUnits((function(e){return e*s})));r=+a>+this.e?this.e:a,o.push(e.fromDateTimes(i,r)),i=r,s+=1}return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,s=0,o=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=f((n=Array.prototype).concat.apply(n,a).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var c=r.value;1===(s+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.xor([this].concat(r)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":an},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):an},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():an},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):an},t.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(e)+r+this.e.toFormat(e):an},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):sn.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},r(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),ln=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Qe.defaultZone);var t=ur.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Le.isValidSpecifier(e)&&Le.isValidZone(e)},e.normalizeZone=function(e){return He(e,Qe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,c=n.outputCalendar,l=void 0===c?"gregory":c;return(u||ut.create(i,o,l)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,c=n.outputCalendar,l=void 0===c?"gregory":c;return(u||ut.create(i,o,l)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||ut.create(i,o,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||ut.create(i,o,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return ut.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return ut.create(r,null,"gregory").eras(e)},e.features=function(){return{relative:B()}},e}();function dn(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(sn.fromMillis(r).as("days"))}var fn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},hn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mn=fn.hanidec.replace(/[\[|\]]/g,"").split("");function pn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+fn[n||"latn"]+t)}function gn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(fn.hanidec))t+=mn.indexOf(e[n]);else for(var i in hn){var s=hn[i],o=s[0],a=s[1];r>=o&&r<=a&&(t+=r-o)}}return parseInt(t,10)}return t}(n))}}}var yn="( |"+String.fromCharCode(160)+")",vn=new RegExp(yn,"g");function wn(e){return e.replace(/\./g,"\\.?").replace(vn,yn)}function bn(e){return e.replace(/\./g,"").replace(vn," ").toLowerCase()}function kn(e,t){return null===e?null:{regex:RegExp(e.map(wn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return bn(r)===bn(e)}))+t}}}function Nn(e,t){return{regex:e,deser:function(e){return le(e[1],e[2])},groups:t}}function En(e){return{regex:e,deser:function(e){return e[0]}}}var Cn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Sn=null;function On(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return function(e,t){if(e.literal)return e;var n=Me.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Me.create(t,n).formatDateTimeParts((Sn||(Sn=ur.fromMillis(1555555555555)),Sn)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var s=n[r],o=Cn[r];return"object"==typeof o&&(o=o[s]),o?{literal:!1,val:o}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}(e,t)})))}(Me.parseFormat(n),e),i=r.map((function(t){return n=t,i=pn(r=e),s=pn(r,"{2}"),o=pn(r,"{3}"),a=pn(r,"{4}"),u=pn(r,"{6}"),c=pn(r,"{1,2}"),l=pn(r,"{1,3}"),d=pn(r,"{1,6}"),f=pn(r,"{1,9}"),h=pn(r,"{2,4}"),m=pn(r,"{4,6}"),p=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(g=function(e){if(n.literal)return p(e);switch(e.val){case"G":return kn(r.eras("short",!1),0);case"GG":return kn(r.eras("long",!1),0);case"y":return gn(d);case"yy":return gn(h,ue);case"yyyy":return gn(a);case"yyyyy":return gn(m);case"yyyyyy":return gn(u);case"M":return gn(c);case"MM":return gn(s);case"MMM":return kn(r.months("short",!0,!1),1);case"MMMM":return kn(r.months("long",!0,!1),1);case"L":return gn(c);case"LL":return gn(s);case"LLL":return kn(r.months("short",!1,!1),1);case"LLLL":return kn(r.months("long",!1,!1),1);case"d":return gn(c);case"dd":return gn(s);case"o":return gn(l);case"ooo":return gn(o);case"HH":return gn(s);case"H":return gn(c);case"hh":return gn(s);case"h":return gn(c);case"mm":return gn(s);case"m":case"q":return gn(c);case"qq":return gn(s);case"s":return gn(c);case"ss":return gn(s);case"S":return gn(l);case"SSS":return gn(o);case"u":return En(f);case"a":return kn(r.meridiems(),0);case"kkkk":return gn(a);case"kk":return gn(h,ue);case"W":return gn(c);case"WW":return gn(s);case"E":case"c":return gn(i);case"EEE":return kn(r.weekdays("short",!1,!1),1);case"EEEE":return kn(r.weekdays("long",!1,!1),1);case"ccc":return kn(r.weekdays("short",!0,!1),1);case"cccc":return kn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Nn(new RegExp("([+-]"+c.source+")(?::("+s.source+"))?"),2);case"ZZZ":return Nn(new RegExp("([+-]"+c.source+")("+s.source+")?"),2);case"z":return En(/[a-z_+-/]{1,256}?/i);default:return p(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=n,g;var n,r,i,s,o,a,u,c,l,d,f,h,m,p,g})),s=i.find((function(e){return e.invalidReason}));if(s)return{input:t,tokens:r,invalidReason:s.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),a=o[0],u=o[1],c=RegExp(a,"i"),l=function(e,t,n){var r=e.match(t);if(r){var i={},s=1;for(var o in n)if(Q(n,o)){var a=n[o],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(s,s+u))),s+=u}return[r,i]}return[r,{}]}(t,c,u),d=l[0],f=l[1],h=f?function(e){var t;return t=Y(e.Z)?Y(e.z)?null:Le.create(e.z):new ze(e.Z),Y(e.q)||(e.M=3*(e.q-1)+1),Y(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Y(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(f):[null,null],m=h[0],p=h[1];if(Q(f,"a")&&Q(f,"H"))throw new y("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:d,matches:f,result:m,zone:p}}var Tn=[0,31,59,90,120,151,181,212,243,273,304,334],Dn=[0,31,60,91,121,152,182,213,244,274,305,335];function xn(e,t){return new Pe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Mn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Pn(e,t,n){return n+(re(e)?Dn:Tn)[t-1]}function In(e,t){var n=re(e)?Dn:Tn,r=n.findIndex((function(e){return e<t}));return{month:r+1,day:t-n[r]}}function Vn(e){var t,n=e.year,r=e.month,s=e.day,o=Pn(n,r,s),a=Mn(n,r,s),u=Math.floor((o-a+10)/7);return u<1?u=ae(t=n-1):u>ae(n)?(t=n+1,u=1):t=n,i({weekYear:t,weekNumber:u,weekday:a},me(e))}function An(e){var t,n=e.weekYear,r=e.weekNumber,s=e.weekday,o=Mn(n,1,4),a=ie(n),u=7*r+s-o-3;u<1?u+=ie(t=n-1):u>a?(t=n+1,u-=ie(n)):t=n;var c=In(t,u);return i({year:t,month:c.month,day:c.day},me(e))}function jn(e){var t=e.year;return i({year:t,ordinal:Pn(t,e.month,e.day)},me(e))}function Fn(e){var t=e.year,n=In(t,e.ordinal);return i({year:t,month:n.month,day:n.day},me(e))}function Zn(e){var t=J(e.year),n=K(e.month,1,12),r=K(e.day,1,se(e.year,e.month));return t?n?!r&&xn("day",e.day):xn("month",e.month):xn("year",e.year)}function Un(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,s=K(t,0,23)||24===t&&0===n&&0===r&&0===i,o=K(n,0,59),a=K(r,0,59),u=K(i,0,999);return s?o?a?!u&&xn("millisecond",i):xn("second",r):xn("minute",n):xn("hour",t)}var Ln="Invalid DateTime",qn=864e13;function zn(e){return new Pe("unsupported zone",'the zone "'+e.name+'" is not supported')}function Wn(e){return null===e.weekData&&(e.weekData=Vn(e.c)),e.weekData}function Hn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ur(i({},n,t,{old:n}))}function Rn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var s=n.offset(r);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}function Yn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Gn(e,t,n){return Rn(oe(e),t,n)}function Jn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},e.c,{year:r,month:s,day:Math.min(e.c.day,se(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=sn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Rn(oe(o),n,e.zone),c=u[0],l=u[1];return 0!==a&&(c+=a,l=e.zone.offset(c)),{ts:c,o:l}}function Bn(e,t,n,r,s){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var u=t||a,c=ur.fromObject(e,i({},n,{zone:u}));return o?c:c.setZone(a)}return ur.invalid(new Pe("unparsable",'the input "'+s+"\" can't be parsed as "+r))}function $n(e,t,n){return void 0===n&&(n=!0),e.isValid?Me.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,s=void 0!==i&&i,o=t.includeOffset,a=t.includePrefix,u=void 0!==a&&a,c=t.includeZone,l=void 0!==c&&c,d=t.spaceZone,f=void 0!==d&&d,h=t.format,m=void 0===h?"extended":h,p="basic"===m?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(p+="basic"===m?"ss":":ss",s&&0===e.millisecond||(p+=".SSS")),(l||o)&&f&&(p+=" "),l?p+="z":o&&(p+="basic"===m?"ZZZ":"ZZ");var g=$n(e,p);return u&&(g="T"+g),g}var Kn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Xn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},er={ordinal:1,hour:0,minute:0,second:0,millisecond:0},tr=["year","month","day","hour","minute","second","millisecond"],nr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function ir(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new v(e);return t}function sr(e,t){var n,r,i=He(t.zone,Qe.defaultZone),s=ut.fromObject(t),o=Qe.now();if(Y(e.year))n=o;else{for(var a,u=f(tr);!(a=u()).done;){var c=a.value;Y(e[c])&&(e[c]=Kn[c])}var l=Zn(e)||Un(e);if(l)return ur.invalid(l);var d=Gn(e,i.offset(o),i);n=d[0],r=d[1]}return new ur({ts:n,zone:i,loc:s,o:r})}function or(e,t,n){var r=!!Y(n.round)||n.round,i=function(e,i){return e=ne(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},s=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(s(n.unit),n.unit);for(var o,a=f(n.units);!(o=a()).done;){var u=o.value,c=s(u);if(Math.abs(c)>=1)return i(c,u)}return i(e>t?-0:0,n.units[n.units.length-1])}function ar(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var ur=function(){function e(e){var t=e.zone||Qe.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Pe("invalid input"):null)||(t.isValid?null:zn(t));this.ts=Y(e.ts)?Qe.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var s=[e.old.c,e.old.o];r=s[0],i=s[1]}else{var o=t.offset(this.ts);r=Yn(this.ts,o),r=(n=Number.isNaN(r.year)?new Pe("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||ut.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=ar(arguments),t=e[0],n=e[1],r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6];return sr({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:c},t)},e.utc=function(){var e=ar(arguments),t=e[0],n=e[1],r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6];return t.zone=ze.utcInstance,sr({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:c},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var s=He(n.zone,Qe.defaultZone);return s.isValid?new e({ts:i,zone:s,loc:ut.fromObject(n)}):e.invalid(zn(s))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),G(t))return t<-qn||t>qn?e.invalid("Timestamp out of range"):new e({ts:t,zone:He(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new w("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),G(t))return new e({ts:1e3*t,zone:He(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new w("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=He(n.zone,Qe.defaultZone);if(!r.isValid)return e.invalid(zn(r));var i=Qe.now(),s=r.offset(i),o=fe(t,ir),a=!Y(o.ordinal),u=!Y(o.year),c=!Y(o.month)||!Y(o.day),l=u||c,d=o.weekYear||o.weekNumber,h=ut.fromObject(n);if((l||a)&&d)throw new y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new y("Can't mix ordinal dates with month/day");var m,p,g=d||o.weekday&&!l,v=Yn(i,s);g?(m=nr,p=Xn,v=Vn(v)):a?(m=rr,p=er,v=jn(v)):(m=tr,p=Kn);for(var w,b=!1,k=f(m);!(w=k()).done;){var N=w.value;Y(o[N])?o[N]=b?p[N]:v[N]:b=!0}var E=(g?function(e){var t=J(e.weekYear),n=K(e.weekNumber,1,ae(e.weekYear)),r=K(e.weekday,1,7);return t?n?!r&&xn("weekday",e.weekday):xn("week",e.week):xn("weekYear",e.weekYear)}(o):a?function(e){var t=J(e.year),n=K(e.ordinal,1,ie(e.year));return t?!n&&xn("ordinal",e.ordinal):xn("year",e.year)}(o):Zn(o))||Un(o);if(E)return e.invalid(E);var C=Gn(g?An(o):a?Fn(o):o,s,r),S=new e({ts:C[0],zone:r,o:C[1],loc:h});return o.weekday&&l&&t.weekday!==S.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[Zt,zt],[Ut,Wt],[Lt,Ht],[qt,Rt])}(e);return Bn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return dt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Mt,Pt])}(e);return Bn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[It,jt],[Vt,jt],[At,Ft])}(e);return Bn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),Y(t)||Y(n))throw new w("fromFormat requires an input string and a format");var i=r,s=i.locale,o=void 0===s?null:s,a=i.numberingSystem,u=void 0===a?null:a,c=function(e,t,n){var r=On(e,t,n);return[r.result,r.zone,r.invalidReason]}(ut.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),t,n),l=c[0],d=c[1],f=c[2];return f?e.invalid(f):Bn(l,d,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return dt(e,[Gt,Bt],[Jt,$t])}(e);return Bn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w("need to specify a reason the DateTime is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Qe.throwOnInvalid)throw new m(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Me.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(ze.instance(e),t)},t.toLocal=function(){return this.setZone(Qe.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,s=void 0!==i&&i,o=r.keepCalendarTime,a=void 0!==o&&o;if((t=He(t,Qe.defaultZone)).equals(this.zone))return this;if(t.isValid){var u=this.ts;if(s||a){var c=t.offset(this.ts);u=Gn(this.toObject(),c,t)[0]}return Hn(this,{ts:u,zone:t})}return e.invalid(zn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Hn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=fe(e,ir),r=!Y(n.weekYear)||!Y(n.weekNumber)||!Y(n.weekday),s=!Y(n.ordinal),o=!Y(n.year),a=!Y(n.month)||!Y(n.day),u=o||a,c=n.weekYear||n.weekNumber;if((u||s)&&c)throw new y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new y("Can't mix ordinal dates with month/day");r?t=An(i({},Vn(this.c),n)):Y(n.ordinal)?(t=i({},this.toObject(),n),Y(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Fn(i({},jn(this.c),n));var l=Gn(t,this.o,this.zone);return Hn(this,{ts:l[0],o:l[1]})},t.plus=function(e){return this.isValid?Hn(this,Jn(this,on(e))):this},t.minus=function(e){return this.isValid?Hn(this,Jn(this,on(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=sn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Me.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ln},t.toLocaleString=function(e,t){return void 0===e&&(e=C),void 0===t&&(t={}),this.isValid?Me.create(this.loc.clone(t),e).formatDateTime(this):Ln},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Me.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),$n(this,n)},t.toISOWeekDate=function(){return $n(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,s=void 0!==i&&i,o=t.includeOffset,a=void 0===o||o,u=t.includePrefix,c=void 0!==u&&u,l=t.format;return Qn(this,{suppressSeconds:s,suppressMilliseconds:r,includeOffset:a,includePrefix:c,format:void 0===l?"extended":l})},t.toRFC2822=function(){return $n(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return $n(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return $n(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Qn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Ln},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=i({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return sn.invalid("created by diffing an invalid DateTime");var r,s=i({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(sn.normalizeUnit),a=e.valueOf()>this.valueOf(),u=function(e,t,n,r){var i,s=function(e,t,n){for(var r,i,s={},o=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=dn(e,t);return(n-n%7)/7}],["days",dn]];o<a.length;o++){var u=a[o],c=u[0],l=u[1];if(n.indexOf(c)>=0){var d;r=c;var f,h=l(e,t);(i=e.plus(((d={})[c]=h,d)))>t?(e=e.plus(((f={})[c]=h-1,f)),h-=1):e=i,s[c]=h}}return[e,s,i,r]}(e,t,n),o=s[0],a=s[1],u=s[2],c=s[3],l=t-o,d=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===d.length&&(u<t&&(u=o.plus(((i={})[c]=1,i))),u!==o&&(a[c]=(a[c]||0)+l/(u-o)));var f,h=sn.fromObject(a,r);return d.length>0?(f=sn.fromMillis(l,r)).shiftTo.apply(f,d).plus(h):h}(a?this:e,a?e:this,o,s);return a?u.negate():u},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?cn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,s=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(s=t.unit,o=void 0),or(n,this.plus(r),i({},t,{numeric:"always",units:s,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?or(t.base||e.fromObject({},{zone:this.zone}),this,i({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w("min requires all arguments be DateTimes");return $(n,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w("max requires all arguments be DateTimes");return $(n,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,s=void 0===i?null:i,o=r.numberingSystem,a=void 0===o?null:o;return On(ut.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,n,r){return void 0===r&&(r={}),e.fromFormatExplain(t,n,r)},r(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Wn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Wn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Wn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?jn(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?ln.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?ln.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?ln.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?ln.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return re(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ie(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ae(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return C}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return O}},{key:"DATE_FULL",get:function(){return T}},{key:"DATE_HUGE",get:function(){return D}},{key:"TIME_SIMPLE",get:function(){return _}},{key:"TIME_WITH_SECONDS",get:function(){return x}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return I}},{key:"TIME_24_WITH_SECONDS",get:function(){return V}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return A}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return F}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return Z}},{key:"DATETIME_MED",get:function(){return U}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return L}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return q}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return W}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return R}}]),e}();function cr(e){if(ur.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return ur.fromJSDate(e);if(e&&"object"==typeof e)return ur.fromObject(e);throw new w("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=ur}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.React,r=n.n(t),i=window.ReactDOM;class s extends r().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var o=s,a=window.wp.domReady,u=n.n(a),c=window.wp.i18n,l=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let n=window["_wds_"+t]||{};return e.forEach((e=>{n=n&&n.hasOwnProperty(e)?n[e]:""})),n}static get_bool(e,t="general"){return!!this.get(e,t)}},d=jQuery,f=n.n(d),h=ajaxurl,m=n.n(h);class p{static sync(){return this.post("wds_sync_hub_configs")}static applyConfig(e){return this.post("wds_apply_config",{config_id:e})}static deleteConfig(e){return this.post("wds_delete_config",{config_id:e})}static updateConfig(e,t,n){return this.post("wds_update_config",{config_id:e,name:t,description:n})}static createConfig(e,t){return this.post("wds_create_new_config",{name:e,description:t})}static uploadConfig(e){const t=new FormData;return t.append("file",e),t.append("action","wds_upload_config"),t.append("_wds_nonce",l.get("nonce","config")),new Promise(((e,n)=>{f().ajax({url:m(),cache:!1,contentType:!1,processData:!1,type:"post",data:t}).done((function(t){t.success?e((t||{}).data):n()})).fail((function(){n()}))}))}static post(e,t){const n=l.get("nonce","config");return class{static post(e,t,n={}){return new Promise((function(r,i){const s=Object.assign({},{action:e,_wds_nonce:t},n);f().post(m(),s).done((function(e){var t;e.success?r(null==e?void 0:e.data):i(null==e||null===(t=e.data)||void 0===t?void 0:t.message)})).fail((()=>i()))}))}}.post(e,n,t)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=n(4184),v=n.n(y),w=SUI,b=n.n(w);class k extends r().Component{constructor(e){super(e),this.props=e}componentDidMount(){b().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){b().closeModal()}handleKeyDown(e){f()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),n=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:v()("sui-modal",n),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:v()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:v()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:v()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:v()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:v()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Close this dialog window","wds")))}}g(k,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class N extends r().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,n,r=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},r," ",this.props.text),n=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,r," ",this.props.text),n=""),(0,e.createElement)("button",{className:v()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,n)}}g(N,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});class E extends r().Component{render(){return(0,e.createElement)(k,{id:"wds-apply-config-modal",title:(0,c.__)("Apply config","wds"),description:this.getDescription(),small:!0,onClose:()=>this.props.onClose(),focusAfterOpen:"wds-cancel-config-apply",disableCloseButton:this.props.inProgress},(0,e.createElement)(N,{id:"wds-cancel-config-apply",ghost:!0,text:(0,c.__)("Cancel","wds"),disabled:this.props.inProgress,onClick:()=>this.props.onClose()}),(0,e.createElement)(N,{color:"blue",loading:this.props.inProgress,icon:"sui-icon-check",text:(0,c.__)("Apply","wds"),onClick:()=>this.props.onApply()}))}getDescription(){return(0,e.createInterpolateElement)((0,c.sprintf)((0,c.__)("Are you sure you want to apply the <strong>%s</strong> settings config? We recommend you have a backup available as your <strong>existing settings configuration will be overridden</strong>.","wds"),this.props.configName),{strong:(0,e.createElement)("strong",null)})}}g(E,"defaultProps",{configName:"",inProgress:!1,onClose:()=>!1,onApply:()=>!1});class C extends r().Component{render(){return(0,e.createElement)(k,{id:"wds-delete-config-modal",title:(0,c.__)("Delete Configuration File","wds"),description:this.getDescription(),small:!0,disableCloseButton:this.props.inProgress,focusAfterOpen:"wds-cancel-config-delete",onClose:()=>this.props.onClose()},(0,e.createElement)(N,{id:"wds-cancel-config-delete",ghost:!0,disabled:this.props.inProgress,text:(0,c.__)("Cancel","wds"),onClick:()=>this.props.onClose()}),(0,e.createElement)(N,{color:"red",loading:this.props.inProgress,icon:"sui-icon-trash",text:(0,c.__)("Delete","wds"),onClick:()=>this.props.onDelete()}))}getDescription(){return(0,e.createInterpolateElement)((0,c.sprintf)((0,c.__)("Are you sure you want to delete the <strong>%s</strong> config file? You will no longer be able to apply it to this or other connected sites.","wds"),this.props.configName),{strong:(0,e.createElement)("strong",null)})}}g(C,"defaultProps",{configName:"",inProgress:!1,onClose:()=>!1,onDelete:()=>!1});class S{static isNonEmpty(e){return e&&e.trim()}static isValuePlainText(e){return f()("<div>").html(e).text()===e}}class O extends r().Component{constructor(e){super(e),this.props=e,this.state={configName:this.props.configName,configNameValid:!0,configDescription:this.props.configDescription,configDescriptionValid:!0,saveButtonDisabled:!0}}handleNameChange(e){const t=this.isNameValid(e);this.setState({configName:e,configNameValid:t},(()=>{this.updateSaveButtonState()}))}isNameValid(e){return S.isNonEmpty(e)&&S.isValuePlainText(e)&&this.hasWhitelistCharactersOnly(e)}hasWhitelistCharactersOnly(e){return!!e.match(/^[@.'_\-\sa-zA-Z0-9]+$/)}handleDescriptionChange(e){const t=this.isDescriptionValid(e);this.setState({configDescription:e,configDescriptionValid:t},(()=>{this.updateSaveButtonState()}))}isDescriptionValid(e){return S.isValuePlainText(e)}updateSaveButtonState(){const e=this.isNameValid(this.state.configName),t=this.isDescriptionValid(this.state.configDescription);this.setState({saveButtonDisabled:!e||!t})}render(){let t,n,i;this.props.configName?(t=(0,c.__)("Rename Config","wds"),n=(0,c.__)("Change your config name to something recognizable.","wds"),i=(0,c.__)("New Config Name","wds")):(t=(0,c.__)("Save Config","wds"),n=(0,c.__)("Save your current Smartcrawl settings configurations. You'll be able to then download and apply it to your other sites with Smartcrawl installed.","wds"),i=(0,c.__)("Config Name","wds"));const s=()=>this.props.onSave(this.state.configName,this.state.configDescription),o=this.state.saveButtonDisabled;return(0,e.createElement)(k,{id:"wds-config-modal",title:t,description:n,onClose:()=>this.props.onClose(),disableCloseButton:this.props.inProgress,small:!0,enterDisabled:o,onEnter:s,focusAfterOpen:"wds-config-name",footer:(0,e.createElement)(r().Fragment,null,(0,e.createElement)("div",{className:"sui-flex-child-right"},(0,e.createElement)(N,{text:(0,c.__)("Cancel","wds"),ghost:!0,disabled:this.props.inProgress,onClick:this.props.onClose})),(0,e.createElement)("div",{className:"sui-actions-right"},(0,e.createElement)(N,{text:(0,c.__)("Save","wds"),color:"blue",disabled:o,onClick:s,loading:this.props.inProgress,icon:"sui-icon-save"})))},(0,e.createElement)("div",{className:v()("sui-form-field",{"sui-form-field-error":!this.state.configNameValid})},(0,e.createElement)("label",{htmlFor:"wds-config-name",className:"sui-label"},i," ",(0,e.createElement)("span",{className:"wds-required-asterisk"},"*")),(0,e.createElement)("input",{id:"wds-config-name",type:"text",onChange:e=>this.handleNameChange(e.target.value),value:this.state.configName,className:"sui-form-control"}),!this.state.configNameValid&&(0,e.createElement)("span",{className:"sui-error-message",role:"alert"},(0,c.__)("Invalid config name. Use only alphanumeric characters (a-z, A-Z, 0-9) and allowed special characters (@.'_-).","wds"))),(0,e.createElement)("div",{className:v()("sui-form-field",{"sui-form-field-error":!this.state.configDescriptionValid})},(0,e.createElement)("label",{htmlFor:"wds-config-description",id:"wds-config-description-label",className:"sui-label"},(0,c.__)("Config Description","wds")),(0,e.createElement)("textarea",{id:"wds-config-description","aria-labelledby":"wds-config-description-label",onChange:e=>this.handleDescriptionChange(e.target.value),className:"sui-form-control",value:this.state.configDescription})))}}g(O,"defaultProps",{configName:"",configDescription:"",inProgress:!1,onClose:()=>!1,onSave:()=>!1});class T extends r().Component{constructor(e){super(e),this.props=e,this.state={applyingConfig:!1,deletingConfig:!1,creatingConfig:!1,updatingConfig:!1,uploadingConfig:!1,requestInProgress:!1,configs:l.get("configs","config")}}syncWithHub(){this.setState({syncing:!0},(()=>{p.sync().then((e=>{this.setConfigs(e.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error syncing your configs with the hub.","wds"))})).finally((()=>{this.setState({syncing:!1})}))}))}render(){const t=this.props.mainComponent;return(0,e.createElement)(r().Fragment,null,(0,e.createElement)(t,{configs:this.state.configs,syncing:this.state.syncing,uploadInProgress:this.state.uploadingConfig,onSave:()=>this.startCreatingConfig(),onUpload:e=>this.uploadConfig(e),onApply:e=>this.startApplyingConfig(e),onUpdate:e=>this.startUpdatingConfig(e),onDownload:e=>this.downloadConfig(e),onDelete:e=>this.startDeletingConfig(e),triggerSync:()=>this.syncWithHub()}),this.maybeShowApplyModal(),this.maybeShowDeleteModal(),this.maybeShowUpdateModal(),this.maybeShowCreateModal())}maybeShowApplyModal(){const t=this.state.applyingConfig;return t&&(0,e.createElement)(E,{configName:this.getConfigName(t),onClose:()=>this.stopApplyingConfig(),onApply:()=>this.applyConfig(),inProgress:t&&this.state.requestInProgress})}startApplyingConfig(e){this.setState({applyingConfig:e})}applyConfig(){this.setState({requestInProgress:!0},(()=>{const e=this.state.applyingConfig;p.applyConfig(e).then((()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been applied successfully."),e)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error applying the config.","wds"))})).finally((()=>{this.stopApplyingConfig()}))}))}stopApplyingConfig(){this.setState({applyingConfig:!1,requestInProgress:!1})}maybeShowDeleteModal(){const t=this.state.deletingConfig;return t&&(0,e.createElement)(C,{configName:this.getConfigName(t),onClose:()=>this.stopDeletingConfig(),onDelete:()=>this.deleteConfig(),inProgress:t&&this.state.requestInProgress})}startDeletingConfig(e){this.setState({deletingConfig:e})}deleteConfig(){this.setState({requestInProgress:!0},(()=>{const e=this.state.deletingConfig;p.deleteConfig(e).then((t=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been deleted successfully."),e),this.setConfigs(t.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error deleting the config.","wds"))})).finally((()=>{this.stopDeletingConfig()}))}))}stopDeletingConfig(){this.setState({deletingConfig:!1,requestInProgress:!1})}downloadConfig(e){const t=this.getConfig(e);if(t&&t.name){const e="smartcrawl-config-"+t.name.replaceAll(" ","-");this.triggerConfigFileDownload(t,e)}}triggerConfigFileDownload(e,t){const n=document.createElement("a"),r=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),i=window.URL.createObjectURL(r);n.href=i,n.download=t,n.click(),window.URL.revokeObjectURL(i)}maybeShowUpdateModal(){const t=this.state.updatingConfig,n=this.getConfig(t);if(n)return t&&(0,e.createElement)(O,{configName:n.name,configDescription:n.description,onClose:()=>this.stopUpdatingConfig(),onSave:(e,n)=>this.updateConfig(t,e,n),inProgress:t&&this.state.requestInProgress})}startUpdatingConfig(e){this.setState({updatingConfig:e})}updateConfig(e,t,n){this.setState({requestInProgress:!0},(()=>{p.updateConfig(e,t,n).then((t=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config has been renamed successfully."),e),this.setConfigs(t.configs)})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error updating the config.","wds"))})).finally((()=>{this.stopUpdatingConfig()}))}))}stopUpdatingConfig(){this.setState({updatingConfig:!1,requestInProgress:!1})}maybeShowCreateModal(){const t=this.state.creatingConfig;return t&&(0,e.createElement)(O,{configName:"",configDescription:"",onClose:()=>this.stopCreatingConfig(),onSave:(e,t)=>this.createConfig(e,t),inProgress:t&&this.state.requestInProgress})}startCreatingConfig(){this.setState({creatingConfig:!0})}createConfig(e,t){this.setState({requestInProgress:!0},(()=>{p.createConfig(e,t).then((e=>{this.setConfigs(e.configs,(()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config saved successfully."),e.config_id)}))})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error creating the config.","wds"))})).finally((()=>{this.stopCreatingConfig()}))}))}stopCreatingConfig(){this.setState({creatingConfig:!1,requestInProgress:!1})}uploadConfig(e){this.setState({uploadingConfig:!0},(()=>{p.uploadConfig(e).then((e=>{this.setConfigs(e.configs,(()=>{this.showSuccessNoticeWithConfigName((0,c.__)("%s config uploaded successfully."),e.config_id)}))})).catch((()=>{this.showErrorNotice((0,c.__)("There was an error uploading the config.","wds"))})).finally((()=>{this.setState({uploadingConfig:!1})}))}))}getConfigName(e){const t=this.getConfig(e);return t?t.name:""}getConfig(e){if(!e)return!1;const t="config-"+e;return!(!this.state.configs||!this.state.configs.hasOwnProperty(t))&&this.state.configs[t]}showSuccessNoticeWithConfigName(e,t){const n=this.getConfigName(t);this.showNotice((0,c.sprintf)(e,"<strong>"+n+"</strong>"),"success",!0)}showSuccessNotice(e){this.showNotice(e,"success")}showErrorNotice(e){this.showNotice(e,"error")}showNotice(e,t="success"){b().closeNotice("wds-config-notice"),b().openNotice("wds-config-notice","<p>"+e+"</p>",{type:t,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[t],dismiss:{show:!0}})}setConfigs(e,t=(()=>!1)){this.setState({configs:e},t)}}function D(){return(D=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}).apply(this,arguments)}class _ extends r().Component{handleFileChange(e){const t=e.target.files[0];this.props.onUpload(t)}render(){return(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,c.__)("Configs","wds")),(0,e.createElement)("div",{className:"sui-actions-right"},(0,e.createElement)("label",{className:v()("sui-button sui-button-ghost",{"sui-button-onload":this.props.uploadInProgress,disabled:this.props.disabled}),htmlFor:"wds-upload-configs-input"},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"})," ",(0,c.__)("Upload","wds")),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("input",{id:"wds-upload-configs-input",type:"file",name:"config_file",className:"sui-hidden",readOnly:"",accept:".json",onChange:e=>this.handleFileChange(e),value:""}),(0,e.createElement)(N,{color:"blue",onClick:()=>this.props.onSave(),disabled:this.props.uploadInProgress||this.props.disabled,text:(0,c.__)("Save config","wds")})))}}g(_,"defaultProps",{uploadInProgress:!1,disabled:!1,onUpload:()=>!1,onSave:()=>!1});class x extends r().Component{render(){const t=this.getIcon(this.props.type);return(0,e.createElement)("div",{className:v()("sui-notice","sui-notice-"+this.props.type)},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},t&&(0,e.createElement)("span",{className:v()("sui-notice-icon sui-md",t),"aria-hidden":"true"}),(0,e.createElement)("p",null,this.props.message))))}getIcon(e){return{warning:"sui-icon-warning-alert",info:"sui-icon-info",success:"sui-icon-check-tick",purple:"sui-icon-info","":"sui-icon-info"}[e]}}g(x,"defaultProps",{type:"warning",message:""});class M extends r().Component{constructor(e){super(e),this.state={open:!1}}toggle(e){const t=e.target.className||"";("BUTTON"!==(e.target.tagName||"")||t.includes("sui-accordion-open-indicator"))&&this.setState({open:!this.state.open})}render(){return(0,e.createElement)("div",{className:v()("sui-accordion-item",this.props.className,{"sui-accordion-item--open":this.state.open})},(0,e.createElement)("div",{className:"sui-accordion-item-header",onClick:e=>this.toggle(e)},this.props.header),this.props.children&&(0,e.createElement)("div",{className:"sui-accordion-item-body"},(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-body"},this.props.children))))}}g(M,"defaultProps",{className:""});class P extends r().Component{render(){return(0,e.createElement)("button",{className:v()({"sui-option-red":this.props.red}),onClick:()=>this.props.onClick(),type:"button"},(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}),this.props.text)}}g(P,"defaultProps",{text:"",icon:"",red:!1,onClick:()=>!1});class I extends r().Component{render(){const t=v()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,c.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))}}g(I,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class V extends r().Component{render(){return(0,e.createElement)(I,{icon:"sui-icon-more",buttons:this.getDropdownButtons()})}getDropdownButtons(){const t=[(0,e.createElement)(P,{onClick:()=>this.props.onApply(),icon:"sui-icon-check",text:(0,c.__)("Apply","wds")}),(0,e.createElement)(P,{onClick:()=>this.props.onDownload(),icon:"sui-icon-download",text:(0,c.__)("Download","wds")})];return this.props.editable&&t.push((0,e.createElement)(P,{onClick:()=>this.props.onUpdate(),icon:"sui-icon-pencil",text:(0,c.__)("Name and Description","wds")})),this.props.removable&&t.push((0,e.createElement)(P,{onClick:()=>this.props.onDelete(),icon:"sui-icon-trash",red:!0,text:(0,c.__)("Delete","wds")})),t}}g(V,"defaultProps",{editable:!0,removable:!0,onApply:()=>!1,onDownload:()=>!1,onUpdate:()=>!1,onDelete:()=>!1});var A=n(9490);class j extends r().Component{formatDateTime(e){const t=1e3*e,n="numeric";return new A.ou.fromMillis(t).setZone(l.get("timezone","config")).toLocaleString({year:n,month:"short",day:n,hour:n,minute:n,hour12:!0})}titleColClass(){let e=9;return this.props.showDescription&&(e-=4),this.props.showDate&&(e-=2),"sui-accordion-col-"+e}render(){const t=l.get("default_icon","config");return(0,e.createElement)(M,{header:(0,e.createElement)(r().Fragment,null,(0,e.createElement)("div",{className:v()("sui-accordion-item-title",this.titleColClass())},(0,e.createElement)("span",{className:"sui-icon-smart-crawl","aria-hidden":"true"}),this.props.name," ",this.props.official&&(0,e.createElement)("img",{src:t,alt:""})),this.props.showDescription&&(0,e.createElement)("div",{className:"wds-config-description sui-accordion-col-4"},this.props.description),this.props.showDate&&(0,e.createElement)("div",{className:"wds-config-timestamp sui-accordion-col-2"},this.props.timestamp&&this.formatDateTime(this.props.timestamp)),(0,e.createElement)("div",{className:"sui-accordion-col-3",style:{justifyContent:"flex-end"}},this.props.showApplyButton&&(0,e.createElement)("button",{type:"button",onClick:this.props.onApply,className:"sui-button sui-button-ghost sui-accordion-item-action wds-config-apply-button"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-check sui-no-margin-right"})," ",(0,c.__)("Apply","wds")),(0,e.createElement)(V,{editable:this.props.editable,removable:this.props.removable,onApply:this.props.onApply,onDownload:this.props.onDownload,onUpdate:this.props.onUpdate,onDelete:this.props.onDelete}),(0,e.createElement)("span",{className:"sui-button-icon sui-accordion-open-indicator sui-no-margin-left"},(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-icon-chevron-down"}),(0,e.createElement)("button",{type:"button",className:"sui-screen-reader-text"},(0,c.sprintf)((0,c.__)("Expand %s","wds"),this.props.name)))))},(0,e.createElement)("div",{className:"wds-config-details"},(0,e.createElement)("div",null,(0,e.createElement)("strong",null,this.props.name),(0,e.createElement)("p",{className:"sui-description"},this.props.description)),(0,e.createElement)("div",null,this.props.editable&&(0,e.createElement)("span",{className:"sui-tooltip","data-tooltip":(0,c.__)("Edit Name and Description","wds")},(0,e.createElement)(N,{icon:"sui-icon-pencil",ghost:!0,onClick:this.props.onUpdate})))),(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("tbody",null,Object.keys(this.props.strings).map((t=>{const n=this.props.strings[t];return(0,e.createElement)("tr",{key:t,className:t},(0,e.createElement)("th",null,this.getLabel(t)),(0,e.createElement)("td",null,n.split("\n").map((function(t,n){return(0,e.createElement)(r().Fragment,{key:n},(0,e.createElement)("span",null,t),(0,e.createElement)("br",null))}))))})))))}getLabel(e){const t={health:(0,c.__)("SEO Health","wds"),onpage:(0,c.__)("Title & Meta","wds"),schema:(0,c.__)("Schema","wds"),social:(0,c.__)("Social","wds"),sitemap:(0,c.__)("Sitemap","wds"),advanced:(0,c.__)("Advanced Tools","wds"),settings:(0,c.__)("Settings","wds")};return t.hasOwnProperty(e)?t[e]:""}}g(j,"defaultProps",{id:"",name:"",description:"",timestamp:"",strings:{},editable:!0,removable:!0,showDescription:!0,showApplyButton:!0,showDate:!0,onApply:()=>!1,onDownload:()=>!1,onUpdate:()=>!1,onDelete:()=>!1});class F extends r().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){return(0,e.createElement)("p",{className:"sui-description"},(0,e.createInterpolateElement)((0,c.__)("Created or updated configs via the Hub? <a>Check again</a>","wds"),{a:(0,e.createElement)("a",{onClick:e=>this.handleClick(e),href:"#"})}))}}g(F,"defaultProps",{onClick:()=>!1});var Z=n(6026),U=n.n(Z);class L{static getPage(e,t,n){const r={};return Object.keys(e).slice((t-1)*n,t*n).forEach((t=>r[t]=e[t])),r}static getPageCount(e,t){const n=Math.ceil(e/t);return n<1?1:n}}class q extends r().Component{handleClick(e,t){e.preventDefault(),this.props.onClick(t)}getPageNumbers(){const e=this.getPageCount(),t=U()(1,e+1);if(e<=7)return t;const n=this.props.currentPage;let r,i;n<=3?(r=n-1,i=7-r-1):e-n<=3?(i=e-n,r=7-i-1):(r=2,i=3);let s=-1;const o=t.map((e=>e<n-r||e>n+i?s:(s--,e)));return Array.from(new Set(o))}render(){const t=this.getPageCount(),n=this.getPageNumbers();return(0,e.createElement)("div",{className:"sui-pagination-wrap"},(0,e.createElement)("span",{className:"sui-pagination-results"},(0,c.sprintf)((0,c.__)("%s results","wds"),this.props.count)),(0,e.createElement)("ul",{className:"sui-pagination"},(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,1),disabled:1===this.props.currentPage},(0,e.createElement)("span",{className:"sui-icon-arrow-skip-back","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to first page","wds")))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,this.props.currentPage-1),disabled:1===this.props.currentPage},(0,e.createElement)("span",{className:"sui-icon-chevron-left","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to previous page","wds")))),n.map((t=>t<0?(0,e.createElement)("li",{key:t},(0,e.createElement)("a",{style:{pointerEvents:"none"}},"...")):(0,e.createElement)("li",{key:t,className:v()({"sui-active":t===this.props.currentPage})},(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,t)},t)))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,this.props.currentPage+1),disabled:this.props.currentPage===t},(0,e.createElement)("span",{className:"sui-icon-chevron-right","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to next page","wds")))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"#",role:"button",onClick:e=>this.handleClick(e,t),disabled:this.props.currentPage===t},(0,e.createElement)("span",{className:"sui-icon-arrow-skip-forward","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,c.__)("Go to last page","wds"))))))}getPageCount(){return L.getPageCount(this.props.count,this.props.perPage)}}g(q,"defaultProps",{count:0,perPage:10,currentPage:1,onClick:()=>!1});class z extends r().Component{constructor(e){super(e),this.configsPerPage=10,this.props.triggerSync(),this.state={currentPageNumber:1}}componentDidUpdate(e){const t=Object.keys(this.getConfigs()).length,n=Object.keys(e.configs||{}).length;t>n?this.setState({currentPageNumber:1}):t<n&&this.setState({currentPageNumber:this.newPageNumberAfterDeletion()})}render(){const t=this.getConfigsPage(),n=l.get("is_member","config"),i=this.getConfigs(),s=Object.keys(i).length>0;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)(_,{uploadInProgress:this.props.uploadInProgress,disabled:this.props.syncing,onSave:()=>this.props.onSave(),onUpload:e=>this.props.onUpload(e)}),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("p",null,(0,c.__)("Use configs to save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks! You can easily apply configs to multiple sites at once via the Hub.","wds")),(0,e.createElement)("div",{id:"wds-configs-list",className:v()({syncing:this.props.syncing})},(0,e.createElement)("div",{id:"wds-configs-list-loader"},(0,e.createElement)("span",{className:"sui-description"},(0,e.createElement)("span",{className:"sui-icon-loader sui-loading sui-md","aria-hidden":"true"})," ",(0,c.__)("Updating the configs list ...","wds"))),!s&&(0,e.createElement)(x,{type:"info",message:(0,c.__)("You don’t have any available config. Save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks!","wds")}),(0,e.createElement)("div",{id:"wds-configs-list-inner"},s&&(0,e.createElement)(r().Fragment,null,this.getPagination(),(0,e.createElement)("div",{className:"sui-row"},(0,e.createElement)("div",{className:"sui-col-md-3"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Config Name","wds")))),(0,e.createElement)("div",{className:"sui-col-md-4"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Description","wds")))),(0,e.createElement)("div",{className:"sui-col-md-5"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,c.__)("Date Created","wds"))))),(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed"},Object.keys(t).map((n=>{const r=t[n];return(0,e.createElement)(j,D({},r,{key:r.id,onApply:()=>this.props.onApply(r.id),onUpdate:()=>this.props.onUpdate(r.id),onDownload:()=>this.props.onDownload(r.id),onDelete:()=>this.props.onDelete(r.id)}))}))),this.getPagination()),n&&(0,e.createElement)(F,{onClick:()=>this.props.triggerSync()}),!n&&(0,e.createElement)(x,{type:"purple",message:(0,e.createInterpolateElement)((0,c.__)("Tired of saving, downloading and uploading your configs across your sites? WPMU DEV members use The Hub to easily apply configs to multiple sites at once... Try it free today!<br/> <a>Try The Hub</a>","wds"),{br:(0,e.createElement)("br",null),a:(0,e.createElement)("a",{target:"_blank",className:"sui-button sui-button-purple",href:"https://wpmudev.com/project/smartcrawl-wordpress-seo/?utm_source=smartcrawl&utm_medium=plugin&utm_campaign=smartcrawl_configs_upsell_notice"},(0,c.__)("Try The Hub","wds"))})})))))}newPageNumberAfterDeletion(){const e=this.getCurrentPageNumber();return e>this.getPageCount()?e-1:e}getPageCount(){const e=Object.keys(this.props.configs).length,t=this.configsPerPage;return L.getPageCount(e,t)}getConfigsPage(){return L.getPage(this.getConfigs(),this.getCurrentPageNumber(),this.configsPerPage)}getPagination(){const t=this.getConfigs(),n=Object.keys(t).length,r=this.configsPerPage,i=this.getCurrentPageNumber();if(n>r)return(0,e.createElement)(q,{count:n,perPage:r,onClick:e=>{this.setState({currentPageNumber:e})},currentPage:i})}getConfigs(){return this.props.configs||{}}getCurrentPageNumber(){return this.state.currentPageNumber}}g(z,"defaultProps",{syncing:!1,uploadInProgress:!1,configs:{},onSave:()=>!1,onUpload:()=>!1,onApply:()=>!1,onUpdate:()=>!1,onDownload:()=>!1,onDelete:()=>!1,triggerSync:()=>!1});class W extends r().Component{render(){return(0,e.createElement)(T,{mainComponent:z})}}class H extends r().Component{render(){const t=this.getConfigs(),n=Object.keys(t).length,r=!!n;return(0,e.createElement)("div",{className:"sui-box"},(0,e.createElement)("div",{className:"sui-box-header"},(0,e.createElement)("h2",{className:"sui-box-title"},(0,e.createElement)("span",{className:"sui-icon-wrench-tool","aria-hidden":"true"})," ",(0,c.__)("Preset Configs","wds")),r&&(0,e.createElement)("div",{className:"sui-actions-left"},(0,e.createElement)("span",{className:"sui-tag"},n))),(0,e.createElement)("div",{className:"sui-box-body"},(0,e.createElement)("div",{id:"wds-configs-list"},(0,e.createElement)("div",{id:"wds-configs-list-inner"},(0,e.createElement)("p",null,(0,c.__)("Use configs to save preset configurations of your settings.","wds")),!r&&(0,e.createElement)(x,{type:"info",message:(0,c.__)("You don’t have any available config. Save preset configurations of Smartcrawl’s settings, then upload and apply them to your other sites in just a few clicks!","wds")}),r&&(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed"},Object.keys(t).map((n=>{const r=t[n];return(0,e.createElement)(j,D({},r,{showDescription:!1,showApplyButton:!1,showDate:!1,onApply:()=>this.props.onApply(r.id),onUpdate:()=>this.props.onUpdate(r.id),onDownload:()=>this.props.onDownload(r.id),onDelete:()=>this.props.onDelete(r.id)}))}))),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"30px"}},(0,e.createElement)(N,{color:"blue",text:(0,c.__)("Save Config","wds"),icon:"sui-icon-save",onClick:()=>this.props.onSave()}),(0,e.createElement)("a",{href:l.get("manage_url","config"),className:"sui-button sui-button-ghost"},(0,e.createElement)("span",{className:"sui-icon-wrench-tool","aria-hidden":"true"}),(0,c.__)("Manage Configs","wds")))))))}getConfigs(){return this.props.configs||{}}}g(H,"defaultProps",{configs:{},onSave:()=>!1,onApply:()=>!1,onUpdate:()=>!1,onDownload:()=>!1,onDelete:()=>!1});class R extends r().Component{render(){return(0,e.createElement)(T,{mainComponent:H})}}u()((()=>{const t=document.getElementById("wds-config-components");t&&(0,i.render)((0,e.createElement)(o,null,(0,e.createElement)(W,null)),t);const n=document.getElementById("wds-config-widget");n&&(0,i.render)((0,e.createElement)(o,null,(0,e.createElement)(R,null)),n)}))}()}();
|
includes/assets/js/build/wds-schema-types.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e={4184:function(e,t){var o;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)){if(o.length){var n=s.apply(null,o);n&&e.push(n)}}else if("object"===r)if(o.toString===Object.prototype.toString)for(var a in o)i.call(o,a)&&o[a]&&e.push(a);else e.push(o.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o)}()},7145:function(e,t){"use strict";function o(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var i="object"==typeof process&&!0;function s(e,t){if(!e){if(i)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=s;var r=Object.prototype.hasOwnProperty,n=Array.prototype.splice,a=Object.prototype.toString;function l(e){return a.call(e).slice(8,-1)}var d=Object.assign||function(e,t){return c(t).forEach((function(o){r.call(t,o)&&(e[o]=t[o])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?d(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?d(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=d({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var o=this,i="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(i)||s(!Array.isArray(i),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),s("object"==typeof i&&null!==i,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(o.commands).join(", ")+"."}));var n=e;return c(i).forEach((function(t){if(r.call(o.commands,t)){var s=e===n;n=o.commands[t](i[t],n,i,e),s&&o.isEquals(n,e)&&(n=e)}else{var a="Map"===l(e)?o.update(e.get(t),i[t]):o.update(e[t],i[t]),d="Map"===l(n)?n.get(t):n[t];o.isEquals(a,d)&&(void 0!==a||r.call(e,t))||(n===e&&(n=u(e)),"Map"===l(n)?n.set(t,a):n[t]=a)}})),n},e}();t.Context=p;var h={$push:function(e,t,o){return _(t,o,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,o){return _(t,o,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,i,r){return function(e,t){s(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+o(e)})),f(t.$splice)}(t,i),e.forEach((function(e){f(e),t===r&&e.length&&(t=u(r)),n.apply(t,e)})),t},$set:function(e,t,o){return function(e){s(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(o),e},$toggle:function(e,t){w(e,"$toggle");var o=e.length?u(t):t;return e.forEach((function(e){o[e]=!t[e]})),o},$unset:function(e,t,o,i){return w(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===i&&(t=u(i)),delete t[e])})),t},$add:function(e,t,o,i){return y(t,"$add"),w(e,"$add"),"Map"===l(t)?e.forEach((function(e){var o=e[0],s=e[1];t===i&&t.get(o)!==s&&(t=u(i)),t.set(o,s)})):e.forEach((function(e){t!==i||t.has(e)||(t=u(i)),t.add(e)})),t},$remove:function(e,t,o,i){return y(t,"$remove"),w(e,"$remove"),e.forEach((function(e){t===i&&t.has(e)&&(t=u(i)),t.delete(e)})),t},$merge:function(e,t,i,r){var n,a;return n=t,s((a=e)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+o(a)})),s(n&&"object"==typeof n,(function(){return"update(): $merge expects a target of type 'object'; got "+o(n)})),c(e).forEach((function(o){e[o]!==t[o]&&(t===r&&(t=u(r)),t[o]=e[o])})),t},$apply:function(e,t){var i;return s("function"==typeof(i=e),(function(){return"update(): expected spec of $apply to be a function; got "+o(i)+"."})),e(t)}},m=new p;function _(e,t,i){s(Array.isArray(e),(function(){return"update(): expected target of "+o(i)+" to be an array; got "+o(e)+"."})),w(t[i],i)}function w(e,t){s(Array.isArray(e),(function(){return"update(): expected spec of "+o(t)+" to be an array; got "+o(e)+". Did you forget to wrap your parameter in an array?"}))}function f(e){s(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+o(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var i=l(e);s("Map"===i||"Set"===i,(function(){return"update(): "+o(t)+" expects a target of type Set or Map; got "+o(i)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=d(t.default,t)},8552:function(e,t,o){var i=o(852)(o(5639),"DataView");e.exports=i},1989:function(e,t,o){var i=o(1789),s=o(401),r=o(7667),n=o(1327),a=o(1866);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},8407:function(e,t,o){var i=o(7040),s=o(4125),r=o(2117),n=o(7518),a=o(4705);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},7071:function(e,t,o){var i=o(852)(o(5639),"Map");e.exports=i},3369:function(e,t,o){var i=o(4785),s=o(1285),r=o(6e3),n=o(9916),a=o(5265);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},3818:function(e,t,o){var i=o(852)(o(5639),"Promise");e.exports=i},8525:function(e,t,o){var i=o(852)(o(5639),"Set");e.exports=i},6384:function(e,t,o){var i=o(8407),s=o(7465),r=o(3779),n=o(7599),a=o(4758),l=o(4309);function d(e){var t=this.__data__=new i(e);this.size=t.size}d.prototype.clear=s,d.prototype.delete=r,d.prototype.get=n,d.prototype.has=a,d.prototype.set=l,e.exports=d},2705:function(e,t,o){var i=o(5639).Symbol;e.exports=i},1149:function(e,t,o){var i=o(5639).Uint8Array;e.exports=i},577:function(e,t,o){var i=o(852)(o(5639),"WeakMap");e.exports=i},6874:function(e){e.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}},7412:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length;++o<i&&!1!==t(e[o],o,e););return e}},4963:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,s=0,r=[];++o<i;){var n=e[o];t(n,o,e)&&(r[s++]=n)}return r}},4636:function(e,t,o){var i=o(2545),s=o(5694),r=o(1469),n=o(4144),a=o(5776),l=o(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=r(e),c=!o&&s(e),u=!o&&!c&&n(e),p=!o&&!c&&!u&&l(e),h=o||c||u||p,m=h?i(e.length,String):[],_=m.length;for(var w in e)!t&&!d.call(e,w)||h&&("length"==w||u&&("offset"==w||"parent"==w)||p&&("buffer"==w||"byteLength"==w||"byteOffset"==w)||a(w,_))||m.push(w);return m}},9932:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,s=Array(i);++o<i;)s[o]=t(e[o],o,e);return s}},2488:function(e){e.exports=function(e,t){for(var o=-1,i=t.length,s=e.length;++o<i;)e[s+o]=t[o];return e}},6556:function(e,t,o){var i=o(9465),s=o(7813);e.exports=function(e,t,o){(void 0!==o&&!s(e[t],o)||void 0===o&&!(t in e))&&i(e,t,o)}},4865:function(e,t,o){var i=o(9465),s=o(7813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var n=e[t];r.call(e,t)&&s(n,o)&&(void 0!==o||t in e)||i(e,t,o)}},8470:function(e,t,o){var i=o(7813);e.exports=function(e,t){for(var o=e.length;o--;)if(i(e[o][0],t))return o;return-1}},4037:function(e,t,o){var i=o(8363),s=o(3674);e.exports=function(e,t){return e&&i(t,s(t),e)}},3886:function(e,t,o){var i=o(8363),s=o(1704);e.exports=function(e,t){return e&&i(t,s(t),e)}},9465:function(e,t,o){var i=o(8777);e.exports=function(e,t,o){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},5990:function(e,t,o){var i=o(6384),s=o(7412),r=o(4865),n=o(4037),a=o(3886),l=o(4626),d=o(278),c=o(8805),u=o(1911),p=o(8234),h=o(6904),m=o(4160),_=o(3824),w=o(9148),f=o(8517),y=o(1469),g=o(4144),b=o(6688),v=o(3218),T=o(2928),S=o(3674),x=o(1704),C="[object Arguments]",E="[object Function]",A="[object Object]",P={};P[C]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[A]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[E]=P["[object WeakMap]"]=!1,e.exports=function e(t,o,O,D,k,N){var R,L=1&o,I=2&o,M=4&o;if(O&&(R=k?O(t,D,k,N):O(t)),void 0!==R)return R;if(!v(t))return t;var B=y(t);if(B){if(R=_(t),!L)return d(t,R)}else{var F=m(t),j=F==E||"[object GeneratorFunction]"==F;if(g(t))return l(t,L);if(F==A||F==C||j&&!k){if(R=I||j?{}:f(t),!L)return I?u(t,a(R,t)):c(t,n(R,t))}else{if(!P[F])return k?t:{};R=w(t,F,L)}}N||(N=new i);var q=N.get(t);if(q)return q;N.set(t,R),T(t)?t.forEach((function(i){R.add(e(i,o,O,i,t,N))})):b(t)&&t.forEach((function(i,s){R.set(s,e(i,o,O,s,t,N))}));var U=B?void 0:(M?I?h:p:I?x:S)(t);return s(U||t,(function(i,s){U&&(i=t[s=i]),r(R,s,e(i,o,O,s,t,N))})),R}},3118:function(e,t,o){var i=o(3218),s=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(s)return s(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();e.exports=r},8483:function(e,t,o){var i=o(5063)();e.exports=i},8866:function(e,t,o){var i=o(2488),s=o(1469);e.exports=function(e,t,o){var r=t(e);return s(e)?r:i(r,o(e))}},4239:function(e,t,o){var i=o(2705),s=o(9607),r=o(2333),n=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?s(e):r(e)}},9454:function(e,t,o){var i=o(4239),s=o(7005);e.exports=function(e){return s(e)&&"[object Arguments]"==i(e)}},5588:function(e,t,o){var i=o(4160),s=o(7005);e.exports=function(e){return s(e)&&"[object Map]"==i(e)}},8458:function(e,t,o){var i=o(3560),s=o(5346),r=o(3218),n=o(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,d=Object.prototype,c=l.toString,u=d.hasOwnProperty,p=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||s(e))&&(i(e)?p:a).test(n(e))}},9221:function(e,t,o){var i=o(4160),s=o(7005);e.exports=function(e){return s(e)&&"[object Set]"==i(e)}},8749:function(e,t,o){var i=o(4239),s=o(1780),r=o(7005),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&s(e.length)&&!!n[i(e)]}},280:function(e,t,o){var i=o(5726),s=o(6916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return s(e);var t=[];for(var o in Object(e))r.call(e,o)&&"constructor"!=o&&t.push(o);return t}},313:function(e,t,o){var i=o(3218),s=o(5726),r=o(3498),n=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=s(e),o=[];for(var a in e)("constructor"!=a||!t&&n.call(e,a))&&o.push(a);return o}},2980:function(e,t,o){var i=o(6384),s=o(6556),r=o(8483),n=o(9783),a=o(3218),l=o(1704),d=o(6390);e.exports=function e(t,o,c,u,p){t!==o&&r(o,(function(r,l){if(p||(p=new i),a(r))n(t,o,l,c,e,u,p);else{var h=u?u(d(t,l),r,l+"",t,o,p):void 0;void 0===h&&(h=r),s(t,l,h)}}),l)}},9783:function(e,t,o){var i=o(6556),s=o(4626),r=o(7133),n=o(278),a=o(8517),l=o(5694),d=o(1469),c=o(9246),u=o(4144),p=o(3560),h=o(3218),m=o(8630),_=o(6719),w=o(6390),f=o(9881);e.exports=function(e,t,o,y,g,b,v){var T=w(e,o),S=w(t,o),x=v.get(S);if(x)i(e,o,x);else{var C=b?b(T,S,o+"",e,t,v):void 0,E=void 0===C;if(E){var A=d(S),P=!A&&u(S),O=!A&&!P&&_(S);C=S,A||P||O?d(T)?C=T:c(T)?C=n(T):P?(E=!1,C=s(S,!0)):O?(E=!1,C=r(S,!0)):C=[]:m(S)||l(S)?(C=T,l(T)?C=f(T):h(T)&&!p(T)||(C=a(S))):E=!1}E&&(v.set(S,C),g(C,S,y,b,v),v.delete(S)),i(e,o,C)}}},5976:function(e,t,o){var i=o(6557),s=o(5357),r=o(61);e.exports=function(e,t){return r(s(e,t,i),e+"")}},6560:function(e,t,o){var i=o(5703),s=o(8777),r=o(6557),n=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=n},2545:function(e){e.exports=function(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}},531:function(e,t,o){var i=o(2705),s=o(9932),r=o(1469),n=o(3448),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return s(t,e)+"";if(n(t))return l?l.call(t):"";var o=t+"";return"0"==o&&1/t==-1/0?"-0":o}},1717:function(e){e.exports=function(e){return function(t){return e(t)}}},4318:function(e,t,o){var i=o(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},4626:function(e,t,o){e=o.nmd(e);var i=o(5639),s=t&&!t.nodeType&&t,r=s&&e&&!e.nodeType&&e,n=r&&r.exports===s?i.Buffer:void 0,a=n?n.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,i=a?a(o):new e.constructor(o);return e.copy(i),i}},7157:function(e,t,o){var i=o(4318);e.exports=function(e,t){var o=t?i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}},3147:function(e){var t=/\w*$/;e.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}},419:function(e,t,o){var i=o(2705),s=i?i.prototype:void 0,r=s?s.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},7133:function(e,t,o){var i=o(4318);e.exports=function(e,t){var o=t?i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var o=-1,i=e.length;for(t||(t=Array(i));++o<i;)t[o]=e[o];return t}},8363:function(e,t,o){var i=o(4865),s=o(9465);e.exports=function(e,t,o,r){var n=!o;o||(o={});for(var a=-1,l=t.length;++a<l;){var d=t[a],c=r?r(o[d],e[d],d,o,e):void 0;void 0===c&&(c=e[d]),n?s(o,d,c):i(o,d,c)}return o}},8805:function(e,t,o){var i=o(8363),s=o(9551);e.exports=function(e,t){return i(e,s(e),t)}},1911:function(e,t,o){var i=o(8363),s=o(1442);e.exports=function(e,t){return i(e,s(e),t)}},4429:function(e,t,o){var i=o(5639)["__core-js_shared__"];e.exports=i},1463:function(e,t,o){var i=o(5976),s=o(6612);e.exports=function(e){return i((function(t,o){var i=-1,r=o.length,n=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(n=e.length>3&&"function"==typeof n?(r--,n):void 0,a&&s(o[0],o[1],a)&&(n=r<3?void 0:n,r=1),t=Object(t);++i<r;){var l=o[i];l&&e(t,l,i,n)}return t}))}},5063:function(e){e.exports=function(e){return function(t,o,i){for(var s=-1,r=Object(t),n=i(t),a=n.length;a--;){var l=n[e?a:++s];if(!1===o(r[l],l,r))break}return t}}},8777:function(e,t,o){var i=o(852),s=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},1957:function(e,t,o){var i="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=i},8234:function(e,t,o){var i=o(8866),s=o(9551),r=o(3674);e.exports=function(e){return i(e,r,s)}},6904:function(e,t,o){var i=o(8866),s=o(1442),r=o(1704);e.exports=function(e){return i(e,r,s)}},5050:function(e,t,o){var i=o(7019);e.exports=function(e,t){var o=e.__data__;return i(t)?o["string"==typeof t?"string":"hash"]:o.map}},852:function(e,t,o){var i=o(8458),s=o(7801);e.exports=function(e,t){var o=s(e,t);return i(o)?o:void 0}},5924:function(e,t,o){var i=o(5569)(Object.getPrototypeOf,Object);e.exports=i},9607:function(e,t,o){var i=o(2705),s=Object.prototype,r=s.hasOwnProperty,n=s.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),o=e[a];try{e[a]=void 0;var i=!0}catch(e){}var s=n.call(e);return i&&(t?e[a]=o:delete e[a]),s}},9551:function(e,t,o){var i=o(4963),s=o(479),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,a=n?function(e){return null==e?[]:(e=Object(e),i(n(e),(function(t){return r.call(e,t)})))}:s;e.exports=a},1442:function(e,t,o){var i=o(2488),s=o(5924),r=o(9551),n=o(479),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=s(e);return t}:n;e.exports=a},4160:function(e,t,o){var i=o(8552),s=o(7071),r=o(3818),n=o(8525),a=o(577),l=o(4239),d=o(346),c="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",_=d(i),w=d(s),f=d(r),y=d(n),g=d(a),b=l;(i&&b(new i(new ArrayBuffer(1)))!=m||s&&b(new s)!=c||r&&b(r.resolve())!=u||n&&b(new n)!=p||a&&b(new a)!=h)&&(b=function(e){var t=l(e),o="[object Object]"==t?e.constructor:void 0,i=o?d(o):"";if(i)switch(i){case _:return m;case w:return c;case f:return u;case y:return p;case g:return h}return t}),e.exports=b},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,o){var i=o(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,o){var i=o(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return s.call(t,e)?t[e]:void 0}},1327:function(e,t,o){var i=o(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:s.call(t,e)}},1866:function(e,t,o){var i=o(4536);e.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var o=e.length,i=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},9148:function(e,t,o){var i=o(4318),s=o(7157),r=o(3147),n=o(419),a=o(7133);e.exports=function(e,t,o){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return s(e,o);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 a(e,o);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return r(e);case"[object Set]":return new l;case"[object Symbol]":return n(e)}}},8517:function(e,t,o){var i=o(3118),s=o(5924),r=o(5726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(s(e))}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var i=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<o}},6612:function(e,t,o){var i=o(7813),s=o(8612),r=o(5776),n=o(3218);e.exports=function(e,t,o){if(!n(o))return!1;var a=typeof t;return!!("number"==a?s(o)&&r(t,o.length):"string"==a&&t in o)&&i(o[t],e)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,o){var i,s=o(4429),r=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,o){var i=o(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=i(t,e);return!(o<0||(o==t.length-1?t.pop():s.call(t,o,1),--this.size,0))}},2117:function(e,t,o){var i=o(8470);e.exports=function(e){var t=this.__data__,o=i(t,e);return o<0?void 0:t[o][1]}},7518:function(e,t,o){var i=o(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:function(e,t,o){var i=o(8470);e.exports=function(e,t){var o=this.__data__,s=i(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}},4785:function(e,t,o){var i=o(1989),s=o(8407),r=o(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||s),string:new i}}},1285:function(e,t,o){var i=o(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,o){var i=o(5050);e.exports=function(e){return i(this,e).get(e)}},9916:function(e,t,o){var i=o(5050);e.exports=function(e){return i(this,e).has(e)}},5265:function(e,t,o){var i=o(5050);e.exports=function(e,t){var o=i(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this}},4536:function(e,t,o){var i=o(852)(Object,"create");e.exports=i},6916:function(e,t,o){var i=o(5569)(Object.keys,Object);e.exports=i},3498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},1167:function(e,t,o){e=o.nmd(e);var i=o(1957),s=t&&!t.nodeType&&t,r=s&&e&&!e.nodeType&&e,n=r&&r.exports===s&&i.process,a=function(){try{return r&&r.require&&r.require("util").types||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=a},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},5357:function(e,t,o){var i=o(6874),s=Math.max;e.exports=function(e,t,o){return t=s(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,a=s(r.length-t,0),l=Array(a);++n<a;)l[n]=r[t+n];n=-1;for(var d=Array(t+1);++n<t;)d[n]=r[n];return d[t]=o(l),i(e,this,d)}}},5639:function(e,t,o){var i=o(1957),s="object"==typeof self&&self&&self.Object===Object&&self,r=i||s||Function("return this")();e.exports=r},6390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:function(e,t,o){var i=o(6560),s=o(1275)(i);e.exports=s},1275:function(e){var t=Date.now;e.exports=function(e){var o=0,i=0;return function(){var s=t(),r=16-(s-i);if(i=s,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},7465:function(e,t,o){var i=o(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,o){var i=o(8407),s=o(7071),r=o(3369);e.exports=function(e,t){var o=this.__data__;if(o instanceof i){var n=o.__data__;if(!s||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new r(n)}return o.set(e,t),this.size=o.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:function(e,t,o){var i=o(5990);e.exports=function(e){return i(e,5)}},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,o){var i=o(9454),s=o(7005),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return s(e)&&n.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,o){var i=o(3560),s=o(1780);e.exports=function(e){return null!=e&&s(e.length)&&!i(e)}},9246:function(e,t,o){var i=o(8612),s=o(7005);e.exports=function(e){return s(e)&&i(e)}},4144:function(e,t,o){e=o.nmd(e);var i=o(5639),s=o(5062),r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||s;e.exports=l},3560:function(e,t,o){var i=o(4239),s=o(3218);e.exports=function(e){if(!s(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:function(e,t,o){var i=o(5588),s=o(1717),r=o(1167),n=r&&r.isMap,a=n?s(n):i;e.exports=a},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8630:function(e,t,o){var i=o(4239),s=o(5924),r=o(7005),n=Function.prototype,a=Object.prototype,l=n.toString,d=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=s(e);if(null===t)return!0;var o=d.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&l.call(o)==c}},2928:function(e,t,o){var i=o(9221),s=o(1717),r=o(1167),n=r&&r.isSet,a=n?s(n):i;e.exports=a},3448:function(e,t,o){var i=o(4239),s=o(7005);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},6719:function(e,t,o){var i=o(8749),s=o(1717),r=o(1167),n=r&&r.isTypedArray,a=n?s(n):i;e.exports=a},3674:function(e,t,o){var i=o(4636),s=o(280),r=o(8612);e.exports=function(e){return r(e)?i(e):s(e)}},1704:function(e,t,o){var i=o(4636),s=o(313),r=o(8612);e.exports=function(e){return r(e)?i(e,!0):s(e)}},2492:function(e,t,o){var i=o(2980),s=o(1463)((function(e,t,o){i(e,t,o)}));e.exports=s},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9881:function(e,t,o){var i=o(8363),s=o(1704);e.exports=function(e){return i(e,s(e))}},9833:function(e,t,o){var i=o(531);e.exports=function(e){return null==e?"":i(e)}},3955:function(e,t,o){var i=o(9833),s=0;e.exports=function(e){var t=++s;return i(e)+t}},9490:function(e,t){"use strict";function o(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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(e){return!1}}function d(e,t,o){return(d=l()?Reflect.construct:function(e,t,o){var i=[null];i.push.apply(i,t);var s=new(Function.bind.apply(e,i));return o&&a(s,o.prototype),s}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return d(e,arguments,n(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a(i,e)})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}function p(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return u(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c(Error)),m=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(h),_=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(h),w=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(h),f=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(h),y=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(h),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(h),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(h),v="numeric",T="short",S="long",x={year:v,month:v,day:v},C={year:v,month:T,day:v},E={year:v,month:T,day:v,weekday:T},A={year:v,month:S,day:v},P={year:v,month:S,day:v,weekday:S},O={hour:v,minute:v},D={hour:v,minute:v,second:v},k={hour:v,minute:v,second:v,timeZoneName:T},N={hour:v,minute:v,second:v,timeZoneName:S},R={hour:v,minute:v,hourCycle:"h23"},L={hour:v,minute:v,second:v,hourCycle:"h23"},I={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:T},M={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:S},B={year:v,month:v,day:v,hour:v,minute:v},F={year:v,month:v,day:v,hour:v,minute:v,second:v},j={year:v,month:T,day:v,hour:v,minute:v},q={year:v,month:T,day:v,hour:v,minute:v,second:v},U={year:v,month:T,day:v,weekday:T,hour:v,minute:v},V={year:v,month:S,day:v,hour:v,minute:v,timeZoneName:T},z={year:v,month:S,day:v,hour:v,minute:v,second:v,timeZoneName:T},G={year:v,month:S,day:v,weekday:S,hour:v,minute:v,timeZoneName:S},H={year:v,month:S,day:v,weekday:S,hour:v,minute:v,second:v,timeZoneName:S};function W(e){return void 0===e}function Z(e){return"number"==typeof e}function Y(e){return"number"==typeof e&&e%1==0}function $(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,t,o){if(0!==e.length)return e.reduce((function(e,i){var s=[t(i),i];return e&&o(e[0],s[0])===e[0]?e:s}),null)[1]}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,o){return Y(e)&&e>=t&&e<=o}function X(e,t){void 0===t&&(t=2);var o=e<0?"-":"",i=o?-1*e:e;return""+o+(i.toString().length<t?("0".repeat(t)+i).slice(-t):i.toString())}function ee(e){return W(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!W(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function oe(e,t,o){void 0===o&&(o=!1);var i=Math.pow(10,t);return(o?Math.trunc:Math.round)(e*i)/i}function ie(e){return e%4==0&&(e%100!=0||e%400==0)}function se(e){return ie(e)?366:365}function re(e,t){var o,i=(o=t-1)-12*Math.floor(o/12)+1;return 2===i?ie(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ne(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ae(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,o=e-1,i=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7;return 4===t||3===i?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,o,i){void 0===i&&(i=null);var r=new Date(e),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(n.timeZone=i);var a=s({timeZoneName:t},n),l=new Intl.DateTimeFormat(o,a).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}function ce(e,t){var o=parseInt(e,10);Number.isNaN(o)&&(o=0);var i=parseInt(t,10)||0;return 60*o+(o<0||Object.is(o,-0)?-i:i)}function ue(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new g("Invalid unit value "+e);return t}function pe(e,t){var o={};for(var i in e)if(J(e,i)){var s=e[i];if(null==s)continue;o[t(i)]=ue(s)}return o}function he(e,t){var o=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return""+s+X(o,2)+":"+X(i,2);case"narrow":return""+s+o+(i>0?":"+i:"");case"techie":return""+s+X(o,2)+X(i,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return function(e,t){return["hour","minute","second","millisecond"].reduce((function(t,o){return t[o]=e[o],t}),{})}(e)}var _e=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,we=["January","February","March","April","May","June","July","August","September","October","November","December"],fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ye=["J","F","M","A","M","J","J","A","S","O","N","D"];function ge(e){switch(e){case"narrow":return[].concat(ye);case"short":return[].concat(fe);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Te=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(ve);case"long":return[].concat(be);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var xe=["AM","PM"],Ce=["Before Christ","Anno Domini"],Ee=["BC","AD"],Ae=["B","A"];function Pe(e){switch(e){case"narrow":return[].concat(Ae);case"short":return[].concat(Ee);case"long":return[].concat(Ce);default:return null}}function Oe(e,t){for(var o,i="",s=p(e);!(o=s()).done;){var r=o.value;r.literal?i+=r.val:i+=t(r.val)}return i}var De={D:x,DD:C,DDD:A,DDDD:P,t:O,tt:D,ttt:k,tttt:N,T:R,TT:L,TTT:I,TTTT:M,f:B,ff:j,fff:V,ffff:G,F:F,FF:q,FFF:z,FFFF:H},ke=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,o){return void 0===o&&(o={}),new e(t,o)},e.parseFormat=function(e){for(var t=null,o="",i=!1,s=[],r=0;r<e.length;r++){var n=e.charAt(r);"'"===n?(o.length>0&&s.push({literal:i,val:o}),t=null,o="",i=!i):i||n===t?o+=n:(o.length>0&&s.push({literal:!1,val:o}),o=n,t=n)}return o.length>0&&s.push({literal:i,val:o}),s},e.macroTokenToFormatOpts=function(e){return De[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,s({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(e,t);var o=s({},this.opts);return t>0&&(o.padTo=t),this.loc.numberFormatter(o).format(e)},t.formatDateTimeFromString=function(t,o){var i=this,s="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,n=function(e,o){return i.loc.extract(t,e,o)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,o){return s?function(e,t){return ge(t)[e.month-1]}(t,e):n(o?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,o){return s?function(e,t){return Se(t)[e.weekday-1]}(t,e):n(o?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},c=function(e){return s?function(e,t){return Pe(t)[e.year<0?0:1]}(t,e):n({era:e},"era")};return Oe(e.parseFormat(o),(function(o){switch(o){case"S":return i.num(t.millisecond);case"u":case"SSS":return i.num(t.millisecond,3);case"s":return i.num(t.second);case"ss":return i.num(t.second,2);case"m":return i.num(t.minute);case"mm":return i.num(t.minute,2);case"h":return i.num(t.hour%12==0?12:t.hour%12);case"hh":return i.num(t.hour%12==0?12:t.hour%12,2);case"H":return i.num(t.hour);case"HH":return i.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:i.opts.allowZ});case"ZZ":return a({format:"short",allowZ:i.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:i.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:i.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:i.loc.locale});case"z":return t.zoneName;case"a":return s?function(e){return xe[e.hour<12?0:1]}(t):n({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?n({day:"numeric"},"day"):i.num(t.day);case"dd":return r?n({day:"2-digit"},"day"):i.num(t.day,2);case"c":return i.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return i.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):i.num(t.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):i.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):i.num(t.month);case"MM":return r?n({month:"2-digit"},"month"):i.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):i.num(t.year);case"yy":return r?n({year:"2-digit"},"year"):i.num(t.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):i.num(t.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):i.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return i.num(t.weekYear.toString().slice(-2),2);case"kkkk":return i.num(t.weekYear,4);case"W":return i.num(t.weekNumber);case"WW":return i.num(t.weekNumber,2);case"o":return i.num(t.ordinal);case"ooo":return i.num(t.ordinal,3);case"q":return i.num(t.quarter);case"qq":return i.num(t.quarter,2);case"X":return i.num(Math.floor(t.ts/1e3));case"x":return i.num(t.ts);default:return function(o){var s=e.macroTokenToFormatOpts(o);return s?i.formatWithSystemDefault(t,s):o}(o)}}))},t.formatDurationFromString=function(t,o){var i,s=this,r=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},n=e.parseFormat(o),a=n.reduce((function(e,t){var o=t.literal,i=t.val;return o?e:e.concat(i)}),[]),l=t.shiftTo.apply(t,a.map(r).filter((function(e){return e})));return Oe(n,(i=l,function(e){var t=r(e);return t?s.num(i.get(t),e.length):e}))},e}(),Ne=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},i(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Le=null,Ie=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var o=t.prototype;return o.offsetName=function(e,t){return de(e,t.format,t.locale)},o.formatOffset=function(e,t){return he(this.offset(e),t)},o.offset=function(e){return-new Date(e).getTimezoneOffset()},o.equals=function(e){return"system"===e.type},i(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Le&&(Le=new t),Le}}]),t}(Re),Me=RegExp("^"+_e.source+"$"),Be={},Fe={year:0,month:1,day:2,hour:3,minute:4,second:5},je={},qe=function(e){function t(o){var i;return(i=e.call(this)||this).zoneName=o,i.valid=t.isValidZone(o),i}r(t,e),t.create=function(e){return je[e]||(je[e]=new t(e)),je[e]},t.resetCache=function(){je={},Be={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Me))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var o=t.prototype;return o.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},o.formatOffset=function(e,t){return he(this.offset(e),t)},o.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var o,i=(o=this.name,Be[o]||(Be[o]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Be[o]),s=i.formatToParts?function(e,t){for(var o=e.formatToParts(t),i=[],s=0;s<o.length;s++){var r=o[s],n=r.type,a=r.value,l=Fe[n];W(l)||(i[l]=parseInt(a,10))}return i}(i,t):function(e,t){var o=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(o),s=i[1],r=i[2];return[i[3],s,r,i[4],i[5],i[6]]}(i,t),r=+t,n=r%1e3;return(ne({year:s[0],month:s[1],day:s[2],hour:s[3],minute:s[4],second:s[5],millisecond:0})-(r-=n>=0?n:1e3+n))/6e4},o.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),Ue=null,Ve=function(e){function t(t){var o;return(o=e.call(this)||this).fixed=t,o}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var o=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(o)return new t(ce(o[1],o[2]))}return null};var o=t.prototype;return o.offsetName=function(){return this.name},o.formatOffset=function(e,t){return he(this.fixed,t)},o.offset=function(){return this.fixed},o.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+he(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Ue&&(Ue=new t(0)),Ue}}]),t}(Re),ze=function(e){function t(t){var o;return(o=e.call(this)||this).zoneName=t,o}r(t,e);var o=t.prototype;return o.offsetName=function(){return null},o.formatOffset=function(){return""},o.offset=function(){return NaN},o.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function Ge(e,t){var o;if(W(e)||null===e)return t;if(e instanceof Re)return e;if("string"==typeof e){var i=e.toLowerCase();return"local"===i||"system"===i?t:"utc"===i||"gmt"===i?Ve.utcInstance:null!=(o=qe.parseGMTOffset(e))?Ve.instance(o):qe.isValidSpecifier(i)?qe.create(e):Ve.parseSpecifier(i)||new ze(e)}return Z(e)?Ve.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new ze(e)}var He,We=function(){return Date.now()},Ze="system",Ye=null,$e=null,Ke=null,Je=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),qe.resetCache()},i(e,null,[{key:"now",get:function(){return We},set:function(e){We=e}},{key:"defaultZone",get:function(){return Ge(Ze,Ie.instance)},set:function(e){Ze=e}},{key:"defaultLocale",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultNumberingSystem",get:function(){return $e},set:function(e){$e=e}},{key:"defaultOutputCalendar",get:function(){return Ke},set:function(e){Ke=e}},{key:"throwOnInvalid",get:function(){return He},set:function(e){He=e}}]),e}(),Qe=["base"],Xe={};function et(e,t){void 0===t&&(t={});var o=JSON.stringify([e,t]),i=Xe[o];return i||(i=new Intl.DateTimeFormat(e,t),Xe[o]=i),i}var tt={},ot={};var it=null;function st(e,t,o,i,s){var r=e.listingMode(o);return"error"===r?null:"en"===r?i(t):s(t)}var rt=function(){function e(e,t,o){if(this.padTo=o.padTo||0,this.floor=o.floor||!1,!t){var i={useGrouping:!1};o.padTo>0&&(i.minimumIntegerDigits=o.padTo),this.inf=function(e,t){void 0===t&&(t={});var o=JSON.stringify([e,t]),i=tt[o];return i||(i=new Intl.NumberFormat(e,t),tt[o]=i),i}(e,i)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return X(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),nt=function(){function e(e,t,o){var i;if(this.opts=o,e.zone.isUniversal){var r=e.offset/60*-1,n=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,a=qe.isValidZone(n);0!==e.offset&&a?(i=n,this.dt=e):(i="UTC",o.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ai.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,i=e.zone.name);var l=s({},this.opts);i&&(l.timeZone=i),this.dtf=et(t,l)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),at=function(){function e(e,t,o){this.opts=s({style:"long"},o),!t&&$()&&(this.rtf=function(e,t){void 0===t&&(t={});var o=t;o.base;var i=function(e,t){if(null==e)return{};var o,i,s={},r=Object.keys(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||(s[o]=e[o]);return s}(o,Qe),s=JSON.stringify([e,i]),r=ot[s];return r||(r=new Intl.RelativeTimeFormat(e,t),ot[s]=r),r}(e,o))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,o,i){void 0===o&&(o="always"),void 0===i&&(i=!1);var s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===o&&r){var n="days"===e;switch(t){case 1:return n?"tomorrow":"next "+s[e][0];case-1:return n?"yesterday":"last "+s[e][0];case 0:return n?"today":"this "+s[e][0]}}var a=Object.is(t,-0)||t<0,l=Math.abs(t),d=1===l,c=s[e],u=i?d?c[1]:c[2]||c[1]:d?s[e][0]:e;return a?l+" "+u+" ago":"in "+l+" "+u}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,o,i){var s=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var o,i=e.substring(0,t);try{o=et(e).resolvedOptions()}catch(e){o=et(i).resolvedOptions()}var s=o;return[i,s.numberingSystem,s.calendar]}(e),r=s[0],n=s[1],a=s[2];this.locale=r,this.numberingSystem=t||n||null,this.outputCalendar=o||a||null,this.intl=function(e,t,o){return o||t?(e+="-u",o&&(e+="-ca-"+o),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,o,i,s){void 0===s&&(s=!1);var r=t||Je.defaultLocale;return new e(r||(s?"en-US":it||(it=(new Intl.DateTimeFormat).resolvedOptions().locale)),o||Je.defaultNumberingSystem,i||Je.defaultOutputCalendar,r)},e.resetCache=function(){it=null,Xe={},tt={},ot={}},e.fromObject=function(t){var o=void 0===t?{}:t,i=o.locale,s=o.numberingSystem,r=o.outputCalendar;return e.create(i,s,r)};var t=e.prototype;return t.listingMode=function(e){var t=this.isEnglish(),o=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&o?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!1}))},t.months=function(e,t,o){var i=this;return void 0===t&&(t=!1),void 0===o&&(o=!0),st(this,e,o,ge,(function(){var o=t?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";return i.monthsCache[s][e]||(i.monthsCache[s][e]=function(e){for(var t=[],o=1;o<=12;o++){var i=ai.utc(2016,o,1);t.push(e(i))}return t}((function(e){return i.extract(e,o,"month")}))),i.monthsCache[s][e]}))},t.weekdays=function(e,t,o){var i=this;return void 0===t&&(t=!1),void 0===o&&(o=!0),st(this,e,o,Se,(function(){var o=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return i.weekdaysCache[s][e]||(i.weekdaysCache[s][e]=function(e){for(var t=[],o=1;o<=7;o++){var i=ai.utc(2016,11,13+o);t.push(e(i))}return t}((function(e){return i.extract(e,o,"weekday")}))),i.weekdaysCache[s][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return xe}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[ai.utc(2016,11,13,9),ai.utc(2016,11,13,19)].map((function(o){return t.extract(o,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var o=this;return void 0===t&&(t=!0),st(this,e,t,Pe,(function(){var t={era:e};return o.eraCache[e]||(o.eraCache[e]=[ai.utc(-40,1,1),ai.utc(2017,1,1)].map((function(e){return o.extract(e,t,"era")}))),o.eraCache[e]}))},t.extract=function(e,t,o){var i=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===o}));return i?i.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new rt(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new nt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function dt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+i+"$")}function ct(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e){return t.reduce((function(t,o){var i=t[0],r=t[1],n=t[2],a=o(e,n),l=a[0],d=a[1],c=a[2];return[s({},i,l),r||d,c]}),[{},null,1]).slice(0,2)}}function ut(e){if(null==e)return[null,null];for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];for(var s=0,r=o;s<r.length;s++){var n=r[s],a=n[0],l=n[1],d=a.exec(e);if(d)return l(d)}return[null,null]}function pt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,o){var i,s={};for(i=0;i<t.length;i++)s[t[i]]=ee(e[o+i]);return[s,null,o+i]}}var ht=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_t=RegExp(""+mt.source+ht.source+"?"),wt=RegExp("(?:T"+_t.source+")?"),ft=pt("weekYear","weekNumber","weekDay"),yt=pt("year","ordinal"),gt=RegExp(mt.source+" ?(?:"+ht.source+"|("+_e.source+"))?"),bt=RegExp("(?: "+gt.source+")?");function vt(e,t,o){var i=e[t];return W(i)?o:ee(i)}function Tt(e,t){return[{year:vt(e,t),month:vt(e,t+1,1),day:vt(e,t+2,1)},null,t+3]}function St(e,t){return[{hours:vt(e,t,0),minutes:vt(e,t+1,0),seconds:vt(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function xt(e,t){var o=!e[t]&&!e[t+1],i=ce(e[t+1],e[t+2]);return[{},o?null:Ve.instance(i),t+3]}function Ct(e,t){return[{},e[t]?qe.create(e[t]):null,t+1]}var Et=RegExp("^T?"+mt.source+"$"),At=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Pt(e){var t=e[0],o=e[1],i=e[2],s=e[3],r=e[4],n=e[5],a=e[6],l=e[7],d=e[8],c="-"===t[0],u=l&&"-"===l[0],p=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&c)?-e:e};return[{years:p(ee(o)),months:p(ee(i)),weeks:p(ee(s)),days:p(ee(r)),hours:p(ee(n)),minutes:p(ee(a)),seconds:p(ee(l),"-0"===l),milliseconds:p(te(d),u)}]}var Ot={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e,t,o,i,s,r,n){var a={year:2===t.length?le(ee(t)):ee(t),month:fe.indexOf(o)+1,day:ee(i),hour:ee(s),minute:ee(r)};return n&&(a.second=ee(n)),e&&(a.weekday=e.length>3?be.indexOf(e)+1:ve.indexOf(e)+1),a}var kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nt(e){var t,o=e[1],i=e[2],s=e[3],r=e[4],n=e[5],a=e[6],l=e[7],d=e[8],c=e[9],u=e[10],p=e[11],h=Dt(o,r,s,i,n,a,l);return t=d?Ot[d]:c?0:ce(u,p),[h,new Ve(t)]}var Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mt(e){var t=e[1],o=e[2],i=e[3];return[Dt(t,e[4],i,o,e[5],e[6],e[7]),Ve.utcInstance]}function Bt(e){var t=e[1],o=e[2],i=e[3],s=e[4],r=e[5],n=e[6];return[Dt(t,e[7],o,i,s,r,n),Ve.utcInstance]}var Ft=dt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),jt=dt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),qt=dt(/(\d{4})-?(\d{3})/,wt),Ut=dt(_t),Vt=ct(Tt,St,xt),zt=ct(ft,St,xt),Gt=ct(yt,St,xt),Ht=ct(St,xt),Wt=ct(St),Zt=dt(/(\d{4})-(\d\d)-(\d\d)/,bt),Yt=dt(gt),$t=ct(Tt,St,xt,Ct),Kt=ct(St,xt,Ct),Jt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qt=s({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Jt),Xt=s({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Jt),eo=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],to=eo.slice(0).reverse();function oo(e,t,o){void 0===o&&(o=!1);var i={values:o?t.values:s({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new so(i)}function io(e,t,o,i,s){var r=e[s][o],n=t[o]/r,a=Math.sign(n)!==Math.sign(i[s])&&0!==i[s]&&Math.abs(n)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(n):Math.trunc(n);i[s]+=a,t[o]-=a*r}var so=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Qt,this.isLuxonDuration=!0}e.fromMillis=function(t,o){return e.fromObject({milliseconds:t},o)},e.fromObject=function(t,o){if(void 0===o&&(o={}),null==t||"object"!=typeof t)throw new g("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:pe(t,e.normalizeUnit),loc:lt.fromObject(o),conversionAccuracy:o.conversionAccuracy})},e.fromISO=function(t,o){var i=function(e){return ut(e,[At,Pt])}(t)[0];return i?e.fromObject(i,o):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,o){var i=function(e){return ut(e,[Et,Wt])}(t)[0];return i?e.fromObject(i,o):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the Duration is invalid");var i=t instanceof Ne?t:new Ne(t,o);if(Je.throwOnInvalid)throw new w(i);return new e({invalid:i})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new y(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var o=s({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?ke.create(this.loc,o).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?s({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=s({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var o=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===o.seconds&&0===o.milliseconds||(i+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===o.milliseconds||(i+=".SSS"));var r=o.toFormat(i);return e.includePrefix&&(r="T"+r),r},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,o=ro(e),i={},s=p(eo);!(t=s()).done;){var r=t.value;(J(o.values,r)||J(this.values,r))&&(i[r]=o.get(r)+this.get(r))}return oo(this,{values:i},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ro(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},o=0,i=Object.keys(this.values);o<i.length;o++){var s=i[o];t[s]=ue(e(this.values[s],s))}return oo(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?oo(this,{values:s({},this.values,pe(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,o=t.locale,i=t.numberingSystem,s=t.conversionAccuracy,r={loc:this.loc.clone({locale:o,numberingSystem:i})};return s&&(r.conversionAccuracy=s),oo(this,r)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){to.reduce((function(o,i){return W(t[i])?o:(o&&io(e,t,o,t,i),i)}),null)}(this.matrix,e),oo(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!this.isValid)return this;if(0===o.length)return this;o=o.map((function(t){return e.normalizeUnit(t)}));for(var s,r,n={},a={},l=this.toObject(),d=p(eo);!(r=d()).done;){var c=r.value;if(o.indexOf(c)>=0){s=c;var u=0;for(var h in a)u+=this.matrix[h][c]*a[h],a[h]=0;Z(l[c])&&(u+=l[c]);var m=Math.trunc(u);for(var _ in n[c]=m,a[c]=u-m,l)eo.indexOf(_)>eo.indexOf(c)&&io(this.matrix,l,_,n,c)}else Z(l[c])&&(a[c]=l[c])}for(var w in a)0!==a[w]&&(n[s]+=w===s?a[w]:a[w]/this.matrix[s][w]);return oo(this,{values:n},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,o=Object.keys(this.values);t<o.length;t++){var i=o[t];e[i]=-this.values[i]}return oo(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,o=p(eo);!(t=o()).done;){var i=t.value;if(s=this.values[i],r=e.values[i],!(void 0===s||0===s?void 0===r||0===r:s===r))return!1}var s,r;return!0},i(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ro(e){if(Z(e))return so.fromMillis(e);if(so.isDuration(e))return e;if("object"==typeof e)return so.fromObject(e);throw new g("Unknown duration argument "+e+" of type "+typeof e)}var no="Invalid Interval";function ao(e,t){return e&&e.isValid?t&&t.isValid?t<e?lo.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:lo.invalid("missing or invalid end"):lo.invalid("missing or invalid start")}var lo=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the Interval is invalid");var i=t instanceof Ne?t:new Ne(t,o);if(Je.throwOnInvalid)throw new _(i);return new e({invalid:i})},e.fromDateTimes=function(t,o){var i=li(t),s=li(o),r=ao(i,s);return null==r?new e({start:i,end:s}):r},e.after=function(t,o){var i=ro(o),s=li(t);return e.fromDateTimes(s,s.plus(i))},e.before=function(t,o){var i=ro(o),s=li(t);return e.fromDateTimes(s.minus(i),s)},e.fromISO=function(t,o){var i=(t||"").split("/",2),s=i[0],r=i[1];if(s&&r){var n,a,l,d;try{a=(n=ai.fromISO(s,o)).isValid}catch(r){a=!1}try{d=(l=ai.fromISO(r,o)).isValid}catch(r){d=!1}if(a&&d)return e.fromDateTimes(n,l);if(a){var c=so.fromISO(r,o);if(c.isValid)return e.after(n,c)}else if(d){var u=so.fromISO(s,o);if(u.isValid)return e.before(l,u)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var o=void 0===t?{}:t,i=o.start,s=o.end;return this.isValid?e.fromDateTimes(i||this.s,s||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];for(var r=i.map(li).filter((function(e){return t.contains(e)})).sort(),n=[],a=this.s,l=0;a<this.e;){var d=r[l]||this.e,c=+d>+this.e?this.e:d;n.push(e.fromDateTimes(a,c)),a=c,l+=1}return n},t.splitBy=function(t){var o=ro(t);if(!this.isValid||!o.isValid||0===o.as("milliseconds"))return[];for(var i,s=this.s,r=1,n=[];s<this.e;){var a=this.start.plus(o.mapUnits((function(e){return e*r})));i=+a>+this.e?this.e:a,n.push(e.fromDateTimes(s,i)),s=i,r+=1}return n},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var o=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return o>=i?null:e.fromDateTimes(o,i)},t.union=function(t){if(!this.isValid)return this;var o=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return e.fromDateTimes(o,i)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var o=e[0],i=e[1];return i?i.overlaps(t)||i.abutsStart(t)?[o,i.union(t)]:[o.concat([i]),t]:[o,t]}),[[],null]),o=t[0],i=t[1];return i&&o.push(i),o},e.xor=function(t){for(var o,i,s=null,r=0,n=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=p((o=Array.prototype).concat.apply(o,a).sort((function(e,t){return e.time-t.time})));!(i=l()).done;){var d=i.value;1===(r+="s"===d.type?1:-1)?s=d.time:(s&&+s!=+d.time&&n.push(e.fromDateTimes(s,d.time)),s=null)}return e.merge(n)},t.difference=function(){for(var t=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return e.xor([this].concat(i)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":no},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):no},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():no},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):no},t.toFormat=function(e,t){var o=(void 0===t?{}:t).separator,i=void 0===o?" – ":o;return this.isValid?""+this.s.toFormat(e)+i+this.e.toFormat(e):no},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):so.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},i(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),co=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Je.defaultZone);var t=ai.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return qe.isValidSpecifier(e)&&qe.isValidZone(e)},e.normalizeZone=function(e){return Ge(e,Je.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj,l=void 0===a?null:a,d=o.outputCalendar,c=void 0===d?"gregory":d;return(l||lt.create(s,n,c)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj,l=void 0===a?null:a,d=o.outputCalendar,c=void 0===d?"gregory":d;return(l||lt.create(s,n,c)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj;return((void 0===a?null:a)||lt.create(s,n,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj;return((void 0===a?null:a)||lt.create(s,n,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,o=void 0===t?null:t;return lt.create(o).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var o=(void 0===t?{}:t).locale,i=void 0===o?null:o;return lt.create(i,null,"gregory").eras(e)},e.features=function(){return{relative:$()}},e}();function uo(e,t){var o=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},i=o(t)-o(e);return Math.floor(so.fromMillis(i).as("days"))}var po={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ho={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mo=po.hanidec.replace(/[\[|\]]/g,"").split("");function _o(e,t){var o=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+po[o||"latn"]+t)}function wo(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var o=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var o=0;o<e.length;o++){var i=e.charCodeAt(o);if(-1!==e[o].search(po.hanidec))t+=mo.indexOf(e[o]);else for(var s in ho){var r=ho[s],n=r[0],a=r[1];i>=n&&i<=a&&(t+=i-n)}}return parseInt(t,10)}return t}(o))}}}var fo="( |"+String.fromCharCode(160)+")",yo=new RegExp(fo,"g");function go(e){return e.replace(/\./g,"\\.?").replace(yo,fo)}function bo(e){return e.replace(/\./g,"").replace(yo," ").toLowerCase()}function vo(e,t){return null===e?null:{regex:RegExp(e.map(go).join("|")),deser:function(o){var i=o[0];return e.findIndex((function(e){return bo(i)===bo(e)}))+t}}}function To(e,t){return{regex:e,deser:function(e){return ce(e[1],e[2])},groups:t}}function So(e){return{regex:e,deser:function(e){return e[0]}}}var xo={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Co=null;function Eo(e,t,o){var i=function(e,t){var o;return(o=Array.prototype).concat.apply(o,e.map((function(e){return function(e,t){if(e.literal)return e;var o=ke.macroTokenToFormatOpts(e.val);if(!o)return e;var i=ke.create(t,o).formatDateTimeParts((Co||(Co=ai.fromMillis(1555555555555)),Co)).map((function(e){return function(e,t,o){var i=e.type,s=e.value;if("literal"===i)return{literal:!0,val:s};var r=o[i],n=xo[i];return"object"==typeof n&&(n=n[r]),n?{literal:!1,val:n}:void 0}(e,0,o)}));return i.includes(void 0)?e:i}(e,t)})))}(ke.parseFormat(o),e),s=i.map((function(t){return o=t,s=_o(i=e),r=_o(i,"{2}"),n=_o(i,"{3}"),a=_o(i,"{4}"),l=_o(i,"{6}"),d=_o(i,"{1,2}"),c=_o(i,"{1,3}"),u=_o(i,"{1,6}"),p=_o(i,"{1,9}"),h=_o(i,"{2,4}"),m=_o(i,"{4,6}"),_=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(w=function(e){if(o.literal)return _(e);switch(e.val){case"G":return vo(i.eras("short",!1),0);case"GG":return vo(i.eras("long",!1),0);case"y":return wo(u);case"yy":return wo(h,le);case"yyyy":return wo(a);case"yyyyy":return wo(m);case"yyyyyy":return wo(l);case"M":return wo(d);case"MM":return wo(r);case"MMM":return vo(i.months("short",!0,!1),1);case"MMMM":return vo(i.months("long",!0,!1),1);case"L":return wo(d);case"LL":return wo(r);case"LLL":return vo(i.months("short",!1,!1),1);case"LLLL":return vo(i.months("long",!1,!1),1);case"d":return wo(d);case"dd":return wo(r);case"o":return wo(c);case"ooo":return wo(n);case"HH":return wo(r);case"H":return wo(d);case"hh":return wo(r);case"h":return wo(d);case"mm":return wo(r);case"m":case"q":return wo(d);case"qq":return wo(r);case"s":return wo(d);case"ss":return wo(r);case"S":return wo(c);case"SSS":return wo(n);case"u":return So(p);case"a":return vo(i.meridiems(),0);case"kkkk":return wo(a);case"kk":return wo(h,le);case"W":return wo(d);case"WW":return wo(r);case"E":case"c":return wo(s);case"EEE":return vo(i.weekdays("short",!1,!1),1);case"EEEE":return vo(i.weekdays("long",!1,!1),1);case"ccc":return vo(i.weekdays("short",!0,!1),1);case"cccc":return vo(i.weekdays("long",!0,!1),1);case"Z":case"ZZ":return To(new RegExp("([+-]"+d.source+")(?::("+r.source+"))?"),2);case"ZZZ":return To(new RegExp("([+-]"+d.source+")("+r.source+")?"),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return _(e)}}(o)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=o,w;var o,i,s,r,n,a,l,d,c,u,p,h,m,_,w})),r=s.find((function(e){return e.invalidReason}));if(r)return{input:t,tokens:i,invalidReason:r.invalidReason};var n=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(s),a=n[0],l=n[1],d=RegExp(a,"i"),c=function(e,t,o){var i=e.match(t);if(i){var s={},r=1;for(var n in o)if(J(o,n)){var a=o[n],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(i.slice(r,r+l))),r+=l}return[i,s]}return[i,{}]}(t,d,l),u=c[0],p=c[1],h=p?function(e){var t;return t=W(e.Z)?W(e.z)?null:qe.create(e.z):new Ve(e.Z),W(e.q)||(e.M=3*(e.q-1)+1),W(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),W(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,o){var i=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(o);return i&&(t[i]=e[o]),t}),{}),t]}(p):[null,null],m=h[0],_=h[1];if(J(p,"a")&&J(p,"H"))throw new f("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:d,rawMatches:u,matches:p,result:m,zone:_}}var Ao=[0,31,59,90,120,151,181,212,243,273,304,334],Po=[0,31,60,91,121,152,182,213,244,274,305,335];function Oo(e,t){return new Ne("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Do(e,t,o){var i=new Date(Date.UTC(e,t-1,o)).getUTCDay();return 0===i?7:i}function ko(e,t,o){return o+(ie(e)?Po:Ao)[t-1]}function No(e,t){var o=ie(e)?Po:Ao,i=o.findIndex((function(e){return e<t}));return{month:i+1,day:t-o[i]}}function Ro(e){var t,o=e.year,i=e.month,r=e.day,n=ko(o,i,r),a=Do(o,i,r),l=Math.floor((n-a+10)/7);return l<1?l=ae(t=o-1):l>ae(o)?(t=o+1,l=1):t=o,s({weekYear:t,weekNumber:l,weekday:a},me(e))}function Lo(e){var t,o=e.weekYear,i=e.weekNumber,r=e.weekday,n=Do(o,1,4),a=se(o),l=7*i+r-n-3;l<1?l+=se(t=o-1):l>a?(t=o+1,l-=se(o)):t=o;var d=No(t,l);return s({year:t,month:d.month,day:d.day},me(e))}function Io(e){var t=e.year;return s({year:t,ordinal:ko(t,e.month,e.day)},me(e))}function Mo(e){var t=e.year,o=No(t,e.ordinal);return s({year:t,month:o.month,day:o.day},me(e))}function Bo(e){var t=Y(e.year),o=Q(e.month,1,12),i=Q(e.day,1,re(e.year,e.month));return t?o?!i&&Oo("day",e.day):Oo("month",e.month):Oo("year",e.year)}function Fo(e){var t=e.hour,o=e.minute,i=e.second,s=e.millisecond,r=Q(t,0,23)||24===t&&0===o&&0===i&&0===s,n=Q(o,0,59),a=Q(i,0,59),l=Q(s,0,999);return r?n?a?!l&&Oo("millisecond",s):Oo("second",i):Oo("minute",o):Oo("hour",t)}var jo="Invalid DateTime",qo=864e13;function Uo(e){return new Ne("unsupported zone",'the zone "'+e.name+'" is not supported')}function Vo(e){return null===e.weekData&&(e.weekData=Ro(e.c)),e.weekData}function zo(e,t){var o={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ai(s({},o,t,{old:o}))}function Go(e,t,o){var i=e-60*t*1e3,s=o.offset(i);if(t===s)return[i,t];i-=60*(s-t)*1e3;var r=o.offset(i);return s===r?[i,s]:[e-60*Math.min(s,r)*1e3,Math.max(s,r)]}function Ho(e,t){var o=new Date(e+=60*t*1e3);return{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}function Wo(e,t,o){return Go(ne(e),t,o)}function Zo(e,t){var o=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),n=s({},e.c,{year:i,month:r,day:Math.min(e.c.day,re(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=so.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Go(ne(n),o,e.zone),d=l[0],c=l[1];return 0!==a&&(d+=a,c=e.zone.offset(d)),{ts:d,o:c}}function Yo(e,t,o,i,r){var n=o.setZone,a=o.zone;if(e&&0!==Object.keys(e).length){var l=t||a,d=ai.fromObject(e,s({},o,{zone:l}));return n?d:d.setZone(a)}return ai.invalid(new Ne("unparsable",'the input "'+r+"\" can't be parsed as "+i))}function $o(e,t,o){return void 0===o&&(o=!0),e.isValid?ke.create(lt.create("en-US"),{allowZ:o,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Ko(e,t){var o=t.suppressSeconds,i=void 0!==o&&o,s=t.suppressMilliseconds,r=void 0!==s&&s,n=t.includeOffset,a=t.includePrefix,l=void 0!==a&&a,d=t.includeZone,c=void 0!==d&&d,u=t.spaceZone,p=void 0!==u&&u,h=t.format,m=void 0===h?"extended":h,_="basic"===m?"HHmm":"HH:mm";i&&0===e.second&&0===e.millisecond||(_+="basic"===m?"ss":":ss",r&&0===e.millisecond||(_+=".SSS")),(c||n)&&p&&(_+=" "),c?_+="z":n&&(_+="basic"===m?"ZZZ":"ZZ");var w=$o(e,_);return l&&(w="T"+w),w}var Jo={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qo={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ei=["year","month","day","hour","minute","second","millisecond"],ti=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oi=["year","ordinal","hour","minute","second","millisecond"];function ii(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new y(e);return t}function si(e,t){var o,i,s=Ge(t.zone,Je.defaultZone),r=lt.fromObject(t),n=Je.now();if(W(e.year))o=n;else{for(var a,l=p(ei);!(a=l()).done;){var d=a.value;W(e[d])&&(e[d]=Jo[d])}var c=Bo(e)||Fo(e);if(c)return ai.invalid(c);var u=Wo(e,s.offset(n),s);o=u[0],i=u[1]}return new ai({ts:o,zone:s,loc:r,o:i})}function ri(e,t,o){var i=!!W(o.round)||o.round,s=function(e,s){return e=oe(e,i||o.calendary?0:2,!0),t.loc.clone(o).relFormatter(o).format(e,s)},r=function(i){return o.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i)};if(o.unit)return s(r(o.unit),o.unit);for(var n,a=p(o.units);!(n=a()).done;){var l=n.value,d=r(l);if(Math.abs(d)>=1)return s(d,l)}return s(e>t?-0:0,o.units[o.units.length-1])}function ni(e){var t,o={};return e.length>0&&"object"==typeof e[e.length-1]?(o=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[o,t]}var ai=function(){function e(e){var t=e.zone||Je.defaultZone,o=e.invalid||(Number.isNaN(e.ts)?new Ne("invalid input"):null)||(t.isValid?null:Uo(t));this.ts=W(e.ts)?Je.now():e.ts;var i=null,s=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var r=[e.old.c,e.old.o];i=r[0],s=r[1]}else{var n=t.offset(this.ts);i=Ho(this.ts,n),i=(o=Number.isNaN(i.year)?new Ne("invalid input"):null)?null:i,s=o?null:n}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=o,this.weekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=ni(arguments),t=e[0],o=e[1],i=o[0],s=o[1],r=o[2],n=o[3],a=o[4],l=o[5],d=o[6];return si({year:i,month:s,day:r,hour:n,minute:a,second:l,millisecond:d},t)},e.utc=function(){var e=ni(arguments),t=e[0],o=e[1],i=o[0],s=o[1],r=o[2],n=o[3],a=o[4],l=o[5],d=o[6];return t.zone=Ve.utcInstance,si({year:i,month:s,day:r,hour:n,minute:a,second:l,millisecond:d},t)},e.fromJSDate=function(t,o){void 0===o&&(o={});var i,s=(i=t,"[object Date]"===Object.prototype.toString.call(i)?t.valueOf():NaN);if(Number.isNaN(s))return e.invalid("invalid input");var r=Ge(o.zone,Je.defaultZone);return r.isValid?new e({ts:s,zone:r,loc:lt.fromObject(o)}):e.invalid(Uo(r))},e.fromMillis=function(t,o){if(void 0===o&&(o={}),Z(t))return t<-qo||t>qo?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ge(o.zone,Je.defaultZone),loc:lt.fromObject(o)});throw new g("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,o){if(void 0===o&&(o={}),Z(t))return new e({ts:1e3*t,zone:Ge(o.zone,Je.defaultZone),loc:lt.fromObject(o)});throw new g("fromSeconds requires a numerical input")},e.fromObject=function(t,o){void 0===o&&(o={}),t=t||{};var i=Ge(o.zone,Je.defaultZone);if(!i.isValid)return e.invalid(Uo(i));var s=Je.now(),r=i.offset(s),n=pe(t,ii),a=!W(n.ordinal),l=!W(n.year),d=!W(n.month)||!W(n.day),c=l||d,u=n.weekYear||n.weekNumber,h=lt.fromObject(o);if((c||a)&&u)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&a)throw new f("Can't mix ordinal dates with month/day");var m,_,w=u||n.weekday&&!c,y=Ho(s,r);w?(m=ti,_=Qo,y=Ro(y)):a?(m=oi,_=Xo,y=Io(y)):(m=ei,_=Jo);for(var g,b=!1,v=p(m);!(g=v()).done;){var T=g.value;W(n[T])?n[T]=b?_[T]:y[T]:b=!0}var S=(w?function(e){var t=Y(e.weekYear),o=Q(e.weekNumber,1,ae(e.weekYear)),i=Q(e.weekday,1,7);return t?o?!i&&Oo("weekday",e.weekday):Oo("week",e.week):Oo("weekYear",e.weekYear)}(n):a?function(e){var t=Y(e.year),o=Q(e.ordinal,1,se(e.year));return t?!o&&Oo("ordinal",e.ordinal):Oo("year",e.year)}(n):Bo(n))||Fo(n);if(S)return e.invalid(S);var x=Wo(w?Lo(n):a?Mo(n):n,r,i),C=new e({ts:x[0],zone:i,o:x[1],loc:h});return n.weekday&&c&&t.weekday!==C.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+n.weekday+" and a date of "+C.toISO()):C},e.fromISO=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[Ft,Vt],[jt,zt],[qt,Gt],[Ut,Ht])}(e);return Yo(o[0],o[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var o=function(e){return ut(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[kt,Nt])}(e);return Yo(o[0],o[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[Rt,Mt],[Lt,Mt],[It,Bt])}(e);return Yo(o[0],o[1],t,"HTTP",t)},e.fromFormat=function(t,o,i){if(void 0===i&&(i={}),W(t)||W(o))throw new g("fromFormat requires an input string and a format");var s=i,r=s.locale,n=void 0===r?null:r,a=s.numberingSystem,l=void 0===a?null:a,d=function(e,t,o){var i=Eo(e,t,o);return[i.result,i.zone,i.invalidReason]}(lt.fromOpts({locale:n,numberingSystem:l,defaultToEN:!0}),t,o),c=d[0],u=d[1],p=d[2];return p?e.invalid(p):Yo(c,u,i,"format "+o,t)},e.fromString=function(t,o,i){return void 0===i&&(i={}),e.fromFormat(t,o,i)},e.fromSQL=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[Zt,$t],[Yt,Kt])}(e);return Yo(o[0],o[1],t,"SQL",e)},e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the DateTime is invalid");var i=t instanceof Ne?t:new Ne(t,o);if(Je.throwOnInvalid)throw new m(i);return new e({invalid:i})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=ke.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Ve.instance(e),t)},t.toLocal=function(){return this.setZone(Je.defaultZone)},t.setZone=function(t,o){var i=void 0===o?{}:o,s=i.keepLocalTime,r=void 0!==s&&s,n=i.keepCalendarTime,a=void 0!==n&&n;if((t=Ge(t,Je.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(r||a){var d=t.offset(this.ts);l=Wo(this.toObject(),d,t)[0]}return zo(this,{ts:l,zone:t})}return e.invalid(Uo(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,o=t.locale,i=t.numberingSystem,s=t.outputCalendar;return zo(this,{loc:this.loc.clone({locale:o,numberingSystem:i,outputCalendar:s})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,o=pe(e,ii),i=!W(o.weekYear)||!W(o.weekNumber)||!W(o.weekday),r=!W(o.ordinal),n=!W(o.year),a=!W(o.month)||!W(o.day),l=n||a,d=o.weekYear||o.weekNumber;if((l||r)&&d)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&r)throw new f("Can't mix ordinal dates with month/day");i?t=Lo(s({},Ro(this.c),o)):W(o.ordinal)?(t=s({},this.toObject(),o),W(o.day)&&(t.day=Math.min(re(t.year,t.month),t.day))):t=Mo(s({},Io(this.c),o));var c=Wo(t,this.o,this.zone);return zo(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?zo(this,Zo(this,ro(e))):this},t.minus=function(e){return this.isValid?zo(this,Zo(this,ro(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},o=so.normalizeUnit(e);switch(o){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===o&&(t.weekday=1),"quarters"===o){var i=Math.ceil(this.month/3);t.month=3*(i-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?ke.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):jo},t.toLocaleString=function(e,t){return void 0===e&&(e=x),void 0===t&&(t={}),this.isValid?ke.create(this.loc.clone(t),e).formatDateTime(this):jo},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?ke.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,o="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(o="+"+o),$o(this,o)},t.toISOWeekDate=function(){return $o(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,o=t.suppressMilliseconds,i=void 0!==o&&o,s=t.suppressSeconds,r=void 0!==s&&s,n=t.includeOffset,a=void 0===n||n,l=t.includePrefix,d=void 0!==l&&l,c=t.format;return Ko(this,{suppressSeconds:r,suppressMilliseconds:i,includeOffset:a,includePrefix:d,format:void 0===c?"extended":c})},t.toRFC2822=function(){return $o(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return $o(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return $o(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,o=t.includeOffset,i=void 0===o||o,s=t.includeZone;return Ko(this,{includeOffset:i,includeZone:void 0!==s&&s,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():jo},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=s({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,o){if(void 0===t&&(t="milliseconds"),void 0===o&&(o={}),!this.isValid||!e.isValid)return so.invalid("created by diffing an invalid DateTime");var i,r=s({locale:this.locale,numberingSystem:this.numberingSystem},o),n=(i=t,Array.isArray(i)?i:[i]).map(so.normalizeUnit),a=e.valueOf()>this.valueOf(),l=function(e,t,o,i){var s,r=function(e,t,o){for(var i,s,r={},n=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var o=uo(e,t);return(o-o%7)/7}],["days",uo]];n<a.length;n++){var l=a[n],d=l[0],c=l[1];if(o.indexOf(d)>=0){var u;i=d;var p,h=c(e,t);(s=e.plus(((u={})[d]=h,u)))>t?(e=e.plus(((p={})[d]=h-1,p)),h-=1):e=s,r[d]=h}}return[e,r,s,i]}(e,t,o),n=r[0],a=r[1],l=r[2],d=r[3],c=t-n,u=o.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===u.length&&(l<t&&(l=n.plus(((s={})[d]=1,s))),l!==n&&(a[d]=(a[d]||0)+c/(l-n)));var p,h=so.fromObject(a,i);return u.length>0?(p=so.fromMillis(c,i)).shiftTo.apply(p,u).plus(h):h}(a?this:e,a?e:this,n,r);return a?l.negate():l},t.diffNow=function(t,o){return void 0===t&&(t="milliseconds"),void 0===o&&(o={}),this.diff(e.now(),t,o)},t.until=function(e){return this.isValid?lo.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t)<=o&&o<=i.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var o=t.base||e.fromObject({},{zone:this.zone}),i=t.padding?this<o?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],n=t.unit;return Array.isArray(t.unit)&&(r=t.unit,n=void 0),ri(o,this.plus(i),s({},t,{numeric:"always",units:r,unit:n}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ri(t.base||e.fromObject({},{zone:this.zone}),this,s({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!o.every(e.isDateTime))throw new g("min requires all arguments be DateTimes");return K(o,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!o.every(e.isDateTime))throw new g("max requires all arguments be DateTimes");return K(o,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,o){void 0===o&&(o={});var i=o,s=i.locale,r=void 0===s?null:s,n=i.numberingSystem,a=void 0===n?null:n;return Eo(lt.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,o,i){return void 0===i&&(i={}),e.fromFormatExplain(t,o,i)},i(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Vo(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Vo(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Vo(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Io(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?co.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?co.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?co.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?co.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return re(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ae(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return C}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return E}},{key:"DATE_FULL",get:function(){return A}},{key:"DATE_HUGE",get:function(){return P}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return D}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return k}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return N}},{key:"TIME_24_SIMPLE",get:function(){return R}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return M}},{key:"DATETIME_SHORT",get:function(){return B}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return j}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return U}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return G}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),e}();function li(e){if(ai.isDateTime(e))return e;if(e&&e.valueOf&&Z(e.valueOf()))return ai.fromJSDate(e);if(e&&"object"==typeof e)return ai.fromObject(e);throw new g("Unknown datetime argument: "+e+", of type "+typeof e)}t.nL=so}},t={};function o(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,o),r.loaded=!0,r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=window.wp.element,t=window.React,i=o.n(t),s=window.ReactDOM;function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var n=window.wp.i18n,a=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let o=window["_wds_"+t]||{};return e.forEach((e=>{o=o&&o.hasOwnProperty(e)?o[e]:""})),o}static get_bool(e,t="general"){return!!this.get(e,t)}};function l(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var d=jQuery,c=o.n(d);class u extends i().Component{constructor(e){super(e),this.props=e,this.state={loadingText:!1},this.selectElement=i().createRef(),this.selectElementContainer=i().createRef()}componentDidMount(){const e=c()(this.selectElement.current);e.addClass(this.props.small?"sui-select sui-select-sm":"sui-select").SUIselect2(this.getSelect2Args()),this.includeSelectedValueAsDynamicOption(),e.on("change",(e=>this.handleChange(e)))}includeSelectedValueAsDynamicOption(){this.props.selectedValue&&this.noOptionsAvailable()&&(this.props.tagging?Array.isArray(this.props.selectedValue)?this.props.selectedValue.forEach((e=>{this.addOption(e,e,!0)})):this.addOption(this.props.selectedValue,this.props.selectedValue,!0):this.props.loadTextAjaxUrl&&this.loadTextFromRemote())}loadTextFromRemote(){this.state.loadingText||(this.setState({loadingText:!0}),c().get(this.props.loadTextAjaxUrl,{id:this.props.selectedValue}).done((e=>{e&&e.results&&e.results.length&&e.results.forEach((e=>{this.addOption(e.id,e.text,!0)})),this.setState({loadingText:!1})})))}addOption(e,t,o){let i=new Option(t,e,!1,o);c()(this.selectElement.current).append(i).trigger("change")}noOptionsAvailable(){return!Object.keys(this.props.options).length}componentWillUnmount(){c()(this.selectElement.current).off().SUIselect2("destroy")}getSelect2Args(){let e={dropdownParent:c()(this.selectElementContainer.current),dropdownCssClass:"sui-select-dropdown",minimumResultsForSearch:this.props.minimumResultsForSearch,multiple:this.props.multiple,tagging:this.props.tagging};return this.props.placeholder&&(e.placeholder=this.props.placeholder),this.props.ajaxUrl&&(e.ajax={url:this.props.ajaxUrl},e.minimumInputLength=this.props.minimumInputLength),this.props.templateResult&&(e.templateResult=this.props.templateResult),this.props.templateSelection&&(e.templateSelection=this.props.templateSelection),this.props.ajaxUrl&&this.props.tagging&&(e.ajax.processResults=(e,t)=>e.results&&!e.results.length?{results:[{id:t.term,text:t.term}]}:e),e}handleChange(e){let t=e.target.value;this.props.multiple&&(t=Array.from(e.target.selectedOptions,(e=>e.value))),this.props.onSelect(t)}isOptGroup(e){return"object"==typeof e&&e.label&&e.options}printOptions(t){return Object.keys(t).map((o=>{const i=t[o];return this.isOptGroup(i)?(0,e.createElement)("optgroup",{key:o,label:i.label},this.printOptions(i.options)):(0,e.createElement)("option",{key:o,value:o},i)}))}render(){const t=this.props.options;let o;return o=Object.keys(t).length?this.printOptions(t):(0,e.createElement)("option",null),(0,e.createElement)("div",{ref:this.selectElementContainer},(0,e.createElement)("select",{disabled:this.state.loadingText,value:this.props.selectedValue,onChange:()=>!0,ref:this.selectElement,multiple:this.props.multiple},o))}}l(u,"defaultProps",{small:!1,tagging:!1,placeholder:"",ajaxUrl:"",loadTextAjaxUrl:"",selectedValue:"",minimumResultsForSearch:10,minimumInputLength:3,multiple:!1,options:{},templateResult:!1,templateSelection:!1,onSelect:()=>!1});class p extends i().Component{constructor(e){super(e),this.props=e}handleChange(e){this.props.onChange(e.target.checked?"=":"!=")}render(){return(0,e.createElement)("div",{className:"wds-schema-type-condition-operator"},(0,e.createElement)("div",{className:"wds-comparison-operator sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"200px"},"data-tooltip":(0,n.__)("Switch your condition rule between equal or unequal.","wds")},(0,e.createElement)("label",null,(0,e.createElement)("input",{checked:"="===this.props.operator,onChange:e=>this.handleChange(e),type:"checkbox"}),(0,e.createElement)("span",{className:"wds-equals"},"="),(0,e.createElement)("span",{className:"wds-not-equals"},"≠"))))}}class h extends i().Component{constructor(e){super(e),this.props=e}render(){const t=this.props.lhs,o=this.props.operator,i=this.props.rhs,s=this.getLhsSelectOptions(),a=this.getRhsSelectProps(t);return(0,e.createElement)("div",{className:"wds-schema-type-condition"},(0,e.createElement)("div",{className:"wds-schema-type-condition-lhs"},(0,e.createElement)(u,{options:s,selectedValue:t,minimumResultsForSearch:"-1",templateResult:e=>this.addLhsOptionMarkup(e),templateSelection:e=>this.addLhsOptionMarkup(e),onSelect:e=>this.handleLhsChange(e)})),this.objectNotEmpty(a)&&(0,e.createElement)(p,{operator:o,onChange:e=>this.handleOperatorChange(e)}),this.objectNotEmpty(a)&&(0,e.createElement)("div",{className:"wds-schema-type-condition-rhs",key:`${t}-options`},(0,e.createElement)(u,r({},a,{selectedValue:i,onSelect:e=>this.handleRhsChange(e)}))),(0,e.createElement)("div",{className:"wds-schema-type-condition-and"},(0,e.createElement)("button",{role:"button",onClick:e=>this.handleAdd(e),className:"sui-button sui-button-ghost sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"200px;"},"data-tooltip":(0,n.__)("Add a new rule conditioning the previous one.","wds")},(0,n.__)("AND","wds"))),!this.props.disableDelete&&(0,e.createElement)("span",{className:"wds-schema-type-condition-close",onClick:e=>this.handleDelete(e)},(0,e.createElement)("span",{className:"sui-icon-cross-close","aria-hidden":"true"})))}addLhsOptionMarkup(e){if(!e.id)return e.text;const t=this.getTaxonomies(),o=this.getPostTypes();return t&&t.hasOwnProperty(e.id)||o&&o.hasOwnProperty(e.id)?c()("<span>"+e.text+' <span class="sui-tag sui-tag-sm sui-tag-disabled">'+e.id+"</span></span>"):e.text}getRhsSelectProps(e){const t={},o=this.getPostTypes();this.objectNotEmpty(o)&&Object.keys(o).forEach((e=>{t[e]=this.searchSelectProps(sprintf((0,n.__)("Search for %s","wds"),o[e]),e,"wds-search-post")}));const i=this.getTaxonomies();if(this.objectNotEmpty(i)&&Object.keys(i).forEach((e=>{t[e]=this.searchSelectProps(sprintf((0,n.__)("Search for %s","wds"),i[e]),e,"wds-search-schema-term")})),t.hasOwnProperty(e))return t[e];let s=this.getRhsSelectOptions(e);return s?{options:s}:{}}searchSelectProps(e,t,o){let i=a.get("ajax_url","schema_types"),s=new URLSearchParams;s.append("action",o),s.append("type",t);const r={placeholder:e,ajaxUrl:i+"?"+s.toString(),options:{}};return s.append("request_type","text"),r.loadTextAjaxUrl=i+"?"+s.toString(),r}getRhsSelectOptions(e){const t={post_type:this.getPostTypes(),author_role:this.getUserRoles(),post_format:this.getPostFormats(),page_template:this.getPageTemplates(),product_type:{WC_Product_Variable:(0,n.__)("Variable Product","wds"),WC_Product_Simple:(0,n.__)("Simple Product","wds"),WC_Product_Grouped:(0,n.__)("Grouped Product","wds"),WC_Product_External:(0,n.__)("External Product","wds")}};return!!t.hasOwnProperty(e)&&t[e]}getLhsSelectOptions(){const e={post_type:(0,n.__)("Post Type","wds"),show_globally:(0,n.__)("Show Globally","wds"),homepage:(0,n.__)("Homepage","wds"),author_role:(0,n.__)("Post Author Role","wds")};let t=this.getPostFormats();this.objectNotEmpty(t)&&(e.post_format=(0,n.__)("Post Format","wds"));let o=this.getPageTemplates();this.objectNotEmpty(o)&&(e.page_template=(0,n.__)("Page Template","wds")),this.isWooCommerceActive()&&(e.product_type=(0,n.__)("Product Type","wds"));const i=this.getPostTypeTaxonomies();return this.objectNotEmpty(i)&&Object.keys(i).forEach((t=>{e[t]=i[t]})),e}isWooCommerceActive(){return!!a.get("woocommerce","schema_types")}getUserRoles(){return a.get("user_roles","schema_types")||{}}getPostTypes(){return a.get("post_types","schema_types")||{}}getPostTypeTaxonomies(){return a.get("post_type_taxonomies","schema_types")||{}}getTaxonomies(){return a.get("taxonomies","schema_types")||{}}getPageTemplates(){return a.get("page_templates","schema_types")||{}}getPostFormats(){return a.get("post_formats","schema_types")||{}}objectLength(e){return Object.keys(e).length}objectNotEmpty(e){return!!this.objectLength(e)}handleLhsChange(e){let t="";const o=this.getRhsSelectOptions(e);o&&(t=Object.keys(o).shift()),this.props.onChange(this.props.id,e,this.props.operator,t)}handleOperatorChange(e){this.props.onChange(this.props.id,this.props.lhs,e,this.props.rhs)}handleRhsChange(e){this.props.onChange(this.props.id,this.props.lhs,this.props.operator,e)}handleAdd(e){e.preventDefault(),this.props.onAdd(this.props.id)}handleDelete(){this.props.onDelete(this.props.id)}}var m=o(7145),_=o.n(m),w=window.lodash,f=wp,y=o.n(f),g=o(4184),b=o.n(g);class v extends i().Component{constructor(e){super(e),this.props=e,this.state={mediaItem:!1}}componentDidMount(){if(!this.props.value)return void this.setState({mediaItem:!1});const e=y().media.attachment(this.props.value);e.get&&e.get("url")?this.setState({mediaItem:e}):e.fetch().then((()=>{this.setState({mediaItem:e})}))}removeFile(e){e.preventDefault(),this.setState({mediaItem:!1}),this.props.onChange("")}openMediaLibrary(e){e.preventDefault();const t=new(y().media)({multiple:!1,library:{type:"image"}});t.on("select",(()=>{const e=t.state().get("selection");if(!e.length)return!1;const o=e.shift();this.props.onChange(o.get("id")),this.setState({mediaItem:o})})),t.open()}render(){const t=this.state.mediaItem,o=b()({"sui-upload":!0,"sui-has_file":t}),i=t?t.get("url"):"",s=t?t.get("filename"):"";return(0,e.createElement)("div",{className:o},(0,e.createElement)("div",{className:"sui-upload-image","aria-hidden":"true"},(0,e.createElement)("div",{className:"sui-image-mask"}),(0,e.createElement)("div",{role:"button",className:"sui-image-preview",style:{backgroundImage:"url('"+i+"')"}})),(0,e.createElement)("button",{onClick:e=>this.openMediaLibrary(e),className:"sui-upload-button"},(0,e.createElement)("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"})," ",(0,n.__)("Upload file","wds")),(0,e.createElement)("div",{className:"sui-upload-file"},(0,e.createElement)("span",null,s),(0,e.createElement)("button",{onClick:e=>this.removeFile(e),"aria-label":(0,n.__)("Remove file","wds")},(0,e.createElement)("span",{className:"sui-icon-close","aria-hidden":"true"}))))}}class T extends i().Component{constructor(e){super(e),this.props=e}handleFocus(e){this.adjustElementHeight(e.target)}handleChange(e){const t=e.target;this.adjustElementHeight(t),this.props.onChange(t.value)}adjustElementHeight(e){e.style.height=0;const t=e.scrollHeight;e.style.height=(t<30?30:t)+"px"}render(){return(0,e.createElement)("textarea",{placeholder:this.props.placeholder,value:this.props.value,onFocus:e=>this.handleFocus(e),onChange:e=>this.handleChange(e)})}}l(T,"defaultProps",{placeholder:"",value:"",onChange:()=>!1});class S extends i().Component{constructor(e){super(e),this.pickerElement=i().createRef()}componentDidMount(){c()(this.pickerElement.current).datepicker({beforeShow:()=>{c()("#ui-datepicker-div").addClass("sui-calendar")},onSelect:e=>{this.props.onChange(e)},dateFormat:this.props.format})}componentWillUnmount(){c()(this.pickerElement.current).datepicker("destroy")}render(){return(0,e.createElement)("div",{className:"sui-date"},(0,e.createElement)("input",{type:"text",placeholder:this.props.placeholder,className:"sui-form-control",ref:this.pickerElement,onChange:()=>!0,value:this.props.value}),(0,e.createElement)("span",{className:"sui-icon-calendar","aria-hidden":"true"}))}}l(S,"defaultProps",{placeholder:(0,n.__)("Select a date","wds"),format:"yy-mm-dd",value:"",onChange:()=>!1});var x={DateTime:{id:"DateTime",sources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_date:(0,n.__)("Post Date","wds"),post_date_gmt:(0,n.__)("Post Date GMT","wds"),post_modified:(0,n.__)("Post Modified","wds"),post_modified_gmt:(0,n.__)("Post Modified GMT","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},datetime:{label:(0,n.__)("Custom Date","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}},Email:{id:"Email",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_email:(0,n.__)("Email","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_admin_email:(0,n.__)("Site Admin Email","wds")}},custom_text:{label:(0,n.__)("Custom Email","wds")}}},ImageObject:{id:"ImageObject",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_gravatar:(0,n.__)("Gravatar","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_thumbnail:(0,n.__)("Featured Image","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_logo:(0,n.__)("Organization Logo","wds")}},image:{label:(0,n.__)("Custom Image","wds")}}},ImageURL:{id:"ImageURL",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_gravatar_url:(0,n.__)("Gravatar URL","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_thumbnail_url:(0,n.__)("Featured Image URL","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_logo_url:(0,n.__)("Organization Logo URL","wds")}},image_url:{label:(0,n.__)("Custom Image URL","wds")},custom_text:{label:(0,n.__)("Custom URL","wds")}}},Phone:{id:"Phone",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_phone_number:(0,n.__)("Organization Phone Number","wds")}},custom_text:{label:(0,n.__)("Custom Phone","wds")}}},Text:{id:"Text",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}},TextFull:{id:"TextFull",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_full_name:(0,n.__)("Full Name","wds"),author_first_name:(0,n.__)("First Name","wds"),author_last_name:(0,n.__)("Last Name","wds"),author_description:(0,n.__)("Description","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_title:(0,n.__)("Post Title","wds"),post_content:(0,n.__)("Post Content","wds"),post_excerpt:(0,n.__)("Post Excerpt","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_name:(0,n.__)("Organization Name","wds"),organization_description:(0,n.__)("Organization Description","wds")}},seo_meta:{label:(0,n.__)("SEO Meta","wds"),values:{seo_title:(0,n.__)("SEO Title","wds"),seo_description:(0,n.__)("SEO Description","wds")}},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_name:(0,n.__)("Site Name","wds"),site_description:(0,n.__)("Site Description","wds")}},custom_text:{label:(0,n.__)("Custom Text","wds")}}},URL:{id:"URL",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_url:(0,n.__)("Profile URL","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_permalink:(0,n.__)("Post Permalink","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_url:(0,n.__)("Site URL","wds")}},custom_text:{label:(0,n.__)("Custom URL","wds")}}},Array:{id:"Array",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")}}},Number:{id:"Number",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},number:{label:(0,n.__)("Custom Number","wds")}}},Duration:{id:"Duration",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},duration:{label:(0,n.__)("Custom Duration","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}}},C=o(9490);class E extends i().Component{constructor(e){super(e)}handleValueChange(e,t){const o=this.props.value?C.nL.fromISO(this.props.value):new C.nL({values:{}});t<0?t=0:t>59&&["minutes","seconds"].includes(e)&&(t=59);const i=o.set({[e]:t||0}).toISO();this.props.onChange("PT0S"===i?"":i)}render(){const t=C.nL.fromISO(this.props.value);return(0,e.createElement)(i().Fragment,null,(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.hours:0,onChange:e=>this.handleValueChange("hours",e.target.value)})),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.minutes:0,onChange:e=>this.handleValueChange("minutes",e.target.value)})),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.seconds:0,onChange:e=>this.handleValueChange("seconds",e.target.value)})))}}l(E,"defaultProps",{value:"",onChange:()=>!1});class A extends i().Component{constructor(e){super(e),this.props=e}render(){const t=this.props.label,o=this.props.source,i=this.props.value,s=this.getSourceSelectOptions(),r=this.getValueElement(o,i),a=this.props.requiredNotice?this.props.requiredNotice:(0,n.__)("This property is required by Google.","wds"),l=this.props.description?this.props.description:"";return(0,e.createElement)("tr",{className:"wds-schema-property-source-"+o},(0,e.createElement)("td",{className:"sui-table-item-title wds-schema-property-label"},(0,e.createElement)("span",{className:b()({"sui-tooltip sui-tooltip-constrained":!!l}),style:{"--tooltip-width":"300px"},"data-tooltip":l},t),this.props.required&&(0,e.createElement)("span",{className:"wds-required-asterisk sui-tooltip","data-tooltip":a},"*")),(0,e.createElement)("td",{className:"wds-schema-property-source"},(0,e.createElement)(u,{key:(0,n.sprintf)("wds-property-%s-source",this.props.id),options:s,small:!0,selectedValue:o,onSelect:e=>this.handleSourceChange(e)})),(0,e.createElement)("td",{className:"wds-schema-property-value"},r),(0,e.createElement)("td",{className:"wds-schema-property-delete"},!this.props.disallowDeletion&&(0,e.createElement)("span",{onClick:()=>this.handleDelete(),className:"sui-icon-trash","aria-hidden":"true"})))}handleSourceChange(e){const t=this.getValueSelectOptions(e);let o="";t&&(o=Object.keys(t).shift()),this.props.onChange(this.props.id,e,o)}handleValueChange(e){this.props.onChange(this.props.id,this.props.source,e)}handleDelete(){this.props.onDelete(this.props.id)}getSources(){const e=this.getPropertyType();return Object.assign({},this.getObjectValue(x,[e,"sources"]),this.props.customSources||{})}getSourceSelectOptions(){const e=this.getSources(),t={};return Object.keys(e).forEach((o=>{t[o]=e[o].label})),t}getValueElement(t,o){const i=(0,n.sprintf)("wds-property-%s-source-%s",this.props.id,t),s=this.getValueSelectOptions(t);if(s)return(0,e.createElement)(u,{key:i,options:s,multiple:this.props.allowMultipleSelection,small:!0,onSelect:e=>this.handleValueChange(e),selectedValue:o});if("image"===t||"image_url"===t)return(0,e.createElement)(v,{key:i,value:this.props.value,onChange:e=>this.handleValueChange(e)});if("custom_text"===t)return(0,e.createElement)(T,{key:i,value:this.props.value,placeholder:this.props.placeholder,onChange:e=>this.handleValueChange(e)});if("post_meta"===t){let t=a.get("ajax_url","schema_types");return(0,e.createElement)(u,{key:i,tagging:!0,placeholder:(0,n.__)("Search for meta key","wds"),options:{},small:!0,selectedValue:this.props.value,onSelect:e=>this.handleValueChange(e),ajaxUrl:t+"?action=wds-search-post-meta"})}return"datetime"===t?(0,e.createElement)(S,{value:this.props.value,onChange:e=>this.handleValueChange(e)}):"number"===t?(0,e.createElement)("input",{type:"number",value:this.props.value,onChange:e=>this.handleValueChange(e.target.value)}):"duration"===t?(0,e.createElement)(E,{value:this.props.value,onChange:e=>this.handleValueChange(e)}):void 0}getPropertyType(){return this.props.type}getValueSelectOptions(e){const t=this.getObjectValue(this.getSources(),[e]);return!!t.hasOwnProperty("values")&&t.values}getObjectValue(e,t){let o=e;return t.forEach((e=>{o=o.hasOwnProperty(e)?o[e]:[]})),o}}l(A,"defaultProps",{id:"",label:"",source:"",value:"",options:!1,disallowDeletion:!1,onChange:()=>!1,onDelete:()=>!1});var P=SUI,O=o.n(P);class D extends i().Component{constructor(e){super(e),this.props=e}componentDidMount(){O().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){O().closeModal()}handleKeyDown(e){c()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),o=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:b()("sui-modal",o),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:b()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:b()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:b()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:b()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:b()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,n.__)("Close this dialog window","wds")))}}l(D,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class k extends i().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,o,i=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},i," ",this.props.text),o=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,i," ",this.props.text),o=""),(0,e.createElement)("button",{className:b()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,o)}}l(k,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});var N=o(3955),R=o.n(N);const L=R();var I={text:{id:L(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:L(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:L(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:L(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:L(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const M=R();var B={streetAddress:{id:M(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:M(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:M(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:M(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:M(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:M(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const F=R();var j={telephone:{id:F(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:F(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:F(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:F(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const q=R();var U={logo:{id:q(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the publisher.","wds"),required:!0},name:{id:q(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the publisher.","wds"),required:!0},url:{id:q(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the publisher.","wds")},address:{id:q(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the publisher.","wds"),properties:{0:{id:q(),type:"PostalAddress",properties:B}}},contactPoint:{id:q(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the publisher.","wds"),properties:{0:{id:q(),type:"ContactPoint",properties:j}}}};const V=R();var z={name:{id:V(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"author",value:"author_full_name",required:!0,description:(0,n.__)("The name of the article author.","wds")},url:{id:V(),label:(0,n.__)("URL","wds"),type:"URL",source:"author",value:"author_url",description:(0,n.__)("The URL of the article author.","wds")},image:{id:V(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"author",value:"author_gravatar",description:(0,n.__)("The profile image of the article author.","wds")},description:{id:V(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"author",value:"author_description",optional:!0,description:(0,n.__)("The description of the article author.","wds")}};const G=R();var H={headline:{id:G(),label:(0,n.__)("Headline","wds"),type:"TextFull",source:"seo_meta",value:"seo_title",required:!0,description:(0,n.__)("The headline of the article. Headlines should not exceed 110 characters.","wds")},name:{id:G(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the article.","wds")},description:{id:G(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The description of the article.","wds")},url:{id:G(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The permanent URL of the article.","wds")},thumbnailUrl:{id:G(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"post_data",value:"post_thumbnail_url",description:(0,n.__)("The thumbnail URL of the article.","wds")},dateModified:{id:G(),label:(0,n.__)("Date Modified","wds"),type:"DateTime",source:"post_data",value:"post_modified",description:(0,n.__)("The date and time the article was most recently modified, in ISO 8601 format.","wds")},datePublished:{id:G(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"post_data",required:!0,description:(0,n.__)("The date and time the article was first published, in ISO 8601 format.","wds"),value:"post_date"},articleBody:{id:G(),label:(0,n.__)("Article Body","wds"),type:"TextFull",source:"post_data",value:"post_content",optional:!0,description:(0,n.__)("The content of the article.","wds")},alternativeHeadline:{id:G(),label:(0,n.__)("Alternative Headline","wds"),type:"TextFull",source:"post_data",value:"post_title",optional:!0,description:(0,n.__)("Alternative headline for the article.","wds")},image:{id:G(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),required:!0,description:(0,n.__)("Images related to the article.","wds"),properties:{0:{id:G(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},author:{id:G(),label:(0,n.__)("Author","wds"),type:"Person",required:!0,description:(0,n.__)("The author of the article.","wds"),properties:z},publisher:{id:G(),label:(0,n.__)("Publisher","wds"),type:"Organization",required:!0,description:(0,n.__)("The publisher of the article.","wds"),properties:U},comment:{id:G(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:I,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")}};const W=R();var Z={availability:{id:W(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of event tickets.","wds"),disallowDeletion:!0},price:{id:W(),label:(0,n.__)("Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The lowest available price available for your tickets, including service charges and fees. Don't forget to update it as prices change or tickets sell out.","wds"),disallowDeletion:!0},priceCurrency:{id:W(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code.","wds"),disallowDeletion:!0},validFrom:{id:W(),label:(0,n.__)("Valid From","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date and time when tickets go on sale (only required on date-restricted offers), in ISO-8601 format.","wds"),disallowDeletion:!0},priceValidUntil:{id:W(),label:(0,n.__)("Valid Until","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date and time till when tickets will be on sale.","wds"),disallowDeletion:!0},url:{id:W(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The URL of a page providing the ability to buy tickets.","wds"),disallowDeletion:!0}},Y=o(2492),$=o.n(Y);const K=R();var J={streetAddress:{id:K(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:K(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:K(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:K(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:K(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:K(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}},Q=$()({},J,{streetAddress:{disallowDeletion:!1},addressLocality:{disallowDeletion:!1},addressRegion:{disallowDeletion:!1},addressCountry:{disallowDeletion:!1},postalCode:{disallowDeletion:!1},postOfficeBoxNumber:{disallowDeletion:!1}});const X=R();var ee={name:{id:X(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The detailed name of the place or venue where the event is being held. This property is only recommended for events that take place at a physical location.","wds")},address:{id:X(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:Q,required:!0,description:(0,n.__)("The venue's detailed street address. This property is only required for events that take place at a physical location.","wds")}};const te=R();var oe={availability:{id:te(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of this item.","wds")},lowPrice:{id:te(),label:(0,n.__)("Low Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The lowest price of all offers available. Use a floating point number.","wds")},highPrice:{id:te(),label:(0,n.__)("High Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The highest price of all offers available. Use a floating point number.","wds")},priceCurrency:{id:te(),label:(0,n.__)("Price Currency","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The currency used to describe the price, in three-letter ISO 4217 format.","wds")},offerCount:{id:te(),label:(0,n.__)("Offer Count","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of offers for the item.","wds")}};const ie=R();var se={name:{id:ie(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds"),disallowDeletion:!0},url:{id:ie(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the person's profile.","wds"),disallowDeletion:!0},description:{id:ie(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the person.","wds"),disallowDeletion:!0},image:{id:ie(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds"),disallowDeletion:!0}};const re=R();var ne={telephone:{id:re(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:re(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:re(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:re(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const ae=R();var le={logo:{id:ae(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:ae(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:ae(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},address:{id:ae(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the organization.","wds"),properties:{0:{id:ae(),type:"PostalAddress",properties:J}}},contactPoint:{id:ae(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the organization.","wds"),properties:{0:{id:ae(),type:"ContactPoint",properties:ne}}}};const de=R();var ce={itemReviewed:{id:de(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:de(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the item that is being rated.","wds")}},required:!0},ratingCount:{id:de(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:de(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:de(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:de(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:de(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const ue=R();var pe={name:{id:ue(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:ue(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:ue(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:ue(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}};const he=R();var me={logo:{id:he(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},name:{id:he(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},url:{id:he(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}};const _e=R();var we={ratingValue:{id:_e(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:_e(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:_e(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const fe=R();var ye={itemReviewed:{id:fe(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:fe(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated.","wds")}}},reviewBody:{id:fe(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:fe(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:fe(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:fe(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:pe,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")},Organization:{id:fe(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:me,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")}}},reviewRating:{id:fe(),label:(0,n.__)("Rating","wds"),description:(0,n.__)("The rating given in this review.","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,required:!0,properties:we}};const ge=R();var be={name:{id:ge(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The full title of the event.","wds")},description:{id:ge(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("Description of the event. Describe all details of the event to make it easier for users to understand and attend the event.","wds")},startDate:{id:ge(),label:(0,n.__)("Start Date","wds"),type:"DateTime",source:"datetime",value:"",required:!0,description:(0,n.__)("The start date and start time of the event in ISO-8601 format.","wds")},endDate:{id:ge(),label:(0,n.__)("End Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The end date and end time of the event in ISO-8601 format.","wds")},eventAttendanceMode:{id:ge(),label:(0,n.__)("Event Attendance Mode","wds"),type:"Text",source:"options",value:"MixedEventAttendanceMode",customSources:{options:{label:(0,n.__)("Event Attendance Mode","wds"),values:{MixedEventAttendanceMode:(0,n.__)("Mixed Attendance Mode","wds"),OfflineEventAttendanceMode:(0,n.__)("Offline Attendance Mode","wds"),OnlineEventAttendanceMode:(0,n.__)("Online Attendance Mode","wds")}}},description:(0,n.__)("Indicates whether the event occurs online, offline at a physical location, or a mix of both online and offline.","wds")},eventStatus:{id:ge(),label:(0,n.__)("Event Status","wds"),type:"Text",source:"options",value:"EventScheduled",customSources:{options:{label:(0,n.__)("Event Status","wds"),values:{EventScheduled:(0,n.__)("Scheduled","wds"),EventMovedOnline:(0,n.__)("Moved Online","wds"),EventRescheduled:(0,n.__)("Rescheduled","wds"),EventPostponed:(0,n.__)("Postponed","wds"),EventCancelled:(0,n.__)("Cancelled","wds")}}},description:(0,n.__)("The status of the event.","wds")},image:{id:ge(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),properties:{0:{id:ge(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:""}},description:(0,n.__)("Image or logo for the event or tour. Including an image helps users understand and engage with your event.","wds")},location:{id:ge(),label:(0,n.__)("Location","wds"),activeVersion:"Place",properties:{Place:{id:ge(),label:(0,n.__)("Location","wds"),type:"Place",properties:ee,required:!0,description:(0,n.__)("The physical location of the event.","wds")},VirtualLocation:{id:ge(),label:(0,n.__)("Virtual Location","wds"),type:"VirtualLocation",disallowAddition:!0,properties:{url:{id:ge(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",disallowDeletion:!0,value:"post_permalink",required:!0,description:(0,n.__)("The URL of the online event, where people can join. This property is required if your event is happening online.","wds")}},required:!0,description:(0,n.__)("The virtual location of the event.","wds")}},required:!0},organizer:{id:ge(),label:(0,n.__)("Organizer","wds"),type:"Organization",properties:le,description:(0,n.__)("The organization that is hosting the event.","wds")},performer:{id:ge(),label:(0,n.__)("Performers","wds"),label_single:(0,n.__)("Performer","wds"),properties:{0:{id:ge(),type:"Person",properties:se}},description:(0,n.__)("The participants performing at the event, such as artists and comedians.","wds")},offers:{id:ge(),label:(0,n.__)("Offers","wds"),activeVersion:"Offer",properties:{Offer:{id:ge(),label:(0,n.__)("Offers","wds"),label_single:(0,n.__)("Offer","wds"),properties:{0:{id:ge(),type:"Offer",properties:Z}},description:(0,n.__)("A nested Offer, one for each ticket type.","wds")},AggregateOffer:{id:ge(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:oe,description:(0,n.__)("A nested AggregateOffer, representing all available offers.","wds")}}},aggregateRating:{id:ge(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the event.","wds"),optional:!0},review:{id:ge(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:ge(),type:"Review",properties:ye}},description:(0,n.__)("Reviews of the event.","wds"),optional:!0}};const ve=R();var Te={availability:{id:ve(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The possible product availability options.","wds")},price:{id:ve(),label:(0,n.__)("Price","wds"),type:"Number",source:"number",value:"",required:!0,disallowDeletion:!0,description:(0,n.__)("The offer price of a product.","wds")},priceCurrency:{id:ve(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The currency used to describe the product price, in three-letter ISO 4217 format.","wds")},validFrom:{id:ve(),label:(0,n.__)("Valid From","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date when the item becomes valid.","wds")},priceValidUntil:{id:ve(),label:(0,n.__)("Valid Until","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date after which the price is no longer available.","wds")},url:{id:ve(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",disallowDeletion:!0,description:(0,n.__)("A URL to the product web page (that includes the Offer).","wds")}};const Se=R();var xe={availability:{id:Se(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of this item.","wds")},lowPrice:{id:Se(),label:(0,n.__)("Low Price","wds"),type:"Number",source:"number",value:"",required:!0,description:(0,n.__)("The lowest price of all offers available. Use a floating point number.","wds")},highPrice:{id:Se(),label:(0,n.__)("High Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The highest price of all offers available. Use a floating point number.","wds")},priceCurrency:{id:Se(),label:(0,n.__)("Price Currency","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)("The currency used to describe the price, in three-letter ISO 4217 format.","wds")},offerCount:{id:Se(),label:(0,n.__)("Offer Count","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of offers for the item.","wds")}};const Ce=R();var Ee={itemReviewed:{id:Ce(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:Ce(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The item that is being rated.","wds")}},required:!0},ratingCount:{id:Ce(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. At least one of ratingCount or reviewCount is required.","wds"),description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:Ce(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. At least one of ratingCount or reviewCount is required.","wds"),description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:Ce(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",requiredInBlock:!0,required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:Ce(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:Ce(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const Ae=R();var Pe={itemReviewed:{id:Ae(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:Ae(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the product.","wds")}}},reviewBody:{id:Ae(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:Ae(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:Ae(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:Ae(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:{name:{id:Ae(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:Ae(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:Ae(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:Ae(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}},required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")},Organization:{id:Ae(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:{logo:{id:Ae(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},name:{id:Ae(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},url:{id:Ae(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}},required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")}}},reviewRating:{id:Ae(),label:(0,n.__)("Rating","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,properties:{ratingValue:{id:Ae(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:Ae(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:Ae(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}},required:!0,description:(0,n.__)("The rating given in this review.","wds")}};const Oe=R();var De={telephone:{id:Oe(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:Oe(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:Oe(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:Oe(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const ke=R();var Ne={streetAddress:{id:ke(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:ke(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:ke(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:ke(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:ke(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:ke(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const Re=R();var Le={logo:{id:Re(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Re(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:Re(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},address:{id:Re(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the organization.","wds"),properties:{0:{id:Re(),type:"PostalAddress",properties:Ne}}},contactPoint:{id:Re(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the organization.","wds"),properties:{0:{id:Re(),type:"ContactPoint",properties:De}}}};const Ie=R();var Me={name:{id:Ie(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the product.","wds")},description:{id:Ie(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The product description.","wds")},sku:{id:Ie(),label:(0,n.__)("SKU","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("Merchant-specific identifier for product.","wds")},gtin:{id:Ie(),label:(0,n.__)("GTIN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("A Global Trade Item Number (GTIN). GTINs identify trade items, including products and services, using numeric identification codes.","wds")},gtin8:{id:Ie(),label:(0,n.__)("GTIN-8","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-8 code of the product. This code is also known as EAN/UCC-8 or 8-digit EAN.","wds")},gtin12:{id:Ie(),label:(0,n.__)("GTIN-12","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-12 code of the product. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items.","wds")},gtin13:{id:Ie(),label:(0,n.__)("GTIN-13","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-13 code of the product. This is equivalent to 13-digit ISBN codes and EAN UCC-13.","wds")},gtin14:{id:Ie(),label:(0,n.__)("GTIN-14","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-14 code of the product.","wds")},mpn:{id:Ie(),label:(0,n.__)("MPN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The Manufacturer Part Number (MPN) of the product.","wds")},image:{id:Ie(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),description:(0,n.__)("The images associated with the product.","wds"),properties:{0:{id:Ie(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},brand:{id:Ie(),label:(0,n.__)("Brand","wds"),type:"Organization",properties:Le,description:(0,n.__)("The brand of the product.","wds")},review:{id:Ie(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:Ie(),type:"Review",properties:Pe}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds")},aggregateRating:{id:Ie(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:Ee,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested aggregateRating of the product.","wds")},offers:{id:Ie(),label:(0,n.__)("Offers","wds"),activeVersion:"Offer",properties:{Offer:{id:Ie(),label:(0,n.__)("Offers","wds"),label_single:(0,n.__)("Offer","wds"),properties:{0:{id:Ie(),type:"Offer",properties:Te}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Offer to sell the product.","wds")},AggregateOffer:{id:Ie(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:xe,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested AggregateOffer to sell the product.","wds")}},required:!0}},Be=(0,w.merge)({},Te,{availability:{source:"woocommerce",value:"stock_status",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{stock_status:(0,n.__)("Stock Status","wds")}}}},price:{source:"woocommerce",value:"price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{price:(0,n.__)("Price","wds")}}}},priceCurrency:{source:"woocommerce",value:"currency",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{currency:(0,n.__)("Currency","wds")}}}},validFrom:{source:"woocommerce",value:"date_on_sale_from",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{date_on_sale_from:(0,n.__)("Product Sale Start Date","wds")}}}},priceValidUntil:{source:"woocommerce",value:"date_on_sale_to",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{date_on_sale_to:(0,n.__)("Product Sale End Date","wds")}}}}}),Fe=(0,w.merge)({},xe,{availability:{source:"woocommerce",value:"stock_status",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{stock_status:(0,n.__)("Stock Status","wds")}}}},lowPrice:{source:"woocommerce",value:"min_price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{min_price:(0,n.__)("Variable Product Minimum Price","wds")}}}},highPrice:{source:"woocommerce",value:"max_price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{max_price:(0,n.__)("Variable Product Maximum Price","wds")}}}},priceCurrency:{source:"woocommerce",value:"currency",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{currency:(0,n.__)("Currency","wds")}}}},offerCount:{source:"woocommerce",value:"product_children_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_children_count:(0,n.__)("Number of Variations","wds")}}}}}),je=(0,w.merge)({},Ee,{ratingCount:{source:"woocommerce",value:"review_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{review_count:(0,n.__)("Review Count","wds")}}}},reviewCount:{source:"woocommerce",value:"review_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{review_count:(0,n.__)("Review Count","wds")}}}},ratingValue:{source:"woocommerce",value:"average_rating",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{average_rating:(0,n.__)("Average Rating","wds")}}}},bestRating:{value:"5"},worstRating:{value:"1"}}),qe=(0,w.merge)({},Le,{logo:{source:"image",value:""},name:{customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_category:(0,n.__)("Product Category","wds"),product_tag:(0,n.__)("Product Tag","wds")}}}},url:{customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_category_url:(0,n.__)("Product Category URL","wds"),product_tag_url:(0,n.__)("Product Tag URL","wds")}}}}}),Ue=(0,w.merge)({},Pe,{reviewBody:{source:"woocommerce_review",value:"comment_text",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_text:(0,n.__)("Review Text","wds")}}}},datePublished:{source:"woocommerce_review",value:"comment_date",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_date:(0,n.__)("Date Published","wds")}}}},author:{properties:{Person:{properties:{name:{source:"woocommerce_review",value:"comment_author_name",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_author_name:(0,n.__)("Author Name","wds")}}}}}},Organization:{properties:{name:{source:"woocommerce_review",value:"comment_author_name",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_author_name:(0,n.__)("Author Name","wds")}}}}}}}},reviewRating:{properties:{ratingValue:{source:"woocommerce_review",value:"rating_value",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{rating_value:(0,n.__)("Rating Value","wds")}}}},bestRating:{value:"5"},worstRating:{value:"1"}}}}),Ve=(0,w.merge)({},Ue,{itemReviewed:{properties:{name:{disallowDeletion:!1}}},reviewBody:{disallowDeletion:!1},datePublished:{disallowDeletion:!1},author:{properties:{Person:{disallowDeletion:!1,disallowAddition:!1,properties:{name:{disallowDeletion:!1},url:{disallowDeletion:!1},description:{disallowDeletion:!1},image:{disallowDeletion:!1}}},Organization:{disallowDeletion:!1,disallowAddition:!1,properties:{logo:{disallowDeletion:!1},name:{disallowDeletion:!1},url:{disallowDeletion:!1}}}}},reviewRating:{disallowDeletion:!1,disallowAddition:!1,properties:{ratingValue:{disallowDeletion:!1},bestRating:{disallowDeletion:!1},worstRating:{disallowDeletion:!1}}}});const ze=R();var Ge={name:{id:ze(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the product.","wds")},description:{id:ze(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The product description.","wds")},sku:{id:ze(),label:(0,n.__)("SKU","wds"),type:"Text",source:"woocommerce",value:"product_id",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},description:(0,n.__)("Merchant-specific identifier for product.","wds")},gtin:{id:ze(),label:(0,n.__)("GTIN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("A Global Trade Item Number (GTIN). GTINs identify trade items, including products and services, using numeric identification codes.","wds")},gtin8:{id:ze(),label:(0,n.__)("GTIN-8","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-8 code of the product. This code is also known as EAN/UCC-8 or 8-digit EAN.","wds")},gtin12:{id:ze(),label:(0,n.__)("GTIN-12","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-12 code of the product. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items.","wds")},gtin13:{id:ze(),label:(0,n.__)("GTIN-13","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-13 code of the product. This is equivalent to 13-digit ISBN codes and EAN UCC-13.","wds")},gtin14:{id:ze(),label:(0,n.__)("GTIN-14","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-14 code of the product.","wds")},mpn:{id:ze(),label:(0,n.__)("MPN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The Manufacturer Part Number (MPN) of the product.","wds")},image:{id:ze(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),description:(0,n.__)("The images associated with the product.","wds"),properties:{0:{id:ze(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},brand:{id:ze(),label:(0,n.__)("Brand","wds"),type:"Organization",properties:qe,description:(0,n.__)("The brand of the product.","wds")},review:{id:ze(),label:(0,n.__)("Reviews","wds"),activeVersion:"WooCommerceReviewLoop",properties:{WooCommerceReviewLoop:{id:ze(),label:(0,n.__)("WooCommerce Reviews","wds"),label_single:(0,n.__)("WooCommerce Review","wds"),loop:"woocommerce-reviews",loopDescription:(0,n.__)("The following block will be repeated for each Review in a WooCommerce product"),type:"Review",properties:Ve,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds")},Review:{id:ze(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:ze(),type:"Review",properties:Pe}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds")}},required:!0},aggregateRating:{id:ze(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:je,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested aggregateRating of the product.","wds")},offers:{id:ze(),label:(0,n.__)("Offers","wds"),activeVersion:"AggregateOffer",properties:{Offer:{id:ze(),label:(0,n.__)("Offers","wds"),label_single:(0,n.__)("Offer","wds"),properties:{0:{id:ze(),type:"Offer",properties:Be}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Offer to sell the product.","wds")},AggregateOffer:{id:ze(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:Fe,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested AggregateOffer to sell the product.","wds")}},required:!0}};const He=R();var We={name:{id:He(),label:(0,n.__)("Question","wds"),type:"TextFull",disallowDeletion:!0,source:"custom_text",value:"",description:(0,n.__)('The full text of the question. For example, "How long does it take to process a refund?".',"wds"),required:!0},acceptedAnswer:{id:He(),label:(0,n.__)("Accepted Answer","wds"),type:"Answer",flatten:!0,properties:{text:{id:He(),label:(0,n.__)("Accepted Answer","wds"),type:"TextFull",disallowDeletion:!0,source:"custom_text",value:"",description:(0,n.__)("The answer to the question.","wds"),required:!0}},required:!0},image:{id:He(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image associated with the question."),disallowDeletion:!0},url:{id:He(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("Optional URL to the question."),disallowDeletion:!0}};const Ze=R();var Ye={text:{id:Ze(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:Ze(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:Ze(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:Ze(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:Ze(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const $e=R();var Ke={mainEntity:{id:$e(),label:(0,n.__)("Questions","wds"),label_single:(0,n.__)("Question","wds"),disallowDeletion:!0,properties:{0:{id:$e(),type:"Question",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:We}},required:!0,description:(0,n.__)("An array of Question elements which comprise the list of answered questions that this FAQPage is about.","wds")},comment:{id:$e(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:Ye,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")}};const Je=R();var Qe={value:{id:Je(),label:(0,n.__)("Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The monetary amount value.","wds")},currency:{id:Je(),label:(0,n.__)("Currency","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The currency in which the monetary amount is expressed.","wds")},maxValue:{id:Je(),label:(0,n.__)("Max Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The upper limit of the value.","wds")},minValue:{id:Je(),label:(0,n.__)("Min Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The lower limit of the value.","wds")}};const Xe=R();var et={text:{id:Xe(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:Xe(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:Xe(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:Xe(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:Xe(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const tt=R();var ot={name:{id:tt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)('The title of the how-to. For example, "How to tie a tie".',"wds")},description:{id:tt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A description of the how-to.","wds")},totalTime:{id:tt(),label:(0,n.__)("Total Time","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The total time required to perform all instructions or directions (including time to prepare the supplies), in ISO 8601 duration format.","wds")},image:{id:tt(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),properties:{0:{id:tt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}},description:(0,n.__)("Images of the completed how-to.","wds")},supply:{id:tt(),label:(0,n.__)("Supplies","wds"),label_single:(0,n.__)("Supply","wds"),properties:{0:{id:tt(),label:(0,n.__)("Supply","wds"),type:"HowToSupply",properties:{name:{id:tt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the supply.","wds"),disallowDeletion:!0},image:{id:tt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the supply.","wds"),disallowDeletion:!0}}}},description:(0,n.__)("Supplies consumed when performing instructions or a direction.","wds")},tool:{id:tt(),label:(0,n.__)("Tools","wds"),label_single:(0,n.__)("Tool","wds"),properties:{0:{id:tt(),label:(0,n.__)("Tool","wds"),type:"HowToTool",properties:{name:{id:tt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the tool.","wds"),disallowDeletion:!0},image:{id:tt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the tool.","wds"),disallowDeletion:!0}}}},description:(0,n.__)("Objects used (but not consumed) when performing instructions or a direction.","wds")},estimatedCost:{id:tt(),label:(0,n.__)("Estimated Cost","wds"),type:"MonetaryAmount",disallowAddition:!0,properties:Qe,description:(0,n.__)("The estimated cost of the supplies consumed when performing instructions.","wds")},step:{id:tt(),label:(0,n.__)("Steps","wds"),label_single:(0,n.__)("Step","wds"),properties:{0:{id:tt(),label:(0,n.__)("Step","wds"),type:"HowToStep",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:{name:{id:tt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The word or short phrase summarizing the step (for example, "Attach wires to post" or "Dig").',"wds"),disallowDeletion:!0},text:{id:tt(),label:(0,n.__)("Text","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)("The full instruction text of this step.","wds"),disallowDeletion:!0},image:{id:tt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image for the step.","wds"),disallowDeletion:!0},url:{id:tt(),label:(0,n.__)("Url","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("A URL that directly links to the step (if one is available). For example, an anchor link fragment.","wds"),disallowDeletion:!0}}}},required:!0,description:(0,n.__)("An array of elements which comprise the full instructions of the how-to. Each step element should correspond to an individual step in the instructions. Don't mark up non-step data such as a summary or introduction section, using this property.","wds")},comment:{id:tt(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:et,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")},aggregateRating:{id:tt(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the how-to.","wds"),optional:!0},review:{id:tt(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:tt(),type:"Review",properties:ye}},description:(0,n.__)("Reviews of the how-to.","wds"),optional:!0}},it={USD:(0,n.__)("United States dollar","wds"),AED:(0,n.__)("UAE dirham","wds"),AFN:(0,n.__)("Afghan afghani","wds"),ALL:(0,n.__)("Albanian lek","wds"),AMD:(0,n.__)("Armenian dram","wds"),ANG:(0,n.__)("Netherlands Antillean gulden","wds"),AOA:(0,n.__)("Angolan kwanza","wds"),ARS:(0,n.__)("Argentine peso","wds"),AUD:(0,n.__)("Australian dollar","wds"),AWG:(0,n.__)("Aruban florin","wds"),AZN:(0,n.__)("Azerbaijani manat","wds"),BAM:(0,n.__)("Bosnia and Herzegovina konvertibilna marka","wds"),BBD:(0,n.__)("Barbadian dollar","wds"),BDT:(0,n.__)("Bangladeshi taka","wds"),BGN:(0,n.__)("Bulgarian lev","wds"),BHD:(0,n.__)("Bahraini dinar","wds"),BIF:(0,n.__)("Burundi franc","wds"),BMD:(0,n.__)("Bermudian dollar","wds"),BND:(0,n.__)("Brunei dollar","wds"),BOB:(0,n.__)("Bolivian boliviano","wds"),BRL:(0,n.__)("Brazilian real","wds"),BSD:(0,n.__)("Bahamian dollar","wds"),BTN:(0,n.__)("Bhutanese ngultrum","wds"),BWP:(0,n.__)("Botswana pula","wds"),BYR:(0,n.__)("Belarusian ruble","wds"),BZD:(0,n.__)("Belize dollar","wds"),CAD:(0,n.__)("Canadian dollar","wds"),CDF:(0,n.__)("Congolese franc","wds"),CHF:(0,n.__)("Swiss franc","wds"),CLP:(0,n.__)("Chilean peso","wds"),CNY:(0,n.__)("Chinese/Yuan renminbi","wds"),COP:(0,n.__)("Colombian peso","wds"),CRC:(0,n.__)("Costa Rican colon","wds"),CUC:(0,n.__)("Cuban peso","wds"),CVE:(0,n.__)("Cape Verdean escudo","wds"),CZK:(0,n.__)("Czech koruna","wds"),DJF:(0,n.__)("Djiboutian franc","wds"),DKK:(0,n.__)("Danish krone","wds"),DOP:(0,n.__)("Dominican peso","wds"),DZD:(0,n.__)("Algerian dinar","wds"),EEK:(0,n.__)("Estonian kroon","wds"),EGP:(0,n.__)("Egyptian pound","wds"),ERN:(0,n.__)("Eritrean nakfa","wds"),ETB:(0,n.__)("Ethiopian birr","wds"),EUR:(0,n.__)("European Euro","wds"),FJD:(0,n.__)("Fijian dollar","wds"),FKP:(0,n.__)("Falkland Islands pound","wds"),GBP:(0,n.__)("British pound","wds"),GEL:(0,n.__)("Georgian lari","wds"),GHS:(0,n.__)("Ghanaian cedi","wds"),GIP:(0,n.__)("Gibraltar pound","wds"),GMD:(0,n.__)("Gambian dalasi","wds"),GNF:(0,n.__)("Guinean franc","wds"),GQE:(0,n.__)("Central African CFA franc","wds"),GTQ:(0,n.__)("Guatemalan quetzal","wds"),GYD:(0,n.__)("Guyanese dollar","wds"),HKD:(0,n.__)("Hong Kong dollar","wds"),HNL:(0,n.__)("Honduran lempira","wds"),HRK:(0,n.__)("Croatian kuna","wds"),HTG:(0,n.__)("Haitian gourde","wds"),HUF:(0,n.__)("Hungarian forint","wds"),IDR:(0,n.__)("Indonesian rupiah","wds"),ILS:(0,n.__)("Israeli new sheqel","wds"),INR:(0,n.__)("Indian rupee","wds"),IQD:(0,n.__)("Iraqi dinar","wds"),IRR:(0,n.__)("Iranian rial","wds"),ISK:(0,n.__)("Icelandic króna","wds"),JMD:(0,n.__)("Jamaican dollar","wds"),JOD:(0,n.__)("Jordanian dinar","wds"),JPY:(0,n.__)("Japanese yen","wds"),KES:(0,n.__)("Kenyan shilling","wds"),KGS:(0,n.__)("Kyrgyzstani som","wds"),KHR:(0,n.__)("Cambodian riel","wds"),KMF:(0,n.__)("Comorian franc","wds"),KPW:(0,n.__)("North Korean won","wds"),KRW:(0,n.__)("South Korean won","wds"),KWD:(0,n.__)("Kuwaiti dinar","wds"),KYD:(0,n.__)("Cayman Islands dollar","wds"),KZT:(0,n.__)("Kazakhstani tenge","wds"),LAK:(0,n.__)("Lao kip","wds"),LBP:(0,n.__)("Lebanese lira","wds"),LKR:(0,n.__)("Sri Lankan rupee","wds"),LRD:(0,n.__)("Liberian dollar","wds"),LSL:(0,n.__)("Lesotho loti","wds"),LTL:(0,n.__)("Lithuanian litas","wds"),LVL:(0,n.__)("Latvian lats","wds"),LYD:(0,n.__)("Libyan dinar","wds"),MAD:(0,n.__)("Moroccan dirham","wds"),MDL:(0,n.__)("Moldovan leu","wds"),MGA:(0,n.__)("Malagasy ariary","wds"),MKD:(0,n.__)("Macedonian denar","wds"),MMK:(0,n.__)("Myanma kyat","wds"),MNT:(0,n.__)("Mongolian tugrik","wds"),MOP:(0,n.__)("Macanese pataca","wds"),MRO:(0,n.__)("Mauritanian ouguiya","wds"),MUR:(0,n.__)("Mauritian rupee","wds"),MVR:(0,n.__)("Maldivian rufiyaa","wds"),MWK:(0,n.__)("Malawian kwacha","wds"),MXN:(0,n.__)("Mexican peso","wds"),MYR:(0,n.__)("Malaysian ringgit","wds"),MZM:(0,n.__)("Mozambican metical","wds"),NAD:(0,n.__)("Namibian dollar","wds"),NGN:(0,n.__)("Nigerian naira","wds"),NIO:(0,n.__)("Nicaraguan córdoba","wds"),NOK:(0,n.__)("Norwegian krone","wds"),NPR:(0,n.__)("Nepalese rupee","wds"),NZD:(0,n.__)("New Zealand dollar","wds"),OMR:(0,n.__)("Omani rial","wds"),PAB:(0,n.__)("Panamanian balboa","wds"),PEN:(0,n.__)("Peruvian nuevo sol","wds"),PGK:(0,n.__)("Papua New Guinean kina","wds"),PHP:(0,n.__)("Philippine peso","wds"),PKR:(0,n.__)("Pakistani rupee","wds"),PLN:(0,n.__)("Polish zloty","wds"),PYG:(0,n.__)("Paraguayan guarani","wds"),QAR:(0,n.__)("Qatari riyal","wds"),RON:(0,n.__)("Romanian leu","wds"),RSD:(0,n.__)("Serbian dinar","wds"),RUB:(0,n.__)("Russian ruble","wds"),SAR:(0,n.__)("Saudi riyal","wds"),SBD:(0,n.__)("Solomon Islands dollar","wds"),SCR:(0,n.__)("Seychellois rupee","wds"),SDG:(0,n.__)("Sudanese pound","wds"),SEK:(0,n.__)("Swedish krona","wds"),SGD:(0,n.__)("Singapore dollar","wds"),SHP:(0,n.__)("Saint Helena pound","wds"),SLL:(0,n.__)("Sierra Leonean leone","wds"),SOS:(0,n.__)("Somali shilling","wds"),SRD:(0,n.__)("Surinamese dollar","wds"),SYP:(0,n.__)("Syrian pound","wds"),SZL:(0,n.__)("Swazi lilangeni","wds"),THB:(0,n.__)("Thai baht","wds"),TJS:(0,n.__)("Tajikistani somoni","wds"),TMT:(0,n.__)("Turkmen manat","wds"),TND:(0,n.__)("Tunisian dinar","wds"),TRY:(0,n.__)("Turkish new lira","wds"),TTD:(0,n.__)("Trinidad and Tobago dollar","wds"),TWD:(0,n.__)("New Taiwan dollar","wds"),TZS:(0,n.__)("Tanzanian shilling","wds"),UAH:(0,n.__)("Ukrainian hryvnia","wds"),UGX:(0,n.__)("Ugandan shilling","wds"),UYU:(0,n.__)("Uruguayan peso","wds"),UZS:(0,n.__)("Uzbekistani som","wds"),VEB:(0,n.__)("Venezuelan bolivar","wds"),VND:(0,n.__)("Vietnamese dong","wds"),VUV:(0,n.__)("Vanuatu vatu","wds"),WST:(0,n.__)("Samoan tala","wds"),XAF:(0,n.__)("Central African CFA franc","wds"),XCD:(0,n.__)("East Caribbean dollar","wds"),XDR:(0,n.__)("Special Drawing Rights","wds"),XOF:(0,n.__)("West African CFA franc","wds"),XPF:(0,n.__)("CFP franc","wds"),YER:(0,n.__)("Yemeni rial","wds"),ZAR:(0,n.__)("South African rand","wds"),ZMK:(0,n.__)("Zambian kwacha","wds"),ZWR:(0,n.__)("Zimbabwean dollar","wds")};const st=R();var rt={streetAddress:{id:st(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:st(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:st(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:st(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:st(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:st(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const nt=R();var at={itemReviewed:{id:nt(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:nt(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"site_settings",value:"site_name",required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the local business.","wds")}},required:!0},ratingCount:{id:nt(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the local business.","wds")},reviewCount:{id:nt(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:nt(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,requiredInBlock:!0,description:(0,n.__)('A numerical quality rating for the local business, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:nt(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:nt(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}},lt={"00:00":"00:00","00:30":"00:30","01:00":"01:00","01:30":"01:30","02:00":"02:00","02:30":"02:30","03:00":"03:00","03:30":"03:30","04:00":"04:00","04:30":"04:30","05:00":"05:00","05:30":"05:30","06:00":"06:00","06:30":"06:30","07:00":"07:00","07:30":"07:30","08:00":"08:00","08:30":"08:30","09:00":"09:00","09:30":"09:30","10:00":"10:00","10:30":"10:30","11:00":"11:00","11:30":"11:30","12:00":"12:00","12:30":"12:30","13:00":"13:00","13:30":"13:30","14:00":"14:00","14:30":"14:30","15:00":"15:00","15:30":"15:30","16:00":"16:00","16:30":"16:30","17:00":"17:00","17:30":"17:30","18:00":"18:00","18:30":"18:30","19:00":"19:00","19:30":"19:30","20:00":"20:00","20:30":"20:30","21:00":"21:00","21:30":"21:30","22:00":"22:00","22:30":"22:30","23:00":"23:00","23:30":"23:30","24:00":"24:00"};const dt=R();var ct={dayOfWeek:{id:dt(),label:(0,n.__)("Days of Week","wds"),disallowDeletion:!0,type:"Array",allowMultipleSelection:!0,source:"options",value:["Monday","Tuesday","Wednesday","Thursday","Friday"],customSources:{options:{label:(0,n.__)("Days of Week","wds"),values:{Monday:(0,n.__)("Monday","wds"),Tuesday:(0,n.__)("Tuesday","wds"),Wednesday:(0,n.__)("Wednesday","wds"),Thursday:(0,n.__)("Thursday","wds"),Friday:(0,n.__)("Friday","wds"),Saturday:(0,n.__)("Saturday","wds"),Sunday:(0,n.__)("Sunday","wds")}}},description:(0,n.__)("One or more days of the week.","wds")},opens:{id:dt(),label:(0,n.__)("Opens","wds"),type:"Text",disallowDeletion:!0,source:"options",value:"09:00",description:(0,n.__)("The time the business location opens, in hh:mm:ss format.","wds"),customSources:{options:{label:(0,n.__)("Time","wds"),values:lt}}},closes:{id:dt(),label:(0,n.__)("Closes","wds"),type:"Text",disallowDeletion:!0,source:"options",value:"21:00",description:(0,n.__)("The time the business location closes, in hh:mm:ss format.","wds"),customSources:{options:{label:(0,n.__)("Time","wds"),values:lt}}}};const ut=R();var pt={ratingValue:{id:ut(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:ut(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:ut(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const ht=R();var mt={name:{id:ht(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},logo:{id:ht(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},url:{id:ht(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}};const _t=R();var wt={name:{id:_t(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:_t(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:_t(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:_t(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}};const ft=R();var yt={itemReviewed:{id:ft(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:ft(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"site_settings",value:"site_name",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the local business.","wds")}}},reviewBody:{id:ft(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:ft(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:ft(),label:(0,n.__)("Author","wds"),activeVersion:"Person",properties:{Person:{id:ft(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:wt,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),required:!0},Organization:{id:ft(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:mt,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),required:!0}}},reviewRating:{id:ft(),label:(0,n.__)("Rating","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,properties:pt,description:(0,n.__)("The rating given in this review.","wds"),required:!0}};const gt=R();var bt={"@id":{id:gt(),label:(0,n.__)("@id","wds"),type:"URL",source:"site_settings",value:"site_url",required:!0,description:(0,n.__)("Globally unique ID of the specific business location in the form of a URL. The ID should be stable and unchanging over time. Google Search treats the URL as an opaque string and it does not have to be a working link. If the business has multiple locations, make sure the @id is unique for each location.","wds")},name:{id:gt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"site_settings",value:"site_name",required:!0,description:(0,n.__)("The name of the business.","wds")},logo:{id:gt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the business.","wds")},url:{id:gt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The fully-qualified URL of the specific business location. Unlike the @id property, this URL property should be a working link.","wds")},priceRange:{id:gt(),label:(0,n.__)("Price Range","wds"),type:"Text",source:"options",value:"$",customSources:{options:{label:(0,n.__)("Price Range","wds"),values:{$:"$",$$:"$$",$$$:(0,n.__)("$$$","wds")}}},description:(0,n.__)('The relative price range of a business, commonly specified by either a numerical range (for example, "$10-15") or a normalized number of currency signs (for example, "$$$").',"wds")},telephone:{id:gt(),label:(0,n.__)("Telephone","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("A business phone number meant to be the primary contact method for customers. Be sure to include the country code and area code in the phone number.","wds")},currenciesAccepted:{id:gt(),label:(0,n.__)("Currencies Accepted","wds"),type:"Text",source:"options",value:["USD"],allowMultipleSelection:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:it}},description:(0,n.__)("The currency accepted at the business.","wds")},paymentAccepted:{id:gt(),label:(0,n.__)("Payment Accepted","wds"),type:"Text",source:"options",value:["Cash"],allowMultipleSelection:!0,customSources:{options:{label:(0,n.__)("Payment Accepted","wds"),values:{Cash:(0,n.__)("Cash","wds"),"Credit Card":(0,n.__)("Credit Card","wds"),Cryptocurrency:(0,n.__)("Cryptocurrency","wds")}}},description:(0,n.__)("Modes of payment accepted at the local business.","wds")},address:{id:gt(),label:(0,n.__)("Address","wds"),properties:{0:{id:gt(),type:"PostalAddress",properties:rt}},required:!0,description:(0,n.__)("The physical location of the business. Include as many properties as possible. The more properties you provide, the higher quality the result is to users.","wds")},image:{id:gt(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),properties:{0:{id:gt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo"}},description:(0,n.__)("One or more images of the local business.","wds"),required:!0},aggregateRating:{id:gt(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:at,description:(0,n.__)("The average rating of the local business based on multiple ratings or reviews.","wds")},geo:{id:gt(),label:(0,n.__)("Geo Coordinates"),type:"GeoCoordinates",disallowAddition:!0,properties:{latitude:{id:gt(),label:(0,n.__)("Latitude","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The latitude of the business location. The precision should be at least 5 decimal places.","wds"),placeholder:(0,n.__)("E.g. 37.42242","wds")},longitude:{id:gt(),label:(0,n.__)("Longitude","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The longitude of the business location. The precision should be at least 5 decimal places."),placeholder:(0,n.__)("E.g. -122.08585","wds")}},description:(0,n.__)("Give search engines the exact location of your business by adding the geographic latitude and longitude coordinates.","wds")},openingHoursSpecification:{id:gt(),label:(0,n.__)("Opening Hours","wds"),label_single:(0,n.__)("Opening Hours Specification","wds"),properties:{0:{id:gt(),label:(0,n.__)("Opening Hours"),type:"OpeningHoursSpecification",disallowAddition:!0,properties:ct}},description:(0,n.__)("Hours during which the business location is open.","wds")},review:{id:gt(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:gt(),type:"Review",properties:yt}},description:(0,n.__)("Reviews of the local business.","wds"),optional:!0}};const vt=R();var Tt=(0,w.merge)({},{acceptsReservations:{id:vt(),label:(0,n.__)("Accepts Reservations","wds"),type:"Text",source:"options",value:"True",customSources:{options:{label:(0,n.__)("Boolean Value","wds"),values:{True:(0,n.__)("True","wds"),False:(0,n.__)("False","wds")}}}},menu:{id:vt(),label:(0,n.__)("Menu URL","wds"),type:"URL",source:"custom_text",value:""},servesCuisine:{id:vt(),label:(0,n.__)("Serves Cuisine","wds"),type:"Text",source:"custom_text",value:""}},bt),St=$()({},Ge,{offers:{activeVersion:"Offer"}});const xt=R();var Ct={name:{id:xt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"author",value:"author_full_name",description:(0,n.__)("The name of the recipe author.","wds")},url:{id:xt(),label:(0,n.__)("URL","wds"),type:"URL",source:"author",value:"author_url",description:(0,n.__)("The URL of the recipe author.","wds")},description:{id:xt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"author",value:"author_description",optional:!0,description:(0,n.__)("Short bio/description of the recipe author.","wds")},image:{id:xt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"author",value:"author_gravatar",description:(0,n.__)("An image of the recipe author.","wds")}};const Et=R();var At={logo:{id:Et(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Et(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:Et(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")}};const Pt=R();var Ot={name:{id:Pt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The title of the video.","wds"),required:!0},description:{id:Pt(),label:(0,n.__)("Description","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The description of the video. HTML tags are ignored.","wds"),required:!0},uploadDate:{id:Pt(),label:(0,n.__)("Upload Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date the video was first published, in ISO 8601 format.","wds"),required:!0},contentUrl:{id:Pt(),label:(0,n.__)("Content URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL pointing to the actual video media file. One or both of the following properties are recommended: contentUrl and embedUrl","wds")},embedUrl:{id:Pt(),label:(0,n.__)("Embed URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL pointing to a player for the specific video. One or both of the following properties are recommended: contentUrl and embedUrl","wds")},duration:{id:Pt(),label:(0,n.__)("Duration","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)('The duration of the video in ISO 8601 format. For example, PT00H30M5S represents a duration of "thirty minutes and five seconds".',"wds"),placeholder:(0,n.__)("E.g. PT00H30M5S","wds")}};const Dt=R();var kt={name:{id:Dt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the clip.","wds"),required:!0,disallowDeletion:!0},url:{id:Dt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A link to the start of the clip.","wds"),required:!0,disallowDeletion:!0},startOffset:{id:Dt(),label:(0,n.__)("Start Offset","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The start time of the clip expressed as the number of seconds from the beginning of the video.","wds"),required:!0,disallowDeletion:!0},endOffset:{id:Dt(),label:(0,n.__)("End Offset","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The end time of the clip expressed as the number of seconds from the beginning of the video.","wds"),disallowDeletion:!0}};const Nt=R();var Rt=$()({},Ot,{thumbnailUrl:{id:Nt(),label:(0,n.__)("Thumbnail URLs","wds"),label_single:(0,n.__)("Thumbnail URL","wds"),description:(0,n.__)("URLs pointing to the video thumbnail image files. Images must be 60px x 30px, at minimum.","wds"),required:!0,properties:{0:{id:Nt(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"image_url",value:""}}},hasPart:{id:Nt(),label:(0,n.__)("Clips","wds"),label_single:(0,n.__)("Clip","wds"),description:(0,n.__)("Video clips that are included within the full video.","wds"),properties:{0:{id:Nt(),type:"Clip",properties:kt}}}});const Lt=R();var It=$()({name:null,description:null,uploadDate:null,thumbnailUrl:null},Ot,{name:{disallowDeletion:!0},description:{disallowDeletion:!0},uploadDate:{disallowDeletion:!0},thumbnailUrl:{id:Lt(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"image_url",value:"",disallowDeletion:!0,required:!0},contentUrl:{disallowDeletion:!0},embedUrl:{disallowDeletion:!0},duration:{disallowDeletion:!0}});const Mt=R();var Bt={name:{id:Mt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The word or short phrase summarizing the step (for example, "Preheat").',"wds"),disallowDeletion:!0},text:{id:Mt(),label:(0,n.__)("Text","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The full instruction text of this step.","wds"),disallowDeletion:!0},image:{id:Mt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image for the step.","wds"),disallowDeletion:!0},url:{id:Mt(),label:(0,n.__)("Url","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL that directly links to the step (if one is available). For example, an anchor link fragment.","wds"),disallowDeletion:!0},video:{id:Mt(),label:(0,n.__)("Video","wds"),activeVersion:"Video",properties:{Video:{id:Mt(),label:(0,n.__)("Video","wds"),description:(0,n.__)("A video for this step.","wds"),type:"VideoObject",properties:It,disallowDeletion:!0,disallowAddition:!0},Clip:{id:Mt(),label:(0,n.__)("Clip","wds"),description:(0,n.__)("A clip for this step.","wds"),type:"Clip",properties:kt,disallowDeletion:!0,disallowAddition:!0}}}};const Ft=R();var jt={name:{id:Ft(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the dish.","wds"),required:!0},datePublished:{id:Ft(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"post_data",description:(0,n.__)("The date and time the recipe was first published, in ISO 8601 format.","wds"),value:"post_date"},description:{id:Ft(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A short summary describing the dish.","wds")},recipeCategory:{id:Ft(),label:(0,n.__)("Recipe Category","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. dessert","wds"),description:(0,n.__)('The type of meal or course your recipe is about. For example: "dinner", "main course", or "dessert, snack".',"wds")},recipeCuisine:{id:Ft(),label:(0,n.__)("Recipe Cuisine","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. Mediterranean","wds"),description:(0,n.__)('The region associated with your recipe. For example, "French", Mediterranean", or "American".',"wds")},keywords:{id:Ft(),label:(0,n.__)("Keywords","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. authentic","wds"),description:(0,n.__)('Other terms for your recipe such as the season ("summer"), the holiday ("Halloween"), or other descriptors ("quick", "easy", "authentic"). Don\'t use a tag that should be in recipeCategory or recipeCuisine.',"wds")},prepTime:{id:Ft(),label:(0,n.__)("Prep Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The length of time it takes to prepare the dish in ISO 8601 duration format. Always use in combination with cookTime.","wds"),placeholder:(0,n.__)("E.g. PT1M","wds")},cookTime:{id:Ft(),label:(0,n.__)("Cook Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The time it takes to actually cook the dish in ISO 8601 duration format. Always use in combination with prepTime.","wds"),placeholder:(0,n.__)("E.g. PT2M","wds")},totalTime:{id:Ft(),label:(0,n.__)("Total Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The total time it takes to prepare and cook the dish in ISO 8601 duration format. Use totalTime or a combination of both cookTime and prepTime.","wds"),placeholder:(0,n.__)("E.g. PT3M","wds")},nutrition:{id:Ft(),label:(0,n.__)("Nutrition","wds"),type:"NutritionInformation",flatten:!0,properties:{calories:{id:Ft(),label:(0,n.__)("Calories Per Serving","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The number of calories in each serving produced with this recipe. If calories is defined, recipeYield must be defined with the number of servings.","wds"),placeholder:(0,n.__)("E.g. 270 calories")}}},recipeYield:{id:Ft(),label:(0,n.__)("Recipe Yield","wds"),type:"Number",source:"number",value:"",placeholder:(0,n.__)("E.g. 6","wds"),description:(0,n.__)("Specify the number of servings produced from this recipe with a number. This is required if you specify calories per serving.","wds")},image:{id:Ft(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),required:!0,description:(0,n.__)("Images of the completed dish. For best results, provide multiple high-resolution images (minimum of 50K pixels when multiplying width and height) with the following aspect ratios: 16x9, 4x3, and 1x1.","wds"),properties:{0:{id:Ft(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},recipeIngredient:{id:Ft(),label:(0,n.__)("Ingredients","wds"),label_single:(0,n.__)("Ingredient","wds"),description:(0,n.__)("Ingredients used in the recipe.","wds"),properties:{0:{id:Ft(),label:(0,n.__)("Ingredient","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 3/4 cup sugar","wds")}}},recipeInstructions:{id:Ft(),label:(0,n.__)("Instructions","wds"),activeVersion:"InstructionStepsText",properties:{InstructionStepsText:{id:Ft(),label:(0,n.__)("Instructions","wds"),label_single:(0,n.__)("Instruction","wds"),description:(0,n.__)("The steps to make the dish.","wds"),properties:{0:{id:Ft(),label:(0,n.__)("Step","wds")+" 1",type:"Text",source:"custom_text",value:"",updateLabelNumber:!0}}},InstructionStepsHowTo:{id:Ft(),label:(0,n.__)("Instruction HowTo Steps","wds"),label_single:(0,n.__)("Instruction Step","wds"),description:(0,n.__)("An array of elements which comprise the full instructions of the recipe. Each step element should correspond to an individual step in the recipe.","wds"),properties:{0:{id:Ft(),label:(0,n.__)("Instruction Step","wds"),type:"HowToStep",properties:Bt}}}}},author:{id:Ft(),label:(0,n.__)("Author","wds"),activeVersion:"Person",properties:{Person:{id:Ft(),label:(0,n.__)("Author","wds"),type:"Person",properties:Ct,description:(0,n.__)("The author of the recipe. The author's name must be a valid name.","wds")},Organization:{id:Ft(),label:(0,n.__)("Author Organization","wds"),type:"Organization",properties:At,description:(0,n.__)("The author of the recipe. The author's name must be a valid name.","wds")}}},aggregateRating:{id:Ft(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the recipe.","wds"),optional:!0},review:{id:Ft(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:Ft(),type:"Review",properties:ye}},description:(0,n.__)("Reviews of the recipe.","wds"),optional:!0},video:{id:Ft(),label:(0,n.__)("Video","wds"),description:(0,n.__)("A video depicting the steps to make the dish.","wds"),type:"VideoObject",properties:Rt,optional:!0}};const qt=R();var Ut={logo:{id:qt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:qt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds"),required:!0},url:{id:qt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},sameAs:{id:qt(),label:(0,n.__)("Same As","wds"),label_single:(0,n.__)("URL","wds"),description:(0,n.__)("URL of reference web pages that unambiguously indicate the item's identity.","wds"),properties:{0:{id:qt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:""}}}};const Vt=R();var zt={streetAddress:{id:Vt(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0,required:!0},addressLocality:{id:Vt(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:Vt(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:Vt(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:Vt(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:Vt(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const Gt=R();var Ht={name:{id:Gt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the place where the employee will report to work.","wds"),disallowDeletion:!0},address:{id:Gt(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:zt,description:(0,n.__)("The address of the place where the employee will report to work.","wds"),disallowAddition:!0,disallowDeletion:!0,required:!0}};const Wt=R();var Zt={"@type":{id:Wt(),label:(0,n.__)("Administrative Area Type","wds"),type:"Text",source:"options",value:"Country",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Administrative Area Type","wds"),values:{Country:(0,n.__)("Country","wds"),City:(0,n.__)("City","wds"),State:(0,n.__)("State","wds")}}}},name:{id:Wt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the administrative area.","wds"),disallowDeletion:!0}};const Yt=R();var $t={currency:{id:Yt(),label:(0,n.__)("Currency","wds"),type:"Text",source:"options",value:"USD",customSources:{options:{label:(0,n.__)("Currencies","wds"),values:it}},description:(0,n.__)("The currency of the base salary.","wds"),disallowDeletion:!0},value:{id:Yt(),label:(0,n.__)("Currency","wds"),type:"QuantitativeValue",flatten:!0,disallowDeletion:!0,properties:{value:{id:Yt(),label:(0,n.__)("Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("To specify a salary range, define a minValue and a maxValue, rather than a single value.","wds")},minValue:{id:Yt(),label:(0,n.__)("Minimum Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("Use in combination with maxValue to provide a salary range.","wds")},maxValue:{id:Yt(),label:(0,n.__)("Maximum Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("Use in combination with minValue to provide a salary range.","wds")},unitText:{id:Yt(),label:(0,n.__)("Unit","wds"),type:"Text",source:"options",value:"HOUR",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Unit","wds"),values:{HOUR:(0,n.__)("Hour","wds"),DAY:(0,n.__)("Day","wds"),WEEK:(0,n.__)("Week","wds"),MONTH:(0,n.__)("Month","wds"),YEAR:(0,n.__)("Year","wds")}}}}}}};const Kt=R();var Jt={title:{id:Kt(),label:(0,n.__)("Title","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)('The title of the job (not the title of the posting). For example, "Software Engineer" or "Barista".',"wds"),required:!0},description:{id:Kt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"post_data",value:"post_content",description:(0,n.__)("The full description of the job in HTML format. The description should be a complete representation of the job, including job responsibilities, qualifications, skills, working hours, education requirements, and experience requirements. The description can't be the same as the title.","wds"),required:!0},datePosted:{id:Kt(),label:(0,n.__)("Date Posted","wds"),type:"DateTime",source:"post_data",value:"post_date",description:(0,n.__)("The original date that employer posted the job in ISO 8601 format.","wds"),required:!0},validThrough:{id:Kt(),label:(0,n.__)("Valid Through","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date when the job posting will expire in ISO 8601 format. This is required for job postings that have an expiration date.","wds")},employmentType:{id:Kt(),label:(0,n.__)("Employment Type","wds"),type:"Text",source:"options",value:"FULL_TIME",disallowDeletion:!0,description:(0,n.__)("Type of employment.","wds"),customSources:{options:{label:(0,n.__)("Employment Type","wds"),values:{FULL_TIME:(0,n.__)("Full Time","wds"),PART_TIME:(0,n.__)("Part Time","wds"),CONTRACTOR:(0,n.__)("Contractor","wds"),TEMPORARY:(0,n.__)("Temporary","wds"),INTERN:(0,n.__)("Intern","wds"),VOLUNTEER:(0,n.__)("Volunteer","wds"),PER_DIEM:(0,n.__)("Per Diem","wds"),OTHER:(0,n.__)("Other","wds")}}}},jobLocationType:{id:Kt(),label:(0,n.__)("Job Location Type","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("Set this property with the value TELECOMMUTE for jobs in which the employee may or must work remotely 100% of the time (from home or another location of their choosing).","wds"),customSources:{options:{label:(0,n.__)("Job Location Type","wds"),values:{"":(0,n.__)("Default","wds"),TELECOMMUTE:(0,n.__)("Telecommute","wds")}}}},educationRequirements:{id:Kt(),type:"EducationalOccupationalCredential",label:(0,n.__)("Education Level","wds"),flatten:!0,properties:{credentialCategory:{id:Kt(),label:(0,n.__)("Education Level","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The level of education that's required for the job posting.","wds"),customSources:{options:{label:(0,n.__)("Education Level","wds"),values:{"":(0,n.__)("No requirements","wds"),"high school":(0,n.__)("High School","wds"),"associate degree":(0,n.__)("Associate Degree","wds"),"bachelor degree":(0,n.__)("Bachelor Degree","wds"),"professional certificate":(0,n.__)("Professional Certificate","wds"),"postgraduate degree":(0,n.__)("Postgraduate degree","wds")}}}}}},experienceRequirements:{id:Kt(),type:"OccupationalExperienceRequirements",label:(0,n.__)("Months Of Experience","wds"),flatten:!0,properties:{monthsOfExperience:{id:Kt(),label:(0,n.__)("Months Of Experience","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The minimum number of months of experience that are required for the job posting. If there are more complex experience requirements, use the experience that represents the minimum number that is required for a candidate.","wds")}}},experienceInPlaceOfEducation:{id:Kt(),label:(0,n.__)("Experience In Place Of Education","wds"),type:"Text",source:"options",value:"False",description:(0,n.__)("If set to true, this property indicates whether a job posting will accept experience in place of its formal educational qualifications. If set to true, you must include both the experienceRequirements and educationRequirements properties.","wds"),customSources:{options:{label:(0,n.__)("Boolean Value","wds"),values:{False:(0,n.__)("False","wds"),True:(0,n.__)("True","wds")}}}},hiringOrganization:{id:Kt(),label:(0,n.__)("Hiring Organization","wds"),type:"Organization",required:!0,description:(0,n.__)('The organization offering the job position. This should be the name of the company (for example, "Starbucks, Inc"), and not the specific location that is hiring (for example, "Starbucks on Main Street").',"wds"),properties:Ut},jobLocation:{id:Kt(),label:(0,n.__)("Job Locations","wds"),label_single:(0,n.__)("Job Location","wds"),required:!0,description:(0,n.__)("The physical location(s) of the business where the employee will report to work (such as an office or worksite), not the location where the job was posted. Include as many properties as possible. The more properties you provide, the higher quality the job posting is to the users.","wds"),properties:{0:{id:Kt(),type:"Place",properties:Ht}}},applicantLocationRequirements:{id:Kt(),label:(0,n.__)("Applicant Location Requirements","wds"),label_single:(0,n.__)("Applicant Location Requirement","wds"),description:(0,n.__)("The geographic location(s) in which employees may be located for to be eligible for the Work from home job. This property is only recommended if applicants may be located in one or more geographic locations and the job may or must be 100% remote.","wds"),properties:{0:{id:Kt(),properties:Zt}}},baseSalary:{id:Kt(),label:(0,n.__)("Base Salary","wds"),type:"MonetaryAmount",description:(0,n.__)("The actual base salary for the job, as provided by the employer (not an estimate).","wds"),disallowAddition:!0,properties:$t},identifier:{id:Kt(),label:(0,n.__)("Identifier","wds"),type:"PropertyValue",description:(0,n.__)("The hiring organization's unique identifier for the job.","wds"),disallowAddition:!0,properties:{name:{id:Kt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier name.","wds"),disallowDeletion:!0},value:{id:Kt(),label:(0,n.__)("Value","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier value.","wds"),disallowDeletion:!0}}}};const Qt=R();var Xt={name:{id:Qt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds"),disallowDeletion:!0},url:{id:Qt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("URL to the person's profile page.","wds"),disallowDeletion:!0},image:{id:Qt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds"),disallowDeletion:!0}};const eo=R();var to={"@id":{id:eo(),label:(0,n.__)("@id","wds"),type:"URL",source:"custom_text",value:"",required:!0,disallowDeletion:!0,description:(0,n.__)("A globally unique ID for the edition in URL format. It must be unique to your organization. The ID must be stable and not change over time. URL format is suggested though not required. It doesn't have to be a working link. The domain used for the @id value must be owned by your organization.","wds")},bookFormat:{id:eo(),label:(0,n.__)("Book Format","wds"),type:"Text",source:"options",value:"Paperback",disallowDeletion:!0,description:(0,n.__)("The format of the edition.","wds"),required:!0,customSources:{options:{label:(0,n.__)("Book Formats","wds"),values:{Paperback:(0,n.__)("Paperback","wds"),Hardcover:(0,n.__)("Hardcover","wds"),EBook:(0,n.__)("EBook","wds"),AudiobookFormat:(0,n.__)("Audiobook","wds")}}}},inLanguage:{id:eo(),label:(0,n.__)("Language","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("The main language of the content in the edition. Use one of the two-letter codes from the list of ISO 639-1 alpha-2 codes.","wds"),placeholder:(0,n.__)("E.g. en","wds")},isbn:{id:eo(),label:(0,n.__)("ISBN","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("The ISBN-13 of the edition. If you have ISBN-10, convert it into ISBN-13. If there's no ISBN for the ebook or audiobook, use the ISBN of the print book instead. For example, if the ebook edition doesn't have an ISBN, use the ISBN for the associated print edition.","wds")},bookEdition:{id:eo(),label:(0,n.__)("Book Edition","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The edition information of the book in free text format. For example, 2nd Edition.","wds"),placeholder:(0,n.__)("E.g. 2nd Edition","wds")},datePublished:{id:eo(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date of publication of the edition in YYYY-MM-DD or YYYY format. This can be either a specific date or only a specific year.","wds")},name:{id:eo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The title of the edition. Only use this when the title of the edition is different from the title of the work.","wds")},url:{id:eo(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The URL on your website where the edition is introduced or described.","wds")},identifier:{id:eo(),label:(0,n.__)("Identifiers","wds"),label_single:(0,n.__)("Identifier","wds"),description:(0,n.__)("The external or other ID that unambiguously identifies this edition.","wds"),disallowDeletion:!0,properties:{0:{id:eo(),type:"PropertyValue",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:{propertyID:{id:eo(),label:(0,n.__)("Type","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The identifier type.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Identifier Types","wds"),values:{"":(0,n.__)("None","wds"),OCLC_NUMBER:(0,n.__)("OCLC_NUMBER","wds"),LCCN:(0,n.__)("LCCN","wds"),"JP_E-CODE":(0,n.__)("JP_E-CODE","wds")}}}},value:{id:eo(),label:(0,n.__)("Value","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier value. The external ID that unambiguously identifies this edition. Remove all non-numeric prefixes of the external ID.","wds"),disallowDeletion:!0}}}}},author:{id:eo(),label:(0,n.__)("Authors","wds"),label_single:(0,n.__)("Author","wds"),description:(0,n.__)("The author(s) of the edition. Only use this when the author of the edition is different from the work author information.","wds"),disallowDeletion:!0,properties:{0:{id:eo(),type:"Person",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:Xt}}},sameAs:{id:eo(),label:(0,n.__)("Same As","wds"),label_single:(0,n.__)("URL","wds"),description:(0,n.__)("The URL of a reference web page that unambiguously indicates the edition. For example, a Wikipedia page for this specific edition. Don't reuse the sameAs of the Work.","wds"),disallowDeletion:!0,properties:{0:{id:eo(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0}}}};const oo=R();var io={"@id":{id:oo(),label:(0,n.__)("@id","wds"),type:"URL",source:"custom_text",value:"",required:!0,description:(0,n.__)("A globally unique ID for the book in URL format. It must be unique to your organization. The ID must be stable and not change over time. URL format is suggested though not required. It doesn't have to be a working link. The domain used for the @id value must be owned by your organization.","wds")},name:{id:oo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The title of the book.","wds")},url:{id:oo(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",required:!0,description:(0,n.__)("The URL on your website where the book is introduced or described.","wds")},author:{id:oo(),label:(0,n.__)("Authors","wds"),label_single:(0,n.__)("Author","wds"),required:!0,description:(0,n.__)("The authors of the book.","wds"),properties:{0:{id:oo(),type:"Person",properties:Xt}}},contributor:{id:oo(),label:(0,n.__)("Contributors","wds"),label_single:(0,n.__)("Contributor","wds"),optional:!0,description:(0,n.__)("People who have made contributions to the book.","wds"),properties:{0:{id:oo(),type:"Person",properties:Xt}}},sameAs:{id:oo(),label:(0,n.__)("Same As","wds"),label_single:(0,n.__)("URL","wds"),description:(0,n.__)("The URL of a reference page that identifies the work. For example, a Wikipedia, Wikidata, VIAF, or Library of Congress page for the book.","wds"),properties:{0:{id:oo(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:""}}},editor:{id:oo(),label:(0,n.__)("Editors","wds"),label_single:(0,n.__)("Editor","wds"),optional:!0,description:(0,n.__)("People who have edited the book.","wds"),properties:{0:{id:oo(),type:"Person",properties:Xt}}},workExample:{id:oo(),label:(0,n.__)("Editions","wds"),label_single:(0,n.__)("Edition","wds"),description:(0,n.__)("The editions of the work.","wds"),properties:{0:{id:oo(),type:"Book",properties:to}}},aggregateRating:{id:oo(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the book.","wds"),optional:!0},review:{id:oo(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:oo(),type:"Review",properties:ye}},description:(0,n.__)("Reviews of the book.","wds"),optional:!0}};const so=R();var ro={logo:{id:so(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:so(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:so(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")}};const no=R();var ao={name:{id:no(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the course instructor.","wds"),disallowDeletion:!0},url:{id:no(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the course instructor.","wds"),disallowDeletion:!0},image:{id:no(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the course instructor.","wds"),disallowDeletion:!0}};const lo=R();var co={streetAddress:{id:lo(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:lo(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:lo(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:lo(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:lo(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:lo(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const uo=R();var po={name:{id:uo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The detailed name of the place or venue where the course is being held.","wds"),disallowDeletion:!0},address:{id:uo(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:co,description:(0,n.__)("The venue's detailed street address.","wds"),disallowDeletion:!0,disallowAddition:!0}};const ho=R();var mo={price:{id:ho(),label:(0,n.__)("Price Value","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The price for attending this course.","wds"),disallowDeletion:!0},priceCurrency:{id:ho(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:$()({"":(0,n.__)("None","wds")},it)}}}};const _o=R();var wo={name:{id:_o(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The title of the course instance.","wds"),disallowDeletion:!0},description:{id:_o(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A description of the course instance.","wds"),disallowDeletion:!0},url:{id:_o(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The URL of the course instance.","wds"),disallowDeletion:!0},courseMode:{id:_o(),label:(0,n.__)("Course Mode","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time").',"wds"),placeholder:(0,n.__)("E.g. onsite","wds"),disallowDeletion:!0},courseWorkload:{id:_o(),label:(0,n.__)("Course Workload","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".',"wds"),placeholder:(0,n.__)("E.g. 2 hours of lectures","wds"),disallowDeletion:!0},eventStatus:{id:_o(),label:(0,n.__)("Status","wds"),type:"Text",source:"options",value:"EventScheduled",customSources:{options:{label:(0,n.__)("Course Status","wds"),values:{EventScheduled:(0,n.__)("Scheduled","wds"),EventMovedOnline:(0,n.__)("Moved Online","wds"),EventRescheduled:(0,n.__)("Rescheduled","wds"),EventPostponed:(0,n.__)("Postponed","wds"),EventCancelled:(0,n.__)("Cancelled","wds")}}},description:(0,n.__)("The status of the course.","wds"),disallowDeletion:!0},eventAttendanceMode:{id:_o(),label:(0,n.__)("Attendance Mode","wds"),type:"Text",source:"options",value:"MixedEventAttendanceMode",customSources:{options:{label:(0,n.__)("Event Attendance Mode","wds"),values:{MixedEventAttendanceMode:(0,n.__)("Mixed Attendance Mode","wds"),OfflineEventAttendanceMode:(0,n.__)("Offline Attendance Mode","wds"),OnlineEventAttendanceMode:(0,n.__)("Online Attendance Mode","wds")}}},description:(0,n.__)("Indicates whether the course will be conducted online, offline at a physical location, or a mix of both online and offline.","wds"),disallowDeletion:!0},startDate:{id:_o(),label:(0,n.__)("Start Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The start date and start time of the course in ISO-8601 format.","wds"),disallowDeletion:!0},endDate:{id:_o(),label:(0,n.__)("End Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The end date and end time of the course in ISO-8601 format.","wds"),disallowDeletion:!0},instructor:{id:_o(),label:(0,n.__)("Instructors","wds"),label_single:(0,n.__)("Instructor","wds"),description:(0,n.__)("A person assigned to instruct or provide instructional assistance for the course instance.","wds"),disallowDeletion:!0,properties:{0:{id:_o(),type:"Person",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:ao}}},image:{id:_o(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),description:(0,n.__)("Images related to the course instance.","wds"),disallowDeletion:!0,properties:{0:{id:_o(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0}}},location:{id:_o(),label:(0,n.__)("Location","wds"),activeVersion:"Place",properties:{Place:{id:_o(),label:(0,n.__)("Location","wds"),type:"Place",properties:po,description:(0,n.__)("The physical location where the course will be held.","wds"),disallowDeletion:!0,disallowAddition:!0},VirtualLocation:{id:_o(),label:(0,n.__)("Virtual Location","wds"),type:"VirtualLocation",disallowAddition:!0,disallowDeletion:!0,properties:{url:{id:_o(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",disallowDeletion:!0,value:"post_permalink",description:(0,n.__)("The URL of the web page, where people can attend the course.","wds")}},description:(0,n.__)("The virtual location of the course.","wds")}}},offers:{id:_o(),label:(0,n.__)("Price","wds"),description:(0,n.__)("Price information for the course.","wds"),properties:mo,disallowAddition:!0,disallowDeletion:!0}};const fo=R();var yo={name:{id:fo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The title of the course.","wds")},description:{id:fo(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",required:!0,description:(0,n.__)("A description of the course. Display limit of 60 characters.","wds")},courseCode:{id:fo(),label:(0,n.__)("Course Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier for the Course used by the course provider.","wds"),placeholder:(0,n.__)("E.g. CS101")},numberOfCredits:{id:fo(),label:(0,n.__)("Number Of Credits","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of credits or units awarded by the course.","wds")},provider:{id:fo(),label:(0,n.__)("Provider","wds"),type:"Organization",description:(0,n.__)("The organization that publishes the source content of the course. For example, UC Berkeley.","wds"),properties:ro},hasCourseInstance:{id:fo(),label:(0,n.__)("Course Instances","wds"),label_single:(0,n.__)("Course Instance","wds"),description:(0,n.__)("An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.","wds"),optional:!0,properties:{0:{id:fo(),type:"CourseInstance",properties:wo}}},aggregateRating:{id:fo(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the course.","wds"),optional:!0},review:{id:fo(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:fo(),type:"Review",properties:ye}},description:(0,n.__)("Reviews of the course.","wds"),optional:!0}};const go=R();var bo={price:{id:go(),label:(0,n.__)("Price Value","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The price of the software application. If the app is free of charge, set price to 0.","wds"),disallowDeletion:!0},priceCurrency:{id:go(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code. If the app has a price greater than 0, you must include currency.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:$()({"":(0,n.__)("None","wds")},it)}}}};const vo=R();var To={itemReviewed:{id:vo(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:vo(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"custom_text",value:"",required:!0,description:(0,n.__)("The name of the item that is being rated.","wds")}},required:!0},ratingCount:{id:vo(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:vo(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:vo(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:vo(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:vo(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const So=R();var xo={itemReviewed:{id:So(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:So(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated.","wds")}}},reviewBody:{id:So(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:So(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:So(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:So(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:pe,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")},Organization:{id:So(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:me,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds")}}},reviewRating:{id:So(),label:(0,n.__)("Rating","wds"),description:(0,n.__)("The rating given in this review.","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,required:!0,properties:we}};const Co=R();var Eo={name:{id:Co(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the app.","wds"),required:!0},description:{id:Co(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The description of the app.","wds")},url:{id:Co(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The permanent URL of the app.","wds")},applicationCategory:{id:Co(),label:(0,n.__)("Application Category","wds"),type:"Text",source:"options",value:"",customSources:{options:{label:(0,n.__)("Application Category","wds"),values:{"":(0,n.__)("None","wds"),GameApplication:(0,n.__)("Game Application","wds"),SocialNetworkingApplication:(0,n.__)("Social Networking Application","wds"),TravelApplication:(0,n.__)("Travel Application","wds"),ShoppingApplication:(0,n.__)("Shopping Application","wds"),SportsApplication:(0,n.__)("Sports Application","wds"),LifestyleApplication:(0,n.__)("Lifestyle Application","wds"),BusinessApplication:(0,n.__)("Business Application","wds"),DesignApplication:(0,n.__)("Design Application","wds"),DeveloperApplication:(0,n.__)("Developer Application","wds"),DriverApplication:(0,n.__)("Driver Application","wds"),EducationalApplication:(0,n.__)("Educational Application","wds"),HealthApplication:(0,n.__)("Health Application","wds"),FinanceApplication:(0,n.__)("Finance Application","wds"),SecurityApplication:(0,n.__)("Security Application","wds"),BrowserApplication:(0,n.__)("Browser Application","wds"),CommunicationApplication:(0,n.__)("Communication Application","wds"),DesktopEnhancementApplication:(0,n.__)("Desktop Enhancement Application","wds"),EntertainmentApplication:(0,n.__)("Entertainment Application","wds"),MultimediaApplication:(0,n.__)("Multimedia Application","wds"),HomeApplication:(0,n.__)("Home Application","wds"),UtilitiesApplication:(0,n.__)("Utilities Application","wds"),ReferenceApplication:(0,n.__)("Reference Application","wds")}}},description:(0,n.__)("The type of app (for example, BusinessApplication or GameApplication). The value must be a supported app type.","wds")},operatingSystem:{id:Co(),label:(0,n.__)("Operating System","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The operating system(s) required to use the app (for example, Windows 7, OSX 10.6, Android 1.6).","wds"),placeholder:(0,n.__)("E.g. Android 1.6","wds")},screenshot:{id:Co(),label:(0,n.__)("Screenshots","wds"),label_single:(0,n.__)("Screenshot","wds"),description:(0,n.__)("Screenshots of the app.","wds"),properties:{0:{id:Co(),label:(0,n.__)("Screenshot","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},offers:{id:Co(),label:(0,n.__)("Price","wds"),description:(0,n.__)("Price information for the app.","wds"),properties:bo,disallowAddition:!0},aggregateRating:{id:Co(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:To,description:(0,n.__)("A nested aggregateRating of the app.","wds"),required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review or aggregateRating.","wds")},review:{id:Co(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),properties:{0:{id:Co(),type:"Review",properties:xo}},description:(0,n.__)("Reviews of the app.","wds"),required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review or aggregateRating.","wds")},softwareVersion:{id:Co(),label:(0,n.__)("Software Version","wds"),description:(0,n.__)("Version of the software instance.","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 1.0.1","wds"),optional:!0},releaseNotes:{id:Co(),label:(0,n.__)("Release Notes","wds"),description:(0,n.__)("Description of what changed in this version.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},downloadUrl:{id:Co(),label:(0,n.__)("Download URL","wds"),description:(0,n.__)("If the file can be downloaded, URL to download the binary.","wds"),type:"URL",source:"custom_text",value:"",optional:!0},installUrl:{id:Co(),label:(0,n.__)("Install URL","wds"),description:(0,n.__)("URL at which the app may be installed, if different from the URL of the item.","wds"),type:"URL",source:"custom_text",value:"",optional:!0},featureList:{id:Co(),label:(0,n.__)("Feature List","wds"),description:(0,n.__)("Features or modules provided by this application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},fileSize:{id:Co(),label:(0,n.__)("File Size","wds"),description:(0,n.__)("Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed.","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 18MB","wds"),optional:!0},memoryRequirements:{id:Co(),label:(0,n.__)("Memory Requirements","wds"),description:(0,n.__)("Minimum memory requirements.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},storageRequirements:{id:Co(),label:(0,n.__)("Storage Requirements"),description:(0,n.__)("Storage requirements (free space required).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 21MB","wds"),optional:!0},processorRequirements:{id:Co(),label:(0,n.__)("Processor Requirements","wds"),description:(0,n.__)("Processor architecture required to run the application (e.g. IA64).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. IA64","wds"),optional:!0},softwareRequirements:{id:Co(),label:(0,n.__)("Software Requirements","wds"),description:(0,n.__)("Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. DirectX","wds"),optional:!0},permissions:{id:Co(),label:(0,n.__)("Permissions","wds"),description:(0,n.__)("Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi).","wds"),type:"Text",source:"custom_text",value:"",optional:!0},applicationSuite:{id:Co(),label:(0,n.__)("Application Suite","wds"),description:(0,n.__)("The name of the application suite to which the application belongs (e.g. Excel belongs to Office).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. Microsoft Office","wds"),optional:!0},availableOnDevice:{id:Co(),label:(0,n.__)("Available On Device","wds"),description:(0,n.__)("Device required to run the application. Used in cases where a specific make/model is required to run the application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0}};const Ao=R();var Po=$()({},Eo,{carrierRequirements:{id:Ao(),label:(0,n.__)("Carrier Requirements","wds"),description:(0,n.__)("Specifies specific carrier(s) requirements for the application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0}});const Oo=R();var Do=$()({},Eo,{browserRequirements:{id:Oo(),label:(0,n.__)("Browser Requirements","wds"),description:(0,n.__)("Specifies browser requirements in human-readable text.","wds"),type:"Text",source:"custom_text",value:"",optional:!0,placeholder:(0,n.__)("E.g. requires HTML5 support","wds")}});const ko=R();var No={name:{id:ko(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds")},url:{id:ko(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the person's profile.","wds")},image:{id:ko(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds")}};const Ro=R();var Lo={logo:{id:Ro(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Ro(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds")},url:{id:Ro(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds")}},Io=$()({},No,{name:{disallowDeletion:!0},url:{disallowDeletion:!0},image:{disallowDeletion:!0}});const Mo=R();var Bo={Article:H,Book:io,Course:yo,Product:Me,Recipe:jt,SoftwareApplication:Eo,MobileApplication:Po,WebApplication:Do,WooProduct:Ge,Event:be,FAQPage:Ke,HowTo:ot,JobPosting:Jt,LocalBusiness:bt,FoodEstablishment:Tt,WooSimpleProduct:St,Movie:{name:{id:Mo(),label:(0,n.__)("Name","wds"),description:(0,n.__)("The name of the movie.","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0},dateCreated:{id:Mo(),label:(0,n.__)("Release Date","wds"),description:(0,n.__)("The date the movie was released.","wds"),type:"DateTime",source:"datetime",value:""},image:{id:Mo(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),description:(0,n.__)("An image that represents the movie. Images must have a high resolution and have a 6:9 aspect ratio. While Google can crop images that are close to a 6:9 aspect ratio, images largely deviating from this ratio aren't eligible for the feature.","wds"),required:!0,properties:{0:{id:Mo(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},director:{id:Mo(),label:(0,n.__)("Director","wds"),description:(0,n.__)("The director of the movie.","wds"),type:"Person",properties:No},aggregateRating:{id:Mo(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ce,description:(0,n.__)("A nested aggregateRating of the movie.","wds"),optional:!0},review:{id:Mo(),label:(0,n.__)("Reviews","wds"),label_single:(0,n.__)("Review","wds"),description:(0,n.__)("Reviews of the movie.","wds"),optional:!0,properties:{0:{id:Mo(),type:"Review",properties:ye}}},actor:{id:Mo(),label:(0,n.__)("Actors","wds"),label_single:(0,n.__)("Actor","wds"),description:(0,n.__)("Actors working in the movie","wds"),optional:!0,properties:{0:{id:Mo(),type:"Person",properties:Io}}},countryOfOrigin:{id:Mo(),label:(0,n.__)("Country Of Origin","wds"),type:"Country",flatten:!0,optional:!0,properties:{name:{id:Mo(),label:(0,n.__)("Country Of Origin","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country of the principal offices of the production company or individual responsible for the movie.","wds"),placeholder:(0,n.__)("E.g. USA","wds")}}},duration:{id:Mo(),label:(0,n.__)("Duration","wds"),description:(0,n.__)("The duration of the item in ISO 8601 date format.","wds"),type:"Duration",source:"duration",value:"",optional:!0,placeholder:(0,n.__)("E.g. PT00H30M5S","wds")},musicBy:{id:Mo(),label:(0,n.__)("Music By","wds"),description:(0,n.__)("The composer of the soundtrack.","wds"),type:"Person",optional:!0,properties:No},productionCompany:{id:Mo(),label:(0,n.__)("Production Company","wds"),type:"Organization",optional:!0,description:(0,n.__)("The production company or studio responsible for the movie.","wds"),properties:Lo}}};const Fo=R();var jo={Article:{label:(0,n.__)("Article","wds"),icon:"wds-custom-icon-file-alt"},BlogPosting:{label:(0,n.__)("Blog Posting","wds"),icon:"wds-custom-icon-blog",parent:"Article"},NewsArticle:{label:(0,n.__)("News Article","wds"),icon:"wds-custom-icon-newspaper",parent:"Article"},Book:{label:(0,n.__)("Book","wds"),icon:"wds-custom-icon-book"},Course:{label:(0,n.__)("Course","wds"),icon:"wds-custom-icon-graduation-cap"},Event:{label:(0,n.__)("Event","wds"),icon:"wds-custom-icon-calendar-check"},FAQPage:{label:(0,n.__)("FAQ Page","wds"),icon:"wds-custom-icon-question-circle"},HowTo:{label:(0,n.__)("How To","wds"),icon:"wds-custom-icon-list-alt"},JobPosting:{label:(0,n.__)("Job Posting","wds"),icon:"wds-custom-icon-user-tie"},LocalBusiness:{label:(0,n.__)("Local Business","wds"),icon:"wds-custom-icon-store",condition:{id:Fo(),lhs:"homepage",operator:"=",rhs:""}},AnimalShelter:{label:(0,n.__)("Animal Shelter","wds"),icon:"wds-custom-icon-paw",parent:"LocalBusiness"},AutomotiveBusiness:{label:(0,n.__)("Automotive Business","wds"),icon:"wds-custom-icon-car",parent:"LocalBusiness"},AutoBodyShop:{label:(0,n.__)("Auto Body Shop","wds"),icon:"wds-custom-icon-car-building",parent:"LocalBusiness"},AutoDealer:{label:(0,n.__)("Auto Dealer","wds"),icon:"wds-custom-icon-car-garage",parent:"LocalBusiness"},AutoPartsStore:{label:(0,n.__)("Auto Parts Store","wds"),icon:"wds-custom-icon-tire",parent:"LocalBusiness"},AutoRental:{label:(0,n.__)("Auto Rental","wds"),icon:"wds-custom-icon-garage-car",parent:"LocalBusiness"},AutoRepair:{label:(0,n.__)("Auto Repair","wds"),icon:"wds-custom-icon-car-mechanic",parent:"LocalBusiness"},AutoWash:{label:(0,n.__)("Auto Wash","wds"),icon:"wds-custom-icon-car-wash",parent:"LocalBusiness"},GasStation:{label:(0,n.__)("Gas Station","wds"),icon:"wds-custom-icon-gas-pump",parent:"LocalBusiness"},MotorcycleDealer:{label:(0,n.__)("Motorcycle Dealer","wds"),icon:"wds-custom-icon-motorcycle",parent:"LocalBusiness"},MotorcycleRepair:{label:(0,n.__)("Motorcycle Repair","wds"),icon:"wds-custom-icon-tools",parent:"LocalBusiness"},ChildCare:{label:(0,n.__)("Child Care","wds"),icon:"wds-custom-icon-baby",parent:"LocalBusiness"},DryCleaningOrLaundry:{label:(0,n.__)("Dry Cleaning Or Laundry","wds"),icon:"wds-custom-icon-washer",parent:"LocalBusiness"},EmergencyService:{label:(0,n.__)("Emergency Service","wds"),icon:"wds-custom-icon-siren-on",parent:"LocalBusiness"},FireStation:{label:(0,n.__)("Fire Station","wds"),icon:"wds-custom-icon-fire-extinguisher",parent:"LocalBusiness"},Hospital:{label:(0,n.__)("Hospital","wds"),icon:"wds-custom-icon-hospital-alt",parent:"LocalBusiness"},PoliceStation:{label:(0,n.__)("Police Station","wds"),icon:"wds-custom-icon-police-box",parent:"LocalBusiness"},EmploymentAgency:{label:(0,n.__)("Employment Agency","wds"),icon:"wds-custom-icon-user-tie",parent:"LocalBusiness"},EntertainmentBusiness:{label:(0,n.__)("Entertainment Business","wds"),icon:"wds-custom-icon-tv-music",parent:"LocalBusiness"},AdultEntertainment:{label:(0,n.__)("Adult Entertainment","wds"),icon:"wds-custom-icon-diamond",parent:"LocalBusiness"},AmusementPark:{label:(0,n.__)("Amusement Park","wds"),icon:"wds-custom-icon-helicopter",parent:"LocalBusiness"},ArtGallery:{label:(0,n.__)("Art Gallery","wds"),icon:"wds-custom-icon-image",parent:"LocalBusiness"},Casino:{label:(0,n.__)("Casino","wds"),icon:"wds-custom-icon-coins",parent:"LocalBusiness"},ComedyClub:{label:(0,n.__)("Comedy Club","wds"),icon:"wds-custom-icon-theater-masks",parent:"LocalBusiness"},MovieTheater:{label:(0,n.__)("Movie Theater","wds"),icon:"wds-custom-icon-camera-movie",parent:"LocalBusiness"},NightClub:{label:(0,n.__)("Night Club","wds"),icon:"wds-custom-icon-cocktail",parent:"LocalBusiness"},FinancialService:{label:(0,n.__)("Financial Service","wds"),icon:"wds-custom-icon-briefcase",parent:"LocalBusiness"},AccountingService:{label:(0,n.__)("Accounting Service","wds"),icon:"wds-custom-icon-cabinet-filing",parent:"LocalBusiness"},AutomatedTeller:{label:(0,n.__)("Automated Teller","wds"),icon:"wds-custom-icon-credit-card",parent:"LocalBusiness"},BankOrCreditUnion:{label:(0,n.__)("Bank Or Credit Union","wds"),icon:"wds-custom-icon-landmark",parent:"LocalBusiness"},InsuranceAgency:{label:(0,n.__)("Insurance Agency","wds"),icon:"wds-custom-icon-car-crash",parent:"LocalBusiness"},FoodEstablishment:{label:(0,n.__)("Food Establishment","wds"),icon:"wds-custom-icon-carrot",condition:{id:Fo(),lhs:"homepage",operator:"=",rhs:""}},Bakery:{label:(0,n.__)("Bakery","wds"),icon:"wds-custom-icon-croissant",parent:"FoodEstablishment"},BarOrPub:{label:(0,n.__)("Bar Or Pub","wds"),icon:"wds-custom-icon-glass-whiskey-rocks",parent:"FoodEstablishment"},Brewery:{label:(0,n.__)("Brewery","wds"),icon:"wds-custom-icon-beer",parent:"FoodEstablishment"},CafeOrCoffeeShop:{label:(0,n.__)("Cafe Or Coffee Shop","wds"),icon:"wds-custom-icon-coffee",parent:"FoodEstablishment"},Distillery:{label:(0,n.__)("Distillery","wds"),icon:"wds-custom-icon-flask-potion",parent:"FoodEstablishment"},FastFoodRestaurant:{label:(0,n.__)("Fast Food Restaurant","wds"),icon:"wds-custom-icon-burger-soda",parent:"FoodEstablishment"},IceCreamShop:{label:(0,n.__)("Ice Cream Shop","wds"),icon:"wds-custom-icon-ice-cream",parent:"FoodEstablishment"},Restaurant:{label:(0,n.__)("Restaurant","wds"),icon:"wds-custom-icon-utensils-alt",parent:"FoodEstablishment"},Winery:{label:(0,n.__)("Winery","wds"),icon:"wds-custom-icon-wine-glass-alt",parent:"FoodEstablishment"},GovernmentOffice:{label:(0,n.__)("Government Office","wds"),icon:"wds-custom-icon-university",parent:"LocalBusiness"},PostOffice:{label:(0,n.__)("Post Office","wds"),icon:"wds-custom-icon-mailbox",parent:"LocalBusiness"},HealthAndBeautyBusiness:{label:(0,n.__)("Health And Beauty","wds"),labelFull:(0,n.__)("Health And Beauty Business","wds"),icon:"wds-custom-icon-heartbeat",parent:"LocalBusiness"},BeautySalon:{label:(0,n.__)("Beauty Salon","wds"),icon:"wds-custom-icon-lips",parent:"LocalBusiness"},DaySpa:{label:(0,n.__)("Day Spa","wds"),icon:"wds-custom-icon-spa",parent:"LocalBusiness"},HairSalon:{label:(0,n.__)("Hair Salon","wds"),icon:"wds-custom-icon-cut",parent:"LocalBusiness"},HealthClub:{label:(0,n.__)("Health Club","wds"),icon:"wds-custom-icon-notes-medical",parent:"LocalBusiness"},NailSalon:{label:(0,n.__)("Nail Salon","wds"),icon:"wds-custom-icon-hands-heart",parent:"LocalBusiness"},TattooParlor:{label:(0,n.__)("Tattoo Parlor","wds"),icon:"wds-custom-icon-moon-stars",parent:"LocalBusiness"},HomeAndConstructionBusiness:{label:(0,n.__)("Home And Construction","wds"),labelFull:(0,n.__)("Home And Construction Business","wds"),icon:"wds-custom-icon-home-heart",parent:"LocalBusiness"},Electrician:{label:(0,n.__)("Electrician","wds"),icon:"wds-custom-icon-bolt",parent:"LocalBusiness"},GeneralContractor:{label:(0,n.__)("General Contractor","wds"),icon:"wds-custom-icon-house-leave",parent:"LocalBusiness"},HVACBusiness:{label:(0,n.__)("HVACBusiness","wds"),icon:"wds-custom-icon-temperature-frigid",parent:"LocalBusiness"},HousePainter:{label:(0,n.__)("House Painter","wds"),icon:"wds-custom-icon-paint-roller",parent:"LocalBusiness"},Locksmith:{label:(0,n.__)("Locksmith","wds"),icon:"wds-custom-icon-key",parent:"LocalBusiness"},MovingCompany:{label:(0,n.__)("Moving Company","wds"),icon:"wds-custom-icon-dolly",parent:"LocalBusiness"},Plumber:{label:(0,n.__)("Plumber","wds"),icon:"wds-custom-icon-faucet",parent:"LocalBusiness"},RoofingContractor:{label:(0,n.__)("Roofing Contractor","wds"),icon:"wds-custom-icon-home",parent:"LocalBusiness"},InternetCafe:{label:(0,n.__)("Internet Cafe","wds"),icon:"wds-custom-icon-mug-hot",parent:"LocalBusiness"},LegalService:{label:(0,n.__)("Legal Service","wds"),icon:"wds-custom-icon-balance-scale-right",parent:"LocalBusiness"},Attorney:{label:(0,n.__)("Attorney","wds"),icon:"wds-custom-icon-gavel",parent:"LocalBusiness"},Notary:{label:(0,n.__)("Notary","wds"),icon:"wds-custom-icon-pen-alt",parent:"LocalBusiness"},Library:{label:(0,n.__)("Library","wds"),icon:"wds-custom-icon-books",parent:"LocalBusiness"},LodgingBusiness:{label:(0,n.__)("Lodging Business","wds"),icon:"wds-custom-icon-bed",parent:"LocalBusiness"},BedAndBreakfast:{label:(0,n.__)("Bed And Breakfast","wds"),icon:"wds-custom-icon-bed-empty",parent:"LocalBusiness"},Campground:{label:(0,n.__)("Campground","wds"),icon:"wds-custom-icon-campground",parent:"LocalBusiness"},Hostel:{label:(0,n.__)("Hostel","wds"),icon:"wds-custom-icon-bed-bunk",parent:"LocalBusiness"},Hotel:{label:(0,n.__)("Hotel","wds"),icon:"wds-custom-icon-h-square",parent:"LocalBusiness"},Motel:{label:(0,n.__)("Motel","wds"),icon:"wds-custom-icon-concierge-bell",parent:"LocalBusiness"},Resort:{label:(0,n.__)("Resort","wds"),icon:"wds-custom-icon-umbrella-beach",parent:"LocalBusiness"},MedicalBusiness:{label:(0,n.__)("Medical Business","wds"),icon:"wds-custom-icon-clinic-medical",parent:"LocalBusiness"},CommunityHealth:{label:(0,n.__)("Community Health","wds"),icon:"wds-custom-icon-hospital-user",parent:"LocalBusiness"},Dentist:{label:(0,n.__)("Dentist","wds"),icon:"wds-custom-icon-tooth",parent:"LocalBusiness"},Dermatology:{label:(0,n.__)("Dermatology","wds"),icon:"wds-custom-icon-allergies",parent:"LocalBusiness"},DietNutrition:{label:(0,n.__)("Diet Nutrition","wds"),icon:"wds-custom-icon-weight",parent:"LocalBusiness"},Emergency:{label:(0,n.__)("Emergency","wds"),icon:"wds-custom-icon-ambulance",parent:"LocalBusiness"},Geriatric:{label:(0,n.__)("Geriatric","wds"),icon:"wds-custom-icon-loveseat",parent:"LocalBusiness"},Gynecologic:{label:(0,n.__)("Gynecologic","wds"),icon:"wds-custom-icon-female",parent:"LocalBusiness"},MedicalClinic:{label:(0,n.__)("Medical Clinic","wds"),icon:"wds-custom-icon-clinic-medical",parent:"LocalBusiness"},Midwifery:{label:(0,n.__)("Midwifery","wds"),icon:"wds-custom-icon-baby",parent:"LocalBusiness"},Nursing:{label:(0,n.__)("Nursing","wds"),icon:"wds-custom-icon-user-nurse",parent:"LocalBusiness"},Obstetric:{label:(0,n.__)("Obstetric","wds"),icon:"wds-custom-icon-baby",parent:"LocalBusiness"},Oncologic:{label:(0,n.__)("Oncologic","wds"),icon:"wds-custom-icon-user-md",parent:"LocalBusiness"},Optician:{label:(0,n.__)("Optician","wds"),icon:"wds-custom-icon-eye",parent:"LocalBusiness"},Optometric:{label:(0,n.__)("Optometric","wds"),icon:"wds-custom-icon-glasses-alt",parent:"LocalBusiness"},Otolaryngologic:{label:(0,n.__)("Otolaryngologic","wds"),icon:"wds-custom-icon-user-md-chat",parent:"LocalBusiness"},Pediatric:{label:(0,n.__)("Pediatric","wds"),icon:"wds-custom-icon-child",parent:"LocalBusiness"},Pharmacy:{label:(0,n.__)("Pharmacy","wds"),icon:"wds-custom-icon-pills",parent:"LocalBusiness"},Physician:{label:(0,n.__)("Physician","wds"),icon:"wds-custom-icon-user-md",parent:"LocalBusiness"},Physiotherapy:{label:(0,n.__)("Physiotherapy","wds"),icon:"wds-custom-icon-user-injured",parent:"LocalBusiness"},PlasticSurgery:{label:(0,n.__)("Plastic Surgery","wds"),icon:"wds-custom-icon-lips",parent:"LocalBusiness"},Podiatric:{label:(0,n.__)("Podiatric","wds"),icon:"wds-custom-icon-shoe-prints",parent:"LocalBusiness"},PrimaryCare:{label:(0,n.__)("Primary Care","wds"),icon:"wds-custom-icon-comment-alt-medical",parent:"LocalBusiness"},Psychiatric:{label:(0,n.__)("Psychiatric","wds"),icon:"wds-custom-icon-head-side-brain",parent:"LocalBusiness"},PublicHealth:{label:(0,n.__)("Public Health","wds"),icon:"wds-custom-icon-clipboard-user",parent:"LocalBusiness"},ProfessionalService:{label:(0,n.__)("Professional Service","wds"),icon:"wds-custom-icon-user-hard-hat",parent:"LocalBusiness"},RadioStation:{label:(0,n.__)("Radio Station","wds"),icon:"wds-custom-icon-radio",parent:"LocalBusiness"},RealEstateAgent:{label:(0,n.__)("Real Estate Agent","wds"),icon:"wds-custom-icon-sign",parent:"LocalBusiness"},RecyclingCenter:{label:(0,n.__)("Recycling Center","wds"),icon:"wds-custom-icon-recycle",parent:"LocalBusiness"},SelfStorage:{label:(0,n.__)("Self Storage","wds"),icon:"wds-custom-icon-warehouse-alt",parent:"LocalBusiness"},ShoppingCenter:{label:(0,n.__)("Shopping Center","wds"),icon:"wds-custom-icon-bags-shopping",parent:"LocalBusiness"},SportsActivityLocation:{label:(0,n.__)("Sports Activity Location","wds"),icon:"wds-custom-icon-volleyball-ball",parent:"LocalBusiness"},BowlingAlley:{label:(0,n.__)("Bowling Alley","wds"),icon:"wds-custom-icon-bowling-pins",parent:"LocalBusiness"},ExerciseGym:{label:(0,n.__)("Exercise Gym","wds"),icon:"wds-custom-icon-dumbbell",parent:"LocalBusiness"},GolfCourse:{label:(0,n.__)("Golf Course","wds"),icon:"wds-custom-icon-golf-club",parent:"LocalBusiness"},PublicSwimmingPool:{label:(0,n.__)("Public Swimming Pool","wds"),icon:"wds-custom-icon-swimmer",parent:"LocalBusiness"},SkiResort:{label:(0,n.__)("Ski Resort","wds"),icon:"wds-custom-icon-skiing",parent:"LocalBusiness"},SportsClub:{label:(0,n.__)("Sports Club","wds"),icon:"wds-custom-icon-football-ball",parent:"LocalBusiness"},StadiumOrArena:{label:(0,n.__)("Stadium Or Arena","wds"),icon:"wds-custom-icon-pennant",parent:"LocalBusiness"},TennisComplex:{label:(0,n.__)("Tennis Complex","wds"),icon:"wds-custom-icon-racquet",parent:"LocalBusiness"},Store:{label:(0,n.__)("Store","wds"),icon:"wds-custom-icon-store-alt",parent:"LocalBusiness"},BikeStore:{label:(0,n.__)("Bike Store","wds"),icon:"wds-custom-icon-bicycle",parent:"LocalBusiness"},BookStore:{label:(0,n.__)("Book Store","wds"),icon:"wds-custom-icon-book",parent:"LocalBusiness"},ClothingStore:{label:(0,n.__)("Clothing Store","wds"),icon:"wds-custom-icon-tshirt",parent:"LocalBusiness"},ComputerStore:{label:(0,n.__)("Computer Store","wds"),icon:"wds-custom-icon-laptop",parent:"LocalBusiness"},ConvenienceStore:{label:(0,n.__)("Convenience Store","wds"),icon:"wds-custom-icon-shopping-basket",parent:"LocalBusiness"},DepartmentStore:{label:(0,n.__)("Department Store","wds"),icon:"wds-custom-icon-bags-shopping",parent:"LocalBusiness"},ElectronicsStore:{label:(0,n.__)("Electronics Store","wds"),icon:"wds-custom-icon-boombox",parent:"LocalBusiness"},Florist:{label:(0,n.__)("Florist","wds"),icon:"wds-custom-icon-flower-daffodil",parent:"LocalBusiness"},FurnitureStore:{label:(0,n.__)("Furniture Store","wds"),icon:"wds-custom-icon-chair",parent:"LocalBusiness"},GardenStore:{label:(0,n.__)("Garden Store","wds"),icon:"wds-custom-icon-seedling",parent:"LocalBusiness"},GroceryStore:{label:(0,n.__)("Grocery Store","wds"),icon:"wds-custom-icon-shopping-cart",parent:"LocalBusiness"},HardwareStore:{label:(0,n.__)("Hardware Store","wds"),icon:"wds-custom-icon-computer-speaker",parent:"LocalBusiness"},HobbyShop:{label:(0,n.__)("Hobby Shop","wds"),icon:"wds-custom-icon-game-board",parent:"LocalBusiness"},HomeGoodsStore:{label:(0,n.__)("Home Goods Store","wds"),icon:"wds-custom-icon-coffee-pot",parent:"LocalBusiness"},JewelryStore:{label:(0,n.__)("Jewelry Store","wds"),icon:"wds-custom-icon-rings-wedding",parent:"LocalBusiness"},LiquorStore:{label:(0,n.__)("Liquor Store","wds"),icon:"wds-custom-icon-jug",parent:"LocalBusiness"},MensClothingStore:{label:(0,n.__)("Mens Clothing Store","wds"),icon:"wds-custom-icon-user-tie",parent:"LocalBusiness"},MobilePhoneStore:{label:(0,n.__)("Mobile Phone Store","wds"),icon:"wds-custom-icon-mobile-alt",parent:"LocalBusiness"},MovieRentalStore:{label:(0,n.__)("Movie Rental Store","wds"),icon:"wds-custom-icon-film",parent:"LocalBusiness"},MusicStore:{label:(0,n.__)("Music Store","wds"),icon:"wds-custom-icon-album-collection",parent:"LocalBusiness"},OfficeEquipmentStore:{label:(0,n.__)("Office Equipment Store","wds"),icon:"wds-custom-icon-chair-office",parent:"LocalBusiness"},OutletStore:{label:(0,n.__)("Outlet Store","wds"),icon:"wds-custom-icon-tags",parent:"LocalBusiness"},PawnShop:{label:(0,n.__)("Pawn Shop","wds"),icon:"wds-custom-icon-ring",parent:"LocalBusiness"},PetStore:{label:(0,n.__)("Pet Store","wds"),icon:"wds-custom-icon-dog-leashed",parent:"LocalBusiness"},ShoeStore:{label:(0,n.__)("Shoe Store","wds"),icon:"wds-custom-icon-boot",parent:"LocalBusiness"},SportingGoodsStore:{label:(0,n.__)("Sporting Goods Store","wds"),icon:"wds-custom-icon-baseball",parent:"LocalBusiness"},TireShop:{label:(0,n.__)("Tire Shop","wds"),icon:"wds-custom-icon-tire",parent:"LocalBusiness"},ToyStore:{label:(0,n.__)("Toy Store","wds"),icon:"wds-custom-icon-gamepad-alt",parent:"LocalBusiness"},WholesaleStore:{label:(0,n.__)("Wholesale Store","wds"),icon:"wds-custom-icon-boxes-alt",parent:"LocalBusiness"},TelevisionStation:{label:(0,n.__)("Television Station","wds"),icon:"wds-custom-icon-tv-retro",parent:"LocalBusiness"},TouristInformationCenter:{label:(0,n.__)("Tourist Information Center","wds"),icon:"wds-custom-icon-map-marked-alt",parent:"LocalBusiness"},TravelAgency:{label:(0,n.__)("Travel Agency","wds"),icon:"wds-custom-icon-plane",parent:"LocalBusiness"},Movie:{icon:"wds-custom-icon-camera-movie",label:(0,n.__)("Movie","wds")},Product:{icon:"wds-custom-icon-shopping-cart",label:(0,n.__)("Product","wds")},Recipe:{label:(0,n.__)("Recipe","wds"),icon:"wds-custom-icon-soup"},SoftwareApplication:{label:(0,n.__)("Software Application","wds"),icon:"wds-custom-icon-laptop-code"},MobileApplication:{label:(0,n.__)("Mobile Application","wds"),icon:"wds-custom-icon-mobile-alt"},WebApplication:{label:(0,n.__)("Web Application","wds"),icon:"wds-custom-icon-browser"},WooProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("WooCommerce Product","wds"),condition:{id:Fo(),lhs:"post_type",operator:"=",rhs:"product"},disabled:!a.get("woocommerce","schema_types"),subTypesNotice:(0,n.__)("Note: Simple Product includes the <strong>Offer</strong> property, while Variable product includes the <strong>AggregateOffer</strong> property to fit the variation in pricing to your product.","wds")},WooVariableProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("Variable Product","wds"),labelFull:(0,n.__)("WooCommerce Variable Product","wds"),condition:{id:Fo(),lhs:"product_type",operator:"=",rhs:"WC_Product_Variable"},disabled:!a.get("woocommerce","schema_types"),parent:"WooProduct"},WooSimpleProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("Simple Product","wds"),labelFull:(0,n.__)("WooCommerce Simple Product","wds"),condition:{id:Fo(),lhs:"product_type",operator:"=",rhs:"WC_Product_Simple"},disabled:!a.get("woocommerce","schema_types")}};class qo extends i().Component{render(){const t=b()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,n.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,o)=>(0,e.createElement)("li",{key:o},t)))))}}l(qo,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class Uo extends i().Component{constructor(e){super(e),this.props=e}handleChange(e){const t=this.props.selectedValues.slice(),o=e.target.checked,i=e.target.value;o&&!t.includes(i)&&(t.push(i),this.props.onChange(this.props.multiple?t:[i])),!o&&t.includes(i)&&this.props.onChange(t.filter((e=>e!=e)))}render(){let t=this.props.options.map((t=>(0,e.createElement)("li",{key:t.id},(0,e.createElement)("label",{className:b()({"sui-box-selector":!0,"sui-disabled":t.disabled}),htmlFor:this.props.id+"-"+t.id},(0,e.createElement)("input",{onChange:e=>this.handleChange(e),id:this.props.id+"-"+t.id,type:"checkbox",disabled:t.disabled,checked:this.props.selectedValues.includes(t.id),value:t.id}),(0,e.createElement)("span",null,t.icon&&(0,e.createElement)("span",{className:t.icon}),t.label,t.required&&(0,e.createElement)("span",{className:"wds-required-asterisk"},"*"))))));return(0,e.createElement)("div",{className:"sui-box-selectors sui-box-selectors-col-"+this.props.cols},(0,e.createElement)("ul",null,t))}}l(Uo,"defaultProps",{id:"",selectedValues:[],cols:2,options:{},onChange:()=>!1,multiple:!0});class Vo extends i().Component{constructor(e){super(e),this.state={selectedValues:[]}}handleSelection(e){this.setState({selectedValues:e})}handleAction(){this.props.onAction(this.state.selectedValues)}hasRequiredOption(){let e=!1;return this.props.options.some((t=>{if(t.required)return e=!0,!0})),e}render(){return(0,e.createElement)(D,{small:!0,id:this.props.id+"-modal",title:this.props.title,onClose:()=>this.props.onClose(),dialogClasses:{"sui-modal-lg":!0,"sui-modal-sm":!1},description:this.props.description},this.hasRequiredOption()&&this.props.requiredNotice,!!Object.keys(this.props.options).length&&(0,e.createElement)(Uo,{id:this.props.id+"-selector",options:this.props.options,selectedValues:this.state.selectedValues,multiple:this.props.multiple,onChange:e=>this.handleSelection(e)}),!Object.keys(this.props.options).length&&this.props.noOptionsMessage,this.props.generalMessage,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(k,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.props.onClose(),ghost:!0}),(0,e.createElement)(k,{text:this.props.actionButtonText,icon:this.props.actionButtonIcon,id:this.props.id+"-action-button",onClick:()=>this.handleAction(),disabled:!Object.keys(this.state.selectedValues).length})))}}l(Vo,"defaultProps",{id:"",title:"",description:"",actionButtonText:"",actionButtonIcon:"",onClose:w.noop,onAction:w.noop,options:{},multiple:!0,noOptionsMessage:!1,generalMessage:!1,requiredNotice:""});var zo={Article:{BlogPosting:!1,NewsArticle:!1},Book:!1,Course:!1,Event:!1,FAQPage:!1,HowTo:!1,JobPosting:!1,LocalBusiness:{AnimalShelter:!1,AutomotiveBusiness:{AutoBodyShop:!1,AutoDealer:!1,AutoPartsStore:!1,AutoRental:!1,AutoRepair:!1,AutoWash:!1,GasStation:!1,MotorcycleDealer:!1,MotorcycleRepair:!1},ChildCare:!1,DryCleaningOrLaundry:!1,EmergencyService:{FireStation:!1,Hospital:!1,PoliceStation:!1},EmploymentAgency:!1,EntertainmentBusiness:{AdultEntertainment:!1,AmusementPark:!1,ArtGallery:!1,Casino:!1,ComedyClub:!1,MovieTheater:!1,NightClub:!1},FinancialService:{AccountingService:!1,AutomatedTeller:!1,BankOrCreditUnion:!1,InsuranceAgency:!1},FoodEstablishment:{Bakery:!1,BarOrPub:!1,Brewery:!1,CafeOrCoffeeShop:!1,Distillery:!1,FastFoodRestaurant:!1,IceCreamShop:!1,Restaurant:!1,Winery:!1},GovernmentOffice:{PostOffice:!1},HealthAndBeautyBusiness:{BeautySalon:!1,DaySpa:!1,HairSalon:!1,HealthClub:!1,NailSalon:!1,TattooParlor:!1},HomeAndConstructionBusiness:{Electrician:!1,GeneralContractor:!1,HVACBusiness:!1,HousePainter:!1,Locksmith:!1,MovingCompany:!1,Plumber:!1,RoofingContractor:!1},InternetCafe:!1,LegalService:{Attorney:!1,Notary:!1},Library:!1,LodgingBusiness:{BedAndBreakfast:!1,Campground:!1,Hostel:!1,Hotel:!1,Motel:!1,Resort:!1},MedicalBusiness:{CommunityHealth:!1,Dentist:!1,Dermatology:!1,DietNutrition:!1,Emergency:!1,Geriatric:!1,Gynecologic:!1,MedicalClinic:!1,Midwifery:!1,Nursing:!1,Obstetric:!1,Oncologic:!1,Optician:!1,Optometric:!1,Otolaryngologic:!1,Pediatric:!1,Pharmacy:!1,Physician:!1,Physiotherapy:!1,PlasticSurgery:!1,Podiatric:!1,PrimaryCare:!1,Psychiatric:!1,PublicHealth:!1},ProfessionalService:!1,RadioStation:!1,RealEstateAgent:!1,RecyclingCenter:!1,SelfStorage:!1,ShoppingCenter:!1,SportsActivityLocation:{BowlingAlley:!1,ExerciseGym:!1,GolfCourse:!1,HealthClub:!1,PublicSwimmingPool:!1,SkiResort:!1,SportsClub:!1,StadiumOrArena:!1,TennisComplex:!1},Store:{BikeStore:!1,BookStore:!1,ClothingStore:!1,ComputerStore:!1,ConvenienceStore:!1,DepartmentStore:!1,ElectronicsStore:!1,Florist:!1,FurnitureStore:!1,GardenStore:!1,GroceryStore:!1,HardwareStore:!1,HobbyShop:!1,HomeGoodsStore:!1,JewelryStore:!1,LiquorStore:!1,MensClothingStore:!1,MobilePhoneStore:!1,MovieRentalStore:!1,MusicStore:!1,OfficeEquipmentStore:!1,OutletStore:!1,PawnShop:!1,PetStore:!1,ShoeStore:!1,SportingGoodsStore:!1,TireShop:!1,ToyStore:!1,WholesaleStore:!1},TelevisionStation:!1,TouristInformationCenter:!1,TravelAgency:!1},Movie:!1,Product:!1,Recipe:!1,SoftwareApplication:{MobileApplication:!1,WebApplication:!1},WooProduct:{WooVariableProduct:!1,WooSimpleProduct:!1}},Go=o(361),Ho=o.n(Go);class Wo extends i().Component{constructor(e){super(e),this.MODAL_STATE={TYPE:"type",LABEL:"label",CONDITION:"condition"},this.state={modalState:this.MODAL_STATE.TYPE,selectedTypes:[],addedTypes:[],typeLabel:"",searchTerm:"",typeConditions:[]}}switchModalState(e){this.setState({modalState:e})}isStateType(){return this.state.modalState===this.MODAL_STATE.TYPE}isStateLabel(){return this.state.modalState===this.MODAL_STATE.LABEL}isStateCondition(){return this.state.modalState===this.MODAL_STATE.CONDITION}switchToType(){this.switchModalState(this.MODAL_STATE.TYPE)}switchToLabel(){this.switchModalState(this.MODAL_STATE.LABEL)}switchToCondition(){this.switchModalState(this.MODAL_STATE.CONDITION)}clearSearchTerm(){this.setState({searchTerm:""})}setSearchTerm(e){this.setState({searchTerm:e})}handleNextButtonClick(){this.isStateType()?this.hasSubTypeOptions()?this.loadSubTypes():(this.setNewLabel(this.getDefaultTypeLabel()),this.switchToLabel()):this.isStateLabel()?(this.setDefaultCondition(this.getTypeToAdd()),this.switchToCondition()):this.addType()}handleBackButtonClick(){this.clearSearchTerm(),this.isStateType()?this.typesAdded()?this.loadPreviousTypes():this.props.onClose():this.isStateLabel()?this.switchToType():this.switchToLabel()}getTypeToAdd(){let e=!1;return this.state.selectedTypes.length?e=(0,w.first)(this.state.selectedTypes):this.typesAdded()&&(e=(0,w.last)(this.state.addedTypes)),e}addType(){const e=this.getDefaultTypeLabel();this.props.onAdd(this.getTypeToAdd(),this.state.typeLabel.trim()||e,this.state.typeConditions)}loadSubTypes(){const e=this.state.selectedTypes,t=this.state.addedTypes.slice();t.push((0,w.first)(e)),this.setState({selectedTypes:[],addedTypes:t})}hasSubTypeOptions(){const e=this.state.selectedTypes;if(!e.length)return!1;const t=this.state.addedTypes.slice();return t.push((0,w.first)(e)),!!this.getSubTypes(t)}loadPreviousTypes(){const e=this.state.addedTypes.slice(),t=e.pop();this.setState({selectedTypes:[t],addedTypes:e})}getOptions(){const e=this.state.addedTypes;let t=this.getSubTypes(e);return t?this.buildOptionsFromTypes(t):[]}getSubTypes(e){let t=zo;return e.forEach((e=>{t=!(!t||!t.hasOwnProperty(e))&&t[e]})),t}buildOptionsFromTypes(e){const t=[];return Object.keys(e).forEach((e=>{jo.hasOwnProperty(e)&&(""===this.state.searchTerm.trim()||this.typeOrSubtypeMatchesSearch(e))&&t.push({id:e,label:jo[e].label,icon:jo[e].icon,disabled:!!jo[e].disabled})})),t}getTypeSection(){const t=this.getOptions();return(0,e.createElement)(i().Fragment,null,this.breadcrumbs(),this.typesAdded()&&(0,e.createElement)("div",{id:"wds-search-sub-types"},(0,e.createElement)("div",{className:"sui-control-with-icon"},(0,e.createElement)("span",{className:"sui-icon-magnifying-glass-search","aria-hidden":"true"}),(0,e.createElement)("input",{type:"text",placeholder:(0,n.__)("Search subtypes","wds"),className:"sui-form-control",value:this.state.searchTerm,onChange:e=>this.setSearchTerm(e.target.value)}))),(0,e.createElement)(Uo,{id:"wds-add-schema-type-selector",options:t,selectedValues:this.state.selectedTypes,multiple:!1,cols:3,onChange:e=>this.handleSelection(e)}))}setNewLabel(e){this.setState({typeLabel:e})}getLabelSection(){const t=this.getDefaultTypeLabel();return(0,e.createElement)("div",{id:"wds-add-schema-type-label"},(0,e.createElement)("div",{className:"sui-form-field"},(0,e.createElement)("label",{className:"sui-label"},(0,n.__)("Type Name","wds")),(0,e.createElement)("input",{className:"sui-form-control",onChange:e=>this.setNewLabel(e.target.value),placeholder:t,value:this.state.typeLabel})))}handleSelection(e){this.setState({selectedTypes:e})}getSubTypesNotice(e){return jo.hasOwnProperty(e)&&jo[e].subTypesNotice||""}getTypeLabel(e){return jo.hasOwnProperty(e)?jo[e].label:e}getTypeLabelFull(e){return jo.hasOwnProperty(e)?jo[e].labelFull||jo[e].label:e}breadcrumbs(){const t=this.state.addedTypes.slice(),o=this.state.selectedTypes;if(o.length&&t.push((0,w.first)(o)),t.length)return(0,e.createElement)("div",{id:"wds-add-schema-type-breadcrumbs"},t.map((t=>(0,e.createElement)("span",{key:t},this.getTypeLabelFull(t),(0,e.createElement)("span",{className:"sui-icon-chevron-right","aria-hidden":"true"})))))}isNextButtonDisabled(){return!!this.isStateType()&&!this.state.selectedTypes.length&&!this.typesAdded()}typesAdded(){return!!this.state.addedTypes.length}getModalTitle(){return this.isStateType()&&this.typesAdded()?(0,e.createElement)(i().Fragment,null,(0,e.createElement)("span",{className:"sui-tag sui-tag-sm sui-tag-blue"},(0,n.__)("Optional","wds")),(0,e.createElement)("br",null),(0,n.__)("Select Sub Type","wds")):(0,n.__)("Add Schema Type","wds")}getModalDescription(){if(this.isStateType()){if(this.typesAdded()){const t=(0,w.last)(this.state.addedTypes);let o=(0,n.sprintf)((0,n.__)("You can specify a subtype of %s, or you can skip this to add the generic type.","wds"),this.getTypeLabel(t));return o+="<br/>"+this.getSubTypesNotice(t),(0,e.createInterpolateElement)(o,{br:(0,e.createElement)("br",null),strong:(0,e.createElement)("strong",null)})}return(0,n.__)("Start by selecting the schema type you want to use. By default, all of the types will include the properties required and recommended by Google.","wds")}return this.isStateLabel()?(0,n.sprintf)((0,n.__)("Name your %s type so you can easily identify it.","wds"),this.getDefaultTypeLabel()):(0,n.__)("Create a set of rules to determine where this schema type will be enabled or excluded.","wds")}getDefaultTypeLabel(){return this.getTypeLabel(this.getTypeToAdd())}getConditionSection(){const t=this.state.typeConditions,o=this.getTypeToAdd();return(0,e.createElement)("div",{id:"wds-add-schema-type-conditions"},this.getConditionGroupElements(o,t),(0,e.createElement)(k,{text:(0,n.__)("Add Rule (Or)","wds"),ghost:!0,onClick:()=>this.addGroup(o),icon:"sui-icon-plus"}))}addGroup(e){const t=Ho()(this.state.typeConditions);t.push([this.getDefaultCondition(e)]),this.setState({typeConditions:t})}setDefaultCondition(e){const t=this.getDefaultCondition(e);this.setState({typeConditions:[[t]]})}getDefaultCondition(e){const t=jo[e],o={id:(0,w.uniqueId)(),lhs:"post_type",operator:"=",rhs:"post"};let i=!1;return t.condition?i=t.condition:t.parent&&jo[t.parent].condition&&(i=jo[t.parent].condition),i?Object.assign({},i,{id:(0,w.uniqueId)()}):o}getConditionGroupElements(t,o){return o.map(((o,i)=>{const s=(0,w.first)(o);return(0,e.createElement)("div",{key:s.id,className:"wds-schema-type-condition-group"},0===i&&(0,e.createElement)("span",null,(0,n.__)("Rule","wds")),0!==i&&(0,e.createElement)("span",null,(0,n.__)("Or","wds")),this.getConditionElements(t,o,i))}))}getConditionElements(t,o,i){return o.map(((o,s)=>(0,e.createElement)(h,{onChange:(e,t,o,i)=>this.updateCondition(e,t,o,i),onAdd:e=>this.addCondition(t,e),onDelete:e=>this.deleteCondition(e),disableDelete:0===i&&0===s,key:o.id,id:o.id,lhs:o.lhs,operator:o.operator,rhs:o.rhs})))}updateCondition(e,t,o,i){const s=Ho()(this.state.typeConditions),r=this.conditionGroupIndex(s,e),n=this.conditionIndex(s[r],e);s[r][n].lhs=t,s[r][n].operator=o,s[r][n].rhs=i,this.setState({typeConditions:s})}addCondition(e,t){const o=Ho()(this.state.typeConditions),i=this.conditionGroupIndex(o,t),s=this.conditionIndex(o[i],t)+1,r=this.getDefaultCondition(e);o[i].splice(s,0,r),this.setState({typeConditions:o})}deleteCondition(e){const t=Ho()(this.state.typeConditions),o=this.conditionGroupIndex(t,e),i=t[o];if(1===i.length)t.splice(o,1);else{const s=this.conditionIndex(i,e);t[o].splice(s,1)}this.setState({typeConditions:t})}conditionGroupIndex(e,t){return e.findIndex((e=>this.conditionIndex(e,t)>-1))}conditionIndex(e,t){return e.findIndex((e=>e.id===t))}stringIncludesSubstring(e,t){return e.toLowerCase().includes(t.toLowerCase())}typeMatchesSearch(e){return!!this.stringIncludesSubstring(e,this.state.searchTerm)||this.stringIncludesSubstring(this.getTypeLabel(e),this.state.searchTerm)}typeOrSubtypeMatchesSearch(e){if(this.typeMatchesSearch(e))return!0;const t=this.state.addedTypes.slice();t.push(e);const o=this.getSubTypes(t);if(o){let e=!1;return Object.keys(o).forEach((t=>{this.typeMatchesSearch(t)&&(e=!0)})),e}return!1}render(){return(0,e.createElement)(D,{id:"wds-add-schema-type-modal",title:this.getModalTitle(),onClose:()=>this.props.onClose(),small:!0,dialogClasses:{"sui-modal-lg":!0,"sui-modal-sm":!1},description:this.getModalDescription()},this.isStateType()&&this.getTypeSection(),this.isStateLabel()&&this.getLabelSection(),this.isStateCondition()&&this.getConditionSection(),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(k,{text:(0,n.__)("Back","wds"),icon:"sui-icon-arrow-left",id:"wds-add-schema-type-back-button",onClick:()=>this.handleBackButtonClick(),ghost:!0}),!this.isStateCondition()&&(0,e.createElement)(k,{text:(0,n.__)("Continue","wds"),icon:"sui-icon-arrow-right",id:"wds-add-schema-type-action-button",onClick:()=>this.handleNextButtonClick(),disabled:this.isNextButtonDisabled()}),this.isStateCondition()&&(0,e.createElement)(k,{text:(0,n.__)("Add","wds"),icon:"sui-icon-plus",id:"wds-add-schema-type-action-button",color:"blue",onClick:()=>this.handleNextButtonClick()})))}}l(Wo,"defaultProps",{onClose:()=>!1,onAdd:()=>!1});class Zo extends i().Component{constructor(e){super(e),this.state={fullText:"",summaryText:""}}componentDidMount(){this.loadLocationFromRemote()}componentDidUpdate(e){(0,w.isEqual)(this.props.conditions,e.conditions)||this.loadLocationFromRemote()}loadLocationFromRemote(){this.setState({fullText:"...",summaryText:"..."},(()=>{let e=a.get("ajax_url","schema_types");c().get(e+"?action=wds-format-schema-location",{conditions:this.props.conditions}).done((e=>{this.setState({fullText:e.full,summaryText:e.summary})}))}))}render(){return(0,e.createElement)("span",{className:"wds-schema-type-locations sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"170px"},"data-tooltip":this.state.fullText},(0,e.createElement)("span",{className:"sui-icon-link","aria-hidden":"true"}),this.state.summaryText)}}class Yo{static getQueryParam(e){const t=location.search;return new URLSearchParams(t).get(e)}static removeQueryParam(e){const t=location.search,o=new URLSearchParams(t);if(!o.get(e))return;o.delete(e);const i=location.href.replace(t,"?"+o.toString());history.replaceState({},"",i)}}class $o extends i().Component{constructor(e){super(e),this.props=e,this.state={initialized:!1,types:{},deletingProperty:"",deletingPropertyId:0,addingProperties:"",addingNestedForProperty:0,addingSchemaTypes:!1,resettingProperties:"",renamingType:"",newName:"",deletingType:"",changingPropertyTypeForId:0,openTypes:[],invalidTypes:[]},this.accordionElement=i().createRef()}componentDidMount(){this.hookNestedAccordions(),this.maybeInitializeComponent(),this.maybeStartAddingSchemaType()}hookNestedAccordions(){c()(this.accordionElement.current).on("click",".sui-accordion-item-body .sui-accordion-item-header",(function(e){if(c()(e.target).closest(".sui-accordion-item-action").length)return!0;c()(this).closest(".sui-accordion-item").toggleClass("sui-accordion-item--open")}))}maybeInitializeComponent(){if(this.state.initialized)return;const e={},t=a.get("types","schema_types"),o=[];Object.keys(t).forEach((i=>{const s=t[i],r=this.generateTypeId(s.type),n=this.cloneProperties(s.properties),a=this.cloneConditions(s.conditions);e[r]=Object.assign({},s,{conditions:a,properties:n}),o.push(r)})),this.setState({types:e,initialized:!0},(()=>{const e=[];o.forEach((t=>{this.typeHasMissingRequiredProperties(t)&&e.push(t)})),this.setState({invalidTypes:e}),e.length&&a.get("settings_updated","schema_types")&&this.showInvalidTypesNotice()}))}formatSpec(e,t){return e.slice().reverse().forEach((e=>{t={[e]:t}})),t}defaultCondition(e){const t=this.getType(e),o=jo[t.type],i={id:(0,w.uniqueId)(),lhs:"post_type",operator:"=",rhs:"post"};let s=!1;return o.condition?s=o.condition:o.parent&&jo[o.parent].condition&&(s=jo[o.parent].condition),s?Object.assign({},s,{id:(0,w.uniqueId)()}):i}addGroup(e){const t=this.getType(e).conditions.length,o=this.formatSpec([e,"conditions"],{$splice:[[t,0,[this.defaultCondition(e)]]]});this.updateTypes(o)}updateTypes(e){return new Promise((t=>{this.setState({types:_()(this.state.types,e)},(()=>{t()}))}))}addCondition(e,t){const o=this.getType(e),i=this.conditionGroupIndex(o.conditions,t),s=this.conditionIndex(o.conditions[i],t)+1,r=this.formatSpec([e,"conditions",i],{$splice:[[s,0,this.defaultCondition(e)]]});this.updateTypes(r)}updateCondition(e,t,o,i,s){const r=this.getType(e),n=this.conditionGroupIndex(r.conditions,t),a=this.conditionIndex(r.conditions[n],t),l=this.formatSpec([e,"conditions",n,a],{lhs:{$set:o},operator:{$set:i},rhs:{$set:s}});this.updateTypes(l)}deleteCondition(e,t){const o=this.getType(e),i=this.conditionGroupIndex(o.conditions,t),s=o.conditions[i];let r;if(1===s.length)r=this.formatSpec([e,"conditions"],{$splice:[[i,1]]});else{const o=this.conditionIndex(s,t);r=this.formatSpec([e,"conditions",i],{$splice:[[o,1]]})}this.updateTypes(r)}startAddingProperties(e){this.setState({addingProperties:e})}handleAddPropertiesButtonClick(e,t){this.addProperties(e,t).then((t=>{t.forEach((t=>{this.openAccordionItemForPropertyOrAlt(e,t)})),this.checkTypeValidity(e),this.showNotice((0,n._n)("The property has been added. You need to save the changes to make them live.","The properties have been added. You need to save the changes to make them live.",t.length,"wds"))})),this.stopAddingProperties()}getPropertiesForType(e){const t=jo[e],o=t.parent?t.parent:e;return Bo[o]}openAccordionItemForPropertyOrAlt(e,t){const o=this.getPropertyById(t,this.getType(e).properties);if(this.hasAltVersions(o)){const e=this.getActiveAltVersion(o);this.openAccordionItemForProperty(e.id)}else this.openAccordionItemForProperty(t)}addProperties(e,t){const o=this.getType(e),i=[];let s,r=o.properties;t.forEach((e=>{[r,s]=this.addProperty(e,this.getPropertiesForType(o.type),r),i.push(...s)}));const n=this.formatSpec([e,"properties"],{$set:r});return new Promise((e=>{this.updateTypes(n).then((()=>e(i)))}))}typeHasMissingRequiredProperties(e){const t=this.getType(e);return this.requiredPropertiesMissing(t.properties,this.getPropertiesForType(t.type))}requiredPropertiesMissing(e,t){let o=!1;return Object.keys(t).some((i=>{const s=t[i];if(s.required){if(!e.hasOwnProperty(i))return o=!0,!0;if(this.isNestedProperty(s)&&this.isNestedProperty(e[i])&&this.requiredPropertiesMissing(e[i].properties,s.properties))return o=!0,!0}})),o}addProperty(e,t,o){const i=[];let s=o;return Object.keys(t).some((r=>{const n=t[r];if(n.id===e){const e=this.getDefaultProperty(n);return s=_()(s,{[r]:{$set:e}}),i.push(e.id),!0}if(this.isNestedProperty(n)&&o.hasOwnProperty(r)&&this.isNestedProperty(o[r])){const[t,a]=this.addProperty(e,n.properties,o[r].properties);s=_()(s,{[r]:{properties:{$set:t}}}),i.push(...a)}})),[s,i]}stopAddingProperties(){this.setState({addingProperties:"",addingNestedForProperty:0})}updateProperty(e,t,o,i){const s=this.getType(e),r=this.propertyKeys(t,s.properties),n=this.formatSpec([e,"properties",...r],{source:{$set:o},value:{$set:i}});this.updateTypes(n)}startDeletingProperty(e,t){this.setState({deletingProperty:e,deletingPropertyId:t})}handleDeleteButtonClick(e){this.deleteProperty(e,this.state.deletingPropertyId).then((()=>{this.checkTypeValidity(e),this.stopDeletingProperty()}))}deleteProperty(e,t){const o=this.getType(e),i=this.formatSpec([e,"properties"],{$set:this.deletePropertyById(t,o.properties)});return this.showNotice((0,n.__)("The property has been removed from this module.","wds"),"info"),this.updateTypes(i)}deletePropertyById(e,t){let o=t;return Object.keys(t).some((i=>{const s=t[i];if(e===s.id)return o=_()(o,{$unset:[i]}),!0;if(this.isNestedProperty(s)){const t=this.deletePropertyById(e,s.properties);let r;r=this.hasAltVersions(s)&&Object.keys(t).length!==Object.keys(s.properties).length||this.objectEmpty(t)?{$unset:[i]}:{[i]:{properties:{$set:t}}},o=_()(o,r)}})),o}objectEmpty(e){return!this.objectLength(e)}objectLength(e){return Object.keys(e).length}stopDeletingProperty(){this.setState({deletingProperty:"",deletingPropertyId:0})}getPropertyByKeys(e,t){let o=t;return e.forEach((e=>{o=o[e]})),o}propertyKeys(e,t){return this.findPropertyKeys((t=>t.hasOwnProperty("id")&&t.id===e),t)}findPropertyKeys(e,t){let o=[];return Object.keys(t).some((i=>{if(e(t[i]))return o.unshift(i),!0;if(this.isNestedProperty(t[i])){const s=this.findPropertyKeys(e,t[i].properties);if(s.length)return o.unshift(i,"properties",...s),!0}})),o}conditionGroupIndex(e,t){return e.findIndex((e=>this.conditionIndex(e,t)>-1))}conditionIndex(e,t){return e.findIndex((e=>e.id===t))}render(){return(0,e.createElement)(i().Fragment,null,!!this.state.invalidTypes.length&&this.getWarningElement((0,e.createInterpolateElement)((0,n.__)("One or more types have properties that are required by Google that have been removed. Please check your types and click on the <strong>Add Property</strong> button to add the missing <strong>required properties</strong> ( <span>*</span> ), for your content to be eligible for display as a rich result. To learn more about schema type properties, see our <DocLink>Schema Documentation</DocLink>."),{strong:(0,e.createElement)("strong",null),span:(0,e.createElement)("span",null),DocLink:(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema"})})),(0,e.createElement)("div",{id:"wds-schema-types-body",className:b()({hidden:!Object.keys(this.state.types).length})},(0,e.createElement)("div",{className:"sui-row"},(0,e.createElement)("div",{className:"sui-col-md-5"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Schema Type","wds")))),(0,e.createElement)("div",{className:"sui-col-md-7"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Location","wds"))))),(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed",ref:this.accordionElement},Object.keys(this.state.types).map((t=>{const o=this.getType(t),s=this.getTypeSubText(o.type);return(0,e.createElement)(i().Fragment,{key:t},(0,e.createElement)("div",{className:b()("sui-accordion-item",this.getTypeAccordionItemClassName(t),{"sui-accordion-item--open":this.state.openTypes.includes(t),"sui-accordion-item--disabled":this.isWooCommerceProduct(o.type)&&!this.isWooCommerceActive()||o.disabled})},this.getTypeAccordionItemHeaderElement(t),(0,e.createElement)("div",{className:"sui-accordion-item-body"},this.state.openTypes.includes(t)&&(0,e.createElement)("div",null,this.getSchemaTypeRulesElement(t,this.getType(t).conditions),this.getPropertiesTableElement(t,this.getType(t).properties)),s&&(0,e.createElement)("span",{className:"wds-type-sub-text"},s))),this.state.deletingProperty===t&&this.getPropertyDeletionModalElement(t),this.state.addingProperties===t&&this.getAddTypePropertyModalElement(t),this.state.resettingProperties===t&&this.getPropertyResetModalElement(t),this.state.renamingType===t&&this.getTypeRenameModalElement(t),this.state.deletingType===t&&this.getTypeDeleteModalElement(t))})))),(0,e.createElement)("div",{id:"wds-schema-types-footer"},(0,e.createElement)("button",{type:"button",onClick:()=>this.startAddingSchemaType(),className:"sui-button sui-button-dashed"},(0,e.createElement)("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,n.__)("Add New Type","wds")),(0,e.createElement)("p",{className:"sui-description"},(0,n.__)("Add additional schema types you want to output on this site.","wds")),this.getSaveSettingsFooter()),this.state.addingSchemaTypes&&this.getAddSchemaModalElement(),this.getStateInput())}getPropertiesTableElement(t,o){return(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,n.__)("Property","wds")),(0,e.createElement)("th",null,(0,n.__)("Source","wds")),(0,e.createElement)("th",{colSpan:2},(0,n.__)("Value","wds")))),(0,e.createElement)("tbody",null,this.getPropertyElements(t,o)),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:4},(0,e.createElement)("div",null,(0,e.createElement)("span",{className:"sui-tooltip","data-tooltip":(0,n.__)("Reset the properties list to default.","wds")},(0,e.createElement)(k,{ghost:!0,onClick:()=>this.startResettingProperties(t),icon:"sui-icon-refresh",text:(0,n.__)("Reset Properties","wds")})),(0,e.createElement)(k,{icon:"sui-icon-plus",onClick:()=>this.startAddingProperties(t),text:(0,n.__)("Add Property","wds")}))))))}getSchemaTypeRulesElement(t,o){return(0,e.createElement)("div",{className:"wds-schema-type-rules"},(0,e.createElement)("span",{className:"sui-icon-link","aria-hidden":"true"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Location","wds"))),(0,e.createElement)("span",{className:"sui-description"},(0,n.__)("Create a set of rules to determine where this schema.org type will be enabled or excluded.","wds")),this.getConditionGroupElements(t,o),(0,e.createElement)(k,{text:(0,n.__)("Add Rule (Or)","wds"),ghost:!0,onClick:()=>this.addGroup(t),icon:"sui-icon-plus"}))}checkTypeValidity(e){const t=this.typeHasMissingRequiredProperties(e);this.setTypeInvalid(e,t)}isTypeInvalid(e){return this.state.invalidTypes.includes(e)}setTypeInvalid(e,t){const o=this.isTypeInvalid(e);let i=this.state.invalidTypes.slice();return t&&!o?i.push(e):!t&&o&&(i=this.state.invalidTypes.filter((t=>t!==e))),this.setState({invalidTypes:i})}handleTypeStatusChange(e,t){const o=this.formatSpec([e,"disabled"],{$set:!t});this.updateTypes(o).then((()=>{let o;o=t?(0,n.__)("You have successfully activated the %s type.","wds"):(0,n.__)("You have successfully deactivated the %s type.","wds"),this.showNotice((0,n.sprintf)(o,this.getType(e).label))}))}handleTypeAccordionItemToggle(e,t){if(c()(e.target).closest(".sui-accordion-item-action").length)return!0;this.toggleType(t)}toggleType(e){let t;return this.state.openTypes.includes(e)?t=this.state.openTypes.filter((t=>t!==e)):(t=this.state.openTypes.slice(),t.push(e)),this.setState({openTypes:t})}getTypeAccordionItemHeaderElement(t){const o=this.getType(t);return(0,e.createElement)("div",{className:"sui-accordion-item-header wds-type-accordion-item-header",onClick:e=>this.handleTypeAccordionItemToggle(e,t)},(0,e.createElement)("div",{className:"sui-accordion-item-title sui-accordion-col-5"},(0,e.createElement)("span",{className:this.getSchemaTypeIcon(o.type)}),(0,e.createElement)("span",null,o.label),this.isTypeInvalid(t)&&(0,e.createElement)("span",{className:"sui-tooltip sui-tooltip-constrained","data-tooltip":(0,n.__)("This type has missing properties that are required by Google.","wds")},(0,e.createElement)("span",{className:"wds-invalid-type-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"sui-accordion-col-3"},(0,e.createElement)(Zo,{conditions:o.conditions})),(0,e.createElement)("div",{className:"sui-accordion-col-4"},(0,e.createElement)("label",{className:"sui-toggle sui-accordion-item-action"},(0,e.createElement)("input",{type:"checkbox",defaultChecked:!this.getType(t).disabled,onChange:e=>this.handleTypeStatusChange(t,e.target.checked)}),(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-toggle-slider"})),(0,e.createElement)(qo,{buttons:[(0,e.createElement)("button",{onClick:()=>this.startRenamingType(t),type:"button"},(0,e.createElement)("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,n.__)("Rename","wds")),(0,e.createElement)("button",{onClick:()=>this.duplicateType(t),type:"button"},(0,e.createElement)("span",{className:"sui-icon-copy","aria-hidden":"true"}),(0,n.__)("Duplicate","wds")),(0,e.createElement)("button",{onClick:()=>this.startDeletingType(t),type:"button"},(0,e.createElement)("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,n.__)("Delete","wds"))]}),(0,e.createElement)("button",{className:"sui-button-icon sui-accordion-open-indicator",type:"button",onClick:e=>this.handleTypeAccordionItemToggle(e,t),"aria-label":(0,n.__)("Open item","wds")},(0,e.createElement)("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}))))}getPropertyDeletionModalElement(t){const o=this.getPropertyById(this.state.deletingPropertyId,this.getType(t).properties).required?(0,n.__)("You are trying to delete a property that is required by Google. Are you sure you wish to delete it anyway?","wds"):(0,n.__)("Are you sure you wish to delete this property? You can add it again anytime.","wds");return(0,e.createElement)(D,{small:!0,id:"wds-confirm-property-deletion",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopDeletingProperty(),focusAfterOpen:"wds-schema-property-delete-button",description:o},(0,e.createElement)(k,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopDeletingProperty(),ghost:!0}),(0,e.createElement)(k,{text:(0,n.__)("Delete","wds"),onClick:()=>this.handleDeleteButtonClick(t),icon:"sui-icon-trash",color:"red",id:"wds-schema-property-delete-button"}))}getAddTypePropertyModalElement(e){const t=this.getType(e),o=this.preparePropertySelectorOptions(t.properties,this.getPropertiesForType(t.type));return this.getAddPropertyModalElement(e,o,(0,n.sprintf)((0,n.__)("Choose the properties to insert into your %s type module.","wds"),t.label))}getAddNestedPropertyModalElement(e,t){const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties),r=this.prepareRepeatableSourcePropertyKeys(i),a=this.getPropertyByKeys(r,this.getPropertiesForType(o.type)),l=this.preparePropertySelectorOptions(s.properties,a.properties);return this.getAddPropertyModalElement(e,l,(0,n.sprintf)((0,n.__)("Choose the properties to insert into the %s section of your %s schema.","wds"),a.label,o.label))}getAddPropertyModalElement(t,o,i){return(0,e.createElement)(Vo,{id:"wds-add-property",title:(0,n.__)("Add Properties","wds"),description:i,actionButtonText:(0,n.__)("Add","wds"),actionButtonIcon:"sui-icon-plus",onClose:()=>this.stopAddingProperties(),onAction:e=>this.handleAddPropertiesButtonClick(t,e),options:o,noOptionsMessage:(0,e.createElement)("div",{className:"wds-box-selector-message"},(0,e.createElement)("h3",null,(0,n.__)("No properties to add","wds")),(0,e.createElement)("p",{className:"sui-description"},(0,n.__)("It seems that you have already added all the available properties.","wds"))),requiredNotice:this.getWarningElement((0,e.createInterpolateElement)((0,n.__)("You are missing properties that are required by Google ( <span>*</span> ). Make sure you include all of them so that your content will be eligible for display as a rich result. To learn more about schema type properties, see our <a>Schema Documentation</a>."),{span:(0,e.createElement)("span",null),a:(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema"})}))})}getWarningElement(t){return(0,e.createElement)("div",{className:"wds-missing-properties-notice sui-notice sui-notice-warning"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,t))))}preparePropertySelectorOptions(e,t){const o=[];return Object.keys(t).forEach((i=>{const s=t[i];e.hasOwnProperty(i)||o.push({id:s.id,label:s.label,required:s.required})})),o}getConditionGroupElements(t,o){return o.map(((o,i)=>{const s=(0,w.first)(o);return(0,e.createElement)("div",{key:"condition-group-"+s.id,className:"wds-schema-type-condition-group"},0===i&&(0,e.createElement)("span",null,(0,n.__)("Rule","wds")),0!==i&&(0,e.createElement)("span",null,(0,n.__)("Or","wds")),this.getConditionElements(t,o,i))}))}getConditionElements(t,o,i){return o.map(((o,s)=>(0,e.createElement)(h,{onChange:(e,o,i,s)=>this.updateCondition(t,e,o,i,s),onAdd:e=>this.addCondition(t,e),onDelete:e=>this.deleteCondition(t,e),disableDelete:0===i&&0===s,key:o.id,id:o.id,lhs:o.lhs,operator:o.operator,rhs:o.rhs})))}isNestedProperty(e){return e.properties}isFlatNestedProperty(e){return e.properties&&e.flatten}getActiveAltVersion(e){return e.properties[e.activeVersion]}hasLoop(e){return!!e.loop}hasAltVersions(e){return this.isNestedProperty(e)&&!!e.activeVersion&&e.properties.hasOwnProperty(e.activeVersion)}getPropertyElements(e,t){const o=[];return Object.keys(t).forEach((i=>{const s=t[i];o.push(this.getPropertyElement(e,s))})),o}getPropertyElement(e,t,o=!1){return this.hasAltVersions(t)?this.getPropertyElement(e,this.getActiveAltVersion(t),!0):this.isPropertyRepeatable(t)?this.getRepeatingPropertyElements(e,t,o):this.isFlatNestedProperty(t)?this.getPropertyElements(e,t.properties):this.isNestedProperty(t)?this.getNestedPropertyElements(e,t,o):this.getSimplePropertyElement(e,t)}getSimplePropertyElement(t,o){return(0,e.createElement)(A,r({},o,{key:"property-"+o.id,onChange:(e,o,i)=>this.updateProperty(t,e,o,i),onDelete:e=>this.startDeletingProperty(t,e)}))}getDefaultProperties(e){const t={};return Object.keys(e).forEach((o=>{const i=e[o];i.optional||(t[o]=this.getDefaultProperty(i))})),t}getDefaultProperty(e){const t=[{},e];return this.isNestedProperty(e)&&t.push({properties:this.getDefaultProperties(e.properties)}),t.push({id:(0,w.uniqueId)()}),Object.assign({},...t)}cloneConditions(e){const t=[];return e.forEach((e=>{const o=[];e.forEach((e=>{o.push(Object.assign({},e,{id:(0,w.uniqueId)()}))})),t.push(o)})),t}cloneProperties(e){const t={};return Object.keys(e).forEach((o=>{t[o]=this.cloneProperty(e[o])})),t}cloneProperty(e){const t=[{},e];return this.isNestedProperty(e)&&t.push({properties:this.cloneProperties(e.properties)}),t.push({id:(0,w.uniqueId)()}),Object.assign({},...t)}startAddingSchemaType(){this.setState({addingSchemaTypes:!0})}stopAddingSchemaType(){this.removeAddTypeQueryVar(),this.setState({addingSchemaTypes:!1})}handleAddSchemaTypesButtonClick(e,t,o){this.addSchemaType(e,t,o).then((t=>{this.stopAddingSchemaType(),this.showNotice((0,n.__)("The type has been added. You need to save the changes to make them live.","wds")),this.isLocalBusinessType(e)&&this.showLocalBusinessNotice(),this.toggleType(t)}))}isLocalBusinessType(e,t=!1){if("LocalBusiness"===e)return!0;t||(t=zo.LocalBusiness);let o=!1;return Object.keys(t).some((i=>(i===e?o=!0:t[i]&&(o=this.isLocalBusinessType(e,t[i])),o))),o}showInvalidTypesNotice(){let e=(0,n.__)("One or more properties that are required by Google have been removed. Please check your types and click on the <strong>Add Property</strong> button to see the missing <strong>required properties</strong> ( <span>*</span> ).");O().openNotice("wds-schema-types-invalid-notice","<p>"+e+"</p>",{type:"warning",icon:"warning-alert",dismiss:{show:!0}})}showLocalBusinessNotice(){let e=(0,n.sprintf)((0,n.__)("If you wish to add a Local Business with <strong>multiple locations</strong>, you can easily do this by duplicating your Local Business type and editing the properties. Alternatively, you can just add a new Local Business type. To learn more, see our %s."),(0,n.sprintf)('<a target="_blank" href="https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema">%s</a>',(0,n.__)("Schema Documentation","wds")));O().openNotice("wds-schema-types-local-business-notice","<p>"+e+"</p>",{type:"grey",icon:"info",dismiss:{show:!0}})}getAddSchemaModalElement(){return(0,e.createElement)(Wo,{onClose:()=>this.stopAddingSchemaType(),onAdd:(e,t,o)=>this.handleAddSchemaTypesButtonClick(e,t,o)})}getSchemaTypeIcon(e){return jo[e].icon}isProduct(e){return"Product"===e||this.isWooCommerceProduct(e)}isWooCommerceProduct(e){return"WooProduct"===e||"WooSimpleProduct"===e||"WooVariableProduct"===e}generateTypeId(e){return(0,w.uniqueId)(e+"-")}addSchemaType(e,t,o){const i={},s=this.generateTypeId(e);return i[s]={$set:{label:t,type:e,conditions:o,properties:this.getDefaultProperties(this.getPropertiesForType(e))}},new Promise((e=>{this.updateTypes(i).then((()=>e(s)))}))}getType(e){return this.state.types[e]}handleRepeatButtonClick(e,t){this.repeatProperty(e,t),this.openAccordionItemForProperty(t);const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties);this.showNotice((0,n.sprintf)((0,n.__)("A new %s has been added.","wds"),s.hasOwnProperty("label_single")?s.label_single:s.label))}prepareRepeatableSourcePropertyKeys(e){const t=[];return e.forEach((e=>{(0,w.parseInt)(e)>0?t.push("0"):t.push(e)})),t}repeatProperty(e,t){const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties),r=this.prepareRepeatableSourcePropertyKeys(i),n=this.getPropertyByKeys(r,this.getPropertiesForType(o.type)),a=Object.keys(n.properties).shift(),l=n.properties[a],d=Math.max(...Object.keys(s.properties))+1;let c=this.getDefaultProperty(l);l.disallowDeletion&&l.disallowFirstItemDeletionOnly&&delete c.disallowDeletion,l.updateLabelNumber&&l.label&&(c.label=l.label.replace("1",d+1));const u=this.formatSpec([e,"properties",...i,"properties",d],{$set:c});this.updateTypes(u)}startAddingNestedProperties(e,t){this.openAccordionItemForProperty(t.id),this.setState({addingNestedForProperty:t.id})}getTypeAccordionItemClassName(e){return"wds-schema-type-"+e+"-accordion"}getPropertyAccordionItemClassName(e){return"wds-schema-property-"+e+"-accordion"}openAccordionItemForProperty(e){const t=this.getPropertyAccordionItemClassName(e);c()("."+t).addClass("sui-accordion-item--open")}nestedPropertyHasMissingRequiredProperties(e,t){if(!this.isNestedProperty(t)||!t.required)return!1;const o=this.getType(e),i=this.propertyKeys(t.id,o.properties),s=this.prepareRepeatableSourcePropertyKeys(i),r=this.getPropertyByKeys(s,this.getPropertiesForType(o.type));return this.requiredPropertiesMissing(t.properties,r.properties)}getNestedPropertyElements(t,o,s){return(0,e.createElement)("tr",{key:"nested-property-row-"+o.id},(0,e.createElement)("td",{colSpan:4,className:"wds-schema-nested-properties"},(0,e.createElement)("div",{className:"sui-accordion"},(0,e.createElement)("div",{className:b()("sui-accordion-item",this.getPropertyAccordionItemClassName(o.id))},this.getAccordionItemHeaderElement(t,o,(0,e.createElement)(i().Fragment,null,s&&(0,e.createElement)("div",{className:"sui-accordion-item-action"},(0,e.createElement)("button",{onClick:()=>this.startChangingPropertyType(o.id),"data-tooltip":(0,n.__)("Change the type of this property","wds"),type:"button",className:"sui-button-icon sui-tooltip"},(0,e.createElement)("span",{className:"sui-icon-defer","aria-hidden":"true"}))))),(0,e.createElement)("div",{className:"sui-accordion-item-body"},this.hasLoop(o)&&(0,e.createElement)("div",null,this.getLoopDescription(o)),(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("tbody",null,this.getPropertyElements(t,o.properties)),!o.disallowAddition&&(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:4},(0,e.createElement)(k,{onClick:()=>this.startAddingNestedProperties(t,o),ghost:!0,icon:"sui-icon-plus",text:(0,n.__)("Add Property","wds")}))))))),this.state.addingNestedForProperty===o.id&&this.getAddNestedPropertyModalElement(t,o.id),this.state.changingPropertyTypeForId===o.id&&this.getPropertyTypeChangeModalElement(t,o.id))))}getRepeatingPropertyElements(t,o,s){const r=o.properties;return(0,e.createElement)("tr",{key:"repeating-property-row-"+o.id},(0,e.createElement)("td",{colSpan:4,className:"wds-schema-repeating-properties"},(0,e.createElement)("div",{className:"sui-accordion"},(0,e.createElement)("div",{className:b()("sui-accordion-item",this.getPropertyAccordionItemClassName(o.id))},this.getAccordionItemHeaderElement(t,o,(0,e.createElement)(i().Fragment,null,s&&(0,e.createElement)("div",{className:"sui-accordion-item-action"},(0,e.createElement)("button",{onClick:()=>this.startChangingPropertyType(o.id),"data-tooltip":(0,n.__)("Change the type of this property","wds"),type:"button",className:"sui-button-icon sui-tooltip"},(0,e.createElement)("span",{className:"sui-icon-defer","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"sui-accordion-item-action"},(0,e.createElement)("button",{onClick:()=>this.handleRepeatButtonClick(t,o.id),type:"button","data-tooltip":(0,n.sprintf)((0,n.__)("Add another %s","wds"),this.getSingleLabel(o)),className:"sui-button-icon sui-tooltip"},(0,e.createElement)("span",{className:"sui-icon-plus","aria-hidden":"true"}))))),(0,e.createElement)("div",{className:"sui-accordion-item-body"},Object.keys(r).map((i=>{const s=r[i];return(0,e.createElement)("table",{className:"sui-table",key:"repeatable-"+s.id},s.properties&&(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:2,className:"sui-table-item-title"},this.getSingleLabel(o)),(0,e.createElement)("td",null,!s.disallowDeletion&&(0,e.createElement)(k,{text:"",ghost:!0,icon:"sui-icon-trash",color:"red",onClick:()=>this.startDeletingProperty(t,s.id)})))),(0,e.createElement)("tbody",null,s.properties&&this.getPropertyElements(t,s.properties),!s.properties&&this.getSimplePropertyElement(t,s)))})))),this.state.changingPropertyTypeForId===o.id&&this.getPropertyTypeChangeModalElement(t,o.id))))}getLoopDescription(e){return e.loopDescription?e.loopDescription:(0,n.sprintf)((0,n.__)("The following block will be repeated for each %s in loop","wds"),this.getSingleLabel(e))}getSingleLabel(e){return e.label_single?e.label_single:e.label}getAccordionItemHeaderElement(t,o,i){const s=o.requiredNotice?o.requiredNotice:(0,n.__)("This property is required by Google.","wds"),r=o.description?o.description:"";return(0,e.createElement)("div",{className:"sui-accordion-item-header"},(0,e.createElement)("div",{className:"sui-accordion-item-title"},(0,e.createElement)("span",{className:b()({"sui-tooltip sui-tooltip-constrained":!!r}),style:{"--tooltip-width":"300px"},"data-tooltip":r},o.label),o.required&&(0,e.createElement)("span",{className:"wds-required-asterisk sui-tooltip sui-tooltip-constrained","data-tooltip":s},"*"),this.nestedPropertyHasMissingRequiredProperties(t,o)&&(0,e.createElement)("span",{className:"sui-tooltip sui-tooltip-constrained","data-tooltip":(0,n.__)("This section has missing properties that are required by Google.","wds")},(0,e.createElement)("span",{className:"wds-invalid-type-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"sui-accordion-col-auto"},i,!o.disallowDeletion&&(0,e.createElement)("div",{className:"sui-accordion-item-action wds-delete-accordion-item-action"},(0,e.createElement)("span",{className:"sui-icon-trash",onClick:()=>this.startDeletingProperty(t,o.id),"aria-hidden":"true"})),(0,e.createElement)("button",{className:"sui-button-icon sui-accordion-open-indicator",type:"button","aria-label":(0,n.__)("Open item","wds")},(0,e.createElement)("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}))))}isPropertyRepeatable(e){return!!this.isNestedProperty(e)&&0===Object.keys(e.properties).filter((e=>isNaN(e))).length}startResettingProperties(e){this.setState({resettingProperties:e})}getPropertyResetModalElement(t){return(0,e.createElement)(D,{small:!0,id:"wds-confirm-property-reset",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopResettingProperties(),focusAfterOpen:"wds-schema-property-reset-button",description:(0,n.__)("Are you sure you want to dismiss your changes and turn back your properties list to default?","wds")},(0,e.createElement)(k,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopResettingProperties(),ghost:!0}),(0,e.createElement)(k,{text:(0,n.__)("Reset Properties","wds"),onClick:()=>this.resetProperties(t),icon:"sui-icon-refresh",id:"wds-schema-property-reset-button"}))}resetProperties(e){const t=this.getType(e),o=this.formatSpec([e,"properties"],{$set:this.getDefaultProperties(this.getPropertiesForType(t.type))});this.updateTypes(o).then((()=>{this.showNotice((0,n.__)("Properties have been reset to default","wds")),this.stopResettingProperties(),this.checkTypeValidity(e)}))}stopResettingProperties(){this.setState({resettingProperties:""})}startRenamingType(e){this.setState({renamingType:e,newName:this.getType(e).label})}stopRenamingType(){this.setState({renamingType:"",newName:""})}setNewName(e){this.setState({newName:e})}renameType(e){if(!this.state.newName)return this.stopRenamingType(),void this.showNotice((0,n.__)("You need to enter a name","wds"),"error");const t=this.formatSpec([e,"label"],{$set:this.state.newName});this.updateTypes(t).then((()=>{this.showNotice((0,n.__)("The type has been renamed.","wds")),this.stopRenamingType()}))}getTypeRenameModalElement(t){return(0,e.createElement)(D,{id:"wds-schema-type-rename-modal",title:(0,n.__)("Rename","wds"),description:(0,n.__)("Leave the default type name or change it for a recognizable one.","wds"),onClose:()=>this.stopRenamingType(),dialogClasses:{"sui-modal-sm":!0},focusAfterOpen:"wds-schema-rename-type-input",onEnter:()=>this.renameType(t),footer:(0,e.createElement)(i().Fragment,null,(0,e.createElement)(k,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopRenamingType(),ghost:!0}),(0,e.createElement)(k,{text:(0,n.__)("Save","wds"),onClick:()=>this.renameType(t),icon:"sui-icon-check",id:"wds-schema-rename-type-button"}))},(0,e.createElement)("div",{className:"sui-form-field"},(0,e.createElement)("label",{className:"sui-label"},(0,n.__)("New Type Name","wds")),(0,e.createElement)("input",{className:"sui-form-control",id:"wds-schema-rename-type-input",onChange:e=>this.setNewName(e.target.value),value:this.state.newName}),this.isProduct(this.getType(t).type)&&this.isWooCommerceActive()&&(0,e.createElement)("div",{className:"sui-notice sui-notice-info",style:{marginTop:"30px"}},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,n.__)("On the pages where this schema type is printed, schema generated by WooCommerce will be replaced to avoid generating multiple product schemas for the same product page.","wds")))))))}isWooCommerceActive(){return!!a.get("woocommerce","schema_types")}startDeletingType(e){this.setState({deletingType:e})}stopDeletingType(){this.setState({deletingType:""})}deleteType(e){return this.updateTypes({$unset:[e]})}getTypeDeleteModalElement(t){return(0,e.createElement)(D,{small:!0,id:"wds-confirm-type-deletion",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopDeletingType(),focusAfterOpen:"wds-schema-type-delete-button",description:(0,n.__)("Are you sure you wish to delete this schema type? You can add it again anytime.","wds")},(0,e.createElement)(k,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopDeletingType(),ghost:!0}),(0,e.createElement)(k,{text:(0,n.__)("Delete","wds"),onClick:()=>this.handleTypeDeleteButtonClick(t),icon:"sui-icon-trash",color:"red",id:"wds-schema-type-delete-button"}))}handleTypeDeleteButtonClick(e){this.deleteType(e).then((()=>{this.showNotice((0,n.__)("The type has been removed. You need to save the changes to make them live.","wds"),"info"),this.stopDeletingType(),this.setTypeInvalid(e,!1)}))}showNotice(e,t="success",o=!1){O().openNotice("wds-schema-types-notice","<p>"+e+"</p>",{type:t,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[t],dismiss:{show:o}})}getStateInput(){return(0,e.createElement)("input",{type:"hidden",name:"wds-schema-types",value:JSON.stringify(this.state.types)})}getSaveSettingsFooter(){return(0,e.createElement)("div",{id:"wds-save-schema-types",className:"sui-box-footer"},(0,e.createElement)("button",{name:"submit",type:"submit",className:"sui-button sui-button-blue"},(0,e.createElement)("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,n.__)("Save Settings","wds")))}startChangingPropertyType(e){this.setState({changingPropertyTypeForId:e})}stopChangingPropertyType(){this.setState({changingPropertyTypeForId:0})}getPropertyTypeChangeModalElement(t,o){const i=this.getType(t),s=this.getPropertyParent(o,i.properties);let r=this.getAltVersionTypes(s);return r&&(r=r.filter((e=>s.activeVersion!==e.id))),(0,e.createElement)(Vo,{id:"wds-change-property-type",title:(0,n.__)("Change Property Type","wds"),description:(0,n.__)("Select one of the following types to switch.","wds"),actionButtonText:(0,n.__)("Change","wds"),actionButtonIcon:"sui-icon-defer",onClose:()=>this.stopChangingPropertyType(),onAction:e=>this.handlePropertyTypeChange(t,s,e),options:r,multiple:!1})}handlePropertyTypeChange(e,t,o){if(!o.length)return;const i=o[0],s=this.getType(e),r=this.propertyKeys(t.id,s.properties),a=this.prepareRepeatableSourcePropertyKeys(r),l=this.getPropertyByKeys(a,this.getPropertiesForType(s.type)),d=this.getDefaultProperties(l.properties),c=this.formatSpec([e,"properties",...r],{activeVersion:{$set:i},properties:{$set:d}});this.updateTypes(c).then((()=>{const t=this.getPropertyByKeys([i],d);this.openAccordionItemForProperty(t.id),this.showNotice((0,n.sprintf)((0,n.__)("Property type has been changed to %s","wds"),i)),this.checkTypeValidity(e)}))}getPropertyParent(e,t){const o=this.propertyKeys(e,t);return o.pop(),o.pop(),this.getPropertyByKeys(o,t)}getPropertyById(e,t){const o=this.propertyKeys(e,t);return this.getPropertyByKeys(o,t)}getAltVersionTypes(e){if(!this.hasAltVersions(e))return!1;const t=[];return Object.keys(e.properties).forEach((o=>{const i=e.properties[o];t.push({id:o,label:i.label})})),t}duplicateType(e){const t={},o=this.getType(e),i=this.generateTypeId(o.type),s=this.cloneProperties(o.properties),r=this.cloneConditions(o.conditions);t[i]={$set:{label:o.label,type:o.type,conditions:r,properties:s}},this.updateTypes(t).then((()=>{this.checkTypeValidity(i),this.showNotice((0,n.__)("The type has been duplicated successfully.","wds"))}))}removeAddTypeQueryVar(){Yo.removeQueryParam("add_type")}maybeStartAddingSchemaType(){"1"===Yo.getQueryParam("add_type")&&this.startAddingSchemaType()}getTypeSubText(t){return this.isProduct(t)?(0,e.createInterpolateElement)((0,n.__)("Note: You must include one of the following properties: <strong>review</strong>, <strong>aggregateRating</strong> or <strong>offers</strong>. Once you include one of either a review or aggregateRating or offers, the other two properties will become recommended by the Rich Results Test.","wds"),{strong:(0,e.createElement)("strong",null)}):"Book"===t?(0,e.createInterpolateElement)((0,n.__)("Note: Rich Results Test supports the Books Schema type for a limited number of sites for the time being, so please go to the <a>Structured Data testing tool</a> to check your book type.","wds"),{a:(0,e.createElement)("a",{target:"_blank",href:"https://search.google.com/structured-data/testing-tool/u/0/"})}):"SoftwareApplication"===t?(0,e.createInterpolateElement)((0,n.__)("Note: You must include one of the following properties: <strong>review</strong> or <strong>aggregateRating</strong>. Once you include one of either a review or aggregateRating, the other property will become recommended by the Rich Results Test.","wds"),{strong:(0,e.createElement)("strong",null)}):void 0}}class Ko extends i().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var Jo=Ko;c()((()=>{c()("#wds-schema-type-components").length&&(0,s.render)((0,e.createElement)(Jo,null,(0,e.createElement)($o,null)),document.getElementById("wds-schema-type-components"))}))}()}();
|
1 |
+
!function(){var e={4184:function(e,t){var o;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)){if(o.length){var n=s.apply(null,o);n&&e.push(n)}}else if("object"===r)if(o.toString===Object.prototype.toString)for(var a in o)i.call(o,a)&&o[a]&&e.push(a);else e.push(o.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o)}()},7145:function(e,t){"use strict";function o(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var i="object"==typeof process&&!0;function s(e,t){if(!e){if(i)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=s;var r=Object.prototype.hasOwnProperty,n=Array.prototype.splice,a=Object.prototype.toString;function l(e){return a.call(e).slice(8,-1)}var d=Object.assign||function(e,t){return c(t).forEach((function(o){r.call(t,o)&&(e[o]=t[o])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?d(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?d(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=d({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var o=this,i="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(i)||s(!Array.isArray(i),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),s("object"==typeof i&&null!==i,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(o.commands).join(", ")+"."}));var n=e;return c(i).forEach((function(t){if(r.call(o.commands,t)){var s=e===n;n=o.commands[t](i[t],n,i,e),s&&o.isEquals(n,e)&&(n=e)}else{var a="Map"===l(e)?o.update(e.get(t),i[t]):o.update(e[t],i[t]),d="Map"===l(n)?n.get(t):n[t];o.isEquals(a,d)&&(void 0!==a||r.call(e,t))||(n===e&&(n=u(e)),"Map"===l(n)?n.set(t,a):n[t]=a)}})),n},e}();t.Context=p;var h={$push:function(e,t,o){return _(t,o,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,o){return _(t,o,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,i,r){return function(e,t){s(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+o(e)})),f(t.$splice)}(t,i),e.forEach((function(e){f(e),t===r&&e.length&&(t=u(r)),n.apply(t,e)})),t},$set:function(e,t,o){return function(e){s(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(o),e},$toggle:function(e,t){w(e,"$toggle");var o=e.length?u(t):t;return e.forEach((function(e){o[e]=!t[e]})),o},$unset:function(e,t,o,i){return w(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===i&&(t=u(i)),delete t[e])})),t},$add:function(e,t,o,i){return y(t,"$add"),w(e,"$add"),"Map"===l(t)?e.forEach((function(e){var o=e[0],s=e[1];t===i&&t.get(o)!==s&&(t=u(i)),t.set(o,s)})):e.forEach((function(e){t!==i||t.has(e)||(t=u(i)),t.add(e)})),t},$remove:function(e,t,o,i){return y(t,"$remove"),w(e,"$remove"),e.forEach((function(e){t===i&&t.has(e)&&(t=u(i)),t.delete(e)})),t},$merge:function(e,t,i,r){var n,a;return n=t,s((a=e)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+o(a)})),s(n&&"object"==typeof n,(function(){return"update(): $merge expects a target of type 'object'; got "+o(n)})),c(e).forEach((function(o){e[o]!==t[o]&&(t===r&&(t=u(r)),t[o]=e[o])})),t},$apply:function(e,t){var i;return s("function"==typeof(i=e),(function(){return"update(): expected spec of $apply to be a function; got "+o(i)+"."})),e(t)}},m=new p;function _(e,t,i){s(Array.isArray(e),(function(){return"update(): expected target of "+o(i)+" to be an array; got "+o(e)+"."})),w(t[i],i)}function w(e,t){s(Array.isArray(e),(function(){return"update(): expected spec of "+o(t)+" to be an array; got "+o(e)+". Did you forget to wrap your parameter in an array?"}))}function f(e){s(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+o(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var i=l(e);s("Map"===i||"Set"===i,(function(){return"update(): "+o(t)+" expects a target of type Set or Map; got "+o(i)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=d(t.default,t)},8552:function(e,t,o){var i=o(852)(o(5639),"DataView");e.exports=i},1989:function(e,t,o){var i=o(1789),s=o(401),r=o(7667),n=o(1327),a=o(1866);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},8407:function(e,t,o){var i=o(7040),s=o(4125),r=o(2117),n=o(7518),a=o(4705);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},7071:function(e,t,o){var i=o(852)(o(5639),"Map");e.exports=i},3369:function(e,t,o){var i=o(4785),s=o(1285),r=o(6e3),n=o(9916),a=o(5265);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=r,l.prototype.has=n,l.prototype.set=a,e.exports=l},3818:function(e,t,o){var i=o(852)(o(5639),"Promise");e.exports=i},8525:function(e,t,o){var i=o(852)(o(5639),"Set");e.exports=i},6384:function(e,t,o){var i=o(8407),s=o(7465),r=o(3779),n=o(7599),a=o(4758),l=o(4309);function d(e){var t=this.__data__=new i(e);this.size=t.size}d.prototype.clear=s,d.prototype.delete=r,d.prototype.get=n,d.prototype.has=a,d.prototype.set=l,e.exports=d},2705:function(e,t,o){var i=o(5639).Symbol;e.exports=i},1149:function(e,t,o){var i=o(5639).Uint8Array;e.exports=i},577:function(e,t,o){var i=o(852)(o(5639),"WeakMap");e.exports=i},6874:function(e){e.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}},7412:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length;++o<i&&!1!==t(e[o],o,e););return e}},4963:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,s=0,r=[];++o<i;){var n=e[o];t(n,o,e)&&(r[s++]=n)}return r}},4636:function(e,t,o){var i=o(2545),s=o(5694),r=o(1469),n=o(4144),a=o(5776),l=o(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=r(e),c=!o&&s(e),u=!o&&!c&&n(e),p=!o&&!c&&!u&&l(e),h=o||c||u||p,m=h?i(e.length,String):[],_=m.length;for(var w in e)!t&&!d.call(e,w)||h&&("length"==w||u&&("offset"==w||"parent"==w)||p&&("buffer"==w||"byteLength"==w||"byteOffset"==w)||a(w,_))||m.push(w);return m}},9932:function(e){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,s=Array(i);++o<i;)s[o]=t(e[o],o,e);return s}},2488:function(e){e.exports=function(e,t){for(var o=-1,i=t.length,s=e.length;++o<i;)e[s+o]=t[o];return e}},6556:function(e,t,o){var i=o(9465),s=o(7813);e.exports=function(e,t,o){(void 0!==o&&!s(e[t],o)||void 0===o&&!(t in e))&&i(e,t,o)}},4865:function(e,t,o){var i=o(9465),s=o(7813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var n=e[t];r.call(e,t)&&s(n,o)&&(void 0!==o||t in e)||i(e,t,o)}},8470:function(e,t,o){var i=o(7813);e.exports=function(e,t){for(var o=e.length;o--;)if(i(e[o][0],t))return o;return-1}},4037:function(e,t,o){var i=o(8363),s=o(3674);e.exports=function(e,t){return e&&i(t,s(t),e)}},3886:function(e,t,o){var i=o(8363),s=o(1704);e.exports=function(e,t){return e&&i(t,s(t),e)}},9465:function(e,t,o){var i=o(8777);e.exports=function(e,t,o){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},5990:function(e,t,o){var i=o(6384),s=o(7412),r=o(4865),n=o(4037),a=o(3886),l=o(4626),d=o(278),c=o(8805),u=o(1911),p=o(8234),h=o(6904),m=o(4160),_=o(3824),w=o(9148),f=o(8517),y=o(1469),g=o(4144),b=o(6688),v=o(3218),T=o(2928),S=o(3674),x=o(1704),A="[object Arguments]",C="[object Function]",E="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,e.exports=function e(t,o,O,D,k,R){var N,I=1&o,L=2&o,M=4&o;if(O&&(N=k?O(t,D,k,R):O(t)),void 0!==N)return N;if(!v(t))return t;var F=y(t);if(F){if(N=_(t),!I)return d(t,N)}else{var j=m(t),q=j==C||"[object GeneratorFunction]"==j;if(g(t))return l(t,I);if(j==E||j==A||q&&!k){if(N=L||q?{}:f(t),!I)return L?u(t,a(N,t)):c(t,n(N,t))}else{if(!P[j])return k?t:{};N=w(t,j,I)}}R||(R=new i);var V=R.get(t);if(V)return V;R.set(t,N),T(t)?t.forEach((function(i){N.add(e(i,o,O,i,t,R))})):b(t)&&t.forEach((function(i,s){N.set(s,e(i,o,O,s,t,R))}));var U=F?void 0:(M?L?h:p:L?x:S)(t);return s(U||t,(function(i,s){U&&(i=t[s=i]),r(N,s,e(i,o,O,s,t,R))})),N}},3118:function(e,t,o){var i=o(3218),s=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(s)return s(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();e.exports=r},8483:function(e,t,o){var i=o(5063)();e.exports=i},8866:function(e,t,o){var i=o(2488),s=o(1469);e.exports=function(e,t,o){var r=t(e);return s(e)?r:i(r,o(e))}},4239:function(e,t,o){var i=o(2705),s=o(9607),r=o(2333),n=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?s(e):r(e)}},9454:function(e,t,o){var i=o(4239),s=o(7005);e.exports=function(e){return s(e)&&"[object Arguments]"==i(e)}},5588:function(e,t,o){var i=o(4160),s=o(7005);e.exports=function(e){return s(e)&&"[object Map]"==i(e)}},8458:function(e,t,o){var i=o(3560),s=o(5346),r=o(3218),n=o(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,d=Object.prototype,c=l.toString,u=d.hasOwnProperty,p=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||s(e))&&(i(e)?p:a).test(n(e))}},9221:function(e,t,o){var i=o(4160),s=o(7005);e.exports=function(e){return s(e)&&"[object Set]"==i(e)}},8749:function(e,t,o){var i=o(4239),s=o(1780),r=o(7005),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&s(e.length)&&!!n[i(e)]}},280:function(e,t,o){var i=o(5726),s=o(6916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return s(e);var t=[];for(var o in Object(e))r.call(e,o)&&"constructor"!=o&&t.push(o);return t}},313:function(e,t,o){var i=o(3218),s=o(5726),r=o(3498),n=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=s(e),o=[];for(var a in e)("constructor"!=a||!t&&n.call(e,a))&&o.push(a);return o}},2980:function(e,t,o){var i=o(6384),s=o(6556),r=o(8483),n=o(9783),a=o(3218),l=o(1704),d=o(6390);e.exports=function e(t,o,c,u,p){t!==o&&r(o,(function(r,l){if(p||(p=new i),a(r))n(t,o,l,c,e,u,p);else{var h=u?u(d(t,l),r,l+"",t,o,p):void 0;void 0===h&&(h=r),s(t,l,h)}}),l)}},9783:function(e,t,o){var i=o(6556),s=o(4626),r=o(7133),n=o(278),a=o(8517),l=o(5694),d=o(1469),c=o(9246),u=o(4144),p=o(3560),h=o(3218),m=o(8630),_=o(6719),w=o(6390),f=o(9881);e.exports=function(e,t,o,y,g,b,v){var T=w(e,o),S=w(t,o),x=v.get(S);if(x)i(e,o,x);else{var A=b?b(T,S,o+"",e,t,v):void 0,C=void 0===A;if(C){var E=d(S),P=!E&&u(S),O=!E&&!P&&_(S);A=S,E||P||O?d(T)?A=T:c(T)?A=n(T):P?(C=!1,A=s(S,!0)):O?(C=!1,A=r(S,!0)):A=[]:m(S)||l(S)?(A=T,l(T)?A=f(T):h(T)&&!p(T)||(A=a(S))):C=!1}C&&(v.set(S,A),g(A,S,y,b,v),v.delete(S)),i(e,o,A)}}},5976:function(e,t,o){var i=o(6557),s=o(5357),r=o(61);e.exports=function(e,t){return r(s(e,t,i),e+"")}},6560:function(e,t,o){var i=o(5703),s=o(8777),r=o(6557),n=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=n},2545:function(e){e.exports=function(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}},531:function(e,t,o){var i=o(2705),s=o(9932),r=o(1469),n=o(3448),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return s(t,e)+"";if(n(t))return l?l.call(t):"";var o=t+"";return"0"==o&&1/t==-1/0?"-0":o}},1717:function(e){e.exports=function(e){return function(t){return e(t)}}},4318:function(e,t,o){var i=o(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},4626:function(e,t,o){e=o.nmd(e);var i=o(5639),s=t&&!t.nodeType&&t,r=s&&e&&!e.nodeType&&e,n=r&&r.exports===s?i.Buffer:void 0,a=n?n.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,i=a?a(o):new e.constructor(o);return e.copy(i),i}},7157:function(e,t,o){var i=o(4318);e.exports=function(e,t){var o=t?i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}},3147:function(e){var t=/\w*$/;e.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}},419:function(e,t,o){var i=o(2705),s=i?i.prototype:void 0,r=s?s.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},7133:function(e,t,o){var i=o(4318);e.exports=function(e,t){var o=t?i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var o=-1,i=e.length;for(t||(t=Array(i));++o<i;)t[o]=e[o];return t}},8363:function(e,t,o){var i=o(4865),s=o(9465);e.exports=function(e,t,o,r){var n=!o;o||(o={});for(var a=-1,l=t.length;++a<l;){var d=t[a],c=r?r(o[d],e[d],d,o,e):void 0;void 0===c&&(c=e[d]),n?s(o,d,c):i(o,d,c)}return o}},8805:function(e,t,o){var i=o(8363),s=o(9551);e.exports=function(e,t){return i(e,s(e),t)}},1911:function(e,t,o){var i=o(8363),s=o(1442);e.exports=function(e,t){return i(e,s(e),t)}},4429:function(e,t,o){var i=o(5639)["__core-js_shared__"];e.exports=i},1463:function(e,t,o){var i=o(5976),s=o(6612);e.exports=function(e){return i((function(t,o){var i=-1,r=o.length,n=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(n=e.length>3&&"function"==typeof n?(r--,n):void 0,a&&s(o[0],o[1],a)&&(n=r<3?void 0:n,r=1),t=Object(t);++i<r;){var l=o[i];l&&e(t,l,i,n)}return t}))}},5063:function(e){e.exports=function(e){return function(t,o,i){for(var s=-1,r=Object(t),n=i(t),a=n.length;a--;){var l=n[e?a:++s];if(!1===o(r[l],l,r))break}return t}}},8777:function(e,t,o){var i=o(852),s=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},1957:function(e,t,o){var i="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=i},8234:function(e,t,o){var i=o(8866),s=o(9551),r=o(3674);e.exports=function(e){return i(e,r,s)}},6904:function(e,t,o){var i=o(8866),s=o(1442),r=o(1704);e.exports=function(e){return i(e,r,s)}},5050:function(e,t,o){var i=o(7019);e.exports=function(e,t){var o=e.__data__;return i(t)?o["string"==typeof t?"string":"hash"]:o.map}},852:function(e,t,o){var i=o(8458),s=o(7801);e.exports=function(e,t){var o=s(e,t);return i(o)?o:void 0}},5924:function(e,t,o){var i=o(5569)(Object.getPrototypeOf,Object);e.exports=i},9607:function(e,t,o){var i=o(2705),s=Object.prototype,r=s.hasOwnProperty,n=s.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),o=e[a];try{e[a]=void 0;var i=!0}catch(e){}var s=n.call(e);return i&&(t?e[a]=o:delete e[a]),s}},9551:function(e,t,o){var i=o(4963),s=o(479),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,a=n?function(e){return null==e?[]:(e=Object(e),i(n(e),(function(t){return r.call(e,t)})))}:s;e.exports=a},1442:function(e,t,o){var i=o(2488),s=o(5924),r=o(9551),n=o(479),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=s(e);return t}:n;e.exports=a},4160:function(e,t,o){var i=o(8552),s=o(7071),r=o(3818),n=o(8525),a=o(577),l=o(4239),d=o(346),c="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",_=d(i),w=d(s),f=d(r),y=d(n),g=d(a),b=l;(i&&b(new i(new ArrayBuffer(1)))!=m||s&&b(new s)!=c||r&&b(r.resolve())!=u||n&&b(new n)!=p||a&&b(new a)!=h)&&(b=function(e){var t=l(e),o="[object Object]"==t?e.constructor:void 0,i=o?d(o):"";if(i)switch(i){case _:return m;case w:return c;case f:return u;case y:return p;case g:return h}return t}),e.exports=b},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,o){var i=o(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,o){var i=o(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return s.call(t,e)?t[e]:void 0}},1327:function(e,t,o){var i=o(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:s.call(t,e)}},1866:function(e,t,o){var i=o(4536);e.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var o=e.length,i=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},9148:function(e,t,o){var i=o(4318),s=o(7157),r=o(3147),n=o(419),a=o(7133);e.exports=function(e,t,o){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return s(e,o);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 a(e,o);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return r(e);case"[object Set]":return new l;case"[object Symbol]":return n(e)}}},8517:function(e,t,o){var i=o(3118),s=o(5924),r=o(5726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(s(e))}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var i=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<o}},6612:function(e,t,o){var i=o(7813),s=o(8612),r=o(5776),n=o(3218);e.exports=function(e,t,o){if(!n(o))return!1;var a=typeof t;return!!("number"==a?s(o)&&r(t,o.length):"string"==a&&t in o)&&i(o[t],e)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,o){var i,s=o(4429),r=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,o){var i=o(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=i(t,e);return!(o<0||(o==t.length-1?t.pop():s.call(t,o,1),--this.size,0))}},2117:function(e,t,o){var i=o(8470);e.exports=function(e){var t=this.__data__,o=i(t,e);return o<0?void 0:t[o][1]}},7518:function(e,t,o){var i=o(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:function(e,t,o){var i=o(8470);e.exports=function(e,t){var o=this.__data__,s=i(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}},4785:function(e,t,o){var i=o(1989),s=o(8407),r=o(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||s),string:new i}}},1285:function(e,t,o){var i=o(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,o){var i=o(5050);e.exports=function(e){return i(this,e).get(e)}},9916:function(e,t,o){var i=o(5050);e.exports=function(e){return i(this,e).has(e)}},5265:function(e,t,o){var i=o(5050);e.exports=function(e,t){var o=i(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this}},4536:function(e,t,o){var i=o(852)(Object,"create");e.exports=i},6916:function(e,t,o){var i=o(5569)(Object.keys,Object);e.exports=i},3498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},1167:function(e,t,o){e=o.nmd(e);var i=o(1957),s=t&&!t.nodeType&&t,r=s&&e&&!e.nodeType&&e,n=r&&r.exports===s&&i.process,a=function(){try{return r&&r.require&&r.require("util").types||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=a},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},5357:function(e,t,o){var i=o(6874),s=Math.max;e.exports=function(e,t,o){return t=s(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,a=s(r.length-t,0),l=Array(a);++n<a;)l[n]=r[t+n];n=-1;for(var d=Array(t+1);++n<t;)d[n]=r[n];return d[t]=o(l),i(e,this,d)}}},5639:function(e,t,o){var i=o(1957),s="object"==typeof self&&self&&self.Object===Object&&self,r=i||s||Function("return this")();e.exports=r},6390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:function(e,t,o){var i=o(6560),s=o(1275)(i);e.exports=s},1275:function(e){var t=Date.now;e.exports=function(e){var o=0,i=0;return function(){var s=t(),r=16-(s-i);if(i=s,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},7465:function(e,t,o){var i=o(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,o){var i=o(8407),s=o(7071),r=o(3369);e.exports=function(e,t){var o=this.__data__;if(o instanceof i){var n=o.__data__;if(!s||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new r(n)}return o.set(e,t),this.size=o.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:function(e,t,o){var i=o(5990);e.exports=function(e){return i(e,5)}},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,o){var i=o(9454),s=o(7005),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return s(e)&&n.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,o){var i=o(3560),s=o(1780);e.exports=function(e){return null!=e&&s(e.length)&&!i(e)}},9246:function(e,t,o){var i=o(8612),s=o(7005);e.exports=function(e){return s(e)&&i(e)}},4144:function(e,t,o){e=o.nmd(e);var i=o(5639),s=o(5062),r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||s;e.exports=l},3560:function(e,t,o){var i=o(4239),s=o(3218);e.exports=function(e){if(!s(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:function(e,t,o){var i=o(5588),s=o(1717),r=o(1167),n=r&&r.isMap,a=n?s(n):i;e.exports=a},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8630:function(e,t,o){var i=o(4239),s=o(5924),r=o(7005),n=Function.prototype,a=Object.prototype,l=n.toString,d=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=s(e);if(null===t)return!0;var o=d.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&l.call(o)==c}},2928:function(e,t,o){var i=o(9221),s=o(1717),r=o(1167),n=r&&r.isSet,a=n?s(n):i;e.exports=a},3448:function(e,t,o){var i=o(4239),s=o(7005);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},6719:function(e,t,o){var i=o(8749),s=o(1717),r=o(1167),n=r&&r.isTypedArray,a=n?s(n):i;e.exports=a},3674:function(e,t,o){var i=o(4636),s=o(280),r=o(8612);e.exports=function(e){return r(e)?i(e):s(e)}},1704:function(e,t,o){var i=o(4636),s=o(313),r=o(8612);e.exports=function(e){return r(e)?i(e,!0):s(e)}},2492:function(e,t,o){var i=o(2980),s=o(1463)((function(e,t,o){i(e,t,o)}));e.exports=s},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9881:function(e,t,o){var i=o(8363),s=o(1704);e.exports=function(e){return i(e,s(e))}},9833:function(e,t,o){var i=o(531);e.exports=function(e){return null==e?"":i(e)}},3955:function(e,t,o){var i=o(9833),s=0;e.exports=function(e){var t=++s;return i(e)+t}},9490:function(e,t){"use strict";function o(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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(e){return!1}}function d(e,t,o){return(d=l()?Reflect.construct:function(e,t,o){var i=[null];i.push.apply(i,t);var s=new(Function.bind.apply(e,i));return o&&a(s,o.prototype),s}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return d(e,arguments,n(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a(i,e)})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}function p(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return u(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c(Error)),m=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(h),_=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(h),w=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(h),f=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(h),y=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(h),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(h),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(h),v="numeric",T="short",S="long",x={year:v,month:v,day:v},A={year:v,month:T,day:v},C={year:v,month:T,day:v,weekday:T},E={year:v,month:S,day:v},P={year:v,month:S,day:v,weekday:S},O={hour:v,minute:v},D={hour:v,minute:v,second:v},k={hour:v,minute:v,second:v,timeZoneName:T},R={hour:v,minute:v,second:v,timeZoneName:S},N={hour:v,minute:v,hourCycle:"h23"},I={hour:v,minute:v,second:v,hourCycle:"h23"},L={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:T},M={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:S},F={year:v,month:v,day:v,hour:v,minute:v},j={year:v,month:v,day:v,hour:v,minute:v,second:v},q={year:v,month:T,day:v,hour:v,minute:v},V={year:v,month:T,day:v,hour:v,minute:v,second:v},U={year:v,month:T,day:v,weekday:T,hour:v,minute:v},B={year:v,month:S,day:v,hour:v,minute:v,timeZoneName:T},z={year:v,month:S,day:v,hour:v,minute:v,second:v,timeZoneName:T},H={year:v,month:S,day:v,weekday:S,hour:v,minute:v,timeZoneName:S},G={year:v,month:S,day:v,weekday:S,hour:v,minute:v,second:v,timeZoneName:S};function W(e){return void 0===e}function Z(e){return"number"==typeof e}function $(e){return"number"==typeof e&&e%1==0}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,t,o){if(0!==e.length)return e.reduce((function(e,i){var s=[t(i),i];return e&&o(e[0],s[0])===e[0]?e:s}),null)[1]}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,o){return $(e)&&e>=t&&e<=o}function X(e,t){void 0===t&&(t=2);var o=e<0?"-":"",i=o?-1*e:e;return""+o+(i.toString().length<t?("0".repeat(t)+i).slice(-t):i.toString())}function ee(e){return W(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!W(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function oe(e,t,o){void 0===o&&(o=!1);var i=Math.pow(10,t);return(o?Math.trunc:Math.round)(e*i)/i}function ie(e){return e%4==0&&(e%100!=0||e%400==0)}function se(e){return ie(e)?366:365}function re(e,t){var o,i=(o=t-1)-12*Math.floor(o/12)+1;return 2===i?ie(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ne(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ae(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,o=e-1,i=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7;return 4===t||3===i?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,o,i){void 0===i&&(i=null);var r=new Date(e),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(n.timeZone=i);var a=s({timeZoneName:t},n),l=new Intl.DateTimeFormat(o,a).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}function ce(e,t){var o=parseInt(e,10);Number.isNaN(o)&&(o=0);var i=parseInt(t,10)||0;return 60*o+(o<0||Object.is(o,-0)?-i:i)}function ue(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new g("Invalid unit value "+e);return t}function pe(e,t){var o={};for(var i in e)if(J(e,i)){var s=e[i];if(null==s)continue;o[t(i)]=ue(s)}return o}function he(e,t){var o=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return""+s+X(o,2)+":"+X(i,2);case"narrow":return""+s+o+(i>0?":"+i:"");case"techie":return""+s+X(o,2)+X(i,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return function(e,t){return["hour","minute","second","millisecond"].reduce((function(t,o){return t[o]=e[o],t}),{})}(e)}var _e=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,we=["January","February","March","April","May","June","July","August","September","October","November","December"],fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ye=["J","F","M","A","M","J","J","A","S","O","N","D"];function ge(e){switch(e){case"narrow":return[].concat(ye);case"short":return[].concat(fe);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Te=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(ve);case"long":return[].concat(be);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var xe=["AM","PM"],Ae=["Before Christ","Anno Domini"],Ce=["BC","AD"],Ee=["B","A"];function Pe(e){switch(e){case"narrow":return[].concat(Ee);case"short":return[].concat(Ce);case"long":return[].concat(Ae);default:return null}}function Oe(e,t){for(var o,i="",s=p(e);!(o=s()).done;){var r=o.value;r.literal?i+=r.val:i+=t(r.val)}return i}var De={D:x,DD:A,DDD:E,DDDD:P,t:O,tt:D,ttt:k,tttt:R,T:N,TT:I,TTT:L,TTTT:M,f:F,ff:q,fff:B,ffff:H,F:j,FF:V,FFF:z,FFFF:G},ke=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,o){return void 0===o&&(o={}),new e(t,o)},e.parseFormat=function(e){for(var t=null,o="",i=!1,s=[],r=0;r<e.length;r++){var n=e.charAt(r);"'"===n?(o.length>0&&s.push({literal:i,val:o}),t=null,o="",i=!i):i||n===t?o+=n:(o.length>0&&s.push({literal:!1,val:o}),o=n,t=n)}return o.length>0&&s.push({literal:i,val:o}),s},e.macroTokenToFormatOpts=function(e){return De[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,s({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(e,t);var o=s({},this.opts);return t>0&&(o.padTo=t),this.loc.numberFormatter(o).format(e)},t.formatDateTimeFromString=function(t,o){var i=this,s="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,n=function(e,o){return i.loc.extract(t,e,o)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,o){return s?function(e,t){return ge(t)[e.month-1]}(t,e):n(o?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,o){return s?function(e,t){return Se(t)[e.weekday-1]}(t,e):n(o?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},c=function(e){return s?function(e,t){return Pe(t)[e.year<0?0:1]}(t,e):n({era:e},"era")};return Oe(e.parseFormat(o),(function(o){switch(o){case"S":return i.num(t.millisecond);case"u":case"SSS":return i.num(t.millisecond,3);case"s":return i.num(t.second);case"ss":return i.num(t.second,2);case"m":return i.num(t.minute);case"mm":return i.num(t.minute,2);case"h":return i.num(t.hour%12==0?12:t.hour%12);case"hh":return i.num(t.hour%12==0?12:t.hour%12,2);case"H":return i.num(t.hour);case"HH":return i.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:i.opts.allowZ});case"ZZ":return a({format:"short",allowZ:i.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:i.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:i.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:i.loc.locale});case"z":return t.zoneName;case"a":return s?function(e){return xe[e.hour<12?0:1]}(t):n({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?n({day:"numeric"},"day"):i.num(t.day);case"dd":return r?n({day:"2-digit"},"day"):i.num(t.day,2);case"c":return i.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return i.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):i.num(t.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):i.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):i.num(t.month);case"MM":return r?n({month:"2-digit"},"month"):i.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):i.num(t.year);case"yy":return r?n({year:"2-digit"},"year"):i.num(t.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):i.num(t.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):i.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return i.num(t.weekYear.toString().slice(-2),2);case"kkkk":return i.num(t.weekYear,4);case"W":return i.num(t.weekNumber);case"WW":return i.num(t.weekNumber,2);case"o":return i.num(t.ordinal);case"ooo":return i.num(t.ordinal,3);case"q":return i.num(t.quarter);case"qq":return i.num(t.quarter,2);case"X":return i.num(Math.floor(t.ts/1e3));case"x":return i.num(t.ts);default:return function(o){var s=e.macroTokenToFormatOpts(o);return s?i.formatWithSystemDefault(t,s):o}(o)}}))},t.formatDurationFromString=function(t,o){var i,s=this,r=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},n=e.parseFormat(o),a=n.reduce((function(e,t){var o=t.literal,i=t.val;return o?e:e.concat(i)}),[]),l=t.shiftTo.apply(t,a.map(r).filter((function(e){return e})));return Oe(n,(i=l,function(e){var t=r(e);return t?s.num(i.get(t),e.length):e}))},e}(),Re=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ne=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},i(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ie=null,Le=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var o=t.prototype;return o.offsetName=function(e,t){return de(e,t.format,t.locale)},o.formatOffset=function(e,t){return he(this.offset(e),t)},o.offset=function(e){return-new Date(e).getTimezoneOffset()},o.equals=function(e){return"system"===e.type},i(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ie&&(Ie=new t),Ie}}]),t}(Ne),Me=RegExp("^"+_e.source+"$"),Fe={},je={year:0,month:1,day:2,hour:3,minute:4,second:5},qe={},Ve=function(e){function t(o){var i;return(i=e.call(this)||this).zoneName=o,i.valid=t.isValidZone(o),i}r(t,e),t.create=function(e){return qe[e]||(qe[e]=new t(e)),qe[e]},t.resetCache=function(){qe={},Fe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Me))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var o=t.prototype;return o.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},o.formatOffset=function(e,t){return he(this.offset(e),t)},o.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var o,i=(o=this.name,Fe[o]||(Fe[o]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[o]),s=i.formatToParts?function(e,t){for(var o=e.formatToParts(t),i=[],s=0;s<o.length;s++){var r=o[s],n=r.type,a=r.value,l=je[n];W(l)||(i[l]=parseInt(a,10))}return i}(i,t):function(e,t){var o=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(o),s=i[1],r=i[2];return[i[3],s,r,i[4],i[5],i[6]]}(i,t),r=+t,n=r%1e3;return(ne({year:s[0],month:s[1],day:s[2],hour:s[3],minute:s[4],second:s[5],millisecond:0})-(r-=n>=0?n:1e3+n))/6e4},o.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ne),Ue=null,Be=function(e){function t(t){var o;return(o=e.call(this)||this).fixed=t,o}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var o=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(o)return new t(ce(o[1],o[2]))}return null};var o=t.prototype;return o.offsetName=function(){return this.name},o.formatOffset=function(e,t){return he(this.fixed,t)},o.offset=function(){return this.fixed},o.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+he(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Ue&&(Ue=new t(0)),Ue}}]),t}(Ne),ze=function(e){function t(t){var o;return(o=e.call(this)||this).zoneName=t,o}r(t,e);var o=t.prototype;return o.offsetName=function(){return null},o.formatOffset=function(){return""},o.offset=function(){return NaN},o.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ne);function He(e,t){var o;if(W(e)||null===e)return t;if(e instanceof Ne)return e;if("string"==typeof e){var i=e.toLowerCase();return"local"===i||"system"===i?t:"utc"===i||"gmt"===i?Be.utcInstance:null!=(o=Ve.parseGMTOffset(e))?Be.instance(o):Ve.isValidSpecifier(i)?Ve.create(e):Be.parseSpecifier(i)||new ze(e)}return Z(e)?Be.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new ze(e)}var Ge,We=function(){return Date.now()},Ze="system",$e=null,Ye=null,Ke=null,Je=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),Ve.resetCache()},i(e,null,[{key:"now",get:function(){return We},set:function(e){We=e}},{key:"defaultZone",get:function(){return He(Ze,Le.instance)},set:function(e){Ze=e}},{key:"defaultLocale",get:function(){return $e},set:function(e){$e=e}},{key:"defaultNumberingSystem",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultOutputCalendar",get:function(){return Ke},set:function(e){Ke=e}},{key:"throwOnInvalid",get:function(){return Ge},set:function(e){Ge=e}}]),e}(),Qe=["base"],Xe={};function et(e,t){void 0===t&&(t={});var o=JSON.stringify([e,t]),i=Xe[o];return i||(i=new Intl.DateTimeFormat(e,t),Xe[o]=i),i}var tt={},ot={};var it=null;function st(e,t,o,i,s){var r=e.listingMode(o);return"error"===r?null:"en"===r?i(t):s(t)}var rt=function(){function e(e,t,o){if(this.padTo=o.padTo||0,this.floor=o.floor||!1,!t){var i={useGrouping:!1};o.padTo>0&&(i.minimumIntegerDigits=o.padTo),this.inf=function(e,t){void 0===t&&(t={});var o=JSON.stringify([e,t]),i=tt[o];return i||(i=new Intl.NumberFormat(e,t),tt[o]=i),i}(e,i)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return X(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),nt=function(){function e(e,t,o){var i;if(this.opts=o,e.zone.isUniversal){var r=e.offset/60*-1,n=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,a=Ve.isValidZone(n);0!==e.offset&&a?(i=n,this.dt=e):(i="UTC",o.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ai.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,i=e.zone.name);var l=s({},this.opts);i&&(l.timeZone=i),this.dtf=et(t,l)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),at=function(){function e(e,t,o){this.opts=s({style:"long"},o),!t&&Y()&&(this.rtf=function(e,t){void 0===t&&(t={});var o=t;o.base;var i=function(e,t){if(null==e)return{};var o,i,s={},r=Object.keys(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||(s[o]=e[o]);return s}(o,Qe),s=JSON.stringify([e,i]),r=ot[s];return r||(r=new Intl.RelativeTimeFormat(e,t),ot[s]=r),r}(e,o))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,o,i){void 0===o&&(o="always"),void 0===i&&(i=!1);var s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===o&&r){var n="days"===e;switch(t){case 1:return n?"tomorrow":"next "+s[e][0];case-1:return n?"yesterday":"last "+s[e][0];case 0:return n?"today":"this "+s[e][0]}}var a=Object.is(t,-0)||t<0,l=Math.abs(t),d=1===l,c=s[e],u=i?d?c[1]:c[2]||c[1]:d?s[e][0]:e;return a?l+" "+u+" ago":"in "+l+" "+u}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,o,i){var s=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var o,i=e.substring(0,t);try{o=et(e).resolvedOptions()}catch(e){o=et(i).resolvedOptions()}var s=o;return[i,s.numberingSystem,s.calendar]}(e),r=s[0],n=s[1],a=s[2];this.locale=r,this.numberingSystem=t||n||null,this.outputCalendar=o||a||null,this.intl=function(e,t,o){return o||t?(e+="-u",o&&(e+="-ca-"+o),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,o,i,s){void 0===s&&(s=!1);var r=t||Je.defaultLocale;return new e(r||(s?"en-US":it||(it=(new Intl.DateTimeFormat).resolvedOptions().locale)),o||Je.defaultNumberingSystem,i||Je.defaultOutputCalendar,r)},e.resetCache=function(){it=null,Xe={},tt={},ot={}},e.fromObject=function(t){var o=void 0===t?{}:t,i=o.locale,s=o.numberingSystem,r=o.outputCalendar;return e.create(i,s,r)};var t=e.prototype;return t.listingMode=function(e){var t=this.isEnglish(),o=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&o?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!1}))},t.months=function(e,t,o){var i=this;return void 0===t&&(t=!1),void 0===o&&(o=!0),st(this,e,o,ge,(function(){var o=t?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";return i.monthsCache[s][e]||(i.monthsCache[s][e]=function(e){for(var t=[],o=1;o<=12;o++){var i=ai.utc(2016,o,1);t.push(e(i))}return t}((function(e){return i.extract(e,o,"month")}))),i.monthsCache[s][e]}))},t.weekdays=function(e,t,o){var i=this;return void 0===t&&(t=!1),void 0===o&&(o=!0),st(this,e,o,Se,(function(){var o=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return i.weekdaysCache[s][e]||(i.weekdaysCache[s][e]=function(e){for(var t=[],o=1;o<=7;o++){var i=ai.utc(2016,11,13+o);t.push(e(i))}return t}((function(e){return i.extract(e,o,"weekday")}))),i.weekdaysCache[s][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return xe}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[ai.utc(2016,11,13,9),ai.utc(2016,11,13,19)].map((function(o){return t.extract(o,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var o=this;return void 0===t&&(t=!0),st(this,e,t,Pe,(function(){var t={era:e};return o.eraCache[e]||(o.eraCache[e]=[ai.utc(-40,1,1),ai.utc(2017,1,1)].map((function(e){return o.extract(e,t,"era")}))),o.eraCache[e]}))},t.extract=function(e,t,o){var i=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===o}));return i?i.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new rt(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new nt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function dt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+i+"$")}function ct(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e){return t.reduce((function(t,o){var i=t[0],r=t[1],n=t[2],a=o(e,n),l=a[0],d=a[1],c=a[2];return[s({},i,l),r||d,c]}),[{},null,1]).slice(0,2)}}function ut(e){if(null==e)return[null,null];for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];for(var s=0,r=o;s<r.length;s++){var n=r[s],a=n[0],l=n[1],d=a.exec(e);if(d)return l(d)}return[null,null]}function pt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,o){var i,s={};for(i=0;i<t.length;i++)s[t[i]]=ee(e[o+i]);return[s,null,o+i]}}var ht=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_t=RegExp(""+mt.source+ht.source+"?"),wt=RegExp("(?:T"+_t.source+")?"),ft=pt("weekYear","weekNumber","weekDay"),yt=pt("year","ordinal"),gt=RegExp(mt.source+" ?(?:"+ht.source+"|("+_e.source+"))?"),bt=RegExp("(?: "+gt.source+")?");function vt(e,t,o){var i=e[t];return W(i)?o:ee(i)}function Tt(e,t){return[{year:vt(e,t),month:vt(e,t+1,1),day:vt(e,t+2,1)},null,t+3]}function St(e,t){return[{hours:vt(e,t,0),minutes:vt(e,t+1,0),seconds:vt(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function xt(e,t){var o=!e[t]&&!e[t+1],i=ce(e[t+1],e[t+2]);return[{},o?null:Be.instance(i),t+3]}function At(e,t){return[{},e[t]?Ve.create(e[t]):null,t+1]}var Ct=RegExp("^T?"+mt.source+"$"),Et=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Pt(e){var t=e[0],o=e[1],i=e[2],s=e[3],r=e[4],n=e[5],a=e[6],l=e[7],d=e[8],c="-"===t[0],u=l&&"-"===l[0],p=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&c)?-e:e};return[{years:p(ee(o)),months:p(ee(i)),weeks:p(ee(s)),days:p(ee(r)),hours:p(ee(n)),minutes:p(ee(a)),seconds:p(ee(l),"-0"===l),milliseconds:p(te(d),u)}]}var Ot={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e,t,o,i,s,r,n){var a={year:2===t.length?le(ee(t)):ee(t),month:fe.indexOf(o)+1,day:ee(i),hour:ee(s),minute:ee(r)};return n&&(a.second=ee(n)),e&&(a.weekday=e.length>3?be.indexOf(e)+1:ve.indexOf(e)+1),a}var kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Rt(e){var t,o=e[1],i=e[2],s=e[3],r=e[4],n=e[5],a=e[6],l=e[7],d=e[8],c=e[9],u=e[10],p=e[11],h=Dt(o,r,s,i,n,a,l);return t=d?Ot[d]:c?0:ce(u,p),[h,new Be(t)]}var Nt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Lt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mt(e){var t=e[1],o=e[2],i=e[3];return[Dt(t,e[4],i,o,e[5],e[6],e[7]),Be.utcInstance]}function Ft(e){var t=e[1],o=e[2],i=e[3],s=e[4],r=e[5],n=e[6];return[Dt(t,e[7],o,i,s,r,n),Be.utcInstance]}var jt=dt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),qt=dt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Vt=dt(/(\d{4})-?(\d{3})/,wt),Ut=dt(_t),Bt=ct(Tt,St,xt),zt=ct(ft,St,xt),Ht=ct(yt,St,xt),Gt=ct(St,xt),Wt=ct(St),Zt=dt(/(\d{4})-(\d\d)-(\d\d)/,bt),$t=dt(gt),Yt=ct(Tt,St,xt,At),Kt=ct(St,xt,At),Jt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qt=s({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Jt),Xt=s({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Jt),eo=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],to=eo.slice(0).reverse();function oo(e,t,o){void 0===o&&(o=!1);var i={values:o?t.values:s({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new so(i)}function io(e,t,o,i,s){var r=e[s][o],n=t[o]/r,a=Math.sign(n)!==Math.sign(i[s])&&0!==i[s]&&Math.abs(n)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(n):Math.trunc(n);i[s]+=a,t[o]-=a*r}var so=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Qt,this.isLuxonDuration=!0}e.fromMillis=function(t,o){return e.fromObject({milliseconds:t},o)},e.fromObject=function(t,o){if(void 0===o&&(o={}),null==t||"object"!=typeof t)throw new g("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:pe(t,e.normalizeUnit),loc:lt.fromObject(o),conversionAccuracy:o.conversionAccuracy})},e.fromISO=function(t,o){var i=function(e){return ut(e,[Et,Pt])}(t)[0];return i?e.fromObject(i,o):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,o){var i=function(e){return ut(e,[Ct,Wt])}(t)[0];return i?e.fromObject(i,o):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the Duration is invalid");var i=t instanceof Re?t:new Re(t,o);if(Je.throwOnInvalid)throw new w(i);return new e({invalid:i})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new y(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var o=s({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?ke.create(this.loc,o).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?s({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=s({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var o=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===o.seconds&&0===o.milliseconds||(i+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===o.milliseconds||(i+=".SSS"));var r=o.toFormat(i);return e.includePrefix&&(r="T"+r),r},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,o=ro(e),i={},s=p(eo);!(t=s()).done;){var r=t.value;(J(o.values,r)||J(this.values,r))&&(i[r]=o.get(r)+this.get(r))}return oo(this,{values:i},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ro(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},o=0,i=Object.keys(this.values);o<i.length;o++){var s=i[o];t[s]=ue(e(this.values[s],s))}return oo(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?oo(this,{values:s({},this.values,pe(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,o=t.locale,i=t.numberingSystem,s=t.conversionAccuracy,r={loc:this.loc.clone({locale:o,numberingSystem:i})};return s&&(r.conversionAccuracy=s),oo(this,r)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){to.reduce((function(o,i){return W(t[i])?o:(o&&io(e,t,o,t,i),i)}),null)}(this.matrix,e),oo(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!this.isValid)return this;if(0===o.length)return this;o=o.map((function(t){return e.normalizeUnit(t)}));for(var s,r,n={},a={},l=this.toObject(),d=p(eo);!(r=d()).done;){var c=r.value;if(o.indexOf(c)>=0){s=c;var u=0;for(var h in a)u+=this.matrix[h][c]*a[h],a[h]=0;Z(l[c])&&(u+=l[c]);var m=Math.trunc(u);for(var _ in n[c]=m,a[c]=u-m,l)eo.indexOf(_)>eo.indexOf(c)&&io(this.matrix,l,_,n,c)}else Z(l[c])&&(a[c]=l[c])}for(var w in a)0!==a[w]&&(n[s]+=w===s?a[w]:a[w]/this.matrix[s][w]);return oo(this,{values:n},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,o=Object.keys(this.values);t<o.length;t++){var i=o[t];e[i]=-this.values[i]}return oo(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,o=p(eo);!(t=o()).done;){var i=t.value;if(s=this.values[i],r=e.values[i],!(void 0===s||0===s?void 0===r||0===r:s===r))return!1}var s,r;return!0},i(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ro(e){if(Z(e))return so.fromMillis(e);if(so.isDuration(e))return e;if("object"==typeof e)return so.fromObject(e);throw new g("Unknown duration argument "+e+" of type "+typeof e)}var no="Invalid Interval";function ao(e,t){return e&&e.isValid?t&&t.isValid?t<e?lo.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:lo.invalid("missing or invalid end"):lo.invalid("missing or invalid start")}var lo=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the Interval is invalid");var i=t instanceof Re?t:new Re(t,o);if(Je.throwOnInvalid)throw new _(i);return new e({invalid:i})},e.fromDateTimes=function(t,o){var i=li(t),s=li(o),r=ao(i,s);return null==r?new e({start:i,end:s}):r},e.after=function(t,o){var i=ro(o),s=li(t);return e.fromDateTimes(s,s.plus(i))},e.before=function(t,o){var i=ro(o),s=li(t);return e.fromDateTimes(s.minus(i),s)},e.fromISO=function(t,o){var i=(t||"").split("/",2),s=i[0],r=i[1];if(s&&r){var n,a,l,d;try{a=(n=ai.fromISO(s,o)).isValid}catch(r){a=!1}try{d=(l=ai.fromISO(r,o)).isValid}catch(r){d=!1}if(a&&d)return e.fromDateTimes(n,l);if(a){var c=so.fromISO(r,o);if(c.isValid)return e.after(n,c)}else if(d){var u=so.fromISO(s,o);if(u.isValid)return e.before(l,u)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var o=void 0===t?{}:t,i=o.start,s=o.end;return this.isValid?e.fromDateTimes(i||this.s,s||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];for(var r=i.map(li).filter((function(e){return t.contains(e)})).sort(),n=[],a=this.s,l=0;a<this.e;){var d=r[l]||this.e,c=+d>+this.e?this.e:d;n.push(e.fromDateTimes(a,c)),a=c,l+=1}return n},t.splitBy=function(t){var o=ro(t);if(!this.isValid||!o.isValid||0===o.as("milliseconds"))return[];for(var i,s=this.s,r=1,n=[];s<this.e;){var a=this.start.plus(o.mapUnits((function(e){return e*r})));i=+a>+this.e?this.e:a,n.push(e.fromDateTimes(s,i)),s=i,r+=1}return n},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var o=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return o>=i?null:e.fromDateTimes(o,i)},t.union=function(t){if(!this.isValid)return this;var o=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return e.fromDateTimes(o,i)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var o=e[0],i=e[1];return i?i.overlaps(t)||i.abutsStart(t)?[o,i.union(t)]:[o.concat([i]),t]:[o,t]}),[[],null]),o=t[0],i=t[1];return i&&o.push(i),o},e.xor=function(t){for(var o,i,s=null,r=0,n=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=p((o=Array.prototype).concat.apply(o,a).sort((function(e,t){return e.time-t.time})));!(i=l()).done;){var d=i.value;1===(r+="s"===d.type?1:-1)?s=d.time:(s&&+s!=+d.time&&n.push(e.fromDateTimes(s,d.time)),s=null)}return e.merge(n)},t.difference=function(){for(var t=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return e.xor([this].concat(i)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":no},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):no},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():no},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):no},t.toFormat=function(e,t){var o=(void 0===t?{}:t).separator,i=void 0===o?" – ":o;return this.isValid?""+this.s.toFormat(e)+i+this.e.toFormat(e):no},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):so.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},i(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),co=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Je.defaultZone);var t=ai.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Ve.isValidSpecifier(e)&&Ve.isValidZone(e)},e.normalizeZone=function(e){return He(e,Je.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj,l=void 0===a?null:a,d=o.outputCalendar,c=void 0===d?"gregory":d;return(l||lt.create(s,n,c)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj,l=void 0===a?null:a,d=o.outputCalendar,c=void 0===d?"gregory":d;return(l||lt.create(s,n,c)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj;return((void 0===a?null:a)||lt.create(s,n,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var o=void 0===t?{}:t,i=o.locale,s=void 0===i?null:i,r=o.numberingSystem,n=void 0===r?null:r,a=o.locObj;return((void 0===a?null:a)||lt.create(s,n,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,o=void 0===t?null:t;return lt.create(o).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var o=(void 0===t?{}:t).locale,i=void 0===o?null:o;return lt.create(i,null,"gregory").eras(e)},e.features=function(){return{relative:Y()}},e}();function uo(e,t){var o=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},i=o(t)-o(e);return Math.floor(so.fromMillis(i).as("days"))}var po={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ho={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mo=po.hanidec.replace(/[\[|\]]/g,"").split("");function _o(e,t){var o=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+po[o||"latn"]+t)}function wo(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var o=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var o=0;o<e.length;o++){var i=e.charCodeAt(o);if(-1!==e[o].search(po.hanidec))t+=mo.indexOf(e[o]);else for(var s in ho){var r=ho[s],n=r[0],a=r[1];i>=n&&i<=a&&(t+=i-n)}}return parseInt(t,10)}return t}(o))}}}var fo="( |"+String.fromCharCode(160)+")",yo=new RegExp(fo,"g");function go(e){return e.replace(/\./g,"\\.?").replace(yo,fo)}function bo(e){return e.replace(/\./g,"").replace(yo," ").toLowerCase()}function vo(e,t){return null===e?null:{regex:RegExp(e.map(go).join("|")),deser:function(o){var i=o[0];return e.findIndex((function(e){return bo(i)===bo(e)}))+t}}}function To(e,t){return{regex:e,deser:function(e){return ce(e[1],e[2])},groups:t}}function So(e){return{regex:e,deser:function(e){return e[0]}}}var xo={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Ao=null;function Co(e,t,o){var i=function(e,t){var o;return(o=Array.prototype).concat.apply(o,e.map((function(e){return function(e,t){if(e.literal)return e;var o=ke.macroTokenToFormatOpts(e.val);if(!o)return e;var i=ke.create(t,o).formatDateTimeParts((Ao||(Ao=ai.fromMillis(1555555555555)),Ao)).map((function(e){return function(e,t,o){var i=e.type,s=e.value;if("literal"===i)return{literal:!0,val:s};var r=o[i],n=xo[i];return"object"==typeof n&&(n=n[r]),n?{literal:!1,val:n}:void 0}(e,0,o)}));return i.includes(void 0)?e:i}(e,t)})))}(ke.parseFormat(o),e),s=i.map((function(t){return o=t,s=_o(i=e),r=_o(i,"{2}"),n=_o(i,"{3}"),a=_o(i,"{4}"),l=_o(i,"{6}"),d=_o(i,"{1,2}"),c=_o(i,"{1,3}"),u=_o(i,"{1,6}"),p=_o(i,"{1,9}"),h=_o(i,"{2,4}"),m=_o(i,"{4,6}"),_=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(w=function(e){if(o.literal)return _(e);switch(e.val){case"G":return vo(i.eras("short",!1),0);case"GG":return vo(i.eras("long",!1),0);case"y":return wo(u);case"yy":return wo(h,le);case"yyyy":return wo(a);case"yyyyy":return wo(m);case"yyyyyy":return wo(l);case"M":return wo(d);case"MM":return wo(r);case"MMM":return vo(i.months("short",!0,!1),1);case"MMMM":return vo(i.months("long",!0,!1),1);case"L":return wo(d);case"LL":return wo(r);case"LLL":return vo(i.months("short",!1,!1),1);case"LLLL":return vo(i.months("long",!1,!1),1);case"d":return wo(d);case"dd":return wo(r);case"o":return wo(c);case"ooo":return wo(n);case"HH":return wo(r);case"H":return wo(d);case"hh":return wo(r);case"h":return wo(d);case"mm":return wo(r);case"m":case"q":return wo(d);case"qq":return wo(r);case"s":return wo(d);case"ss":return wo(r);case"S":return wo(c);case"SSS":return wo(n);case"u":return So(p);case"a":return vo(i.meridiems(),0);case"kkkk":return wo(a);case"kk":return wo(h,le);case"W":return wo(d);case"WW":return wo(r);case"E":case"c":return wo(s);case"EEE":return vo(i.weekdays("short",!1,!1),1);case"EEEE":return vo(i.weekdays("long",!1,!1),1);case"ccc":return vo(i.weekdays("short",!0,!1),1);case"cccc":return vo(i.weekdays("long",!0,!1),1);case"Z":case"ZZ":return To(new RegExp("([+-]"+d.source+")(?::("+r.source+"))?"),2);case"ZZZ":return To(new RegExp("([+-]"+d.source+")("+r.source+")?"),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return _(e)}}(o)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=o,w;var o,i,s,r,n,a,l,d,c,u,p,h,m,_,w})),r=s.find((function(e){return e.invalidReason}));if(r)return{input:t,tokens:i,invalidReason:r.invalidReason};var n=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(s),a=n[0],l=n[1],d=RegExp(a,"i"),c=function(e,t,o){var i=e.match(t);if(i){var s={},r=1;for(var n in o)if(J(o,n)){var a=o[n],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(i.slice(r,r+l))),r+=l}return[i,s]}return[i,{}]}(t,d,l),u=c[0],p=c[1],h=p?function(e){var t;return t=W(e.Z)?W(e.z)?null:Ve.create(e.z):new Be(e.Z),W(e.q)||(e.M=3*(e.q-1)+1),W(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),W(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,o){var i=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(o);return i&&(t[i]=e[o]),t}),{}),t]}(p):[null,null],m=h[0],_=h[1];if(J(p,"a")&&J(p,"H"))throw new f("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:d,rawMatches:u,matches:p,result:m,zone:_}}var Eo=[0,31,59,90,120,151,181,212,243,273,304,334],Po=[0,31,60,91,121,152,182,213,244,274,305,335];function Oo(e,t){return new Re("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Do(e,t,o){var i=new Date(Date.UTC(e,t-1,o)).getUTCDay();return 0===i?7:i}function ko(e,t,o){return o+(ie(e)?Po:Eo)[t-1]}function Ro(e,t){var o=ie(e)?Po:Eo,i=o.findIndex((function(e){return e<t}));return{month:i+1,day:t-o[i]}}function No(e){var t,o=e.year,i=e.month,r=e.day,n=ko(o,i,r),a=Do(o,i,r),l=Math.floor((n-a+10)/7);return l<1?l=ae(t=o-1):l>ae(o)?(t=o+1,l=1):t=o,s({weekYear:t,weekNumber:l,weekday:a},me(e))}function Io(e){var t,o=e.weekYear,i=e.weekNumber,r=e.weekday,n=Do(o,1,4),a=se(o),l=7*i+r-n-3;l<1?l+=se(t=o-1):l>a?(t=o+1,l-=se(o)):t=o;var d=Ro(t,l);return s({year:t,month:d.month,day:d.day},me(e))}function Lo(e){var t=e.year;return s({year:t,ordinal:ko(t,e.month,e.day)},me(e))}function Mo(e){var t=e.year,o=Ro(t,e.ordinal);return s({year:t,month:o.month,day:o.day},me(e))}function Fo(e){var t=$(e.year),o=Q(e.month,1,12),i=Q(e.day,1,re(e.year,e.month));return t?o?!i&&Oo("day",e.day):Oo("month",e.month):Oo("year",e.year)}function jo(e){var t=e.hour,o=e.minute,i=e.second,s=e.millisecond,r=Q(t,0,23)||24===t&&0===o&&0===i&&0===s,n=Q(o,0,59),a=Q(i,0,59),l=Q(s,0,999);return r?n?a?!l&&Oo("millisecond",s):Oo("second",i):Oo("minute",o):Oo("hour",t)}var qo="Invalid DateTime",Vo=864e13;function Uo(e){return new Re("unsupported zone",'the zone "'+e.name+'" is not supported')}function Bo(e){return null===e.weekData&&(e.weekData=No(e.c)),e.weekData}function zo(e,t){var o={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ai(s({},o,t,{old:o}))}function Ho(e,t,o){var i=e-60*t*1e3,s=o.offset(i);if(t===s)return[i,t];i-=60*(s-t)*1e3;var r=o.offset(i);return s===r?[i,s]:[e-60*Math.min(s,r)*1e3,Math.max(s,r)]}function Go(e,t){var o=new Date(e+=60*t*1e3);return{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}function Wo(e,t,o){return Ho(ne(e),t,o)}function Zo(e,t){var o=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),n=s({},e.c,{year:i,month:r,day:Math.min(e.c.day,re(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=so.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Ho(ne(n),o,e.zone),d=l[0],c=l[1];return 0!==a&&(d+=a,c=e.zone.offset(d)),{ts:d,o:c}}function $o(e,t,o,i,r){var n=o.setZone,a=o.zone;if(e&&0!==Object.keys(e).length){var l=t||a,d=ai.fromObject(e,s({},o,{zone:l}));return n?d:d.setZone(a)}return ai.invalid(new Re("unparsable",'the input "'+r+"\" can't be parsed as "+i))}function Yo(e,t,o){return void 0===o&&(o=!0),e.isValid?ke.create(lt.create("en-US"),{allowZ:o,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Ko(e,t){var o=t.suppressSeconds,i=void 0!==o&&o,s=t.suppressMilliseconds,r=void 0!==s&&s,n=t.includeOffset,a=t.includePrefix,l=void 0!==a&&a,d=t.includeZone,c=void 0!==d&&d,u=t.spaceZone,p=void 0!==u&&u,h=t.format,m=void 0===h?"extended":h,_="basic"===m?"HHmm":"HH:mm";i&&0===e.second&&0===e.millisecond||(_+="basic"===m?"ss":":ss",r&&0===e.millisecond||(_+=".SSS")),(c||n)&&p&&(_+=" "),c?_+="z":n&&(_+="basic"===m?"ZZZ":"ZZ");var w=Yo(e,_);return l&&(w="T"+w),w}var Jo={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qo={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ei=["year","month","day","hour","minute","second","millisecond"],ti=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oi=["year","ordinal","hour","minute","second","millisecond"];function ii(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new y(e);return t}function si(e,t){var o,i,s=He(t.zone,Je.defaultZone),r=lt.fromObject(t),n=Je.now();if(W(e.year))o=n;else{for(var a,l=p(ei);!(a=l()).done;){var d=a.value;W(e[d])&&(e[d]=Jo[d])}var c=Fo(e)||jo(e);if(c)return ai.invalid(c);var u=Wo(e,s.offset(n),s);o=u[0],i=u[1]}return new ai({ts:o,zone:s,loc:r,o:i})}function ri(e,t,o){var i=!!W(o.round)||o.round,s=function(e,s){return e=oe(e,i||o.calendary?0:2,!0),t.loc.clone(o).relFormatter(o).format(e,s)},r=function(i){return o.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i)};if(o.unit)return s(r(o.unit),o.unit);for(var n,a=p(o.units);!(n=a()).done;){var l=n.value,d=r(l);if(Math.abs(d)>=1)return s(d,l)}return s(e>t?-0:0,o.units[o.units.length-1])}function ni(e){var t,o={};return e.length>0&&"object"==typeof e[e.length-1]?(o=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[o,t]}var ai=function(){function e(e){var t=e.zone||Je.defaultZone,o=e.invalid||(Number.isNaN(e.ts)?new Re("invalid input"):null)||(t.isValid?null:Uo(t));this.ts=W(e.ts)?Je.now():e.ts;var i=null,s=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var r=[e.old.c,e.old.o];i=r[0],s=r[1]}else{var n=t.offset(this.ts);i=Go(this.ts,n),i=(o=Number.isNaN(i.year)?new Re("invalid input"):null)?null:i,s=o?null:n}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=o,this.weekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=ni(arguments),t=e[0],o=e[1],i=o[0],s=o[1],r=o[2],n=o[3],a=o[4],l=o[5],d=o[6];return si({year:i,month:s,day:r,hour:n,minute:a,second:l,millisecond:d},t)},e.utc=function(){var e=ni(arguments),t=e[0],o=e[1],i=o[0],s=o[1],r=o[2],n=o[3],a=o[4],l=o[5],d=o[6];return t.zone=Be.utcInstance,si({year:i,month:s,day:r,hour:n,minute:a,second:l,millisecond:d},t)},e.fromJSDate=function(t,o){void 0===o&&(o={});var i,s=(i=t,"[object Date]"===Object.prototype.toString.call(i)?t.valueOf():NaN);if(Number.isNaN(s))return e.invalid("invalid input");var r=He(o.zone,Je.defaultZone);return r.isValid?new e({ts:s,zone:r,loc:lt.fromObject(o)}):e.invalid(Uo(r))},e.fromMillis=function(t,o){if(void 0===o&&(o={}),Z(t))return t<-Vo||t>Vo?e.invalid("Timestamp out of range"):new e({ts:t,zone:He(o.zone,Je.defaultZone),loc:lt.fromObject(o)});throw new g("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,o){if(void 0===o&&(o={}),Z(t))return new e({ts:1e3*t,zone:He(o.zone,Je.defaultZone),loc:lt.fromObject(o)});throw new g("fromSeconds requires a numerical input")},e.fromObject=function(t,o){void 0===o&&(o={}),t=t||{};var i=He(o.zone,Je.defaultZone);if(!i.isValid)return e.invalid(Uo(i));var s=Je.now(),r=i.offset(s),n=pe(t,ii),a=!W(n.ordinal),l=!W(n.year),d=!W(n.month)||!W(n.day),c=l||d,u=n.weekYear||n.weekNumber,h=lt.fromObject(o);if((c||a)&&u)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&a)throw new f("Can't mix ordinal dates with month/day");var m,_,w=u||n.weekday&&!c,y=Go(s,r);w?(m=ti,_=Qo,y=No(y)):a?(m=oi,_=Xo,y=Lo(y)):(m=ei,_=Jo);for(var g,b=!1,v=p(m);!(g=v()).done;){var T=g.value;W(n[T])?n[T]=b?_[T]:y[T]:b=!0}var S=(w?function(e){var t=$(e.weekYear),o=Q(e.weekNumber,1,ae(e.weekYear)),i=Q(e.weekday,1,7);return t?o?!i&&Oo("weekday",e.weekday):Oo("week",e.week):Oo("weekYear",e.weekYear)}(n):a?function(e){var t=$(e.year),o=Q(e.ordinal,1,se(e.year));return t?!o&&Oo("ordinal",e.ordinal):Oo("year",e.year)}(n):Fo(n))||jo(n);if(S)return e.invalid(S);var x=Wo(w?Io(n):a?Mo(n):n,r,i),A=new e({ts:x[0],zone:i,o:x[1],loc:h});return n.weekday&&c&&t.weekday!==A.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+n.weekday+" and a date of "+A.toISO()):A},e.fromISO=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[jt,Bt],[qt,zt],[Vt,Ht],[Ut,Gt])}(e);return $o(o[0],o[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var o=function(e){return ut(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[kt,Rt])}(e);return $o(o[0],o[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[Nt,Mt],[It,Mt],[Lt,Ft])}(e);return $o(o[0],o[1],t,"HTTP",t)},e.fromFormat=function(t,o,i){if(void 0===i&&(i={}),W(t)||W(o))throw new g("fromFormat requires an input string and a format");var s=i,r=s.locale,n=void 0===r?null:r,a=s.numberingSystem,l=void 0===a?null:a,d=function(e,t,o){var i=Co(e,t,o);return[i.result,i.zone,i.invalidReason]}(lt.fromOpts({locale:n,numberingSystem:l,defaultToEN:!0}),t,o),c=d[0],u=d[1],p=d[2];return p?e.invalid(p):$o(c,u,i,"format "+o,t)},e.fromString=function(t,o,i){return void 0===i&&(i={}),e.fromFormat(t,o,i)},e.fromSQL=function(e,t){void 0===t&&(t={});var o=function(e){return ut(e,[Zt,Yt],[$t,Kt])}(e);return $o(o[0],o[1],t,"SQL",e)},e.invalid=function(t,o){if(void 0===o&&(o=null),!t)throw new g("need to specify a reason the DateTime is invalid");var i=t instanceof Re?t:new Re(t,o);if(Je.throwOnInvalid)throw new m(i);return new e({invalid:i})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=ke.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Be.instance(e),t)},t.toLocal=function(){return this.setZone(Je.defaultZone)},t.setZone=function(t,o){var i=void 0===o?{}:o,s=i.keepLocalTime,r=void 0!==s&&s,n=i.keepCalendarTime,a=void 0!==n&&n;if((t=He(t,Je.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(r||a){var d=t.offset(this.ts);l=Wo(this.toObject(),d,t)[0]}return zo(this,{ts:l,zone:t})}return e.invalid(Uo(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,o=t.locale,i=t.numberingSystem,s=t.outputCalendar;return zo(this,{loc:this.loc.clone({locale:o,numberingSystem:i,outputCalendar:s})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,o=pe(e,ii),i=!W(o.weekYear)||!W(o.weekNumber)||!W(o.weekday),r=!W(o.ordinal),n=!W(o.year),a=!W(o.month)||!W(o.day),l=n||a,d=o.weekYear||o.weekNumber;if((l||r)&&d)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&r)throw new f("Can't mix ordinal dates with month/day");i?t=Io(s({},No(this.c),o)):W(o.ordinal)?(t=s({},this.toObject(),o),W(o.day)&&(t.day=Math.min(re(t.year,t.month),t.day))):t=Mo(s({},Lo(this.c),o));var c=Wo(t,this.o,this.zone);return zo(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?zo(this,Zo(this,ro(e))):this},t.minus=function(e){return this.isValid?zo(this,Zo(this,ro(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},o=so.normalizeUnit(e);switch(o){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===o&&(t.weekday=1),"quarters"===o){var i=Math.ceil(this.month/3);t.month=3*(i-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?ke.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):qo},t.toLocaleString=function(e,t){return void 0===e&&(e=x),void 0===t&&(t={}),this.isValid?ke.create(this.loc.clone(t),e).formatDateTime(this):qo},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?ke.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,o="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(o="+"+o),Yo(this,o)},t.toISOWeekDate=function(){return Yo(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,o=t.suppressMilliseconds,i=void 0!==o&&o,s=t.suppressSeconds,r=void 0!==s&&s,n=t.includeOffset,a=void 0===n||n,l=t.includePrefix,d=void 0!==l&&l,c=t.format;return Ko(this,{suppressSeconds:r,suppressMilliseconds:i,includeOffset:a,includePrefix:d,format:void 0===c?"extended":c})},t.toRFC2822=function(){return Yo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Yo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Yo(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,o=t.includeOffset,i=void 0===o||o,s=t.includeZone;return Ko(this,{includeOffset:i,includeZone:void 0!==s&&s,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():qo},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=s({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,o){if(void 0===t&&(t="milliseconds"),void 0===o&&(o={}),!this.isValid||!e.isValid)return so.invalid("created by diffing an invalid DateTime");var i,r=s({locale:this.locale,numberingSystem:this.numberingSystem},o),n=(i=t,Array.isArray(i)?i:[i]).map(so.normalizeUnit),a=e.valueOf()>this.valueOf(),l=function(e,t,o,i){var s,r=function(e,t,o){for(var i,s,r={},n=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var o=uo(e,t);return(o-o%7)/7}],["days",uo]];n<a.length;n++){var l=a[n],d=l[0],c=l[1];if(o.indexOf(d)>=0){var u;i=d;var p,h=c(e,t);(s=e.plus(((u={})[d]=h,u)))>t?(e=e.plus(((p={})[d]=h-1,p)),h-=1):e=s,r[d]=h}}return[e,r,s,i]}(e,t,o),n=r[0],a=r[1],l=r[2],d=r[3],c=t-n,u=o.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===u.length&&(l<t&&(l=n.plus(((s={})[d]=1,s))),l!==n&&(a[d]=(a[d]||0)+c/(l-n)));var p,h=so.fromObject(a,i);return u.length>0?(p=so.fromMillis(c,i)).shiftTo.apply(p,u).plus(h):h}(a?this:e,a?e:this,n,r);return a?l.negate():l},t.diffNow=function(t,o){return void 0===t&&(t="milliseconds"),void 0===o&&(o={}),this.diff(e.now(),t,o)},t.until=function(e){return this.isValid?lo.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t)<=o&&o<=i.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var o=t.base||e.fromObject({},{zone:this.zone}),i=t.padding?this<o?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],n=t.unit;return Array.isArray(t.unit)&&(r=t.unit,n=void 0),ri(o,this.plus(i),s({},t,{numeric:"always",units:r,unit:n}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ri(t.base||e.fromObject({},{zone:this.zone}),this,s({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!o.every(e.isDateTime))throw new g("min requires all arguments be DateTimes");return K(o,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];if(!o.every(e.isDateTime))throw new g("max requires all arguments be DateTimes");return K(o,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,o){void 0===o&&(o={});var i=o,s=i.locale,r=void 0===s?null:s,n=i.numberingSystem,a=void 0===n?null:n;return Co(lt.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,o,i){return void 0===i&&(i={}),e.fromFormatExplain(t,o,i)},i(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Bo(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Bo(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Bo(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Lo(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?co.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?co.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?co.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?co.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return re(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ae(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return A}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return C}},{key:"DATE_FULL",get:function(){return E}},{key:"DATE_HUGE",get:function(){return P}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return D}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return k}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return R}},{key:"TIME_24_SIMPLE",get:function(){return N}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return M}},{key:"DATETIME_SHORT",get:function(){return F}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED",get:function(){return q}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return U}},{key:"DATETIME_FULL",get:function(){return B}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return G}}]),e}();function li(e){if(ai.isDateTime(e))return e;if(e&&e.valueOf&&Z(e.valueOf()))return ai.fromJSDate(e);if(e&&"object"==typeof e)return ai.fromObject(e);throw new g("Unknown datetime argument: "+e+", of type "+typeof e)}t.nL=so}},t={};function o(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,o),r.loaded=!0,r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=window.wp.element,t=window.React,i=o.n(t),s=window.ReactDOM;function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var n=window.wp.i18n,a=class{static get(e,t="general"){Array.isArray(e)||(e=[e]);let o=window["_wds_"+t]||{};return e.forEach((e=>{o=o&&o.hasOwnProperty(e)?o[e]:""})),o}static get_bool(e,t="general"){return!!this.get(e,t)}};function l(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var d=jQuery,c=o.n(d);class u extends i().Component{constructor(e){super(e),this.props=e,this.state={loadingText:!1},this.selectElement=i().createRef(),this.selectElementContainer=i().createRef()}componentDidMount(){const e=c()(this.selectElement.current);e.addClass(this.props.small?"sui-select sui-select-sm":"sui-select").SUIselect2(this.getSelect2Args()),this.includeSelectedValueAsDynamicOption(),e.on("change",(e=>this.handleChange(e)))}includeSelectedValueAsDynamicOption(){this.props.selectedValue&&this.noOptionsAvailable()&&(this.props.tagging?Array.isArray(this.props.selectedValue)?this.props.selectedValue.forEach((e=>{this.addOption(e,e,!0)})):this.addOption(this.props.selectedValue,this.props.selectedValue,!0):this.props.loadTextAjaxUrl&&this.loadTextFromRemote())}loadTextFromRemote(){this.state.loadingText||(this.setState({loadingText:!0}),c().get(this.props.loadTextAjaxUrl,{id:this.props.selectedValue}).done((e=>{e&&e.results&&e.results.length&&e.results.forEach((e=>{this.addOption(e.id,e.text,!0)})),this.setState({loadingText:!1})})))}addOption(e,t,o){let i=new Option(t,e,!1,o);c()(this.selectElement.current).append(i).trigger("change")}noOptionsAvailable(){return!Object.keys(this.props.options).length}componentWillUnmount(){c()(this.selectElement.current).off().SUIselect2("destroy")}getSelect2Args(){let e={dropdownParent:c()(this.selectElementContainer.current),dropdownCssClass:"sui-select-dropdown",minimumResultsForSearch:this.props.minimumResultsForSearch,multiple:this.props.multiple,tagging:this.props.tagging};return this.props.placeholder&&(e.placeholder=this.props.placeholder),this.props.ajaxUrl&&(e.ajax={url:this.props.ajaxUrl},e.minimumInputLength=this.props.minimumInputLength),this.props.templateResult&&(e.templateResult=this.props.templateResult),this.props.templateSelection&&(e.templateSelection=this.props.templateSelection),this.props.ajaxUrl&&this.props.tagging&&(e.ajax.processResults=(e,t)=>e.results&&!e.results.length?{results:[{id:t.term,text:t.term}]}:e),e}handleChange(e){let t=e.target.value;this.props.multiple&&(t=Array.from(e.target.selectedOptions,(e=>e.value))),this.props.onSelect(t)}isOptGroup(e){return"object"==typeof e&&e.label&&e.options}printOptions(t){return Object.keys(t).map((o=>{const i=t[o];return this.isOptGroup(i)?(0,e.createElement)("optgroup",{key:o,label:i.label},this.printOptions(i.options)):(0,e.createElement)("option",{key:o,value:o},i)}))}render(){const t=this.props.options;let o;return o=Object.keys(t).length?this.printOptions(t):(0,e.createElement)("option",null),(0,e.createElement)("div",{ref:this.selectElementContainer},(0,e.createElement)("select",{disabled:this.state.loadingText,value:this.props.selectedValue,onChange:()=>!0,ref:this.selectElement,multiple:this.props.multiple},o))}}l(u,"defaultProps",{small:!1,tagging:!1,placeholder:"",ajaxUrl:"",loadTextAjaxUrl:"",selectedValue:"",minimumResultsForSearch:10,minimumInputLength:3,multiple:!1,options:{},templateResult:!1,templateSelection:!1,onSelect:()=>!1});class p extends i().Component{constructor(e){super(e),this.props=e}handleChange(e){this.props.onChange(e.target.checked?"=":"!=")}render(){return(0,e.createElement)("div",{className:"wds-schema-type-condition-operator"},(0,e.createElement)("div",{className:"wds-comparison-operator sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"200px"},"data-tooltip":(0,n.__)("Switch your condition rule between equal or unequal.","wds")},(0,e.createElement)("label",null,(0,e.createElement)("input",{checked:"="===this.props.operator,onChange:e=>this.handleChange(e),type:"checkbox"}),(0,e.createElement)("span",{className:"wds-equals"},"="),(0,e.createElement)("span",{className:"wds-not-equals"},"≠"))))}}class h extends i().Component{constructor(e){super(e),this.props=e}render(){const t=this.props.lhs,o=this.props.operator,i=this.props.rhs,s=this.getLhsSelectOptions(),a=this.getRhsSelectProps(t);return(0,e.createElement)("div",{className:"wds-schema-type-condition"},(0,e.createElement)("div",{className:"wds-schema-type-condition-lhs"},(0,e.createElement)(u,{options:s,selectedValue:t,minimumResultsForSearch:"-1",templateResult:e=>this.addLhsOptionMarkup(e),templateSelection:e=>this.addLhsOptionMarkup(e),onSelect:e=>this.handleLhsChange(e)})),this.objectNotEmpty(a)&&(0,e.createElement)(p,{operator:o,onChange:e=>this.handleOperatorChange(e)}),this.objectNotEmpty(a)&&(0,e.createElement)("div",{className:"wds-schema-type-condition-rhs",key:`${t}-options`},(0,e.createElement)(u,r({},a,{selectedValue:i,onSelect:e=>this.handleRhsChange(e)}))),(0,e.createElement)("div",{className:"wds-schema-type-condition-and"},(0,e.createElement)("button",{role:"button",onClick:e=>this.handleAdd(e),className:"sui-button sui-button-ghost sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"200px;"},"data-tooltip":(0,n.__)("Add a new rule conditioning the previous one.","wds")},(0,n.__)("AND","wds"))),!this.props.disableDelete&&(0,e.createElement)("span",{className:"wds-schema-type-condition-close",onClick:e=>this.handleDelete(e)},(0,e.createElement)("span",{className:"sui-icon-cross-close","aria-hidden":"true"})))}addLhsOptionMarkup(e){if(!e.id)return e.text;const t=this.getTaxonomies(),o=this.getPostTypes();return t&&t.hasOwnProperty(e.id)||o&&o.hasOwnProperty(e.id)?c()("<span>"+e.text+' <span class="sui-tag sui-tag-sm sui-tag-disabled">'+e.id+"</span></span>"):e.text}getRhsSelectProps(e){const t={},o=this.getPostTypes();this.objectNotEmpty(o)&&Object.keys(o).forEach((e=>{t[e]=this.searchSelectProps(sprintf((0,n.__)("Search for %s","wds"),o[e]),e,"wds-search-post")}));const i=this.getTaxonomies();if(this.objectNotEmpty(i)&&Object.keys(i).forEach((e=>{t[e]=this.searchSelectProps(sprintf((0,n.__)("Search for %s","wds"),i[e]),e,"wds-search-schema-term")})),t.hasOwnProperty(e))return t[e];let s=this.getRhsSelectOptions(e);return s?{options:s}:{}}searchSelectProps(e,t,o){let i=a.get("ajax_url","schema_types"),s=new URLSearchParams;s.append("action",o),s.append("type",t);const r={placeholder:e,ajaxUrl:i+"?"+s.toString(),options:{}};return s.append("request_type","text"),r.loadTextAjaxUrl=i+"?"+s.toString(),r}getRhsSelectOptions(e){const t={post_type:this.getPostTypes(),author_role:this.getUserRoles(),post_format:this.getPostFormats(),page_template:this.getPageTemplates(),product_type:{WC_Product_Variable:(0,n.__)("Variable Product","wds"),WC_Product_Simple:(0,n.__)("Simple Product","wds"),WC_Product_Grouped:(0,n.__)("Grouped Product","wds"),WC_Product_External:(0,n.__)("External Product","wds")}};return!!t.hasOwnProperty(e)&&t[e]}getLhsSelectOptions(){const e={post_type:(0,n.__)("Post Type","wds"),show_globally:(0,n.__)("Show Globally","wds"),homepage:(0,n.__)("Homepage","wds"),author_role:(0,n.__)("Post Author Role","wds")};let t=this.getPostFormats();this.objectNotEmpty(t)&&(e.post_format=(0,n.__)("Post Format","wds"));let o=this.getPageTemplates();this.objectNotEmpty(o)&&(e.page_template=(0,n.__)("Page Template","wds")),this.isWooCommerceActive()&&(e.product_type=(0,n.__)("Product Type","wds"));const i=this.getPostTypeTaxonomies();return this.objectNotEmpty(i)&&Object.keys(i).forEach((t=>{e[t]=i[t]})),e}isWooCommerceActive(){return!!a.get("woocommerce","schema_types")}getUserRoles(){return a.get("user_roles","schema_types")||{}}getPostTypes(){return a.get("post_types","schema_types")||{}}getPostTypeTaxonomies(){return a.get("post_type_taxonomies","schema_types")||{}}getTaxonomies(){return a.get("taxonomies","schema_types")||{}}getPageTemplates(){return a.get("page_templates","schema_types")||{}}getPostFormats(){return a.get("post_formats","schema_types")||{}}objectLength(e){return Object.keys(e).length}objectNotEmpty(e){return!!this.objectLength(e)}handleLhsChange(e){let t="";const o=this.getRhsSelectOptions(e);o&&(t=Object.keys(o).shift()),this.props.onChange(this.props.id,e,this.props.operator,t)}handleOperatorChange(e){this.props.onChange(this.props.id,this.props.lhs,e,this.props.rhs)}handleRhsChange(e){this.props.onChange(this.props.id,this.props.lhs,this.props.operator,e)}handleAdd(e){e.preventDefault(),this.props.onAdd(this.props.id)}handleDelete(){this.props.onDelete(this.props.id)}}var m=o(7145),_=o.n(m),w=window.lodash,f=o(4184),y=o.n(f),g=SUI,b=o.n(g);class v extends i().Component{constructor(e){super(e),this.props=e}componentDidMount(){b().openModal(this.props.id,this.props.focusAfterClose,this.props.focusAfterOpen?this.props.focusAfterOpen:this.getTitleId(),!1,!1)}componentWillUnmount(){b().closeModal()}handleKeyDown(e){c()(e.target).is(".sui-modal.sui-active input")&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),!this.props.enterDisabled&&this.props.onEnter&&this.props.onEnter(e))}render(){const t=this.getHeaderActions(),o=Object.assign({},{"sui-modal-sm":this.props.small,"sui-modal-lg":!this.props.small},this.props.dialogClasses);return(0,e.createElement)("div",{className:y()("sui-modal",o),onKeyDown:e=>this.handleKeyDown(e)},(0,e.createElement)("div",{role:"dialog",id:this.props.id,className:y()("sui-modal-content",this.props.id+"-modal"),"aria-modal":"true","aria-labelledby":this.props.id+"-modal-title","aria-describedby":this.props.id+"-modal-description"},(0,e.createElement)("div",{className:"sui-box",role:"document"},(0,e.createElement)("div",{className:y()("sui-box-header",{"sui-flatten sui-content-center sui-spacing-top--40":this.props.small})},(0,e.createElement)("h3",{id:this.getTitleId(),className:y()("sui-box-title",{"sui-lg":this.props.small})},this.props.title),t),(0,e.createElement)("div",{className:y()("sui-box-body",{"sui-content-center":this.props.small})},this.props.description&&(0,e.createElement)("p",{className:"sui-description",id:this.props.id+"-modal-description"},this.props.description),this.props.children),this.props.footer&&(0,e.createElement)("div",{className:"sui-box-footer"},this.props.footer))))}getTitleId(){return this.props.id+"-modal-title"}getHeaderActions(){const t=this.getCloseButton();return this.props.small?t:this.props.headerActions?this.props.headerActions:(0,e.createElement)("div",{className:"sui-actions-right"},t)}getCloseButton(){return(0,e.createElement)("button",{id:this.props.id+"-close-button",type:"button",onClick:()=>this.props.onClose(),disabled:this.props.disableCloseButton,className:y()("sui-button-icon",{"sui-button-float--right":this.props.small})},(0,e.createElement)("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),(0,e.createElement)("span",{className:"sui-screen-reader-text"},(0,n.__)("Close this dialog window","wds")))}}l(v,"defaultProps",{id:"",title:"",description:"",small:!1,headerActions:!1,focusAfterOpen:"",focusAfterClose:"container",dialogClasses:[],disableCloseButton:!1,enterDisabled:!1,onEnter:!1,onClose:()=>!1});class T extends i().Component{handleClick(e){e.preventDefault(),this.props.onClick()}render(){let t,o,i=this.props.icon?(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}):"";return this.props.loading?(t=(0,e.createElement)("span",{className:"sui-loading-text"},i," ",this.props.text),o=(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})):(t=(0,e.createElement)("span",null,i," ",this.props.text),o=""),(0,e.createElement)("button",{className:y()(this.props.className,"sui-button","sui-button-"+this.props.color,{"sui-button-onload":this.props.loading,"sui-button-ghost":this.props.ghost,"sui-button-icon":!this.props.text.trim(),"sui-button-dashed":this.props.dashed}),onClick:e=>this.handleClick(e),id:this.props.id,disabled:this.props.disabled},t,o)}}l(T,"defaultProps",{id:"",text:"",color:"",dashed:!1,icon:!1,loading:!1,ghost:!1,disabled:!1,className:"",onClick:()=>!1});class S extends i().Component{constructor(e){super(e),this.props=e}handleChange(e){const t=this.props.selectedValues.slice(),o=e.target.checked,i=e.target.value;o&&!t.includes(i)&&(t.push(i),this.props.onChange(this.props.multiple?t:[i])),!o&&t.includes(i)&&this.props.onChange(t.filter((e=>e!=e)))}render(){let t=this.props.options.map((t=>(0,e.createElement)("li",{key:t.id},(0,e.createElement)("label",{className:y()({"sui-box-selector":!0,"sui-disabled":t.disabled}),htmlFor:this.props.id+"-"+t.id},(0,e.createElement)("input",{onChange:e=>this.handleChange(e),id:this.props.id+"-"+t.id,type:"checkbox",disabled:t.disabled,checked:this.props.selectedValues.includes(t.id),value:t.id}),(0,e.createElement)("span",null,t.icon&&(0,e.createElement)("span",{className:t.icon}),t.label,t.required&&(0,e.createElement)("span",{className:"wds-required-asterisk"},"*"))))));return(0,e.createElement)("div",{className:"sui-box-selectors sui-box-selectors-col-"+this.props.cols},(0,e.createElement)("ul",null,t))}}l(S,"defaultProps",{id:"",selectedValues:[],cols:2,options:{},onChange:()=>!1,multiple:!0});class x extends i().Component{constructor(e){super(e),this.state={selectedValues:[]}}handleSelection(e){this.setState({selectedValues:e})}handleAction(){this.props.onAction(this.state.selectedValues)}hasRequiredOption(){let e=!1;return this.props.options.some((t=>{if(t.required)return e=!0,!0})),e}render(){return(0,e.createElement)(v,{small:!0,id:this.props.id+"-modal",title:this.props.title,onClose:()=>this.props.onClose(),dialogClasses:{"sui-modal-lg":!0,"sui-modal-sm":!1},description:this.props.description},this.hasRequiredOption()&&this.props.requiredNotice,!!Object.keys(this.props.options).length&&(0,e.createElement)(S,{id:this.props.id+"-selector",options:this.props.options,selectedValues:this.state.selectedValues,multiple:this.props.multiple,onChange:e=>this.handleSelection(e)}),!Object.keys(this.props.options).length&&this.props.noOptionsMessage,this.props.generalMessage,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(T,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.props.onClose(),ghost:!0}),(0,e.createElement)(T,{text:this.props.actionButtonText,icon:this.props.actionButtonIcon,id:this.props.id+"-action-button",onClick:()=>this.handleAction(),disabled:!Object.keys(this.state.selectedValues).length})))}}l(x,"defaultProps",{id:"",title:"",description:"",actionButtonText:"",actionButtonIcon:"",onClose:w.noop,onAction:w.noop,options:{},multiple:!0,noOptionsMessage:!1,generalMessage:!1,requiredNotice:""});var A=o(361),C=o.n(A),E=o(3955),P=o.n(E);const O=P();var D={text:{id:O(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:O(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:O(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:O(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:O(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const k=P();var R={streetAddress:{id:k(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:k(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:k(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:k(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:k(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:k(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const N=P();var I={telephone:{id:N(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:N(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:N(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:N(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const L=P();var M={logo:{id:L(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the publisher.","wds"),required:!0},name:{id:L(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the publisher.","wds"),required:!0},url:{id:L(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the publisher.","wds")},address:{id:L(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the publisher.","wds"),properties:{0:{id:L(),type:"PostalAddress",properties:R}}},contactPoint:{id:L(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the publisher.","wds"),properties:{0:{id:L(),type:"ContactPoint",properties:I}}}};const F=P();var j={name:{id:F(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"author",value:"author_full_name",required:!0,description:(0,n.__)("The name of the article author.","wds")},url:{id:F(),label:(0,n.__)("URL","wds"),type:"URL",source:"author",value:"author_url",description:(0,n.__)("The URL of the article author.","wds")},image:{id:F(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"author",value:"author_gravatar",description:(0,n.__)("The profile image of the article author.","wds")},description:{id:F(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"author",value:"author_description",optional:!0,description:(0,n.__)("The description of the article author.","wds")}};const q=P();var V={headline:{id:q(),label:(0,n.__)("Headline","wds"),type:"TextFull",source:"seo_meta",value:"seo_title",required:!0,description:(0,n.__)("The headline of the article. Headlines should not exceed 110 characters.","wds")},name:{id:q(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the article.","wds")},description:{id:q(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The description of the article.","wds")},url:{id:q(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The permanent URL of the article.","wds")},thumbnailUrl:{id:q(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"post_data",value:"post_thumbnail_url",description:(0,n.__)("The thumbnail URL of the article.","wds")},dateModified:{id:q(),label:(0,n.__)("Date Modified","wds"),type:"DateTime",source:"post_data",value:"post_modified",description:(0,n.__)("The date and time the article was most recently modified, in ISO 8601 format.","wds")},datePublished:{id:q(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"post_data",required:!0,description:(0,n.__)("The date and time the article was first published, in ISO 8601 format.","wds"),value:"post_date"},articleBody:{id:q(),label:(0,n.__)("Article Body","wds"),type:"TextFull",source:"post_data",value:"post_content",optional:!0,description:(0,n.__)("The content of the article.","wds")},alternativeHeadline:{id:q(),label:(0,n.__)("Alternative Headline","wds"),type:"TextFull",source:"post_data",value:"post_title",optional:!0,description:(0,n.__)("Alternative headline for the article.","wds")},image:{id:q(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),required:!0,description:(0,n.__)("Images related to the article.","wds"),properties:{0:{id:q(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},author:{id:q(),label:(0,n.__)("Author","wds"),type:"Person",required:!0,description:(0,n.__)("The author of the article.","wds"),properties:j},publisher:{id:q(),label:(0,n.__)("Publisher","wds"),type:"Organization",required:!0,description:(0,n.__)("The publisher of the article.","wds"),properties:M},comment:{id:q(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:D,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")}};const U=P();var B={availability:{id:U(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of event tickets.","wds"),disallowDeletion:!0},price:{id:U(),label:(0,n.__)("Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The lowest available price available for your tickets, including service charges and fees. Don't forget to update it as prices change or tickets sell out.","wds"),disallowDeletion:!0},priceCurrency:{id:U(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code.","wds"),disallowDeletion:!0},validFrom:{id:U(),label:(0,n.__)("Valid From","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date and time when tickets go on sale (only required on date-restricted offers), in ISO-8601 format.","wds"),disallowDeletion:!0},priceValidUntil:{id:U(),label:(0,n.__)("Valid Until","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date and time till when tickets will be on sale.","wds"),disallowDeletion:!0},url:{id:U(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The URL of a page providing the ability to buy tickets.","wds"),disallowDeletion:!0}},z=o(2492),H=o.n(z);const G=P();var W={streetAddress:{id:G(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:G(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:G(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:G(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:G(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:G(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}},Z=H()({},W,{streetAddress:{disallowDeletion:!1},addressLocality:{disallowDeletion:!1},addressRegion:{disallowDeletion:!1},addressCountry:{disallowDeletion:!1},postalCode:{disallowDeletion:!1},postOfficeBoxNumber:{disallowDeletion:!1}});const $=P();var Y={name:{id:$(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The detailed name of the place or venue where the event is being held. This property is only recommended for events that take place at a physical location.","wds")},address:{id:$(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:Z,required:!0,description:(0,n.__)("The venue's detailed street address. This property is only required for events that take place at a physical location.","wds")}};const K=P();var J={availability:{id:K(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of this item.","wds")},lowPrice:{id:K(),label:(0,n.__)("Low Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The lowest price of all offers available. Use a floating point number.","wds")},highPrice:{id:K(),label:(0,n.__)("High Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The highest price of all offers available. Use a floating point number.","wds")},priceCurrency:{id:K(),label:(0,n.__)("Price Currency","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The currency used to describe the price, in three-letter ISO 4217 format.","wds")},offerCount:{id:K(),label:(0,n.__)("Offer Count","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of offers for the item.","wds")}};const Q=P();var X={name:{id:Q(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds"),disallowDeletion:!0},url:{id:Q(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the person's profile.","wds"),disallowDeletion:!0},description:{id:Q(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the person.","wds"),disallowDeletion:!0},image:{id:Q(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds"),disallowDeletion:!0}};const ee=P();var te={telephone:{id:ee(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:ee(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:ee(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:ee(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const oe=P();var ie={logo:{id:oe(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:oe(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:oe(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},address:{id:oe(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the organization.","wds"),properties:{0:{id:oe(),type:"PostalAddress",properties:W}}},contactPoint:{id:oe(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the organization.","wds"),properties:{0:{id:oe(),type:"ContactPoint",properties:te}}}};const se=P();var re={itemReviewed:{id:se(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:se(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the item that is being rated.","wds")}},required:!0},ratingCount:{id:se(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:se(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:se(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:se(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:se(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const ne=P();var ae={name:{id:ne(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:ne(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:ne(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:ne(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}};const le=P();var de={logo:{id:le(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},name:{id:le(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},url:{id:le(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}};const ce=P();var ue={ratingValue:{id:ce(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:ce(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:ce(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const pe=P();var he={itemReviewed:{id:pe(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:pe(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated.","wds")}}},reviewBody:{id:pe(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:pe(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:pe(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:pe(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:ae,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0},Organization:{id:pe(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:de,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0}}},reviewRating:{id:pe(),label:(0,n.__)("Rating","wds"),description:(0,n.__)("The rating given in this review.","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,required:!0,properties:ue}};const me=P();var _e={name:{id:me(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The full title of the event.","wds")},description:{id:me(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("Description of the event. Describe all details of the event to make it easier for users to understand and attend the event.","wds")},startDate:{id:me(),label:(0,n.__)("Start Date","wds"),type:"DateTime",source:"datetime",value:"",required:!0,description:(0,n.__)("The start date and start time of the event in ISO-8601 format.","wds")},endDate:{id:me(),label:(0,n.__)("End Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The end date and end time of the event in ISO-8601 format.","wds")},eventAttendanceMode:{id:me(),label:(0,n.__)("Event Attendance Mode","wds"),type:"Text",source:"options",value:"MixedEventAttendanceMode",customSources:{options:{label:(0,n.__)("Event Attendance Mode","wds"),values:{MixedEventAttendanceMode:(0,n.__)("Mixed Attendance Mode","wds"),OfflineEventAttendanceMode:(0,n.__)("Offline Attendance Mode","wds"),OnlineEventAttendanceMode:(0,n.__)("Online Attendance Mode","wds")}}},description:(0,n.__)("Indicates whether the event occurs online, offline at a physical location, or a mix of both online and offline.","wds")},eventStatus:{id:me(),label:(0,n.__)("Event Status","wds"),type:"Text",source:"options",value:"EventScheduled",customSources:{options:{label:(0,n.__)("Event Status","wds"),values:{EventScheduled:(0,n.__)("Scheduled","wds"),EventMovedOnline:(0,n.__)("Moved Online","wds"),EventRescheduled:(0,n.__)("Rescheduled","wds"),EventPostponed:(0,n.__)("Postponed","wds"),EventCancelled:(0,n.__)("Cancelled","wds")}}},description:(0,n.__)("The status of the event.","wds")},image:{id:me(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),properties:{0:{id:me(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:""}},description:(0,n.__)("Image or logo for the event or tour. Including an image helps users understand and engage with your event.","wds")},location:{id:me(),label:(0,n.__)("Location","wds"),activeVersion:"Place",properties:{Place:{id:me(),label:(0,n.__)("Location","wds"),type:"Place",properties:Y,required:!0,description:(0,n.__)("The physical location of the event.","wds"),isAnAltVersion:!0},VirtualLocation:{id:me(),label:(0,n.__)("Virtual Location","wds"),type:"VirtualLocation",disallowAddition:!0,properties:{url:{id:me(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",disallowDeletion:!0,value:"post_permalink",required:!0,description:(0,n.__)("The URL of the online event, where people can join. This property is required if your event is happening online.","wds")}},required:!0,description:(0,n.__)("The virtual location of the event.","wds"),isAnAltVersion:!0}},required:!0},organizer:{id:me(),label:(0,n.__)("Organizer","wds"),type:"Organization",properties:ie,description:(0,n.__)("The organization that is hosting the event.","wds")},performer:{id:me(),label:(0,n.__)("Performers","wds"),labelSingle:(0,n.__)("Performer","wds"),properties:{0:{id:me(),type:"Person",properties:X}},description:(0,n.__)("The participants performing at the event, such as artists and comedians.","wds")},offers:{id:me(),label:(0,n.__)("Offers","wds"),activeVersion:"Offer",properties:{Offer:{id:me(),label:(0,n.__)("Offers","wds"),labelSingle:(0,n.__)("Offer","wds"),properties:{0:{id:me(),type:"Offer",properties:B}},description:(0,n.__)("A nested Offer, one for each ticket type.","wds"),isAnAltVersion:!0},AggregateOffer:{id:me(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:J,description:(0,n.__)("A nested AggregateOffer, representing all available offers.","wds"),isAnAltVersion:!0}}},aggregateRating:{id:me(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the event.","wds"),optional:!0},review:{id:me(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:me(),type:"Review",properties:he}},description:(0,n.__)("Reviews of the event.","wds"),optional:!0}};const we=P();var fe={availability:{id:we(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The possible product availability options.","wds")},price:{id:we(),label:(0,n.__)("Price","wds"),type:"Number",source:"number",value:"",required:!0,disallowDeletion:!0,description:(0,n.__)("The offer price of a product.","wds")},priceCurrency:{id:we(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The currency used to describe the product price, in three-letter ISO 4217 format.","wds")},validFrom:{id:we(),label:(0,n.__)("Valid From","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date when the item becomes valid.","wds")},priceValidUntil:{id:we(),label:(0,n.__)("Valid Until","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date after which the price is no longer available.","wds")},url:{id:we(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",disallowDeletion:!0,description:(0,n.__)("A URL to the product web page (that includes the Offer).","wds")}};const ye=P();var ge={availability:{id:ye(),label:(0,n.__)("Availability","wds"),type:"Text",source:"options",value:"InStock",customSources:{options:{label:(0,n.__)("Availability","wds"),values:{InStock:(0,n.__)("In Stock","wds"),SoldOut:(0,n.__)("Sold Out","wds"),PreOrder:(0,n.__)("PreOrder","wds")}}},description:(0,n.__)("The availability of this item.","wds")},lowPrice:{id:ye(),label:(0,n.__)("Low Price","wds"),type:"Number",source:"number",value:"",required:!0,description:(0,n.__)("The lowest price of all offers available. Use a floating point number.","wds")},highPrice:{id:ye(),label:(0,n.__)("High Price","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The highest price of all offers available. Use a floating point number.","wds")},priceCurrency:{id:ye(),label:(0,n.__)("Price Currency","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)("The currency used to describe the price, in three-letter ISO 4217 format.","wds")},offerCount:{id:ye(),label:(0,n.__)("Offer Count","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of offers for the item.","wds")}};const be=P();var ve={itemReviewed:{id:be(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:be(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The item that is being rated.","wds")}},required:!0},ratingCount:{id:be(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. At least one of ratingCount or reviewCount is required.","wds"),description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:be(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. At least one of ratingCount or reviewCount is required.","wds"),description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:be(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",requiredInBlock:!0,required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:be(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:be(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const Te=P();var Se={itemReviewed:{id:Te(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:Te(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"post_data",value:"post_title",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the product.","wds")}}},reviewBody:{id:Te(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:Te(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:Te(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:Te(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:{name:{id:Te(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:Te(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:Te(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",optional:!0,description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:Te(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}},required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0},Organization:{id:Te(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:{logo:{id:Te(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},name:{id:Te(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},url:{id:Te(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}},required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0}}},reviewRating:{id:Te(),label:(0,n.__)("Rating","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,properties:{ratingValue:{id:Te(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:Te(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:Te(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}},required:!0,description:(0,n.__)("The rating given in this review.","wds")}};const xe=P();var Ae={telephone:{id:xe(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("The telephone number.","wds"),disallowDeletion:!0},email:{id:xe(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email",description:(0,n.__)("The email address.","wds"),disallowDeletion:!0},url:{id:xe(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The contact URL.","wds"),disallowDeletion:!0},contactType:{id:xe(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",description:(0,n.__)("A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.","wds"),customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}},disallowDeletion:!0}};const Ce=P();var Ee={streetAddress:{id:Ce(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:Ce(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:Ce(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:Ce(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:Ce(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:Ce(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const Pe=P();var Oe={logo:{id:Pe(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Pe(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:Pe(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},address:{id:Pe(),label:(0,n.__)("Address","wds"),optional:!0,description:(0,n.__)("The addresses of the organization.","wds"),properties:{0:{id:Pe(),type:"PostalAddress",properties:Ee}}},contactPoint:{id:Pe(),label:(0,n.__)("Contact Point","wds"),optional:!0,description:(0,n.__)("The contact points of the organization.","wds"),properties:{0:{id:Pe(),type:"ContactPoint",properties:Ae}}}};const De=P();var ke={name:{id:De(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the product.","wds")},description:{id:De(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The product description.","wds")},sku:{id:De(),label:(0,n.__)("SKU","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("Merchant-specific identifier for product.","wds")},gtin:{id:De(),label:(0,n.__)("GTIN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("A Global Trade Item Number (GTIN). GTINs identify trade items, including products and services, using numeric identification codes.","wds")},gtin8:{id:De(),label:(0,n.__)("GTIN-8","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-8 code of the product. This code is also known as EAN/UCC-8 or 8-digit EAN.","wds")},gtin12:{id:De(),label:(0,n.__)("GTIN-12","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-12 code of the product. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items.","wds")},gtin13:{id:De(),label:(0,n.__)("GTIN-13","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-13 code of the product. This is equivalent to 13-digit ISBN codes and EAN UCC-13.","wds")},gtin14:{id:De(),label:(0,n.__)("GTIN-14","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The GTIN-14 code of the product.","wds")},mpn:{id:De(),label:(0,n.__)("MPN","wds"),type:"Text",source:"custom_text",value:"",optional:!0,description:(0,n.__)("The Manufacturer Part Number (MPN) of the product.","wds")},image:{id:De(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),description:(0,n.__)("The images associated with the product.","wds"),properties:{0:{id:De(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},brand:{id:De(),label:(0,n.__)("Brand","wds"),type:"Organization",properties:Oe,description:(0,n.__)("The brand of the product.","wds")},review:{id:De(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:De(),type:"Review",properties:Se}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds")},aggregateRating:{id:De(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ve,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested aggregateRating of the product.","wds")},offers:{id:De(),label:(0,n.__)("Offers","wds"),activeVersion:"Offer",properties:{Offer:{id:De(),label:(0,n.__)("Offers","wds"),labelSingle:(0,n.__)("Offer","wds"),properties:{0:{id:De(),type:"Offer",properties:fe}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Offer to sell the product.","wds"),isAnAltVersion:!0},AggregateOffer:{id:De(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:ge,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested AggregateOffer to sell the product.","wds"),isAnAltVersion:!0}},required:!0}},Re=(0,w.merge)({},fe,{availability:{source:"woocommerce",value:"stock_status",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{stock_status:(0,n.__)("Stock Status","wds")}}}},price:{source:"woocommerce",value:"price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{price:(0,n.__)("Price","wds")}}}},priceCurrency:{source:"woocommerce",value:"currency",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{currency:(0,n.__)("Currency","wds")}}}},validFrom:{source:"woocommerce",value:"date_on_sale_from",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{date_on_sale_from:(0,n.__)("Product Sale Start Date","wds")}}}},priceValidUntil:{source:"woocommerce",value:"date_on_sale_to",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{date_on_sale_to:(0,n.__)("Product Sale End Date","wds")}}}}}),Ne=(0,w.merge)({},ge,{availability:{source:"woocommerce",value:"stock_status",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{stock_status:(0,n.__)("Stock Status","wds")}}}},lowPrice:{source:"woocommerce",value:"min_price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{min_price:(0,n.__)("Variable Product Minimum Price","wds")}}}},highPrice:{source:"woocommerce",value:"max_price",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{max_price:(0,n.__)("Variable Product Maximum Price","wds")}}}},priceCurrency:{source:"woocommerce",value:"currency",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{currency:(0,n.__)("Currency","wds")}}}},offerCount:{source:"woocommerce",value:"product_children_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_children_count:(0,n.__)("Number of Variations","wds")}}}}}),Ie=(0,w.merge)({},ve,{ratingCount:{source:"woocommerce",value:"review_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{review_count:(0,n.__)("Review Count","wds")}}}},reviewCount:{source:"woocommerce",value:"review_count",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{review_count:(0,n.__)("Review Count","wds")}}}},ratingValue:{source:"woocommerce",value:"average_rating",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{average_rating:(0,n.__)("Average Rating","wds")}}}},bestRating:{value:"5"},worstRating:{value:"1"}}),Le=(0,w.merge)({},Oe,{logo:{source:"image",value:""},name:{customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_category:(0,n.__)("Product Category","wds"),product_tag:(0,n.__)("Product Tag","wds")}}}},url:{customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_category_url:(0,n.__)("Product Category URL","wds"),product_tag_url:(0,n.__)("Product Tag URL","wds")}}}}}),Me=(0,w.merge)({},Se,{reviewBody:{source:"woocommerce_review",value:"comment_text",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_text:(0,n.__)("Review Text","wds")}}}},datePublished:{source:"woocommerce_review",value:"comment_date",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_date:(0,n.__)("Date Published","wds")}}}},author:{properties:{Person:{properties:{name:{source:"woocommerce_review",value:"comment_author_name",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_author_name:(0,n.__)("Author Name","wds")}}}}}},Organization:{properties:{name:{source:"woocommerce_review",value:"comment_author_name",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{comment_author_name:(0,n.__)("Author Name","wds")}}}}}}}},reviewRating:{properties:{ratingValue:{source:"woocommerce_review",value:"rating_value",customSources:{woocommerce_review:{label:(0,n.__)("WooCommerce Review","wds"),values:{rating_value:(0,n.__)("Rating Value","wds")}}}},bestRating:{value:"5"},worstRating:{value:"1"}}}}),Fe=(0,w.merge)({},Me,{itemReviewed:{properties:{name:{disallowDeletion:!1}}},reviewBody:{disallowDeletion:!1},datePublished:{disallowDeletion:!1},author:{properties:{Person:{disallowDeletion:!1,disallowAddition:!1,properties:{name:{disallowDeletion:!1},url:{disallowDeletion:!1},description:{disallowDeletion:!1},image:{disallowDeletion:!1}}},Organization:{disallowDeletion:!1,disallowAddition:!1,properties:{logo:{disallowDeletion:!1},name:{disallowDeletion:!1},url:{disallowDeletion:!1}}}}},reviewRating:{disallowDeletion:!1,disallowAddition:!1,properties:{ratingValue:{disallowDeletion:!1},bestRating:{disallowDeletion:!1},worstRating:{disallowDeletion:!1}}}});const je=P();var qe={name:{id:je(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The name of the product.","wds")},description:{id:je(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The product description.","wds")},sku:{id:je(),label:(0,n.__)("SKU","wds"),type:"Text",source:"woocommerce",value:"product_id",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},description:(0,n.__)("Merchant-specific identifier for product.","wds")},gtin:{id:je(),label:(0,n.__)("GTIN","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("A Global Trade Item Number (GTIN). GTINs identify trade items, including products and services, using numeric identification codes.","wds")},gtin8:{id:je(),label:(0,n.__)("GTIN-8","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("The GTIN-8 code of the product. This code is also known as EAN/UCC-8 or 8-digit EAN.","wds")},gtin12:{id:je(),label:(0,n.__)("GTIN-12","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("The GTIN-12 code of the product. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items.","wds")},gtin13:{id:je(),label:(0,n.__)("GTIN-13","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("The GTIN-13 code of the product. This is equivalent to 13-digit ISBN codes and EAN UCC-13.","wds")},gtin14:{id:je(),label:(0,n.__)("GTIN-14","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("The GTIN-14 code of the product.","wds")},mpn:{id:je(),label:(0,n.__)("MPN","wds"),type:"Text",source:"custom_text",value:"",customSources:{woocommerce:{label:(0,n.__)("WooCommerce","wds"),values:{product_id:(0,n.__)("Product ID","wds"),sku:(0,n.__)("Product SKU","wds")}}},optional:!0,description:(0,n.__)("The Manufacturer Part Number (MPN) of the product.","wds")},image:{id:je(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),description:(0,n.__)("The images associated with the product.","wds"),properties:{0:{id:je(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},brand:{id:je(),label:(0,n.__)("Brand","wds"),type:"Organization",properties:Le,description:(0,n.__)("The brand of the product.","wds")},review:{id:je(),label:(0,n.__)("Reviews","wds"),activeVersion:"WooCommerceReviewLoop",properties:{WooCommerceReviewLoop:{id:je(),label:(0,n.__)("WooCommerce Reviews","wds"),labelSingle:(0,n.__)("WooCommerce Review","wds"),loop:"woocommerce-reviews",loopDescription:(0,n.__)("The following block will be repeated for each Review in a WooCommerce product"),type:"Review",properties:Fe,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds"),isAnAltVersion:!0},Review:{id:je(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:je(),type:"Review",properties:Se}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Review of the product.","wds"),isAnAltVersion:!0}},required:!0},aggregateRating:{id:je(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:Ie,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested aggregateRating of the product.","wds")},offers:{id:je(),label:(0,n.__)("Offers","wds"),activeVersion:"AggregateOffer",properties:{Offer:{id:je(),label:(0,n.__)("Offers","wds"),labelSingle:(0,n.__)("Offer","wds"),properties:{0:{id:je(),type:"Offer",properties:Re}},required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested Offer to sell the product.","wds"),isAnAltVersion:!0},AggregateOffer:{id:je(),type:"AggregateOffer",label:(0,n.__)("Aggregate Offer","wds"),properties:Ne,required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review, aggregateRating or offers.","wds"),description:(0,n.__)("A nested AggregateOffer to sell the product.","wds"),isAnAltVersion:!0}},required:!0}};const Ve=P();var Ue={name:{id:Ve(),label:(0,n.__)("Question","wds"),type:"TextFull",disallowDeletion:!0,source:"custom_text",value:"",description:(0,n.__)('The full text of the question. For example, "How long does it take to process a refund?".',"wds"),required:!0},acceptedAnswer:{id:Ve(),label:(0,n.__)("Accepted Answer","wds"),type:"Answer",flatten:!0,properties:{text:{id:Ve(),label:(0,n.__)("Accepted Answer","wds"),type:"TextFull",disallowDeletion:!0,source:"custom_text",value:"",description:(0,n.__)("The answer to the question.","wds"),required:!0}},required:!0},image:{id:Ve(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image associated with the question."),disallowDeletion:!0},url:{id:Ve(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("Optional URL to the question."),disallowDeletion:!0}};const Be=P();var ze={text:{id:Be(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:Be(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:Be(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:Be(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:Be(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const He=P();var Ge={mainEntity:{id:He(),label:(0,n.__)("Questions","wds"),labelSingle:(0,n.__)("Question","wds"),disallowDeletion:!0,properties:{0:{id:He(),type:"Question",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:Ue}},required:!0,description:(0,n.__)("An array of Question elements which comprise the list of answered questions that this FAQPage is about.","wds")},comment:{id:He(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:ze,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")}};const We=P();var Ze={value:{id:We(),label:(0,n.__)("Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The monetary amount value.","wds")},currency:{id:We(),label:(0,n.__)("Currency","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The currency in which the monetary amount is expressed.","wds")},maxValue:{id:We(),label:(0,n.__)("Max Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The upper limit of the value.","wds")},minValue:{id:We(),label:(0,n.__)("Min Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("The lower limit of the value.","wds")}};const $e=P();var Ye={text:{id:$e(),label:(0,n.__)("Text","wds"),type:"Text",source:"comment",value:"comment_text",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_text:(0,n.__)("Comment Content","wds")}}},description:(0,n.__)("The body of the comment.","wds")},dateCreated:{id:$e(),label:(0,n.__)("Date Created","wds"),type:"Text",source:"comment",value:"comment_date",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_date:(0,n.__)("Comment Date","wds")}}},description:(0,n.__)("The date when this comment was created in ISO 8601 format.","wds")},url:{id:$e(),label:(0,n.__)("URL","wds"),type:"Text",source:"comment",value:"comment_url",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_url:(0,n.__)("Comment URL","wds")}}},description:(0,n.__)("The permanent URL of the comment.","wds")},author:{id:$e(),label:(0,n.__)("Author Name","wds"),type:"Person",flatten:!0,properties:{name:{id:$e(),label:(0,n.__)("Author Name","wds"),type:"Text",source:"comment",value:"comment_author_name",customSources:{comment:{label:(0,n.__)("Comment","wds"),values:{comment_author_name:(0,n.__)("Comment Author Name","wds")}}},description:(0,n.__)("The name of the comment author.","wds")}}}};const Ke=P();var Je={name:{id:Ke(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)('The title of the how-to. For example, "How to tie a tie".',"wds")},description:{id:Ke(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A description of the how-to.","wds")},totalTime:{id:Ke(),label:(0,n.__)("Total Time","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The total time required to perform all instructions or directions (including time to prepare the supplies), in ISO 8601 duration format.","wds")},image:{id:Ke(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),properties:{0:{id:Ke(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}},description:(0,n.__)("Images of the completed how-to.","wds")},supply:{id:Ke(),label:(0,n.__)("Supplies","wds"),labelSingle:(0,n.__)("Supply","wds"),properties:{0:{id:Ke(),label:(0,n.__)("Supply","wds"),type:"HowToSupply",properties:{name:{id:Ke(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the supply.","wds"),disallowDeletion:!0},image:{id:Ke(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the supply.","wds"),disallowDeletion:!0}}}},description:(0,n.__)("Supplies consumed when performing instructions or a direction.","wds")},tool:{id:Ke(),label:(0,n.__)("Tools","wds"),labelSingle:(0,n.__)("Tool","wds"),properties:{0:{id:Ke(),label:(0,n.__)("Tool","wds"),type:"HowToTool",properties:{name:{id:Ke(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the tool.","wds"),disallowDeletion:!0},image:{id:Ke(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the tool.","wds"),disallowDeletion:!0}}}},description:(0,n.__)("Objects used (but not consumed) when performing instructions or a direction.","wds")},estimatedCost:{id:Ke(),label:(0,n.__)("Estimated Cost","wds"),type:"MonetaryAmount",disallowAddition:!0,properties:Ze,description:(0,n.__)("The estimated cost of the supplies consumed when performing instructions.","wds")},step:{id:Ke(),label:(0,n.__)("Steps","wds"),labelSingle:(0,n.__)("Step","wds"),properties:{0:{id:Ke(),label:(0,n.__)("Step","wds"),type:"HowToStep",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:{name:{id:Ke(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The word or short phrase summarizing the step (for example, "Attach wires to post" or "Dig").',"wds"),disallowDeletion:!0},text:{id:Ke(),label:(0,n.__)("Text","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)("The full instruction text of this step.","wds"),disallowDeletion:!0},image:{id:Ke(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image for the step.","wds"),disallowDeletion:!0},url:{id:Ke(),label:(0,n.__)("Url","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("A URL that directly links to the step (if one is available). For example, an anchor link fragment.","wds"),disallowDeletion:!0}}}},required:!0,description:(0,n.__)("An array of elements which comprise the full instructions of the how-to. Each step element should correspond to an individual step in the instructions. Don't mark up non-step data such as a summary or introduction section, using this property.","wds")},comment:{id:Ke(),label:(0,n.__)("Comments","wds"),type:"Comment",loop:"post-comments",loopDescription:(0,n.__)("The following block will be repeated for each post comment"),properties:Ye,optional:!0,description:(0,n.__)("Comments, typically from users.","wds")},aggregateRating:{id:Ke(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the how-to.","wds"),optional:!0},review:{id:Ke(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:Ke(),type:"Review",properties:he}},description:(0,n.__)("Reviews of the how-to.","wds"),optional:!0}},Qe={USD:(0,n.__)("United States dollar","wds"),AED:(0,n.__)("UAE dirham","wds"),AFN:(0,n.__)("Afghan afghani","wds"),ALL:(0,n.__)("Albanian lek","wds"),AMD:(0,n.__)("Armenian dram","wds"),ANG:(0,n.__)("Netherlands Antillean gulden","wds"),AOA:(0,n.__)("Angolan kwanza","wds"),ARS:(0,n.__)("Argentine peso","wds"),AUD:(0,n.__)("Australian dollar","wds"),AWG:(0,n.__)("Aruban florin","wds"),AZN:(0,n.__)("Azerbaijani manat","wds"),BAM:(0,n.__)("Bosnia and Herzegovina konvertibilna marka","wds"),BBD:(0,n.__)("Barbadian dollar","wds"),BDT:(0,n.__)("Bangladeshi taka","wds"),BGN:(0,n.__)("Bulgarian lev","wds"),BHD:(0,n.__)("Bahraini dinar","wds"),BIF:(0,n.__)("Burundi franc","wds"),BMD:(0,n.__)("Bermudian dollar","wds"),BND:(0,n.__)("Brunei dollar","wds"),BOB:(0,n.__)("Bolivian boliviano","wds"),BRL:(0,n.__)("Brazilian real","wds"),BSD:(0,n.__)("Bahamian dollar","wds"),BTN:(0,n.__)("Bhutanese ngultrum","wds"),BWP:(0,n.__)("Botswana pula","wds"),BYR:(0,n.__)("Belarusian ruble","wds"),BZD:(0,n.__)("Belize dollar","wds"),CAD:(0,n.__)("Canadian dollar","wds"),CDF:(0,n.__)("Congolese franc","wds"),CHF:(0,n.__)("Swiss franc","wds"),CLP:(0,n.__)("Chilean peso","wds"),CNY:(0,n.__)("Chinese/Yuan renminbi","wds"),COP:(0,n.__)("Colombian peso","wds"),CRC:(0,n.__)("Costa Rican colon","wds"),CUC:(0,n.__)("Cuban peso","wds"),CVE:(0,n.__)("Cape Verdean escudo","wds"),CZK:(0,n.__)("Czech koruna","wds"),DJF:(0,n.__)("Djiboutian franc","wds"),DKK:(0,n.__)("Danish krone","wds"),DOP:(0,n.__)("Dominican peso","wds"),DZD:(0,n.__)("Algerian dinar","wds"),EEK:(0,n.__)("Estonian kroon","wds"),EGP:(0,n.__)("Egyptian pound","wds"),ERN:(0,n.__)("Eritrean nakfa","wds"),ETB:(0,n.__)("Ethiopian birr","wds"),EUR:(0,n.__)("European Euro","wds"),FJD:(0,n.__)("Fijian dollar","wds"),FKP:(0,n.__)("Falkland Islands pound","wds"),GBP:(0,n.__)("British pound","wds"),GEL:(0,n.__)("Georgian lari","wds"),GHS:(0,n.__)("Ghanaian cedi","wds"),GIP:(0,n.__)("Gibraltar pound","wds"),GMD:(0,n.__)("Gambian dalasi","wds"),GNF:(0,n.__)("Guinean franc","wds"),GQE:(0,n.__)("Central African CFA franc","wds"),GTQ:(0,n.__)("Guatemalan quetzal","wds"),GYD:(0,n.__)("Guyanese dollar","wds"),HKD:(0,n.__)("Hong Kong dollar","wds"),HNL:(0,n.__)("Honduran lempira","wds"),HRK:(0,n.__)("Croatian kuna","wds"),HTG:(0,n.__)("Haitian gourde","wds"),HUF:(0,n.__)("Hungarian forint","wds"),IDR:(0,n.__)("Indonesian rupiah","wds"),ILS:(0,n.__)("Israeli new sheqel","wds"),INR:(0,n.__)("Indian rupee","wds"),IQD:(0,n.__)("Iraqi dinar","wds"),IRR:(0,n.__)("Iranian rial","wds"),ISK:(0,n.__)("Icelandic króna","wds"),JMD:(0,n.__)("Jamaican dollar","wds"),JOD:(0,n.__)("Jordanian dinar","wds"),JPY:(0,n.__)("Japanese yen","wds"),KES:(0,n.__)("Kenyan shilling","wds"),KGS:(0,n.__)("Kyrgyzstani som","wds"),KHR:(0,n.__)("Cambodian riel","wds"),KMF:(0,n.__)("Comorian franc","wds"),KPW:(0,n.__)("North Korean won","wds"),KRW:(0,n.__)("South Korean won","wds"),KWD:(0,n.__)("Kuwaiti dinar","wds"),KYD:(0,n.__)("Cayman Islands dollar","wds"),KZT:(0,n.__)("Kazakhstani tenge","wds"),LAK:(0,n.__)("Lao kip","wds"),LBP:(0,n.__)("Lebanese lira","wds"),LKR:(0,n.__)("Sri Lankan rupee","wds"),LRD:(0,n.__)("Liberian dollar","wds"),LSL:(0,n.__)("Lesotho loti","wds"),LTL:(0,n.__)("Lithuanian litas","wds"),LVL:(0,n.__)("Latvian lats","wds"),LYD:(0,n.__)("Libyan dinar","wds"),MAD:(0,n.__)("Moroccan dirham","wds"),MDL:(0,n.__)("Moldovan leu","wds"),MGA:(0,n.__)("Malagasy ariary","wds"),MKD:(0,n.__)("Macedonian denar","wds"),MMK:(0,n.__)("Myanma kyat","wds"),MNT:(0,n.__)("Mongolian tugrik","wds"),MOP:(0,n.__)("Macanese pataca","wds"),MRO:(0,n.__)("Mauritanian ouguiya","wds"),MUR:(0,n.__)("Mauritian rupee","wds"),MVR:(0,n.__)("Maldivian rufiyaa","wds"),MWK:(0,n.__)("Malawian kwacha","wds"),MXN:(0,n.__)("Mexican peso","wds"),MYR:(0,n.__)("Malaysian ringgit","wds"),MZM:(0,n.__)("Mozambican metical","wds"),NAD:(0,n.__)("Namibian dollar","wds"),NGN:(0,n.__)("Nigerian naira","wds"),NIO:(0,n.__)("Nicaraguan córdoba","wds"),NOK:(0,n.__)("Norwegian krone","wds"),NPR:(0,n.__)("Nepalese rupee","wds"),NZD:(0,n.__)("New Zealand dollar","wds"),OMR:(0,n.__)("Omani rial","wds"),PAB:(0,n.__)("Panamanian balboa","wds"),PEN:(0,n.__)("Peruvian nuevo sol","wds"),PGK:(0,n.__)("Papua New Guinean kina","wds"),PHP:(0,n.__)("Philippine peso","wds"),PKR:(0,n.__)("Pakistani rupee","wds"),PLN:(0,n.__)("Polish zloty","wds"),PYG:(0,n.__)("Paraguayan guarani","wds"),QAR:(0,n.__)("Qatari riyal","wds"),RON:(0,n.__)("Romanian leu","wds"),RSD:(0,n.__)("Serbian dinar","wds"),RUB:(0,n.__)("Russian ruble","wds"),SAR:(0,n.__)("Saudi riyal","wds"),SBD:(0,n.__)("Solomon Islands dollar","wds"),SCR:(0,n.__)("Seychellois rupee","wds"),SDG:(0,n.__)("Sudanese pound","wds"),SEK:(0,n.__)("Swedish krona","wds"),SGD:(0,n.__)("Singapore dollar","wds"),SHP:(0,n.__)("Saint Helena pound","wds"),SLL:(0,n.__)("Sierra Leonean leone","wds"),SOS:(0,n.__)("Somali shilling","wds"),SRD:(0,n.__)("Surinamese dollar","wds"),SYP:(0,n.__)("Syrian pound","wds"),SZL:(0,n.__)("Swazi lilangeni","wds"),THB:(0,n.__)("Thai baht","wds"),TJS:(0,n.__)("Tajikistani somoni","wds"),TMT:(0,n.__)("Turkmen manat","wds"),TND:(0,n.__)("Tunisian dinar","wds"),TRY:(0,n.__)("Turkish new lira","wds"),TTD:(0,n.__)("Trinidad and Tobago dollar","wds"),TWD:(0,n.__)("New Taiwan dollar","wds"),TZS:(0,n.__)("Tanzanian shilling","wds"),UAH:(0,n.__)("Ukrainian hryvnia","wds"),UGX:(0,n.__)("Ugandan shilling","wds"),UYU:(0,n.__)("Uruguayan peso","wds"),UZS:(0,n.__)("Uzbekistani som","wds"),VEB:(0,n.__)("Venezuelan bolivar","wds"),VND:(0,n.__)("Vietnamese dong","wds"),VUV:(0,n.__)("Vanuatu vatu","wds"),WST:(0,n.__)("Samoan tala","wds"),XAF:(0,n.__)("Central African CFA franc","wds"),XCD:(0,n.__)("East Caribbean dollar","wds"),XDR:(0,n.__)("Special Drawing Rights","wds"),XOF:(0,n.__)("West African CFA franc","wds"),XPF:(0,n.__)("CFP franc","wds"),YER:(0,n.__)("Yemeni rial","wds"),ZAR:(0,n.__)("South African rand","wds"),ZMK:(0,n.__)("Zambian kwacha","wds"),ZWR:(0,n.__)("Zimbabwean dollar","wds")};const Xe=P();var et={streetAddress:{id:Xe(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:Xe(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:Xe(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:Xe(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:Xe(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:Xe(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const tt=P();var ot={itemReviewed:{id:tt(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:tt(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"site_settings",value:"site_name",required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the local business.","wds")}},required:!0},ratingCount:{id:tt(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the local business.","wds")},reviewCount:{id:tt(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:tt(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,requiredInBlock:!0,description:(0,n.__)('A numerical quality rating for the local business, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:tt(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:tt(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}},it={"00:00":"00:00","00:30":"00:30","01:00":"01:00","01:30":"01:30","02:00":"02:00","02:30":"02:30","03:00":"03:00","03:30":"03:30","04:00":"04:00","04:30":"04:30","05:00":"05:00","05:30":"05:30","06:00":"06:00","06:30":"06:30","07:00":"07:00","07:30":"07:30","08:00":"08:00","08:30":"08:30","09:00":"09:00","09:30":"09:30","10:00":"10:00","10:30":"10:30","11:00":"11:00","11:30":"11:30","12:00":"12:00","12:30":"12:30","13:00":"13:00","13:30":"13:30","14:00":"14:00","14:30":"14:30","15:00":"15:00","15:30":"15:30","16:00":"16:00","16:30":"16:30","17:00":"17:00","17:30":"17:30","18:00":"18:00","18:30":"18:30","19:00":"19:00","19:30":"19:30","20:00":"20:00","20:30":"20:30","21:00":"21:00","21:30":"21:30","22:00":"22:00","22:30":"22:30","23:00":"23:00","23:30":"23:30","24:00":"24:00"};const st=P();var rt={dayOfWeek:{id:st(),label:(0,n.__)("Days of Week","wds"),disallowDeletion:!0,type:"Array",allowMultipleSelection:!0,source:"options",value:["Monday","Tuesday","Wednesday","Thursday","Friday"],customSources:{options:{label:(0,n.__)("Days of Week","wds"),values:{Monday:(0,n.__)("Monday","wds"),Tuesday:(0,n.__)("Tuesday","wds"),Wednesday:(0,n.__)("Wednesday","wds"),Thursday:(0,n.__)("Thursday","wds"),Friday:(0,n.__)("Friday","wds"),Saturday:(0,n.__)("Saturday","wds"),Sunday:(0,n.__)("Sunday","wds")}}},description:(0,n.__)("One or more days of the week.","wds")},opens:{id:st(),label:(0,n.__)("Opens","wds"),type:"Text",disallowDeletion:!0,source:"options",value:"09:00",description:(0,n.__)("The time the business location opens, in hh:mm:ss format.","wds"),customSources:{options:{label:(0,n.__)("Time","wds"),values:it}}},closes:{id:st(),label:(0,n.__)("Closes","wds"),type:"Text",disallowDeletion:!0,source:"options",value:"21:00",description:(0,n.__)("The time the business location closes, in hh:mm:ss format.","wds"),customSources:{options:{label:(0,n.__)("Time","wds"),values:it}}}};const nt=P();var at={ratingValue:{id:nt(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds"),required:!0},bestRating:{id:nt(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:nt(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const lt=P();var dt={name:{id:lt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds"),disallowDeletion:!0},logo:{id:lt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds"),disallowDeletion:!0},url:{id:lt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds"),disallowDeletion:!0}};const ct=P();var ut={name:{id:ct(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the review author.","wds"),disallowDeletion:!0},url:{id:ct(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL to the review author's page.","wds"),disallowDeletion:!0},description:{id:ct(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("Short bio/description of the review author.","wds"),disallowDeletion:!0},image:{id:ct(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image of the review author.","wds"),disallowDeletion:!0}};const pt=P();var ht={itemReviewed:{id:pt(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:pt(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"site_settings",value:"site_name",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated. In this case the local business.","wds")}}},reviewBody:{id:pt(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:pt(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:pt(),label:(0,n.__)("Author","wds"),activeVersion:"Person",properties:{Person:{id:pt(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:ut,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),required:!0,isAnAltVersion:!0},Organization:{id:pt(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:dt,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),required:!0,isAnAltVersion:!0}}},reviewRating:{id:pt(),label:(0,n.__)("Rating","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,properties:at,description:(0,n.__)("The rating given in this review.","wds"),required:!0}};const mt=P();var _t={"@id":{id:mt(),label:(0,n.__)("@id","wds"),type:"URL",source:"site_settings",value:"site_url",required:!0,description:(0,n.__)("Globally unique ID of the specific business location in the form of a URL. The ID should be stable and unchanging over time. Google Search treats the URL as an opaque string and it does not have to be a working link. If the business has multiple locations, make sure the @id is unique for each location.","wds")},name:{id:mt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"site_settings",value:"site_name",required:!0,description:(0,n.__)("The name of the business.","wds")},logo:{id:mt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the business.","wds")},url:{id:mt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The fully-qualified URL of the specific business location. Unlike the @id property, this URL property should be a working link.","wds")},priceRange:{id:mt(),label:(0,n.__)("Price Range","wds"),type:"Text",source:"options",value:"$",customSources:{options:{label:(0,n.__)("Price Range","wds"),values:{$:"$",$$:"$$",$$$:(0,n.__)("$$$","wds")}}},description:(0,n.__)('The relative price range of a business, commonly specified by either a numerical range (for example, "$10-15") or a normalized number of currency signs (for example, "$$$").',"wds")},telephone:{id:mt(),label:(0,n.__)("Telephone","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number",description:(0,n.__)("A business phone number meant to be the primary contact method for customers. Be sure to include the country code and area code in the phone number.","wds")},currenciesAccepted:{id:mt(),label:(0,n.__)("Currencies Accepted","wds"),type:"Text",source:"options",value:["USD"],allowMultipleSelection:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:Qe}},description:(0,n.__)("The currency accepted at the business.","wds")},paymentAccepted:{id:mt(),label:(0,n.__)("Payment Accepted","wds"),type:"Text",source:"options",value:["Cash"],allowMultipleSelection:!0,customSources:{options:{label:(0,n.__)("Payment Accepted","wds"),values:{Cash:(0,n.__)("Cash","wds"),"Credit Card":(0,n.__)("Credit Card","wds"),Cryptocurrency:(0,n.__)("Cryptocurrency","wds")}}},description:(0,n.__)("Modes of payment accepted at the local business.","wds")},address:{id:mt(),label:(0,n.__)("Address","wds"),properties:{0:{id:mt(),type:"PostalAddress",properties:et}},required:!0,description:(0,n.__)("The physical location of the business. Include as many properties as possible. The more properties you provide, the higher quality the result is to users.","wds")},image:{id:mt(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),properties:{0:{id:mt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo"}},description:(0,n.__)("One or more images of the local business.","wds"),required:!0},aggregateRating:{id:mt(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:ot,description:(0,n.__)("The average rating of the local business based on multiple ratings or reviews.","wds")},geo:{id:mt(),label:(0,n.__)("Geo Coordinates"),type:"GeoCoordinates",disallowAddition:!0,properties:{latitude:{id:mt(),label:(0,n.__)("Latitude","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The latitude of the business location. The precision should be at least 5 decimal places.","wds"),placeholder:(0,n.__)("E.g. 37.42242","wds")},longitude:{id:mt(),label:(0,n.__)("Longitude","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The longitude of the business location. The precision should be at least 5 decimal places."),placeholder:(0,n.__)("E.g. -122.08585","wds")}},description:(0,n.__)("Give search engines the exact location of your business by adding the geographic latitude and longitude coordinates.","wds")},openingHoursSpecification:{id:mt(),label:(0,n.__)("Opening Hours","wds"),labelSingle:(0,n.__)("Opening Hours Specification","wds"),properties:{0:{id:mt(),label:(0,n.__)("Opening Hours"),type:"OpeningHoursSpecification",disallowAddition:!0,properties:rt}},description:(0,n.__)("Hours during which the business location is open.","wds")},review:{id:mt(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:mt(),type:"Review",properties:ht}},description:(0,n.__)("Reviews of the local business.","wds"),optional:!0}};const wt=P();var ft=(0,w.merge)({},{acceptsReservations:{id:wt(),label:(0,n.__)("Accepts Reservations","wds"),type:"Text",source:"options",value:"True",customSources:{options:{label:(0,n.__)("Boolean Value","wds"),values:{True:(0,n.__)("True","wds"),False:(0,n.__)("False","wds")}}}},menu:{id:wt(),label:(0,n.__)("Menu URL","wds"),type:"URL",source:"custom_text",value:""},servesCuisine:{id:wt(),label:(0,n.__)("Serves Cuisine","wds"),type:"Text",source:"custom_text",value:""}},_t),yt=H()({},qe,{offers:{activeVersion:"Offer"}});const gt=P();var bt={name:{id:gt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"author",value:"author_full_name",description:(0,n.__)("The name of the recipe author.","wds")},url:{id:gt(),label:(0,n.__)("URL","wds"),type:"URL",source:"author",value:"author_url",description:(0,n.__)("The URL of the recipe author.","wds")},description:{id:gt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"author",value:"author_description",optional:!0,description:(0,n.__)("Short bio/description of the recipe author.","wds")},image:{id:gt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"author",value:"author_gravatar",description:(0,n.__)("An image of the recipe author.","wds")}};const vt=P();var Tt={logo:{id:vt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:vt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:vt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")}};const St=P();var xt={name:{id:St(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The title of the video.","wds"),required:!0},description:{id:St(),label:(0,n.__)("Description","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The description of the video. HTML tags are ignored.","wds"),required:!0},uploadDate:{id:St(),label:(0,n.__)("Upload Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date the video was first published, in ISO 8601 format.","wds"),required:!0},contentUrl:{id:St(),label:(0,n.__)("Content URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL pointing to the actual video media file. One or both of the following properties are recommended: contentUrl and embedUrl","wds")},embedUrl:{id:St(),label:(0,n.__)("Embed URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL pointing to a player for the specific video. One or both of the following properties are recommended: contentUrl and embedUrl","wds")},duration:{id:St(),label:(0,n.__)("Duration","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)('The duration of the video in ISO 8601 format. For example, PT00H30M5S represents a duration of "thirty minutes and five seconds".',"wds"),placeholder:(0,n.__)("E.g. PT00H30M5S","wds")}};const At=P();var Ct={name:{id:At(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the clip.","wds"),required:!0,disallowDeletion:!0},url:{id:At(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A link to the start of the clip.","wds"),required:!0,disallowDeletion:!0},startOffset:{id:At(),label:(0,n.__)("Start Offset","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The start time of the clip expressed as the number of seconds from the beginning of the video.","wds"),required:!0,disallowDeletion:!0},endOffset:{id:At(),label:(0,n.__)("End Offset","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The end time of the clip expressed as the number of seconds from the beginning of the video.","wds"),disallowDeletion:!0}};const Et=P();var Pt=H()({},xt,{thumbnailUrl:{id:Et(),label:(0,n.__)("Thumbnail URLs","wds"),labelSingle:(0,n.__)("Thumbnail URL","wds"),description:(0,n.__)("URLs pointing to the video thumbnail image files. Images must be 60px x 30px, at minimum.","wds"),required:!0,properties:{0:{id:Et(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"image_url",value:""}}},hasPart:{id:Et(),label:(0,n.__)("Clips","wds"),labelSingle:(0,n.__)("Clip","wds"),description:(0,n.__)("Video clips that are included within the full video.","wds"),properties:{0:{id:Et(),type:"Clip",properties:Ct}}}});const Ot=P();var Dt=H()({name:null,description:null,uploadDate:null,thumbnailUrl:null},xt,{name:{disallowDeletion:!0},description:{disallowDeletion:!0},uploadDate:{disallowDeletion:!0},thumbnailUrl:{id:Ot(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"image_url",value:"",disallowDeletion:!0,required:!0},contentUrl:{disallowDeletion:!0},embedUrl:{disallowDeletion:!0},duration:{disallowDeletion:!0}});const kt=P();var Rt={name:{id:kt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The word or short phrase summarizing the step (for example, "Preheat").',"wds"),disallowDeletion:!0},text:{id:kt(),label:(0,n.__)("Text","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The full instruction text of this step.","wds"),disallowDeletion:!0},image:{id:kt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("An image for the step.","wds"),disallowDeletion:!0},url:{id:kt(),label:(0,n.__)("Url","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("A URL that directly links to the step (if one is available). For example, an anchor link fragment.","wds"),disallowDeletion:!0},video:{id:kt(),label:(0,n.__)("Video","wds"),activeVersion:"Video",properties:{Video:{id:kt(),label:(0,n.__)("Video","wds"),description:(0,n.__)("A video for this step.","wds"),type:"VideoObject",properties:Dt,disallowDeletion:!0,disallowAddition:!0,isAnAltVersion:!0},Clip:{id:kt(),label:(0,n.__)("Clip","wds"),description:(0,n.__)("A clip for this step.","wds"),type:"Clip",properties:Ct,disallowDeletion:!0,disallowAddition:!0,isAnAltVersion:!0}}}};const Nt=P();var It={name:{id:Nt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the dish.","wds"),required:!0},datePublished:{id:Nt(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"post_data",description:(0,n.__)("The date and time the recipe was first published, in ISO 8601 format.","wds"),value:"post_date"},description:{id:Nt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A short summary describing the dish.","wds")},recipeCategory:{id:Nt(),label:(0,n.__)("Recipe Category","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. dessert","wds"),description:(0,n.__)('The type of meal or course your recipe is about. For example: "dinner", "main course", or "dessert, snack".',"wds")},recipeCuisine:{id:Nt(),label:(0,n.__)("Recipe Cuisine","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. Mediterranean","wds"),description:(0,n.__)('The region associated with your recipe. For example, "French", Mediterranean", or "American".',"wds")},keywords:{id:Nt(),label:(0,n.__)("Keywords","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. authentic","wds"),description:(0,n.__)('Other terms for your recipe such as the season ("summer"), the holiday ("Halloween"), or other descriptors ("quick", "easy", "authentic"). Don\'t use a tag that should be in recipeCategory or recipeCuisine.',"wds")},prepTime:{id:Nt(),label:(0,n.__)("Prep Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The length of time it takes to prepare the dish in ISO 8601 duration format. Always use in combination with cookTime.","wds"),placeholder:(0,n.__)("E.g. PT1M","wds")},cookTime:{id:Nt(),label:(0,n.__)("Cook Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The time it takes to actually cook the dish in ISO 8601 duration format. Always use in combination with prepTime.","wds"),placeholder:(0,n.__)("E.g. PT2M","wds")},totalTime:{id:Nt(),label:(0,n.__)("Total Time","wds"),type:"Duration",source:"duration",value:"",description:(0,n.__)("The total time it takes to prepare and cook the dish in ISO 8601 duration format. Use totalTime or a combination of both cookTime and prepTime.","wds"),placeholder:(0,n.__)("E.g. PT3M","wds")},nutrition:{id:Nt(),label:(0,n.__)("Nutrition","wds"),type:"NutritionInformation",flatten:!0,properties:{calories:{id:Nt(),label:(0,n.__)("Calories Per Serving","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The number of calories in each serving produced with this recipe. If calories is defined, recipeYield must be defined with the number of servings.","wds"),placeholder:(0,n.__)("E.g. 270 calories")}}},recipeYield:{id:Nt(),label:(0,n.__)("Recipe Yield","wds"),type:"Number",source:"number",value:"",placeholder:(0,n.__)("E.g. 6","wds"),description:(0,n.__)("Specify the number of servings produced from this recipe with a number. This is required if you specify calories per serving.","wds")},image:{id:Nt(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),required:!0,description:(0,n.__)("Images of the completed dish. For best results, provide multiple high-resolution images (minimum of 50K pixels when multiplying width and height) with the following aspect ratios: 16x9, 4x3, and 1x1.","wds"),properties:{0:{id:Nt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},recipeIngredient:{id:Nt(),label:(0,n.__)("Ingredients","wds"),labelSingle:(0,n.__)("Ingredient","wds"),description:(0,n.__)("Ingredients used in the recipe.","wds"),properties:{0:{id:Nt(),label:(0,n.__)("Ingredient","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 3/4 cup sugar","wds")}}},recipeInstructions:{id:Nt(),label:(0,n.__)("Instructions","wds"),activeVersion:"InstructionStepsText",properties:{InstructionStepsText:{id:Nt(),label:(0,n.__)("Instructions","wds"),labelSingle:(0,n.__)("Instruction","wds"),description:(0,n.__)("The steps to make the dish.","wds"),properties:{0:{id:Nt(),label:(0,n.__)("Step","wds")+" 1",type:"Text",source:"custom_text",value:"",updateLabelNumber:!0}},isAnAltVersion:!0},InstructionStepsHowTo:{id:Nt(),label:(0,n.__)("Instruction HowTo Steps","wds"),labelSingle:(0,n.__)("Instruction Step","wds"),description:(0,n.__)("An array of elements which comprise the full instructions of the recipe. Each step element should correspond to an individual step in the recipe.","wds"),properties:{0:{id:Nt(),label:(0,n.__)("Instruction Step","wds"),type:"HowToStep",properties:Rt}},isAnAltVersion:!0}}},author:{id:Nt(),label:(0,n.__)("Author","wds"),activeVersion:"Person",properties:{Person:{id:Nt(),label:(0,n.__)("Author","wds"),type:"Person",properties:bt,description:(0,n.__)("The author of the recipe. The author's name must be a valid name.","wds"),isAnAltVersion:!0},Organization:{id:Nt(),label:(0,n.__)("Author Organization","wds"),type:"Organization",properties:Tt,description:(0,n.__)("The author of the recipe. The author's name must be a valid name.","wds"),isAnAltVersion:!0}}},aggregateRating:{id:Nt(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the recipe.","wds"),optional:!0},review:{id:Nt(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:Nt(),type:"Review",properties:he}},description:(0,n.__)("Reviews of the recipe.","wds"),optional:!0},video:{id:Nt(),label:(0,n.__)("Video","wds"),description:(0,n.__)("A video depicting the steps to make the dish.","wds"),type:"VideoObject",properties:Pt,optional:!0}};const Lt=P();var Mt={logo:{id:Lt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Lt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds"),required:!0},url:{id:Lt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")},sameAs:{id:Lt(),label:(0,n.__)("Same As","wds"),labelSingle:(0,n.__)("URL","wds"),description:(0,n.__)("URL of reference web pages that unambiguously indicate the item's identity.","wds"),properties:{0:{id:Lt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:""}}}};const Ft=P();var jt={streetAddress:{id:Ft(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0,required:!0},addressLocality:{id:Ft(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:Ft(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:Ft(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:Ft(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:Ft(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const qt=P();var Vt={name:{id:qt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the place where the employee will report to work.","wds"),disallowDeletion:!0},address:{id:qt(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:jt,description:(0,n.__)("The address of the place where the employee will report to work.","wds"),disallowAddition:!0,disallowDeletion:!0,required:!0}};const Ut=P();var Bt={"@type":{id:Ut(),label:(0,n.__)("Administrative Area Type","wds"),type:"Text",source:"options",value:"Country",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Administrative Area Type","wds"),values:{Country:(0,n.__)("Country","wds"),City:(0,n.__)("City","wds"),State:(0,n.__)("State","wds")}}}},name:{id:Ut(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The name of the administrative area.","wds"),disallowDeletion:!0}};const zt=P();var Ht={currency:{id:zt(),label:(0,n.__)("Currency","wds"),type:"Text",source:"options",value:"USD",customSources:{options:{label:(0,n.__)("Currencies","wds"),values:Qe}},description:(0,n.__)("The currency of the base salary.","wds"),disallowDeletion:!0},value:{id:zt(),label:(0,n.__)("Currency","wds"),type:"QuantitativeValue",flatten:!0,disallowDeletion:!0,properties:{value:{id:zt(),label:(0,n.__)("Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("To specify a salary range, define a minValue and a maxValue, rather than a single value.","wds")},minValue:{id:zt(),label:(0,n.__)("Minimum Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("Use in combination with maxValue to provide a salary range.","wds")},maxValue:{id:zt(),label:(0,n.__)("Maximum Value","wds"),type:"Number",source:"number",value:"",disallowDeletion:!0,description:(0,n.__)("Use in combination with minValue to provide a salary range.","wds")},unitText:{id:zt(),label:(0,n.__)("Unit","wds"),type:"Text",source:"options",value:"HOUR",disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Unit","wds"),values:{HOUR:(0,n.__)("Hour","wds"),DAY:(0,n.__)("Day","wds"),WEEK:(0,n.__)("Week","wds"),MONTH:(0,n.__)("Month","wds"),YEAR:(0,n.__)("Year","wds")}}}}}}};const Gt=P();var Wt={title:{id:Gt(),label:(0,n.__)("Title","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)('The title of the job (not the title of the posting). For example, "Software Engineer" or "Barista".',"wds"),required:!0},description:{id:Gt(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"post_data",value:"post_content",description:(0,n.__)("The full description of the job in HTML format. The description should be a complete representation of the job, including job responsibilities, qualifications, skills, working hours, education requirements, and experience requirements. The description can't be the same as the title.","wds"),required:!0},datePosted:{id:Gt(),label:(0,n.__)("Date Posted","wds"),type:"DateTime",source:"post_data",value:"post_date",description:(0,n.__)("The original date that employer posted the job in ISO 8601 format.","wds"),required:!0},validThrough:{id:Gt(),label:(0,n.__)("Valid Through","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The date when the job posting will expire in ISO 8601 format. This is required for job postings that have an expiration date.","wds")},employmentType:{id:Gt(),label:(0,n.__)("Employment Type","wds"),type:"Text",source:"options",value:"FULL_TIME",disallowDeletion:!0,description:(0,n.__)("Type of employment.","wds"),customSources:{options:{label:(0,n.__)("Employment Type","wds"),values:{FULL_TIME:(0,n.__)("Full Time","wds"),PART_TIME:(0,n.__)("Part Time","wds"),CONTRACTOR:(0,n.__)("Contractor","wds"),TEMPORARY:(0,n.__)("Temporary","wds"),INTERN:(0,n.__)("Intern","wds"),VOLUNTEER:(0,n.__)("Volunteer","wds"),PER_DIEM:(0,n.__)("Per Diem","wds"),OTHER:(0,n.__)("Other","wds")}}}},jobLocationType:{id:Gt(),label:(0,n.__)("Job Location Type","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("Set this property with the value TELECOMMUTE for jobs in which the employee may or must work remotely 100% of the time (from home or another location of their choosing).","wds"),customSources:{options:{label:(0,n.__)("Job Location Type","wds"),values:{"":(0,n.__)("Default","wds"),TELECOMMUTE:(0,n.__)("Telecommute","wds")}}}},educationRequirements:{id:Gt(),type:"EducationalOccupationalCredential",label:(0,n.__)("Education Level","wds"),flatten:!0,properties:{credentialCategory:{id:Gt(),label:(0,n.__)("Education Level","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The level of education that's required for the job posting.","wds"),customSources:{options:{label:(0,n.__)("Education Level","wds"),values:{"":(0,n.__)("No requirements","wds"),"high school":(0,n.__)("High School","wds"),"associate degree":(0,n.__)("Associate Degree","wds"),"bachelor degree":(0,n.__)("Bachelor Degree","wds"),"professional certificate":(0,n.__)("Professional Certificate","wds"),"postgraduate degree":(0,n.__)("Postgraduate degree","wds")}}}}}},experienceRequirements:{id:Gt(),type:"OccupationalExperienceRequirements",label:(0,n.__)("Months Of Experience","wds"),flatten:!0,properties:{monthsOfExperience:{id:Gt(),label:(0,n.__)("Months Of Experience","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The minimum number of months of experience that are required for the job posting. If there are more complex experience requirements, use the experience that represents the minimum number that is required for a candidate.","wds")}}},experienceInPlaceOfEducation:{id:Gt(),label:(0,n.__)("Experience In Place Of Education","wds"),type:"Text",source:"options",value:"False",description:(0,n.__)("If set to true, this property indicates whether a job posting will accept experience in place of its formal educational qualifications. If set to true, you must include both the experienceRequirements and educationRequirements properties.","wds"),customSources:{options:{label:(0,n.__)("Boolean Value","wds"),values:{False:(0,n.__)("False","wds"),True:(0,n.__)("True","wds")}}}},hiringOrganization:{id:Gt(),label:(0,n.__)("Hiring Organization","wds"),type:"Organization",required:!0,description:(0,n.__)('The organization offering the job position. This should be the name of the company (for example, "Starbucks, Inc"), and not the specific location that is hiring (for example, "Starbucks on Main Street").',"wds"),properties:Mt},jobLocation:{id:Gt(),label:(0,n.__)("Job Locations","wds"),labelSingle:(0,n.__)("Job Location","wds"),required:!0,description:(0,n.__)("The physical location(s) of the business where the employee will report to work (such as an office or worksite), not the location where the job was posted. Include as many properties as possible. The more properties you provide, the higher quality the job posting is to the users.","wds"),properties:{0:{id:Gt(),type:"Place",properties:Vt}}},applicantLocationRequirements:{id:Gt(),label:(0,n.__)("Applicant Location Requirements","wds"),labelSingle:(0,n.__)("Applicant Location Requirement","wds"),description:(0,n.__)("The geographic location(s) in which employees may be located for to be eligible for the Work from home job. This property is only recommended if applicants may be located in one or more geographic locations and the job may or must be 100% remote.","wds"),properties:{0:{id:Gt(),properties:Bt}}},baseSalary:{id:Gt(),label:(0,n.__)("Base Salary","wds"),type:"MonetaryAmount",description:(0,n.__)("The actual base salary for the job, as provided by the employer (not an estimate).","wds"),disallowAddition:!0,properties:Ht},identifier:{id:Gt(),label:(0,n.__)("Identifier","wds"),type:"PropertyValue",description:(0,n.__)("The hiring organization's unique identifier for the job.","wds"),disallowAddition:!0,properties:{name:{id:Gt(),label:(0,n.__)("Name","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier name.","wds"),disallowDeletion:!0},value:{id:Gt(),label:(0,n.__)("Value","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier value.","wds"),disallowDeletion:!0}}}};const Zt=P();var $t={name:{id:Zt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds"),disallowDeletion:!0},url:{id:Zt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("URL to the person's profile page.","wds"),disallowDeletion:!0},image:{id:Zt(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds"),disallowDeletion:!0}};const Yt=P();var Kt={"@id":{id:Yt(),label:(0,n.__)("@id","wds"),type:"URL",source:"custom_text",value:"",required:!0,disallowDeletion:!0,description:(0,n.__)("A globally unique ID for the edition in URL format. It must be unique to your organization. The ID must be stable and not change over time. URL format is suggested though not required. It doesn't have to be a working link. The domain used for the @id value must be owned by your organization.","wds")},bookFormat:{id:Yt(),label:(0,n.__)("Book Format","wds"),type:"Text",source:"options",value:"Paperback",disallowDeletion:!0,description:(0,n.__)("The format of the edition.","wds"),required:!0,customSources:{options:{label:(0,n.__)("Book Formats","wds"),values:{Paperback:(0,n.__)("Paperback","wds"),Hardcover:(0,n.__)("Hardcover","wds"),EBook:(0,n.__)("EBook","wds"),AudiobookFormat:(0,n.__)("Audiobook","wds")}}}},inLanguage:{id:Yt(),label:(0,n.__)("Language","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("The main language of the content in the edition. Use one of the two-letter codes from the list of ISO 639-1 alpha-2 codes.","wds"),placeholder:(0,n.__)("E.g. en","wds")},isbn:{id:Yt(),label:(0,n.__)("ISBN","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("The ISBN-13 of the edition. If you have ISBN-10, convert it into ISBN-13. If there's no ISBN for the ebook or audiobook, use the ISBN of the print book instead. For example, if the ebook edition doesn't have an ISBN, use the ISBN for the associated print edition.","wds")},bookEdition:{id:Yt(),label:(0,n.__)("Book Edition","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The edition information of the book in free text format. For example, 2nd Edition.","wds"),placeholder:(0,n.__)("E.g. 2nd Edition","wds")},datePublished:{id:Yt(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date of publication of the edition in YYYY-MM-DD or YYYY format. This can be either a specific date or only a specific year.","wds")},name:{id:Yt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The title of the edition. Only use this when the title of the edition is different from the title of the work.","wds")},url:{id:Yt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The URL on your website where the edition is introduced or described.","wds")},identifier:{id:Yt(),label:(0,n.__)("Identifiers","wds"),labelSingle:(0,n.__)("Identifier","wds"),description:(0,n.__)("The external or other ID that unambiguously identifies this edition.","wds"),disallowDeletion:!0,properties:{0:{id:Yt(),type:"PropertyValue",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:{propertyID:{id:Yt(),label:(0,n.__)("Type","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The identifier type.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Identifier Types","wds"),values:{"":(0,n.__)("None","wds"),OCLC_NUMBER:(0,n.__)("OCLC_NUMBER","wds"),LCCN:(0,n.__)("LCCN","wds"),"JP_E-CODE":(0,n.__)("JP_E-CODE","wds")}}}},value:{id:Yt(),label:(0,n.__)("Value","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier value. The external ID that unambiguously identifies this edition. Remove all non-numeric prefixes of the external ID.","wds"),disallowDeletion:!0}}}}},author:{id:Yt(),label:(0,n.__)("Authors","wds"),labelSingle:(0,n.__)("Author","wds"),description:(0,n.__)("The author(s) of the edition. Only use this when the author of the edition is different from the work author information.","wds"),disallowDeletion:!0,properties:{0:{id:Yt(),type:"Person",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:$t}}},sameAs:{id:Yt(),label:(0,n.__)("Same As","wds"),labelSingle:(0,n.__)("URL","wds"),description:(0,n.__)("The URL of a reference web page that unambiguously indicates the edition. For example, a Wikipedia page for this specific edition. Don't reuse the sameAs of the Work.","wds"),disallowDeletion:!0,properties:{0:{id:Yt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0}}}};const Jt=P();var Qt={"@id":{id:Jt(),label:(0,n.__)("@id","wds"),type:"URL",source:"custom_text",value:"",required:!0,description:(0,n.__)("A globally unique ID for the book in URL format. It must be unique to your organization. The ID must be stable and not change over time. URL format is suggested though not required. It doesn't have to be a working link. The domain used for the @id value must be owned by your organization.","wds")},name:{id:Jt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The title of the book.","wds")},url:{id:Jt(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",required:!0,description:(0,n.__)("The URL on your website where the book is introduced or described.","wds")},author:{id:Jt(),label:(0,n.__)("Authors","wds"),labelSingle:(0,n.__)("Author","wds"),required:!0,description:(0,n.__)("The authors of the book.","wds"),properties:{0:{id:Jt(),type:"Person",properties:$t}}},contributor:{id:Jt(),label:(0,n.__)("Contributors","wds"),labelSingle:(0,n.__)("Contributor","wds"),optional:!0,description:(0,n.__)("People who have made contributions to the book.","wds"),properties:{0:{id:Jt(),type:"Person",properties:$t}}},sameAs:{id:Jt(),label:(0,n.__)("Same As","wds"),labelSingle:(0,n.__)("URL","wds"),description:(0,n.__)("The URL of a reference page that identifies the work. For example, a Wikipedia, Wikidata, VIAF, or Library of Congress page for the book.","wds"),properties:{0:{id:Jt(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:""}}},editor:{id:Jt(),label:(0,n.__)("Editors","wds"),labelSingle:(0,n.__)("Editor","wds"),optional:!0,description:(0,n.__)("People who have edited the book.","wds"),properties:{0:{id:Jt(),type:"Person",properties:$t}}},workExample:{id:Jt(),label:(0,n.__)("Editions","wds"),labelSingle:(0,n.__)("Edition","wds"),description:(0,n.__)("The editions of the work.","wds"),properties:{0:{id:Jt(),type:"Book",properties:Kt}}},aggregateRating:{id:Jt(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the book.","wds"),optional:!0},review:{id:Jt(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:Jt(),type:"Review",properties:he}},description:(0,n.__)("Reviews of the book.","wds"),optional:!0}};const Xt=P();var eo={logo:{id:Xt(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Xt(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name",description:(0,n.__)("The name of the organization.","wds")},url:{id:Xt(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url",description:(0,n.__)("The URL of the organization.","wds")}};const to=P();var oo={name:{id:to(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the course instructor.","wds"),disallowDeletion:!0},url:{id:to(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the course instructor.","wds"),disallowDeletion:!0},image:{id:to(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the course instructor.","wds"),disallowDeletion:!0}};const io=P();var so={streetAddress:{id:io(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The street address. For example, 1600 Amphitheatre Pkwy.","wds"),disallowDeletion:!0},addressLocality:{id:io(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The locality in which the street address is, and which is in the region. For example, Mountain View.","wds"),disallowDeletion:!0},addressRegion:{id:io(),label:(0,n.__)("Address Region","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The region in which the locality is, and which is in the country. For example, California or another appropriate first-level administrative division.","wds"),disallowDeletion:!0},addressCountry:{id:io(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.","wds"),disallowDeletion:!0},postalCode:{id:io(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The postal code. For example, 94043.","wds"),disallowDeletion:!0},postOfficeBoxNumber:{id:io(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The post office box number for PO box addresses.","wds"),disallowDeletion:!0}};const ro=P();var no={name:{id:ro(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The detailed name of the place or venue where the course is being held.","wds"),disallowDeletion:!0},address:{id:ro(),label:(0,n.__)("Address","wds"),type:"PostalAddress",properties:so,description:(0,n.__)("The venue's detailed street address.","wds"),disallowDeletion:!0,disallowAddition:!0}};const ao=P();var lo={price:{id:ao(),label:(0,n.__)("Price Value","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The price for attending this course.","wds"),disallowDeletion:!0},priceCurrency:{id:ao(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:H()({"":(0,n.__)("None","wds")},Qe)}}}};const co=P();var uo={name:{id:co(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The title of the course instance.","wds"),disallowDeletion:!0},description:{id:co(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("A description of the course instance.","wds"),disallowDeletion:!0},url:{id:co(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The URL of the course instance.","wds"),disallowDeletion:!0},courseMode:{id:co(),label:(0,n.__)("Course Mode","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time").',"wds"),placeholder:(0,n.__)("E.g. onsite","wds"),disallowDeletion:!0},courseWorkload:{id:co(),label:(0,n.__)("Course Workload","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)('The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".',"wds"),placeholder:(0,n.__)("E.g. 2 hours of lectures","wds"),disallowDeletion:!0},eventStatus:{id:co(),label:(0,n.__)("Status","wds"),type:"Text",source:"options",value:"EventScheduled",customSources:{options:{label:(0,n.__)("Course Status","wds"),values:{EventScheduled:(0,n.__)("Scheduled","wds"),EventMovedOnline:(0,n.__)("Moved Online","wds"),EventRescheduled:(0,n.__)("Rescheduled","wds"),EventPostponed:(0,n.__)("Postponed","wds"),EventCancelled:(0,n.__)("Cancelled","wds")}}},description:(0,n.__)("The status of the course.","wds"),disallowDeletion:!0},eventAttendanceMode:{id:co(),label:(0,n.__)("Attendance Mode","wds"),type:"Text",source:"options",value:"MixedEventAttendanceMode",customSources:{options:{label:(0,n.__)("Event Attendance Mode","wds"),values:{MixedEventAttendanceMode:(0,n.__)("Mixed Attendance Mode","wds"),OfflineEventAttendanceMode:(0,n.__)("Offline Attendance Mode","wds"),OnlineEventAttendanceMode:(0,n.__)("Online Attendance Mode","wds")}}},description:(0,n.__)("Indicates whether the course will be conducted online, offline at a physical location, or a mix of both online and offline.","wds"),disallowDeletion:!0},startDate:{id:co(),label:(0,n.__)("Start Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The start date and start time of the course in ISO-8601 format.","wds"),disallowDeletion:!0},endDate:{id:co(),label:(0,n.__)("End Date","wds"),type:"DateTime",source:"datetime",value:"",description:(0,n.__)("The end date and end time of the course in ISO-8601 format.","wds"),disallowDeletion:!0},instructor:{id:co(),label:(0,n.__)("Instructors","wds"),labelSingle:(0,n.__)("Instructor","wds"),description:(0,n.__)("A person assigned to instruct or provide instructional assistance for the course instance.","wds"),disallowDeletion:!0,properties:{0:{id:co(),type:"Person",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0,properties:oo}}},image:{id:co(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),description:(0,n.__)("Images related to the course instance.","wds"),disallowDeletion:!0,properties:{0:{id:co(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail",disallowDeletion:!0,disallowFirstItemDeletionOnly:!0}}},location:{id:co(),label:(0,n.__)("Location","wds"),activeVersion:"Place",properties:{Place:{id:co(),label:(0,n.__)("Location","wds"),type:"Place",properties:no,description:(0,n.__)("The physical location where the course will be held.","wds"),disallowDeletion:!0,disallowAddition:!0,isAnAltVersion:!0},VirtualLocation:{id:co(),label:(0,n.__)("Virtual Location","wds"),type:"VirtualLocation",disallowAddition:!0,disallowDeletion:!0,isAnAltVersion:!0,properties:{url:{id:co(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",disallowDeletion:!0,value:"post_permalink",description:(0,n.__)("The URL of the web page, where people can attend the course.","wds")}},description:(0,n.__)("The virtual location of the course.","wds")}}},offers:{id:co(),label:(0,n.__)("Price","wds"),description:(0,n.__)("Price information for the course.","wds"),properties:lo,disallowAddition:!0,disallowDeletion:!0}};const po=P();var ho={name:{id:po(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0,description:(0,n.__)("The title of the course.","wds")},description:{id:po(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",required:!0,description:(0,n.__)("A description of the course. Display limit of 60 characters.","wds")},courseCode:{id:po(),label:(0,n.__)("Course Code","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The identifier for the Course used by the course provider.","wds"),placeholder:(0,n.__)("E.g. CS101")},numberOfCredits:{id:po(),label:(0,n.__)("Number Of Credits","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The number of credits or units awarded by the course.","wds")},provider:{id:po(),label:(0,n.__)("Provider","wds"),type:"Organization",description:(0,n.__)("The organization that publishes the source content of the course. For example, UC Berkeley.","wds"),properties:eo},hasCourseInstance:{id:po(),label:(0,n.__)("Course Instances","wds"),labelSingle:(0,n.__)("Course Instance","wds"),description:(0,n.__)("An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.","wds"),optional:!0,properties:{0:{id:po(),type:"CourseInstance",properties:uo}}},aggregateRating:{id:po(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the course.","wds"),optional:!0},review:{id:po(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:po(),type:"Review",properties:he}},description:(0,n.__)("Reviews of the course.","wds"),optional:!0}};const mo=P();var _o={price:{id:mo(),label:(0,n.__)("Price Value","wds"),type:"Number",source:"number",value:"",description:(0,n.__)("The price of the software application. If the app is free of charge, set price to 0.","wds"),disallowDeletion:!0},priceCurrency:{id:mo(),label:(0,n.__)("Price Currency Code","wds"),type:"Text",source:"options",value:"",description:(0,n.__)("The 3-letter ISO 4217 currency code. If the app has a price greater than 0, you must include currency.","wds"),disallowDeletion:!0,customSources:{options:{label:(0,n.__)("Currencies","wds"),values:H()({"":(0,n.__)("None","wds")},Qe)}}}};const wo=P();var fo={itemReviewed:{id:wo(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,properties:{name:{id:wo(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"custom_text",value:"",required:!0,description:(0,n.__)("The name of the item that is being rated.","wds")}},required:!0},ratingCount:{id:wo(),label:(0,n.__)("Rating Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("The total number of ratings for the item on your site.","wds")},reviewCount:{id:wo(),label:(0,n.__)("Review Count","wds"),type:"Number",source:"number",value:"",customSources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_comment_count:(0,n.__)("Post Comment Count","wds")}}},required:!0,description:(0,n.__)("Specifies the number of people who provided a review with or without an accompanying rating.","wds")},ratingValue:{id:wo(),label:(0,n.__)("Rating Value","wds"),type:"Text",source:"custom_text",value:"",required:!0,description:(0,n.__)('A numerical quality rating for the item, either a number, fraction, or percentage (for example, "4", "60%", or "6 / 10").',"wds")},bestRating:{id:wo(),label:(0,n.__)("Best Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The highest value allowed in this rating system. If omitted, 5 is assumed.","wds")},worstRating:{id:wo(),label:(0,n.__)("Worst Rating","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The lowest value allowed in this rating system. If omitted, 1 is assumed.","wds")}};const yo=P();var go={itemReviewed:{id:yo(),label:(0,n.__)("Reviewed Item","wds"),flatten:!0,required:!0,properties:{name:{id:yo(),label:(0,n.__)("Reviewed Item","wds"),type:"TextFull",source:"custom_text",value:"",disallowDeletion:!0,required:!0,description:(0,n.__)("Name of the item that is being rated.","wds")}}},reviewBody:{id:yo(),label:(0,n.__)("Review Body","wds"),type:"Text",source:"custom_text",value:"",disallowDeletion:!0,description:(0,n.__)("The actual body of the review.","wds")},datePublished:{id:yo(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"datetime",value:"",disallowDeletion:!0,description:(0,n.__)("The date that the review was published, in ISO 8601 date format.","wds")},author:{id:yo(),label:(0,n.__)("Author","wds"),activeVersion:"Person",required:!0,properties:{Person:{id:yo(),label:(0,n.__)("Author","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Person",properties:ae,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0},Organization:{id:yo(),label:(0,n.__)("Author Organization","wds"),disallowDeletion:!0,disallowAddition:!0,type:"Organization",properties:de,required:!0,description:(0,n.__)("The author of the review. The reviewer's name must be a valid name.","wds"),isAnAltVersion:!0}}},reviewRating:{id:yo(),label:(0,n.__)("Rating","wds"),description:(0,n.__)("The rating given in this review.","wds"),type:"Rating",disallowAddition:!0,disallowDeletion:!0,required:!0,properties:ue}};const bo=P();var vo={name:{id:bo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title",description:(0,n.__)("The name of the app.","wds"),required:!0},description:{id:bo(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description",description:(0,n.__)("The description of the app.","wds")},url:{id:bo(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink",description:(0,n.__)("The permanent URL of the app.","wds")},applicationCategory:{id:bo(),label:(0,n.__)("Application Category","wds"),type:"Text",source:"options",value:"",customSources:{options:{label:(0,n.__)("Application Category","wds"),values:{"":(0,n.__)("None","wds"),GameApplication:(0,n.__)("Game Application","wds"),SocialNetworkingApplication:(0,n.__)("Social Networking Application","wds"),TravelApplication:(0,n.__)("Travel Application","wds"),ShoppingApplication:(0,n.__)("Shopping Application","wds"),SportsApplication:(0,n.__)("Sports Application","wds"),LifestyleApplication:(0,n.__)("Lifestyle Application","wds"),BusinessApplication:(0,n.__)("Business Application","wds"),DesignApplication:(0,n.__)("Design Application","wds"),DeveloperApplication:(0,n.__)("Developer Application","wds"),DriverApplication:(0,n.__)("Driver Application","wds"),EducationalApplication:(0,n.__)("Educational Application","wds"),HealthApplication:(0,n.__)("Health Application","wds"),FinanceApplication:(0,n.__)("Finance Application","wds"),SecurityApplication:(0,n.__)("Security Application","wds"),BrowserApplication:(0,n.__)("Browser Application","wds"),CommunicationApplication:(0,n.__)("Communication Application","wds"),DesktopEnhancementApplication:(0,n.__)("Desktop Enhancement Application","wds"),EntertainmentApplication:(0,n.__)("Entertainment Application","wds"),MultimediaApplication:(0,n.__)("Multimedia Application","wds"),HomeApplication:(0,n.__)("Home Application","wds"),UtilitiesApplication:(0,n.__)("Utilities Application","wds"),ReferenceApplication:(0,n.__)("Reference Application","wds")}}},description:(0,n.__)("The type of app (for example, BusinessApplication or GameApplication). The value must be a supported app type.","wds")},operatingSystem:{id:bo(),label:(0,n.__)("Operating System","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The operating system(s) required to use the app (for example, Windows 7, OSX 10.6, Android 1.6).","wds"),placeholder:(0,n.__)("E.g. Android 1.6","wds")},screenshot:{id:bo(),label:(0,n.__)("Screenshots","wds"),labelSingle:(0,n.__)("Screenshot","wds"),description:(0,n.__)("Screenshots of the app.","wds"),properties:{0:{id:bo(),label:(0,n.__)("Screenshot","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},offers:{id:bo(),label:(0,n.__)("Price","wds"),description:(0,n.__)("Price information for the app.","wds"),properties:_o,disallowAddition:!0},aggregateRating:{id:bo(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:fo,description:(0,n.__)("A nested aggregateRating of the app.","wds"),required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review or aggregateRating.","wds")},review:{id:bo(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),properties:{0:{id:bo(),type:"Review",properties:go}},description:(0,n.__)("Reviews of the app.","wds"),required:!0,requiredNotice:(0,n.__)("This property is required by Google. You must include at least one of the following properties: review or aggregateRating.","wds")},softwareVersion:{id:bo(),label:(0,n.__)("Software Version","wds"),description:(0,n.__)("Version of the software instance.","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 1.0.1","wds"),optional:!0},releaseNotes:{id:bo(),label:(0,n.__)("Release Notes","wds"),description:(0,n.__)("Description of what changed in this version.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},downloadUrl:{id:bo(),label:(0,n.__)("Download URL","wds"),description:(0,n.__)("If the file can be downloaded, URL to download the binary.","wds"),type:"URL",source:"custom_text",value:"",optional:!0},installUrl:{id:bo(),label:(0,n.__)("Install URL","wds"),description:(0,n.__)("URL at which the app may be installed, if different from the URL of the item.","wds"),type:"URL",source:"custom_text",value:"",optional:!0},featureList:{id:bo(),label:(0,n.__)("Feature List","wds"),description:(0,n.__)("Features or modules provided by this application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},fileSize:{id:bo(),label:(0,n.__)("File Size","wds"),description:(0,n.__)("Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed.","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 18MB","wds"),optional:!0},memoryRequirements:{id:bo(),label:(0,n.__)("Memory Requirements","wds"),description:(0,n.__)("Minimum memory requirements.","wds"),type:"Text",source:"custom_text",value:"",optional:!0},storageRequirements:{id:bo(),label:(0,n.__)("Storage Requirements"),description:(0,n.__)("Storage requirements (free space required).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. 21MB","wds"),optional:!0},processorRequirements:{id:bo(),label:(0,n.__)("Processor Requirements","wds"),description:(0,n.__)("Processor architecture required to run the application (e.g. IA64).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. IA64","wds"),optional:!0},softwareRequirements:{id:bo(),label:(0,n.__)("Software Requirements","wds"),description:(0,n.__)("Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. DirectX","wds"),optional:!0},permissions:{id:bo(),label:(0,n.__)("Permissions","wds"),description:(0,n.__)("Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi).","wds"),type:"Text",source:"custom_text",value:"",optional:!0},applicationSuite:{id:bo(),label:(0,n.__)("Application Suite","wds"),description:(0,n.__)("The name of the application suite to which the application belongs (e.g. Excel belongs to Office).","wds"),type:"Text",source:"custom_text",value:"",placeholder:(0,n.__)("E.g. Microsoft Office","wds"),optional:!0},availableOnDevice:{id:bo(),label:(0,n.__)("Available On Device","wds"),description:(0,n.__)("Device required to run the application. Used in cases where a specific make/model is required to run the application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0}};const To=P();var So=H()({},vo,{carrierRequirements:{id:To(),label:(0,n.__)("Carrier Requirements","wds"),description:(0,n.__)("Specifies specific carrier(s) requirements for the application.","wds"),type:"Text",source:"custom_text",value:"",optional:!0}});const xo=P();var Ao=H()({},vo,{browserRequirements:{id:xo(),label:(0,n.__)("Browser Requirements","wds"),description:(0,n.__)("Specifies browser requirements in human-readable text.","wds"),type:"Text",source:"custom_text",value:"",optional:!0,placeholder:(0,n.__)("E.g. requires HTML5 support","wds")}});const Co=P();var Eo={name:{id:Co(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the person.","wds")},url:{id:Co(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the person's profile.","wds")},image:{id:Co(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The profile image of the person.","wds")}};const Po=P();var Oo={logo:{id:Po(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"image",value:"",description:(0,n.__)("The logo of the organization.","wds")},name:{id:Po(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"custom_text",value:"",description:(0,n.__)("The name of the organization.","wds")},url:{id:Po(),label:(0,n.__)("URL","wds"),type:"URL",source:"custom_text",value:"",description:(0,n.__)("The URL of the organization.","wds")}},Do=H()({},Eo,{name:{disallowDeletion:!0},url:{disallowDeletion:!0},image:{disallowDeletion:!0}});const ko=P();var Ro={name:{id:ko(),label:(0,n.__)("Name","wds"),description:(0,n.__)("The name of the movie.","wds"),type:"TextFull",source:"post_data",value:"post_title",required:!0},dateCreated:{id:ko(),label:(0,n.__)("Release Date","wds"),description:(0,n.__)("The date the movie was released.","wds"),type:"DateTime",source:"datetime",value:""},image:{id:ko(),label:(0,n.__)("Images","wds"),labelSingle:(0,n.__)("Image","wds"),description:(0,n.__)("An image that represents the movie. Images must have a high resolution and have a 6:9 aspect ratio. While Google can crop images that are close to a 6:9 aspect ratio, images largely deviating from this ratio aren't eligible for the feature.","wds"),required:!0,properties:{0:{id:ko(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},director:{id:ko(),label:(0,n.__)("Director","wds"),description:(0,n.__)("The director of the movie.","wds"),type:"Person",properties:Eo},aggregateRating:{id:ko(),label:(0,n.__)("Aggregate Rating","wds"),type:"AggregateRating",properties:re,description:(0,n.__)("A nested aggregateRating of the movie.","wds"),optional:!0},review:{id:ko(),label:(0,n.__)("Reviews","wds"),labelSingle:(0,n.__)("Review","wds"),description:(0,n.__)("Reviews of the movie.","wds"),optional:!0,properties:{0:{id:ko(),type:"Review",properties:he}}},actor:{id:ko(),label:(0,n.__)("Actors","wds"),labelSingle:(0,n.__)("Actor","wds"),description:(0,n.__)("Actors working in the movie","wds"),optional:!0,properties:{0:{id:ko(),type:"Person",properties:Do}}},countryOfOrigin:{id:ko(),label:(0,n.__)("Country Of Origin","wds"),type:"Country",flatten:!0,optional:!0,properties:{name:{id:ko(),label:(0,n.__)("Country Of Origin","wds"),type:"Text",source:"custom_text",value:"",description:(0,n.__)("The country of the principal offices of the production company or individual responsible for the movie.","wds"),placeholder:(0,n.__)("E.g. USA","wds")}}},duration:{id:ko(),label:(0,n.__)("Duration","wds"),description:(0,n.__)("The duration of the item in ISO 8601 date format.","wds"),type:"Duration",source:"duration",value:"",optional:!0,placeholder:(0,n.__)("E.g. PT00H30M5S","wds")},musicBy:{id:ko(),label:(0,n.__)("Music By","wds"),description:(0,n.__)("The composer of the soundtrack.","wds"),type:"Person",optional:!0,properties:Eo},productionCompany:{id:ko(),label:(0,n.__)("Production Company","wds"),type:"Organization",optional:!0,description:(0,n.__)("The production company or studio responsible for the movie.","wds"),properties:Oo}};const No=P();var Io={streetAddress:{id:No(),label:(0,n.__)("Street Address","wds"),type:"Text",source:"custom_text",value:""},addressLocality:{id:No(),label:(0,n.__)("Address Locality","wds"),type:"Text",source:"custom_text",value:""},addressRegion:{id:No(),label:(0,n.__)("Province/State","wds"),type:"Text",source:"custom_text",value:""},addressCountry:{id:No(),label:(0,n.__)("Country","wds"),type:"Text",source:"custom_text",value:""},postalCode:{id:No(),label:(0,n.__)("Postal Code","wds"),type:"Text",source:"custom_text",value:""},postOfficeBoxNumber:{id:No(),label:(0,n.__)("P.O. Box Number","wds"),type:"Text",source:"custom_text",value:""}};const Lo=P();var Mo={telephone:{id:Lo(),label:(0,n.__)("Phone Number","wds"),type:"Phone",source:"schema_settings",value:"organization_phone_number"},email:{id:Lo(),label:(0,n.__)("Email","wds"),type:"Email",source:"site_settings",value:"site_admin_email"},url:{id:Lo(),label:(0,n.__)("Contact URL","wds"),type:"URL",source:"site_settings",value:"site_url"},contactType:{id:Lo(),label:(0,n.__)("Contact Type","wds"),type:"Text",source:"options",value:"customer support",customSources:{options:{label:(0,n.__)("Contact Type","wds"),values:{"customer support":(0,n.__)("Customer Support","wds"),"technical support":(0,n.__)("Technical Support","wds"),"billing support":(0,n.__)("Billing Support","wds"),"bill payment":(0,n.__)("Bill payment","wds"),sales:(0,n.__)("Sales","wds"),reservations:(0,n.__)("Reservations","wds"),"credit card support":(0,n.__)("Credit Card Support","wds"),emergency:(0,n.__)("Emergency","wds"),"baggage tracking":(0,n.__)("Baggage Tracking","wds"),"roadside assistance":(0,n.__)("Roadside Assistance","wds"),"package tracking":(0,n.__)("Package Tracking","wds")}}}}};const Fo=P();var jo={logo:{id:Fo(),label:(0,n.__)("Logo","wds"),type:"ImageObject",source:"schema_settings",value:"organization_logo"},name:{id:Fo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"schema_settings",value:"organization_name"},url:{id:Fo(),label:(0,n.__)("URL","wds"),type:"URL",source:"site_settings",value:"site_url"},address:{id:Fo(),label:(0,n.__)("Address","wds"),optional:!0,properties:{0:{id:Fo(),type:"PostalAddress",properties:Io}}},contactPoint:{id:Fo(),label:(0,n.__)("Contact Point","wds"),optional:!0,properties:{0:{id:Fo(),type:"ContactPoint",properties:Mo}}}};const qo=P();var Vo={headline:{id:qo(),label:(0,n.__)("Headline","wds"),type:"TextFull",source:"seo_meta",value:"seo_title"},name:{id:qo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"post_data",value:"post_title"},url:{id:qo(),label:(0,n.__)("URL","wds"),type:"URL",source:"post_data",value:"post_permalink"},description:{id:qo(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"seo_meta",value:"seo_description"},primaryImageOfPage:{id:qo(),label:(0,n.__)("Primary Image Of Page","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"},thumbnailUrl:{id:qo(),label:(0,n.__)("Thumbnail URL","wds"),type:"ImageURL",source:"post_data",value:"post_thumbnail_url"},lastReviewed:{id:qo(),label:(0,n.__)("Last Reviewed","wds"),type:"DateTime",source:"post_data",value:"post_modified",optional:!0},dateModified:{id:qo(),label:(0,n.__)("Date Modified","wds"),type:"DateTime",source:"post_data",value:"post_modified"},datePublished:{id:qo(),label:(0,n.__)("Date Published","wds"),type:"DateTime",source:"post_data",value:"post_date"},articleBody:{id:qo(),label:(0,n.__)("Article Body","wds"),type:"TextFull",source:"post_data",value:"post_content",optional:!0},alternativeHeadline:{id:qo(),label:(0,n.__)("Alternative Headline","wds"),type:"TextFull",source:"post_data",value:"post_title",optional:!0},relatedLink:{id:qo(),label:(0,n.__)("Related Link","wds"),type:"URL",source:"custom_text",value:"",optional:!0},significantLink:{id:qo(),label:(0,n.__)("Significant Link","wds"),type:"URL",source:"custom_text",value:"",optional:!0},image:{id:qo(),label:(0,n.__)("Images","wds"),label_single:(0,n.__)("Image","wds"),properties:{0:{id:qo(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"post_data",value:"post_thumbnail"}}},author:{id:qo(),label:(0,n.__)("Author","wds"),type:"Person",properties:{name:{id:qo(),label:(0,n.__)("Name","wds"),type:"TextFull",source:"author",value:"author_full_name"},url:{id:qo(),label:(0,n.__)("URL","wds"),type:"URL",source:"author",value:"author_url"},description:{id:qo(),label:(0,n.__)("Description","wds"),type:"TextFull",source:"author",value:"author_description",optional:!0},image:{id:qo(),label:(0,n.__)("Image","wds"),type:"ImageObject",source:"author",value:"author_gravatar"}}},publisher:{id:qo(),label:(0,n.__)("Publisher","wds"),type:"Organization",properties:jo}};function Uo(e,t,o){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to get private static field before its declaration")}(o),function(e,t){return t.get?t.get.call(e):t.value}(e,o)}const Bo=P(),zo={Article:{label:(0,n.__)("Article","wds"),icon:"wds-custom-icon-file-alt",properties:V},BlogPosting:{label:(0,n.__)("Blog Posting","wds"),icon:"wds-custom-icon-blog",parent:"Article"},NewsArticle:{label:(0,n.__)("News Article","wds"),icon:"wds-custom-icon-newspaper",parent:"Article"},Book:{label:(0,n.__)("Book","wds"),icon:"wds-custom-icon-book",properties:Qt,subText:(0,e.createInterpolateElement)((0,n.__)("Note: Rich Results Test supports the Books Schema type for a limited number of sites for the time being, so please go to the <a>Structured Data testing tool</a> to check your book type.","wds"),{a:(0,e.createElement)("a",{target:"_blank",href:"https://search.google.com/structured-data/testing-tool/u/0/"})})},Course:{label:(0,n.__)("Course","wds"),icon:"wds-custom-icon-graduation-cap",properties:ho},Event:{label:(0,n.__)("Event","wds"),icon:"wds-custom-icon-calendar-check",properties:_e},FAQPage:{label:(0,n.__)("FAQ Page","wds"),icon:"wds-custom-icon-question-circle",properties:Ge},HowTo:{label:(0,n.__)("How To","wds"),icon:"wds-custom-icon-list-alt",properties:Je},JobPosting:{label:(0,n.__)("Job Posting","wds"),icon:"wds-custom-icon-user-tie",properties:Wt},LocalBusiness:{label:(0,n.__)("Local Business","wds"),icon:"wds-custom-icon-store",condition:{id:Bo(),lhs:"homepage",operator:"=",rhs:""},properties:_t,afterAdditionNotice:(0,n.sprintf)((0,n.__)("If you wish to add a Local Business with <strong>multiple locations</strong>, you can easily do this by duplicating your Local Business type and editing the properties. Alternatively, you can just add a new Local Business type. To learn more, see our %s."),(0,n.sprintf)('<a target="_blank" href="https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema">%s</a>',(0,n.__)("Schema Documentation","wds")))},AnimalShelter:{label:(0,n.__)("Animal Shelter","wds"),icon:"wds-custom-icon-paw",parent:"LocalBusiness"},AutomotiveBusiness:{label:(0,n.__)("Automotive Business","wds"),icon:"wds-custom-icon-car",parent:"LocalBusiness"},AutoBodyShop:{label:(0,n.__)("Auto Body Shop","wds"),icon:"wds-custom-icon-car-building",parent:"AutomotiveBusiness"},AutoDealer:{label:(0,n.__)("Auto Dealer","wds"),icon:"wds-custom-icon-car-garage",parent:"AutomotiveBusiness"},AutoPartsStore:{label:(0,n.__)("Auto Parts Store","wds"),icon:"wds-custom-icon-tire",parent:"AutomotiveBusiness"},AutoRental:{label:(0,n.__)("Auto Rental","wds"),icon:"wds-custom-icon-garage-car",parent:"AutomotiveBusiness"},AutoRepair:{label:(0,n.__)("Auto Repair","wds"),icon:"wds-custom-icon-car-mechanic",parent:"AutomotiveBusiness"},AutoWash:{label:(0,n.__)("Auto Wash","wds"),icon:"wds-custom-icon-car-wash",parent:"AutomotiveBusiness"},GasStation:{label:(0,n.__)("Gas Station","wds"),icon:"wds-custom-icon-gas-pump",parent:"AutomotiveBusiness"},MotorcycleDealer:{label:(0,n.__)("Motorcycle Dealer","wds"),icon:"wds-custom-icon-motorcycle",parent:"AutomotiveBusiness"},MotorcycleRepair:{label:(0,n.__)("Motorcycle Repair","wds"),icon:"wds-custom-icon-tools",parent:"AutomotiveBusiness"},ChildCare:{label:(0,n.__)("Child Care","wds"),icon:"wds-custom-icon-baby",parent:"LocalBusiness"},DryCleaningOrLaundry:{label:(0,n.__)("Dry Cleaning Or Laundry","wds"),icon:"wds-custom-icon-washer",parent:"LocalBusiness"},EmergencyService:{label:(0,n.__)("Emergency Service","wds"),icon:"wds-custom-icon-siren-on",parent:"LocalBusiness"},FireStation:{label:(0,n.__)("Fire Station","wds"),icon:"wds-custom-icon-fire-extinguisher",parent:"EmergencyService"},Hospital:{label:(0,n.__)("Hospital","wds"),icon:"wds-custom-icon-hospital-alt",parent:"EmergencyService"},PoliceStation:{label:(0,n.__)("Police Station","wds"),icon:"wds-custom-icon-police-box",parent:"EmergencyService"},EmploymentAgency:{label:(0,n.__)("Employment Agency","wds"),icon:"wds-custom-icon-user-tie",parent:"LocalBusiness"},EntertainmentBusiness:{label:(0,n.__)("Entertainment Business","wds"),icon:"wds-custom-icon-tv-music",parent:"LocalBusiness"},AdultEntertainment:{label:(0,n.__)("Adult Entertainment","wds"),icon:"wds-custom-icon-diamond",parent:"EntertainmentBusiness"},AmusementPark:{label:(0,n.__)("Amusement Park","wds"),icon:"wds-custom-icon-helicopter",parent:"EntertainmentBusiness"},ArtGallery:{label:(0,n.__)("Art Gallery","wds"),icon:"wds-custom-icon-image",parent:"EntertainmentBusiness"},Casino:{label:(0,n.__)("Casino","wds"),icon:"wds-custom-icon-coins",parent:"EntertainmentBusiness"},ComedyClub:{label:(0,n.__)("Comedy Club","wds"),icon:"wds-custom-icon-theater-masks",parent:"EntertainmentBusiness"},MovieTheater:{label:(0,n.__)("Movie Theater","wds"),icon:"wds-custom-icon-camera-movie",parent:"EntertainmentBusiness"},NightClub:{label:(0,n.__)("Night Club","wds"),icon:"wds-custom-icon-cocktail",parent:"EntertainmentBusiness"},FinancialService:{label:(0,n.__)("Financial Service","wds"),icon:"wds-custom-icon-briefcase",parent:"LocalBusiness"},AccountingService:{label:(0,n.__)("Accounting Service","wds"),icon:"wds-custom-icon-cabinet-filing",parent:"FinancialService"},AutomatedTeller:{label:(0,n.__)("Automated Teller","wds"),icon:"wds-custom-icon-credit-card",parent:"FinancialService"},BankOrCreditUnion:{label:(0,n.__)("Bank Or Credit Union","wds"),icon:"wds-custom-icon-landmark",parent:"FinancialService"},InsuranceAgency:{label:(0,n.__)("Insurance Agency","wds"),icon:"wds-custom-icon-car-crash",parent:"FinancialService"},FoodEstablishment:{label:(0,n.__)("Food Establishment","wds"),icon:"wds-custom-icon-carrot",condition:{id:Bo(),lhs:"homepage",operator:"=",rhs:""},parent:"LocalBusiness",properties:ft},Bakery:{label:(0,n.__)("Bakery","wds"),icon:"wds-custom-icon-croissant",parent:"FoodEstablishment"},BarOrPub:{label:(0,n.__)("Bar Or Pub","wds"),icon:"wds-custom-icon-glass-whiskey-rocks",parent:"FoodEstablishment"},Brewery:{label:(0,n.__)("Brewery","wds"),icon:"wds-custom-icon-beer",parent:"FoodEstablishment"},CafeOrCoffeeShop:{label:(0,n.__)("Cafe Or Coffee Shop","wds"),icon:"wds-custom-icon-coffee",parent:"FoodEstablishment"},Distillery:{label:(0,n.__)("Distillery","wds"),icon:"wds-custom-icon-flask-potion",parent:"FoodEstablishment"},FastFoodRestaurant:{label:(0,n.__)("Fast Food Restaurant","wds"),icon:"wds-custom-icon-burger-soda",parent:"FoodEstablishment"},IceCreamShop:{label:(0,n.__)("Ice Cream Shop","wds"),icon:"wds-custom-icon-ice-cream",parent:"FoodEstablishment"},Restaurant:{label:(0,n.__)("Restaurant","wds"),icon:"wds-custom-icon-utensils-alt",parent:"FoodEstablishment"},Winery:{label:(0,n.__)("Winery","wds"),icon:"wds-custom-icon-wine-glass-alt",parent:"FoodEstablishment"},GovernmentOffice:{label:(0,n.__)("Government Office","wds"),icon:"wds-custom-icon-university",parent:"LocalBusiness"},PostOffice:{label:(0,n.__)("Post Office","wds"),icon:"wds-custom-icon-mailbox",parent:"GovernmentOffice"},HealthAndBeautyBusiness:{label:(0,n.__)("Health And Beauty","wds"),labelFull:(0,n.__)("Health And Beauty Business","wds"),icon:"wds-custom-icon-heartbeat",parent:"LocalBusiness"},BeautySalon:{label:(0,n.__)("Beauty Salon","wds"),icon:"wds-custom-icon-lips",parent:"HealthAndBeautyBusiness"},DaySpa:{label:(0,n.__)("Day Spa","wds"),icon:"wds-custom-icon-spa",parent:"HealthAndBeautyBusiness"},HairSalon:{label:(0,n.__)("Hair Salon","wds"),icon:"wds-custom-icon-cut",parent:"HealthAndBeautyBusiness"},HealthClub:{label:(0,n.__)("Health Club","wds"),icon:"wds-custom-icon-notes-medical",parent:"HealthAndBeautyBusiness"},NailSalon:{label:(0,n.__)("Nail Salon","wds"),icon:"wds-custom-icon-hands-heart",parent:"HealthAndBeautyBusiness"},TattooParlor:{label:(0,n.__)("Tattoo Parlor","wds"),icon:"wds-custom-icon-moon-stars",parent:"HealthAndBeautyBusiness"},HomeAndConstructionBusiness:{label:(0,n.__)("Home And Construction","wds"),labelFull:(0,n.__)("Home And Construction Business","wds"),icon:"wds-custom-icon-home-heart",parent:"LocalBusiness"},Electrician:{label:(0,n.__)("Electrician","wds"),icon:"wds-custom-icon-bolt",parent:"HomeAndConstructionBusiness"},GeneralContractor:{label:(0,n.__)("General Contractor","wds"),icon:"wds-custom-icon-house-leave",parent:"HomeAndConstructionBusiness"},HVACBusiness:{label:(0,n.__)("HVACBusiness","wds"),icon:"wds-custom-icon-temperature-frigid",parent:"HomeAndConstructionBusiness"},HousePainter:{label:(0,n.__)("House Painter","wds"),icon:"wds-custom-icon-paint-roller",parent:"HomeAndConstructionBusiness"},Locksmith:{label:(0,n.__)("Locksmith","wds"),icon:"wds-custom-icon-key",parent:"HomeAndConstructionBusiness"},MovingCompany:{label:(0,n.__)("Moving Company","wds"),icon:"wds-custom-icon-dolly",parent:"HomeAndConstructionBusiness"},Plumber:{label:(0,n.__)("Plumber","wds"),icon:"wds-custom-icon-faucet",parent:"HomeAndConstructionBusiness"},RoofingContractor:{label:(0,n.__)("Roofing Contractor","wds"),icon:"wds-custom-icon-home",parent:"HomeAndConstructionBusiness"},InternetCafe:{label:(0,n.__)("Internet Cafe","wds"),icon:"wds-custom-icon-mug-hot",parent:"LocalBusiness"},LegalService:{label:(0,n.__)("Legal Service","wds"),icon:"wds-custom-icon-balance-scale-right",parent:"LocalBusiness"},Attorney:{label:(0,n.__)("Attorney","wds"),icon:"wds-custom-icon-gavel",parent:"LegalService"},Notary:{label:(0,n.__)("Notary","wds"),icon:"wds-custom-icon-pen-alt",parent:"LegalService"},Library:{label:(0,n.__)("Library","wds"),icon:"wds-custom-icon-books",parent:"LocalBusiness"},LodgingBusiness:{label:(0,n.__)("Lodging Business","wds"),icon:"wds-custom-icon-bed",parent:"LocalBusiness"},BedAndBreakfast:{label:(0,n.__)("Bed And Breakfast","wds"),icon:"wds-custom-icon-bed-empty",parent:"LodgingBusiness"},Campground:{label:(0,n.__)("Campground","wds"),icon:"wds-custom-icon-campground",parent:"LodgingBusiness"},Hostel:{label:(0,n.__)("Hostel","wds"),icon:"wds-custom-icon-bed-bunk",parent:"LodgingBusiness"},Hotel:{label:(0,n.__)("Hotel","wds"),icon:"wds-custom-icon-h-square",parent:"LodgingBusiness"},Motel:{label:(0,n.__)("Motel","wds"),icon:"wds-custom-icon-concierge-bell",parent:"LodgingBusiness"},Resort:{label:(0,n.__)("Resort","wds"),icon:"wds-custom-icon-umbrella-beach",parent:"LodgingBusiness"},MedicalBusiness:{label:(0,n.__)("Medical Business","wds"),icon:"wds-custom-icon-clinic-medical",parent:"LocalBusiness"},CommunityHealth:{label:(0,n.__)("Community Health","wds"),icon:"wds-custom-icon-hospital-user",parent:"MedicalBusiness"},Dentist:{label:(0,n.__)("Dentist","wds"),icon:"wds-custom-icon-tooth",parent:"MedicalBusiness"},Dermatology:{label:(0,n.__)("Dermatology","wds"),icon:"wds-custom-icon-allergies",parent:"MedicalBusiness"},DietNutrition:{label:(0,n.__)("Diet Nutrition","wds"),icon:"wds-custom-icon-weight",parent:"MedicalBusiness"},Emergency:{label:(0,n.__)("Emergency","wds"),icon:"wds-custom-icon-ambulance",parent:"MedicalBusiness"},Geriatric:{label:(0,n.__)("Geriatric","wds"),icon:"wds-custom-icon-loveseat",parent:"MedicalBusiness"},Gynecologic:{label:(0,n.__)("Gynecologic","wds"),icon:"wds-custom-icon-female",parent:"MedicalBusiness"},MedicalClinic:{label:(0,n.__)("Medical Clinic","wds"),icon:"wds-custom-icon-clinic-medical",parent:"MedicalBusiness"},Midwifery:{label:(0,n.__)("Midwifery","wds"),icon:"wds-custom-icon-baby",parent:"MedicalBusiness"},Nursing:{label:(0,n.__)("Nursing","wds"),icon:"wds-custom-icon-user-nurse",parent:"MedicalBusiness"},Obstetric:{label:(0,n.__)("Obstetric","wds"),icon:"wds-custom-icon-baby",parent:"MedicalBusiness"},Oncologic:{label:(0,n.__)("Oncologic","wds"),icon:"wds-custom-icon-user-md",parent:"MedicalBusiness"},Optician:{label:(0,n.__)("Optician","wds"),icon:"wds-custom-icon-eye",parent:"MedicalBusiness"},Optometric:{label:(0,n.__)("Optometric","wds"),icon:"wds-custom-icon-glasses-alt",parent:"MedicalBusiness"},Otolaryngologic:{label:(0,n.__)("Otolaryngologic","wds"),icon:"wds-custom-icon-user-md-chat",parent:"MedicalBusiness"},Pediatric:{label:(0,n.__)("Pediatric","wds"),icon:"wds-custom-icon-child",parent:"MedicalBusiness"},Pharmacy:{label:(0,n.__)("Pharmacy","wds"),icon:"wds-custom-icon-pills",parent:"MedicalBusiness"},Physician:{label:(0,n.__)("Physician","wds"),icon:"wds-custom-icon-user-md",parent:"MedicalBusiness"},Physiotherapy:{label:(0,n.__)("Physiotherapy","wds"),icon:"wds-custom-icon-user-injured",parent:"MedicalBusiness"},PlasticSurgery:{label:(0,n.__)("Plastic Surgery","wds"),icon:"wds-custom-icon-lips",parent:"MedicalBusiness"},Podiatric:{label:(0,n.__)("Podiatric","wds"),icon:"wds-custom-icon-shoe-prints",parent:"MedicalBusiness"},PrimaryCare:{label:(0,n.__)("Primary Care","wds"),icon:"wds-custom-icon-comment-alt-medical",parent:"MedicalBusiness"},Psychiatric:{label:(0,n.__)("Psychiatric","wds"),icon:"wds-custom-icon-head-side-brain",parent:"MedicalBusiness"},PublicHealth:{label:(0,n.__)("Public Health","wds"),icon:"wds-custom-icon-clipboard-user",parent:"MedicalBusiness"},ProfessionalService:{label:(0,n.__)("Professional Service","wds"),icon:"wds-custom-icon-user-hard-hat",parent:"LocalBusiness"},RadioStation:{label:(0,n.__)("Radio Station","wds"),icon:"wds-custom-icon-radio",parent:"LocalBusiness"},RealEstateAgent:{label:(0,n.__)("Real Estate Agent","wds"),icon:"wds-custom-icon-sign",parent:"LocalBusiness"},RecyclingCenter:{label:(0,n.__)("Recycling Center","wds"),icon:"wds-custom-icon-recycle",parent:"LocalBusiness"},SelfStorage:{label:(0,n.__)("Self Storage","wds"),icon:"wds-custom-icon-warehouse-alt",parent:"LocalBusiness"},ShoppingCenter:{label:(0,n.__)("Shopping Center","wds"),icon:"wds-custom-icon-bags-shopping",parent:"LocalBusiness"},SportsActivityLocation:{label:(0,n.__)("Sports Activity Location","wds"),icon:"wds-custom-icon-volleyball-ball",parent:"LocalBusiness"},BowlingAlley:{label:(0,n.__)("Bowling Alley","wds"),icon:"wds-custom-icon-bowling-pins",parent:"SportsActivityLocation"},ExerciseGym:{label:(0,n.__)("Exercise Gym","wds"),icon:"wds-custom-icon-dumbbell",parent:"SportsActivityLocation"},GolfCourse:{label:(0,n.__)("Golf Course","wds"),icon:"wds-custom-icon-golf-club",parent:"SportsActivityLocation"},PublicSwimmingPool:{label:(0,n.__)("Public Swimming Pool","wds"),icon:"wds-custom-icon-swimmer",parent:"SportsActivityLocation"},SkiResort:{label:(0,n.__)("Ski Resort","wds"),icon:"wds-custom-icon-skiing",parent:"SportsActivityLocation"},SportsClub:{label:(0,n.__)("Sports Club","wds"),icon:"wds-custom-icon-football-ball",parent:"SportsActivityLocation"},StadiumOrArena:{label:(0,n.__)("Stadium Or Arena","wds"),icon:"wds-custom-icon-pennant",parent:"SportsActivityLocation"},TennisComplex:{label:(0,n.__)("Tennis Complex","wds"),icon:"wds-custom-icon-racquet",parent:"SportsActivityLocation"},Store:{label:(0,n.__)("Store","wds"),icon:"wds-custom-icon-store-alt",parent:"LocalBusiness"},BikeStore:{label:(0,n.__)("Bike Store","wds"),icon:"wds-custom-icon-bicycle",parent:"Store"},BookStore:{label:(0,n.__)("Book Store","wds"),icon:"wds-custom-icon-book",parent:"Store"},ClothingStore:{label:(0,n.__)("Clothing Store","wds"),icon:"wds-custom-icon-tshirt",parent:"Store"},ComputerStore:{label:(0,n.__)("Computer Store","wds"),icon:"wds-custom-icon-laptop",parent:"Store"},ConvenienceStore:{label:(0,n.__)("Convenience Store","wds"),icon:"wds-custom-icon-shopping-basket",parent:"Store"},DepartmentStore:{label:(0,n.__)("Department Store","wds"),icon:"wds-custom-icon-bags-shopping",parent:"Store"},ElectronicsStore:{label:(0,n.__)("Electronics Store","wds"),icon:"wds-custom-icon-boombox",parent:"Store"},Florist:{label:(0,n.__)("Florist","wds"),icon:"wds-custom-icon-flower-daffodil",parent:"Store"},FurnitureStore:{label:(0,n.__)("Furniture Store","wds"),icon:"wds-custom-icon-chair",parent:"Store"},GardenStore:{label:(0,n.__)("Garden Store","wds"),icon:"wds-custom-icon-seedling",parent:"Store"},GroceryStore:{label:(0,n.__)("Grocery Store","wds"),icon:"wds-custom-icon-shopping-cart",parent:"Store"},HardwareStore:{label:(0,n.__)("Hardware Store","wds"),icon:"wds-custom-icon-computer-speaker",parent:"Store"},HobbyShop:{label:(0,n.__)("Hobby Shop","wds"),icon:"wds-custom-icon-game-board",parent:"Store"},HomeGoodsStore:{label:(0,n.__)("Home Goods Store","wds"),icon:"wds-custom-icon-coffee-pot",parent:"Store"},JewelryStore:{label:(0,n.__)("Jewelry Store","wds"),icon:"wds-custom-icon-rings-wedding",parent:"Store"},LiquorStore:{label:(0,n.__)("Liquor Store","wds"),icon:"wds-custom-icon-jug",parent:"Store"},MensClothingStore:{label:(0,n.__)("Mens Clothing Store","wds"),icon:"wds-custom-icon-user-tie",parent:"Store"},MobilePhoneStore:{label:(0,n.__)("Mobile Phone Store","wds"),icon:"wds-custom-icon-mobile-alt",parent:"Store"},MovieRentalStore:{label:(0,n.__)("Movie Rental Store","wds"),icon:"wds-custom-icon-film",parent:"Store"},MusicStore:{label:(0,n.__)("Music Store","wds"),icon:"wds-custom-icon-album-collection",parent:"Store"},OfficeEquipmentStore:{label:(0,n.__)("Office Equipment Store","wds"),icon:"wds-custom-icon-chair-office",parent:"Store"},OutletStore:{label:(0,n.__)("Outlet Store","wds"),icon:"wds-custom-icon-tags",parent:"Store"},PawnShop:{label:(0,n.__)("Pawn Shop","wds"),icon:"wds-custom-icon-ring",parent:"Store"},PetStore:{label:(0,n.__)("Pet Store","wds"),icon:"wds-custom-icon-dog-leashed",parent:"Store"},ShoeStore:{label:(0,n.__)("Shoe Store","wds"),icon:"wds-custom-icon-boot",parent:"Store"},SportingGoodsStore:{label:(0,n.__)("Sporting Goods Store","wds"),icon:"wds-custom-icon-baseball",parent:"Store"},TireShop:{label:(0,n.__)("Tire Shop","wds"),icon:"wds-custom-icon-tire",parent:"Store"},ToyStore:{label:(0,n.__)("Toy Store","wds"),icon:"wds-custom-icon-gamepad-alt",parent:"Store"},WholesaleStore:{label:(0,n.__)("Wholesale Store","wds"),icon:"wds-custom-icon-boxes-alt",parent:"Store"},TelevisionStation:{label:(0,n.__)("Television Station","wds"),icon:"wds-custom-icon-tv-retro",parent:"LocalBusiness"},TouristInformationCenter:{label:(0,n.__)("Tourist Information Center","wds"),icon:"wds-custom-icon-map-marked-alt",parent:"LocalBusiness"},TravelAgency:{label:(0,n.__)("Travel Agency","wds"),icon:"wds-custom-icon-plane",parent:"LocalBusiness"},Movie:{icon:"wds-custom-icon-camera-movie",label:(0,n.__)("Movie","wds"),properties:Ro},Product:{icon:"wds-custom-icon-shopping-cart",label:(0,n.__)("Product","wds"),properties:ke,subText:(0,e.createInterpolateElement)((0,n.__)("Note: You must include one of the following properties: <strong>review</strong>, <strong>aggregateRating</strong> or <strong>offers</strong>. Once you include one of either a review or aggregateRating or offers, the other two properties will become recommended by the Rich Results Test.","wds"),{strong:(0,e.createElement)("strong",null)})},Recipe:{label:(0,n.__)("Recipe","wds"),icon:"wds-custom-icon-soup",properties:It},SoftwareApplication:{label:(0,n.__)("Software Application","wds"),icon:"wds-custom-icon-laptop-code",properties:vo,subText:(0,e.createInterpolateElement)((0,n.__)("Note: You must include one of the following properties: <strong>review</strong> or <strong>aggregateRating</strong>. Once you include one of either a review or aggregateRating, the other property will become recommended by the Rich Results Test.","wds"),{strong:(0,e.createElement)("strong",null)})},MobileApplication:{label:(0,n.__)("Mobile Application","wds"),icon:"wds-custom-icon-mobile-alt",properties:So,parent:"SoftwareApplication"},WebApplication:{label:(0,n.__)("Web Application","wds"),icon:"wds-custom-icon-browser",properties:Ao,parent:"SoftwareApplication"},WooProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("WooCommerce Product","wds"),condition:{id:Bo(),lhs:"post_type",operator:"=",rhs:"product"},properties:qe,disabled:!a.get("woocommerce","schema_types"),subTypesNotice:(0,e.createInterpolateElement)((0,n.__)("Note: Simple Product includes the <strong>Offer</strong> property, while Variable product includes the <strong>AggregateOffer</strong> property to fit the variation in pricing to your product.","wds"),{strong:(0,e.createElement)("strong",null)}),subText:(0,e.createInterpolateElement)((0,n.__)("Note: You must include one of the following properties: <strong>review</strong>, <strong>aggregateRating</strong> or <strong>offers</strong>. Once you include one of either a review or aggregateRating or offers, the other two properties will become recommended by the Rich Results Test.","wds"),{strong:(0,e.createElement)("strong",null)}),schemaReplacementNotice:(0,n.__)("On the pages where this schema type is printed, schema generated by WooCommerce will be replaced to avoid generating multiple product schemas for the same product page.","wds")},WooVariableProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("Variable Product","wds"),labelFull:(0,n.__)("WooCommerce Variable Product","wds"),condition:{id:Bo(),lhs:"product_type",operator:"=",rhs:"WC_Product_Variable"},disabled:!a.get("woocommerce","schema_types"),parent:"WooProduct"},WooSimpleProduct:{icon:"wds-custom-icon-woocommerce",label:(0,n.__)("Simple Product","wds"),labelFull:(0,n.__)("WooCommerce Simple Product","wds"),condition:{id:Bo(),lhs:"product_type",operator:"=",rhs:"WC_Product_Simple"},properties:yt,disabled:!a.get("woocommerce","schema_types"),parent:"WooProduct"},WebPage:{label:(0,n.__)("Web Page","wds"),icon:"",properties:Vo,hidden:!0}};class Ho{static getParentTree(e){let t={},o=e,i=zo[e];do{t=Object.assign({[o]:i},t),o=!(!i.parent||!zo.hasOwnProperty(i.parent))&&i.parent,i=!!o&&zo[o]}while(o);return t}static findDirectChildren(e){return Object.keys(zo).filter((t=>zo[t].parent===e))}static makeTypeData(e){const t=this.getParentTree(e),o=Object.assign({},...Object.values(t));return delete o.parent,o.children=this.findDirectChildren(e),o}static getType(e){return Uo(this,Ho,Go).hasOwnProperty(e)||(Uo(this,Ho,Go)[e]=this.makeTypeData(e)),Uo(this,Ho,Go)[e]}static getTopLevelTypeKeys(){return Object.keys(zo).filter((e=>!zo[e].parent))}}var Go={writable:!0,value:{}};class Wo extends i().Component{constructor(e){super(e),this.MODAL_STATE={TYPE:"type",LABEL:"label",CONDITION:"condition"},this.state={modalState:this.MODAL_STATE.TYPE,selectedTypes:[],addedTypes:[],typeLabel:"",searchTerm:"",typeConditions:[]}}switchModalState(e){this.setState({modalState:e})}isStateType(){return this.state.modalState===this.MODAL_STATE.TYPE}isStateLabel(){return this.state.modalState===this.MODAL_STATE.LABEL}isStateCondition(){return this.state.modalState===this.MODAL_STATE.CONDITION}switchToType(){this.switchModalState(this.MODAL_STATE.TYPE)}switchToLabel(){this.switchModalState(this.MODAL_STATE.LABEL)}switchToCondition(){this.switchModalState(this.MODAL_STATE.CONDITION)}clearSearchTerm(){this.setState({searchTerm:""})}setSearchTerm(e){this.setState({searchTerm:e})}handleNextButtonClick(){this.isStateType()?this.hasSubTypeOptions()?this.loadSubTypes():(this.setNewLabel(this.getDefaultTypeLabel()),this.switchToLabel()):this.isStateLabel()?(this.setDefaultCondition(this.getTypeToAdd()),this.switchToCondition()):this.addType()}handleBackButtonClick(){this.clearSearchTerm(),this.isStateType()?this.typesAdded()?this.loadPreviousTypes():this.props.onClose():this.isStateLabel()?this.switchToType():this.switchToLabel()}getTypeToAdd(){let e=!1;return this.state.selectedTypes.length?e=(0,w.first)(this.state.selectedTypes):this.typesAdded()&&(e=(0,w.last)(this.state.addedTypes)),e}addType(){const e=this.getDefaultTypeLabel();this.props.onAdd(this.getTypeToAdd(),this.state.typeLabel.trim()||e,this.state.typeConditions)}loadSubTypes(){const e=this.state.selectedTypes,t=this.state.addedTypes.slice();t.push((0,w.first)(e)),this.setState({selectedTypes:[],addedTypes:t})}hasSubTypeOptions(){const e=this.state.selectedTypes;return!!e.length&&!!this.getSubTypes((0,w.first)(e))}loadPreviousTypes(){const e=this.state.addedTypes.slice(),t=e.pop();this.setState({selectedTypes:[t],addedTypes:e})}getOptions(){const e=this.state.addedTypes;let t;if(e.length){if(t=this.getSubTypes((0,w.last)(e)),!t)return[]}else t=Ho.getTopLevelTypeKeys();return this.buildOptionsFromTypes(t)}getSubTypes(e){const t=Ho.getType(e);return!!t.children.length&&t.children}buildOptionsFromTypes(e){const t=[];return e.forEach((e=>{const o=Ho.getType(e);o.hidden||""!==this.state.searchTerm.trim()&&!this.typeOrSubtypeMatchesSearch(e)||t.push({id:e,label:o.label,icon:o.icon,disabled:!!o.disabled})})),t}getTypeSection(){const t=this.getOptions();return(0,e.createElement)(i().Fragment,null,this.breadcrumbs(),this.typesAdded()&&(0,e.createElement)("div",{id:"wds-search-sub-types"},(0,e.createElement)("div",{className:"sui-control-with-icon"},(0,e.createElement)("span",{className:"sui-icon-magnifying-glass-search","aria-hidden":"true"}),(0,e.createElement)("input",{type:"text",placeholder:(0,n.__)("Search subtypes","wds"),className:"sui-form-control",value:this.state.searchTerm,onChange:e=>this.setSearchTerm(e.target.value)}))),(0,e.createElement)(S,{id:"wds-add-schema-type-selector",options:t,selectedValues:this.state.selectedTypes,multiple:!1,cols:3,onChange:e=>this.handleSelection(e)}))}setNewLabel(e){this.setState({typeLabel:e})}getLabelSection(){const t=this.getDefaultTypeLabel();return(0,e.createElement)("div",{id:"wds-add-schema-type-label"},(0,e.createElement)("div",{className:"sui-form-field"},(0,e.createElement)("label",{className:"sui-label"},(0,n.__)("Type Name","wds")),(0,e.createElement)("input",{className:"sui-form-control",onChange:e=>this.setNewLabel(e.target.value),placeholder:t,value:this.state.typeLabel})))}handleSelection(e){this.setState({selectedTypes:e})}getSubTypesNotice(e){const t=Ho.getType(e);return t.children.length&&t.subTypesNotice||""}getTypeLabel(e){return Ho.getType(e).label}getTypeLabelFull(e){const t=Ho.getType(e);return t.labelFull||t.label}breadcrumbs(){const t=this.state.addedTypes.slice(),o=this.state.selectedTypes;if(o.length&&t.push((0,w.first)(o)),t.length)return(0,e.createElement)("div",{id:"wds-add-schema-type-breadcrumbs"},t.map((t=>(0,e.createElement)("span",{key:t},this.getTypeLabelFull(t),(0,e.createElement)("span",{className:"sui-icon-chevron-right","aria-hidden":"true"})))))}isNextButtonDisabled(){return!!this.isStateType()&&!this.state.selectedTypes.length&&!this.typesAdded()}typesAdded(){return!!this.state.addedTypes.length}getModalTitle(){return this.isStateType()&&this.typesAdded()?(0,e.createElement)(i().Fragment,null,(0,e.createElement)("span",{className:"sui-tag sui-tag-sm sui-tag-blue"},(0,n.__)("Optional","wds")),(0,e.createElement)("br",null),(0,n.__)("Select Sub Type","wds")):(0,n.__)("Add Schema Type","wds")}getModalDescription(){if(this.isStateType()){if(this.typesAdded()){const t=(0,w.last)(this.state.addedTypes);return(0,e.createElement)(i().Fragment,null,(0,n.sprintf)((0,n.__)("You can specify a subtype of %s, or you can skip this to add the generic type.","wds"),this.getTypeLabel(t)),(0,e.createElement)("br",null),this.getSubTypesNotice(t))}return(0,n.__)("Start by selecting the schema type you want to use. By default, all of the types will include the properties required and recommended by Google.","wds")}return this.isStateLabel()?(0,n.sprintf)((0,n.__)("Name your %s type so you can easily identify it.","wds"),this.getDefaultTypeLabel()):(0,n.__)("Create a set of rules to determine where this schema type will be enabled or excluded.","wds")}getDefaultTypeLabel(){return this.getTypeLabel(this.getTypeToAdd())}getConditionSection(){const t=this.state.typeConditions,o=this.getTypeToAdd();return(0,e.createElement)("div",{id:"wds-add-schema-type-conditions"},this.getConditionGroupElements(o,t),(0,e.createElement)(T,{text:(0,n.__)("Add Rule (Or)","wds"),ghost:!0,onClick:()=>this.addGroup(o),icon:"sui-icon-plus"}))}addGroup(e){const t=C()(this.state.typeConditions);t.push([this.getDefaultCondition(e)]),this.setState({typeConditions:t})}setDefaultCondition(e){const t=this.getDefaultCondition(e);this.setState({typeConditions:[[t]]})}getDefaultCondition(e){const t=Ho.getType(e),o={id:(0,w.uniqueId)(),lhs:"post_type",operator:"=",rhs:"post"};return t.condition?Object.assign({},t.condition,{id:(0,w.uniqueId)()}):o}getConditionGroupElements(t,o){return o.map(((o,i)=>{const s=(0,w.first)(o);return(0,e.createElement)("div",{key:s.id,className:"wds-schema-type-condition-group"},0===i&&(0,e.createElement)("span",null,(0,n.__)("Rule","wds")),0!==i&&(0,e.createElement)("span",null,(0,n.__)("Or","wds")),this.getConditionElements(t,o,i))}))}getConditionElements(t,o,i){return o.map(((o,s)=>(0,e.createElement)(h,{onChange:(e,t,o,i)=>this.updateCondition(e,t,o,i),onAdd:e=>this.addCondition(t,e),onDelete:e=>this.deleteCondition(e),disableDelete:0===i&&0===s,key:o.id,id:o.id,lhs:o.lhs,operator:o.operator,rhs:o.rhs})))}updateCondition(e,t,o,i){const s=C()(this.state.typeConditions),r=this.conditionGroupIndex(s,e),n=this.conditionIndex(s[r],e);s[r][n].lhs=t,s[r][n].operator=o,s[r][n].rhs=i,this.setState({typeConditions:s})}addCondition(e,t){const o=C()(this.state.typeConditions),i=this.conditionGroupIndex(o,t),s=this.conditionIndex(o[i],t)+1,r=this.getDefaultCondition(e);o[i].splice(s,0,r),this.setState({typeConditions:o})}deleteCondition(e){const t=C()(this.state.typeConditions),o=this.conditionGroupIndex(t,e),i=t[o];if(1===i.length)t.splice(o,1);else{const s=this.conditionIndex(i,e);t[o].splice(s,1)}this.setState({typeConditions:t})}conditionGroupIndex(e,t){return e.findIndex((e=>this.conditionIndex(e,t)>-1))}conditionIndex(e,t){return e.findIndex((e=>e.id===t))}stringIncludesSubstring(e,t){return e.toLowerCase().includes(t.toLowerCase())}typeMatchesSearch(e){return!!this.stringIncludesSubstring(e,this.state.searchTerm)||this.stringIncludesSubstring(this.getTypeLabel(e),this.state.searchTerm)}typeOrSubtypeMatchesSearch(e){if(this.typeMatchesSearch(e))return!0;const t=this.getSubTypes(e);if(t){let e=!1;return t.forEach((t=>{this.typeMatchesSearch(t)&&(e=!0)})),e}return!1}render(){return(0,e.createElement)(v,{id:"wds-add-schema-type-modal",title:this.getModalTitle(),onClose:()=>this.props.onClose(),small:!0,dialogClasses:{"sui-modal-lg":!0,"sui-modal-sm":!1},description:this.getModalDescription()},this.isStateType()&&this.getTypeSection(),this.isStateLabel()&&this.getLabelSection(),this.isStateCondition()&&this.getConditionSection(),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)(T,{text:(0,n.__)("Back","wds"),icon:"sui-icon-arrow-left",id:"wds-add-schema-type-back-button",onClick:()=>this.handleBackButtonClick(),ghost:!0}),!this.isStateCondition()&&(0,e.createElement)(T,{text:(0,n.__)("Continue","wds"),icon:"sui-icon-arrow-right",id:"wds-add-schema-type-action-button",onClick:()=>this.handleNextButtonClick(),disabled:this.isNextButtonDisabled()}),this.isStateCondition()&&(0,e.createElement)(T,{text:(0,n.__)("Add","wds"),icon:"sui-icon-plus",id:"wds-add-schema-type-action-button",color:"blue",onClick:()=>this.handleNextButtonClick()})))}}l(Wo,"defaultProps",{onClose:()=>!1,onAdd:()=>!1});class Zo extends i().Component{constructor(e){super(e),this.state={fullText:"",summaryText:""}}componentDidMount(){this.loadLocationFromRemote()}componentDidUpdate(e){(0,w.isEqual)(this.props.conditions,e.conditions)||this.loadLocationFromRemote()}loadLocationFromRemote(){this.setState({fullText:"...",summaryText:"..."},(()=>{let e=a.get("ajax_url","schema_types");c().get(e+"?action=wds-format-schema-location",{conditions:this.props.conditions}).done((e=>{this.setState({fullText:e.full,summaryText:e.summary})}))}))}render(){return(0,e.createElement)("span",{className:"wds-schema-type-locations sui-tooltip sui-tooltip-constrained",style:{"--tooltip-width":"170px"},"data-tooltip":this.state.fullText},(0,e.createElement)("span",{className:"sui-icon-link","aria-hidden":"true"}),this.state.summaryText)}}class $o{static getQueryParam(e){const t=location.search;return new URLSearchParams(t).get(e)}static removeQueryParam(e){const t=location.search,o=new URLSearchParams(t);if(!o.get(e))return;o.delete(e);const i=location.href.replace(t,"?"+o.toString());history.replaceState({},"",i)}}class Yo extends i().Component{render(){const t=y()("sui-button-icon sui-dropdown-anchor",{"sui-button-onload":this.props.loading});return(0,e.createElement)("div",{className:"sui-dropdown sui-accordion-item-action"},(0,e.createElement)("button",{className:t,"aria-label":(0,n.__)("Dropdown","wds"),disabled:this.props.disabled},(0,e.createElement)("span",{className:"sui-loading-text"},(0,e.createElement)("span",{className:this.props.icon,style:{pointerEvents:"none"},"aria-hidden":"true"})),(0,e.createElement)("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),(0,e.createElement)("ul",null,this.props.buttons.map(((t,o)=>(0,e.createElement)("li",{key:o},t)))))}}l(Yo,"defaultProps",{icon:"sui-icon-widget-settings-config",buttons:[],loading:!1,disabled:!1,onClick:()=>!1});class Ko extends i().Component{render(){return(0,e.createElement)("button",{className:y()({"sui-option-red":this.props.red}),onClick:()=>this.props.onClick(),type:"button"},(0,e.createElement)("span",{className:this.props.icon,"aria-hidden":"true"}),this.props.text)}}l(Ko,"defaultProps",{text:"",icon:"",red:!1,onClick:()=>!1});class Jo extends i().Component{render(){return(0,e.createElement)(Yo,{buttons:[(0,e.createElement)(Ko,{onClick:()=>this.props.onRename(),icon:"sui-icon-pencil",text:(0,n.__)("Rename","wds")}),(0,e.createElement)(Ko,{onClick:()=>this.props.onDuplicate(),icon:"sui-icon-copy",text:(0,n.__)("Duplicate","wds")}),(0,e.createElement)(Ko,{onClick:()=>this.props.onDelete(),icon:"sui-icon-trash",text:(0,n.__)("Delete","wds"),red:!0})]})}}l(Jo,"defaultProps",{onRename:()=>!1,onDuplicate:()=>!1,onDelete:()=>!1});class Qo extends i().Component{constructor(e){super(e)}render(){return(0,e.createElement)("div",{className:y()("sui-form-field",{"sui-form-field-error":!this.props.isValid})},(0,e.createElement)("label",{className:"sui-label"},this.props.label),(0,e.createElement)("input",{id:this.props.id,type:"text",className:"sui-form-control",onChange:e=>this.props.onChange(e.target.value),value:this.props.value,placeholder:this.props.placeholder}),!!this.props.description&&(0,e.createElement)("p",{className:"sui-description"},(0,e.createElement)("small",null,this.props.description)))}}l(Qo,"defaultProps",{id:"",label:"",description:"",value:"",isValid:!0,placeholder:"",onChange:()=>!1});class Xo{static isNonEmpty(e){return e&&e.trim()}static isValuePlainText(e){return c()("<div>").html(e).text()===e}}const ei=(ti=Qo,oi=[Xo.isNonEmpty,Xo.isValuePlainText],class extends i().Component{constructor(e){super(e),this.state={initial:!0}}isValueValid(e){if(this.state.initial)return!0;if(Array.isArray(oi)){let t=!0;return oi.forEach((o=>{t=t&&o(e)})),t}return oi(e)}handleChange(e){this.setState({initial:!1},(()=>{this.props.onChange(e,this.isValueValid(e))}))}render(){return(0,e.createElement)(ti,r({},this.props,{isValid:this.isValueValid(this.props.value),onChange:e=>this.handleChange(e)}))}});var ti,oi;class ii extends i().Component{constructor(e){super(e),this.state={name:this.props.name,isNameValid:!0}}handleNameChange(e,t){this.setState({name:e,isNameValid:t})}render(){const t=!this.state.isNameValid,o=()=>this.props.onRename(this.state.name);return(0,e.createElement)(v,{id:"wds-schema-type-rename-modal",title:(0,n.__)("Rename","wds"),description:(0,n.__)("Leave the default type name or change it for a recognizable one.","wds"),onClose:()=>this.props.onClose(),dialogClasses:{"sui-modal-sm":!0},focusAfterOpen:"wds-schema-rename-type-input",onEnter:o,enterDisabled:t,footer:(0,e.createElement)(i().Fragment,null,(0,e.createElement)(T,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.props.onClose(),ghost:!0}),(0,e.createElement)(T,{text:(0,n.__)("Save","wds"),onClick:o,icon:"sui-icon-check",id:"wds-schema-rename-type-button",disabled:t}))},(0,e.createElement)(ei,{id:"wds-schema-rename-type-input",label:(0,n.__)("New Type Name","wds"),value:this.state.name,onChange:(e,t)=>this.handleNameChange(e,t)}),this.props.notice)}}l(ii,"defaultProps",{name:"",notice:!1,onRename:()=>!1,onClose:()=>!1});class si extends i().Component{render(){const t=this.getIcon(this.props.type);return(0,e.createElement)("div",{className:y()("sui-notice","sui-notice-"+this.props.type)},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},t&&(0,e.createElement)("span",{className:y()("sui-notice-icon sui-md",t),"aria-hidden":"true"}),(0,e.createElement)("p",null,this.props.message))))}getIcon(e){return{warning:"sui-icon-warning-alert",info:"sui-icon-info",success:"sui-icon-check-tick",purple:"sui-icon-info","":"sui-icon-info"}[e]}}l(si,"defaultProps",{type:"warning",message:""});class ri extends i().Component{render(){return(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,n.__)("Property","wds")),(0,e.createElement)("th",null,(0,n.__)("Source","wds")),(0,e.createElement)("th",{colSpan:2},(0,n.__)("Value","wds")))),(0,e.createElement)("tbody",null,this.props.children),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:4},(0,e.createElement)("div",null,(0,e.createElement)("span",{className:"sui-tooltip","data-tooltip":(0,n.__)("Reset the properties list to default.","wds")},(0,e.createElement)(T,{ghost:!0,onClick:()=>this.props.onReset(),icon:"sui-icon-refresh",text:(0,n.__)("Reset Properties","wds")})),(0,e.createElement)(T,{icon:"sui-icon-plus",onClick:()=>this.props.onAdd(),text:(0,n.__)("Add Property","wds")}))))))}}l(ri,"defaultProps",{onReset:()=>!1,onAdd:()=>!1});class ni extends i().Component{render(){return(0,e.createElement)("div",{id:"wds-save-schema-types",className:"sui-box-footer"},(0,e.createElement)("button",{name:"submit",type:"submit",className:"sui-button sui-button-blue"},(0,e.createElement)("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,n.__)("Save Settings","wds")))}}class ai extends i().Component{render(){const t=this.props.requiredNotice?this.props.requiredNotice:(0,n.__)("This property is required by Google.","wds");return(0,e.createElement)("div",{className:"sui-accordion-item-header"},(0,e.createElement)("div",{className:"sui-accordion-item-title"},(0,e.createElement)("span",{className:y()({"sui-tooltip sui-tooltip-constrained":!!this.props.description}),style:{"--tooltip-width":"300px"},"data-tooltip":this.props.description},this.props.label),this.props.required&&(0,e.createElement)("span",{className:"wds-required-asterisk sui-tooltip sui-tooltip-constrained","data-tooltip":t},"*"),this.props.methods.requiredNestedPropertiesMissing(this.props)&&(0,e.createElement)("span",{className:"sui-tooltip sui-tooltip-constrained","data-tooltip":(0,n.__)("This section has missing properties that are required by Google.","wds")},(0,e.createElement)("span",{className:"wds-invalid-type-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"sui-accordion-col-auto"},this.props.isAnAltVersion&&(0,e.createElement)("div",{className:"sui-accordion-item-action"},(0,e.createElement)("button",{onClick:()=>this.props.methods.onChangeActiveVersion(this.props.id),"data-tooltip":(0,n.__)("Change the type of this property","wds"),type:"button",className:"sui-button-icon sui-tooltip"},(0,e.createElement)("span",{className:"sui-icon-defer","aria-hidden":"true"}))),this.props.isRepeatable&&(0,e.createElement)("div",{className:"sui-accordion-item-action"},(0,e.createElement)("button",{onClick:()=>this.props.methods.onRepeat(this.props.id),type:"button","data-tooltip":(0,n.sprintf)((0,n.__)("Add another %s","wds"),this.props.labelSingle||this.props.label),className:"sui-button-icon sui-tooltip"},(0,e.createElement)("span",{className:"sui-icon-plus","aria-hidden":"true"}))),!this.props.disallowDeletion&&(0,e.createElement)("div",{className:"sui-accordion-item-action wds-delete-accordion-item-action"},(0,e.createElement)("span",{className:"sui-icon-trash",onClick:()=>this.props.methods.onDelete(this.props.id),"aria-hidden":"true"})),(0,e.createElement)("button",{className:"sui-button-icon sui-accordion-open-indicator",type:"button","aria-label":(0,n.__)("Open item","wds")},(0,e.createElement)("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}))))}}l(ai,"defaultProps",{id:"",label:"",description:"",required:!1,requiredNotice:"",isAnAltVersion:!1,labelSingle:"",isRepeatable:!1,disallowDeletion:!1,methods:{}});var li=wp,di=o.n(li);class ci extends i().Component{constructor(e){super(e),this.props=e,this.state={mediaItem:!1}}componentDidMount(){if(!this.props.value)return void this.setState({mediaItem:!1});const e=di().media.attachment(this.props.value);e.get&&e.get("url")?this.setState({mediaItem:e}):e.fetch().then((()=>{this.setState({mediaItem:e})}))}removeFile(e){e.preventDefault(),this.setState({mediaItem:!1}),this.props.onChange("")}openMediaLibrary(e){e.preventDefault();const t=new(di().media)({multiple:!1,library:{type:"image"}});t.on("select",(()=>{const e=t.state().get("selection");if(!e.length)return!1;const o=e.shift();this.props.onChange(o.get("id")),this.setState({mediaItem:o})})),t.open()}render(){const t=this.state.mediaItem,o=y()({"sui-upload":!0,"sui-has_file":t}),i=t?t.get("url"):"",s=t?t.get("filename"):"";return(0,e.createElement)("div",{className:o},(0,e.createElement)("div",{className:"sui-upload-image","aria-hidden":"true"},(0,e.createElement)("div",{className:"sui-image-mask"}),(0,e.createElement)("div",{role:"button",className:"sui-image-preview",style:{backgroundImage:"url('"+i+"')"}})),(0,e.createElement)("button",{onClick:e=>this.openMediaLibrary(e),className:"sui-upload-button"},(0,e.createElement)("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"})," ",(0,n.__)("Upload file","wds")),(0,e.createElement)("div",{className:"sui-upload-file"},(0,e.createElement)("span",null,s),(0,e.createElement)("button",{onClick:e=>this.removeFile(e),"aria-label":(0,n.__)("Remove file","wds")},(0,e.createElement)("span",{className:"sui-icon-close","aria-hidden":"true"}))))}}class ui extends i().Component{constructor(e){super(e),this.props=e}handleFocus(e){this.adjustElementHeight(e.target)}handleChange(e){const t=e.target;this.adjustElementHeight(t),this.props.onChange(t.value)}adjustElementHeight(e){e.style.height=0;const t=e.scrollHeight;e.style.height=(t<30?30:t)+"px"}render(){return(0,e.createElement)("textarea",{placeholder:this.props.placeholder,value:this.props.value,onFocus:e=>this.handleFocus(e),onChange:e=>this.handleChange(e)})}}l(ui,"defaultProps",{placeholder:"",value:"",onChange:()=>!1});class pi extends i().Component{constructor(e){super(e),this.pickerElement=i().createRef()}componentDidMount(){c()(this.pickerElement.current).datepicker({beforeShow:()=>{c()("#ui-datepicker-div").addClass("sui-calendar")},onSelect:e=>{this.props.onChange(e)},dateFormat:this.props.format})}componentWillUnmount(){c()(this.pickerElement.current).datepicker("destroy")}render(){return(0,e.createElement)("div",{className:"sui-date"},(0,e.createElement)("input",{type:"text",placeholder:this.props.placeholder,className:"sui-form-control",ref:this.pickerElement,onChange:()=>!0,value:this.props.value}),(0,e.createElement)("span",{className:"sui-icon-calendar","aria-hidden":"true"}))}}l(pi,"defaultProps",{placeholder:(0,n.__)("Select a date","wds"),format:"yy-mm-dd",value:"",onChange:()=>!1});var hi={DateTime:{id:"DateTime",sources:{post_data:{label:(0,n.__)("Post Data","wds"),values:{post_date:(0,n.__)("Post Date","wds"),post_date_gmt:(0,n.__)("Post Date GMT","wds"),post_modified:(0,n.__)("Post Modified","wds"),post_modified_gmt:(0,n.__)("Post Modified GMT","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},datetime:{label:(0,n.__)("Custom Date","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}},Email:{id:"Email",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_email:(0,n.__)("Email","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_admin_email:(0,n.__)("Site Admin Email","wds")}},custom_text:{label:(0,n.__)("Custom Email","wds")}}},ImageObject:{id:"ImageObject",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_gravatar:(0,n.__)("Gravatar","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_thumbnail:(0,n.__)("Featured Image","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_logo:(0,n.__)("Organization Logo","wds")}},image:{label:(0,n.__)("Custom Image","wds")}}},ImageURL:{id:"ImageURL",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_gravatar_url:(0,n.__)("Gravatar URL","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_thumbnail_url:(0,n.__)("Featured Image URL","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_logo_url:(0,n.__)("Organization Logo URL","wds")}},image_url:{label:(0,n.__)("Custom Image URL","wds")},custom_text:{label:(0,n.__)("Custom URL","wds")}}},Phone:{id:"Phone",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_phone_number:(0,n.__)("Organization Phone Number","wds")}},custom_text:{label:(0,n.__)("Custom Phone","wds")}}},Text:{id:"Text",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}},TextFull:{id:"TextFull",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_full_name:(0,n.__)("Full Name","wds"),author_first_name:(0,n.__)("First Name","wds"),author_last_name:(0,n.__)("Last Name","wds"),author_description:(0,n.__)("Description","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_title:(0,n.__)("Post Title","wds"),post_content:(0,n.__)("Post Content","wds"),post_excerpt:(0,n.__)("Post Excerpt","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},schema_settings:{label:(0,n.__)("Schema Settings","wds"),values:{organization_name:(0,n.__)("Organization Name","wds"),organization_description:(0,n.__)("Organization Description","wds")}},seo_meta:{label:(0,n.__)("SEO Meta","wds"),values:{seo_title:(0,n.__)("SEO Title","wds"),seo_description:(0,n.__)("SEO Description","wds")}},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_name:(0,n.__)("Site Name","wds"),site_description:(0,n.__)("Site Description","wds")}},custom_text:{label:(0,n.__)("Custom Text","wds")}}},URL:{id:"URL",sources:{author:{label:(0,n.__)("Post Author","wds"),values:{author_url:(0,n.__)("Profile URL","wds")}},post_data:{label:(0,n.__)("Post Data","wds"),values:{post_permalink:(0,n.__)("Post Permalink","wds")}},post_meta:{label:(0,n.__)("Post Meta","wds")},site_settings:{label:(0,n.__)("Site Settings","wds"),values:{site_url:(0,n.__)("Site URL","wds")}},custom_text:{label:(0,n.__)("Custom URL","wds")}}},Array:{id:"Array",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")}}},Number:{id:"Number",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},number:{label:(0,n.__)("Custom Number","wds")}}},Duration:{id:"Duration",sources:{post_meta:{label:(0,n.__)("Post Meta","wds")},duration:{label:(0,n.__)("Custom Duration","wds")},custom_text:{label:(0,n.__)("Custom Text","wds")}}}},mi=o(9490);class _i extends i().Component{constructor(e){super(e)}handleValueChange(e,t){const o=this.props.value?mi.nL.fromISO(this.props.value):new mi.nL({values:{}});t<0?t=0:t>59&&["minutes","seconds"].includes(e)&&(t=59);const i=o.set({[e]:t||0}).toISO();this.props.onChange("PT0S"===i?"":i)}render(){const t=mi.nL.fromISO(this.props.value);return(0,e.createElement)(i().Fragment,null,(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.hours:0,onChange:e=>this.handleValueChange("hours",e.target.value)})),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.minutes:0,onChange:e=>this.handleValueChange("minutes",e.target.value)})),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"number",value:t.isValid?t.seconds:0,onChange:e=>this.handleValueChange("seconds",e.target.value)})))}}l(_i,"defaultProps",{value:"",onChange:()=>!1});class wi extends i().Component{constructor(e){super(e),this.props=e}render(){const t=this.props.label,o=this.props.source,i=this.props.value,s=this.getSourceSelectOptions(),r=this.getValueElement(o,i),a=this.props.requiredNotice?this.props.requiredNotice:(0,n.__)("This property is required by Google.","wds"),l=this.props.description?this.props.description:"";return(0,e.createElement)("tr",{className:"wds-schema-property-source-"+o},(0,e.createElement)("td",{className:"sui-table-item-title wds-schema-property-label"},(0,e.createElement)("span",{className:y()({"sui-tooltip sui-tooltip-constrained":!!l}),style:{"--tooltip-width":"300px"},"data-tooltip":l},t),this.props.required&&(0,e.createElement)("span",{className:"wds-required-asterisk sui-tooltip","data-tooltip":a},"*")),(0,e.createElement)("td",{className:"wds-schema-property-source"},(0,e.createElement)(u,{key:(0,n.sprintf)("wds-property-%s-source",this.props.id),options:s,small:!0,selectedValue:o,onSelect:e=>this.handleSourceChange(e)})),(0,e.createElement)("td",{className:"wds-schema-property-value"},r),(0,e.createElement)("td",{className:"wds-schema-property-delete"},!this.props.disallowDeletion&&(0,e.createElement)("span",{onClick:()=>this.handleDelete(),className:"sui-icon-trash","aria-hidden":"true"})))}handleSourceChange(e){const t=this.getValueSelectOptions(e);let o="";t&&(o=Object.keys(t).shift()),this.props.methods.onChange(this.props.id,e,o)}handleValueChange(e){this.props.methods.onChange(this.props.id,this.props.source,e)}handleDelete(){this.props.methods.onDelete(this.props.id)}getSources(){const e=this.getPropertyType();return Object.assign({},this.getObjectValue(hi,[e,"sources"]),this.props.customSources||{})}getSourceSelectOptions(){const e=this.getSources(),t={};return Object.keys(e).forEach((o=>{t[o]=e[o].label})),t}getValueElement(t,o){const i=(0,n.sprintf)("wds-property-%s-source-%s",this.props.id,t),s=this.getValueSelectOptions(t);if(s)return(0,e.createElement)(u,{key:i,options:s,multiple:this.props.allowMultipleSelection,small:!0,onSelect:e=>this.handleValueChange(e),selectedValue:o});if("image"===t||"image_url"===t)return(0,e.createElement)(ci,{key:i,value:this.props.value,onChange:e=>this.handleValueChange(e)});if("custom_text"===t)return(0,e.createElement)(ui,{key:i,value:this.props.value,placeholder:this.props.placeholder,onChange:e=>this.handleValueChange(e)});if("post_meta"===t){let t=a.get("ajax_url","schema_types");return(0,e.createElement)(u,{key:i,tagging:!0,placeholder:(0,n.__)("Search for meta key","wds"),options:{},small:!0,selectedValue:this.props.value,onSelect:e=>this.handleValueChange(e),ajaxUrl:t+"?action=wds-search-post-meta"})}return"datetime"===t?(0,e.createElement)(pi,{value:this.props.value,onChange:e=>this.handleValueChange(e)}):"number"===t?(0,e.createElement)("input",{type:"number",value:this.props.value,onChange:e=>this.handleValueChange(e.target.value)}):"duration"===t?(0,e.createElement)(_i,{value:this.props.value,onChange:e=>this.handleValueChange(e)}):void 0}getPropertyType(){return this.props.type}getValueSelectOptions(e){const t=this.getObjectValue(this.getSources(),[e]);return!!t.hasOwnProperty("values")&&t.values}getObjectValue(e,t){let o=e;return t.forEach((e=>{o=o.hasOwnProperty(e)?o[e]:[]})),o}}l(wi,"defaultProps",{id:"",label:"",source:"",value:"",disallowDeletion:!1,methods:{}});class fi extends i().Component{render(){const t=this.props.properties;return(0,e.createElement)("tr",{key:"repeating-property-row-"+this.props.id},(0,e.createElement)("td",{colSpan:4,className:"wds-schema-repeating-properties"},this.props.methods.beforePropertyRender(this.props.id),(0,e.createElement)("div",{className:"sui-accordion"},(0,e.createElement)("div",{className:y()("sui-accordion-item","wds-schema-property-"+this.props.id+"-accordion")},(0,e.createElement)(ai,r({},this.props,{isRepeatable:!0})),(0,e.createElement)("div",{className:"sui-accordion-item-body"},Object.keys(t).map((o=>{const i=t[o];return(0,e.createElement)("table",{className:"sui-table",key:"repeatable-"+i.id},i.properties&&(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:2,className:"sui-table-item-title"},this.props.labelSingle||this.props.label),(0,e.createElement)("td",null,!i.disallowDeletion&&(0,e.createElement)(T,{text:"",ghost:!0,icon:"sui-icon-trash",color:"red",onClick:()=>this.props.methods.onDelete(i.id)})))),(0,e.createElement)("tbody",null,i.properties&&(0,e.createElement)(bi,{properties:i.properties,methods:this.props.methods}),!i.properties&&(0,e.createElement)(wi,r({},i,{methods:this.props.methods}))))})))))))}}l(fi,"defaultProps",{id:"",label:"",labelSingle:"",properties:{},methods:{}});class yi extends i().Component{render(){const t=y()("sui-accordion-item","wds-schema-property-"+this.props.id+"-accordion");return(0,e.createElement)("tr",{key:"nested-property-row-"+this.props.id},(0,e.createElement)("td",{colSpan:4,className:"wds-schema-nested-properties"},this.props.methods.beforePropertyRender(this.props.id),(0,e.createElement)("div",{className:"sui-accordion"},(0,e.createElement)("div",{className:t},(0,e.createElement)(ai,this.props),(0,e.createElement)("div",{className:"sui-accordion-item-body"},this.props.loop&&(0,e.createElement)("div",null,this.props.loopDescription),(0,e.createElement)("table",{className:"sui-table"},(0,e.createElement)("tbody",null,(0,e.createElement)(bi,{properties:this.props.properties,methods:this.props.methods})),!this.props.disallowAddition&&(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:4},(0,e.createElement)(T,{onClick:()=>this.props.methods.onAddNested(this.props.id),ghost:!0,icon:"sui-icon-plus",text:(0,n.__)("Add Property","wds")}))))))))))}}l(yi,"defaultProps",{id:"",loop:!1,loopDescription:"",disallowAddition:!1,properties:{},methods:{}});class gi extends i().Component{render(){return this.hasAltVersions()?(0,e.createElement)(gi,r({},this.getActiveVersion(),{methods:this.props.methods})):this.isFlattened()?(0,e.createElement)(bi,{properties:this.props.properties,methods:this.props.methods}):this.isRepeatable()?(0,e.createElement)(fi,this.props):this.isNested()?(0,e.createElement)(yi,this.props):(0,e.createElement)(wi,this.props)}hasAltVersions(){return!!this.getActiveVersion()}getActiveVersion(){const e=this.props.activeVersion;return!!(this.isNested()&&e&&this.props.properties.hasOwnProperty(e))&&this.props.properties[e]}isNested(){return Object.keys(this.props.properties).length}isRepeatable(){return!!this.isNested()&&0===Object.keys(this.props.properties).filter((e=>isNaN(e))).length}isFlattened(){return this.isNested()&&this.props.flatten}}l(gi,"defaultProps",{id:"",label:"",description:"",type:"",source:"",value:"",required:!1,labelSingle:"",disallowDeletion:!1,disallowAddition:!1,customSources:{},placeholder:"",disallowFirstItemDeletionOnly:!1,loop:!1,loopDescription:"",requiredNotice:"",requiredInBlock:!1,allowMultipleSelection:!1,isAnAltVersion:!1,activeVersion:!1,flatten:!1,properties:{},methods:{}});class bi extends i().Component{render(){return(0,e.createElement)(i().Fragment,null,Object.keys(this.props.properties).map((t=>{const o=this.props.properties[t];return(0,e.createElement)(gi,r({},o,{key:"schema-property-"+o.id,methods:this.props.methods}))})))}}l(bi,"defaultProps",{properties:{},methods:{}});var vi={Article:V,Book:Qt,Course:ho,Product:ke,Recipe:It,SoftwareApplication:vo,MobileApplication:So,WebApplication:Ao,WooProduct:qe,Event:_e,FAQPage:Ge,HowTo:Je,JobPosting:Wt,LocalBusiness:_t,FoodEstablishment:ft,WooSimpleProduct:yt,Movie:Ro,WebPage:Vo};class Ti{constructor(){this.callbacks={},this.register("Article",(e=>this.addCommentLoopToArticle(e))),this.register("Event",(e=>this.addVirtualLocationToEvent(e))),this.register("Event",(e=>this.addAggregateRatingAndReviewToEvent(e))),this.register("Product",(e=>this.removeReviewAuthorOrganizationDataFromProduct(e))),this.register("WooProduct",(e=>this.removeReviewAuthorOrganizationDataFromWooProduct(e))),this.register("FAQPage",(e=>this.addCommentLoopToFaqPage(e))),this.register("HowTo",(e=>this.addCommentToLoopToHowTo(e))),this.register("HowTo",(e=>this.addAggregateRatingAndReviewToHowTo(e)))}register(e,t){this.callbacks.hasOwnProperty(e)||(this.callbacks[e]=[]),this.callbacks[e].push(t)}transformProperties(e,t){let o=t;return(this.callbacks[e]||[]).forEach((e=>{o=e(o)})),o}addCommentLoopToArticle(e){return this.addCommentLoopSchema(e,vi.Article)}addVirtualLocationToEvent(e){var t;if(null!=e&&null!==(t=e.location)&&void 0!==t&&t.activeVersion)return e;const o=vi.Event,i=(0,w.merge)({},o.location,{properties:{Place:e.location}});return _()(e,{location:{$set:i}})}addAggregateRatingAndReviewToEvent(e){return this.addAggregateRatingAndReview(e,vi.Event)}addAggregateRatingAndReviewToHowTo(e){return this.addAggregateRatingAndReview(e,vi.HowTo)}addAggregateRatingAndReview(e,t){var o,i;return null!==(o=e)&&void 0!==o&&o.aggregateRating||(e=_()(e,{aggregateRating:{$set:(0,w.cloneDeep)(t.aggregateRating)}})),null!==(i=e)&&void 0!==i&&i.review||(e=_()(e,{review:{$set:(0,w.cloneDeep)(t.review)}})),e}makeReviewAuthorOrganizationDataRemovalSpec(e){const t={};return Object.keys(e).forEach((o=>{var i,s,r,n,a;const l=null===(i=e[o])||void 0===i||null===(s=i.properties)||void 0===s||null===(r=s.author)||void 0===r||null===(n=r.properties)||void 0===n||null===(a=n.Organization)||void 0===a?void 0:a.properties,d=[];null!=l&&l.contactPoint&&d.push("contactPoint"),null!=l&&l.address&&d.push("address"),d.length&&(t[o]=this.formatSpec(["properties","author","properties","Organization","properties"],{$unset:d}))})),t}removeReviewAuthorOrganizationDataFromProduct(e){var t;const o=null==e||null===(t=e.review)||void 0===t?void 0:t.properties;if(!o)return e;const i=this.makeReviewAuthorOrganizationDataRemovalSpec(o);return Object.keys(i).length?_()(e,{review:{properties:i}}):e}removeReviewAuthorOrganizationDataFromWooProduct(e){var t,o,i,s,r,n,a,l,d,c,u,p;const h=null===(t=e)||void 0===t||null===(o=t.review)||void 0===o||null===(i=o.properties)||void 0===i||null===(s=i.Review)||void 0===s?void 0:s.properties;if(h){const t=this.makeReviewAuthorOrganizationDataRemovalSpec(h);Object.keys(t).length&&(e=_()(e,this.formatSpec(["review","properties","Review","properties"],t)))}const m=null===(r=e)||void 0===r||null===(n=r.review)||void 0===n||null===(a=n.properties)||void 0===a||null===(l=a.WooCommerceReviewLoop)||void 0===l||null===(d=l.properties)||void 0===d||null===(c=d.author)||void 0===c||null===(u=c.properties)||void 0===u||null===(p=u.Organization)||void 0===p?void 0:p.properties,w=[];return null!=m&&m.contactPoint&&w.push("contactPoint"),null!=m&&m.address&&w.push("address"),w.length&&(e=_()(e,this.formatSpec(["review","properties","WooCommerceReviewLoop","properties","author","properties","Organization","properties"],{$unset:w}))),e}formatSpec(e,t){return e.slice().reverse().forEach((e=>{t={[e]:t}})),t}addCommentLoopToFaqPage(e){return this.addCommentLoopSchema(e,vi.FAQPage)}addCommentToLoopToHowTo(e){return this.addCommentLoopSchema(e,vi.HowTo)}addCommentLoopSchema(e,t){return null!=e&&e.comment?e:_()(e,{comment:{$set:(0,w.cloneDeep)(t.comment)}})}}class Si extends i().Component{constructor(e){super(e),this.props=e,this.state={initialized:!1,types:{},deletingProperty:"",deletingPropertyId:0,addingProperties:"",addingNestedForProperty:0,addingSchemaTypes:!1,resettingProperties:"",renamingType:"",deletingType:"",changingPropertyTypeForId:0,openTypes:[],invalidTypes:[]},this.accordionElement=i().createRef()}componentDidMount(){this.hookNestedAccordions(),this.maybeInitializeComponent(),this.maybeStartAddingSchemaType()}hookNestedAccordions(){c()(this.accordionElement.current).on("click",".sui-accordion-item-body .sui-accordion-item-header",(function(e){if(c()(e.target).closest(".sui-accordion-item-action").length)return!0;c()(this).closest(".sui-accordion-item").toggleClass("sui-accordion-item--open")}))}maybeInitializeComponent(){if(this.state.initialized)return;const e={},t=a.get("types","schema_types"),o=[],i=new Ti;Object.keys(t).forEach((s=>{const r=t[s],n=this.generateTypeId(r.type),a=this.getPropertiesForType(r.type),l=this.initializeProperties(i.transformProperties(r.type,r.properties),a),d=this.cloneConditions(r.conditions);e[n]=Object.assign({},r,{conditions:d,properties:l}),o.push(n)})),this.setState({types:e,initialized:!0},(()=>{const e=[];o.forEach((t=>{this.typeHasMissingRequiredProperties(t)&&e.push(t)})),this.setState({invalidTypes:e}),e.length&&a.get("settings_updated","schema_types")&&this.showInvalidTypesNotice()}))}formatSpec(e,t){return e.slice().reverse().forEach((e=>{t={[e]:t}})),t}defaultCondition(e){const t=Ho.getType(this.getType(e).type),o={id:(0,w.uniqueId)(),lhs:"post_type",operator:"=",rhs:"post"};return t.condition?Object.assign({},t.condition,{id:(0,w.uniqueId)()}):o}addGroup(e){const t=this.getType(e).conditions.length,o=this.formatSpec([e,"conditions"],{$splice:[[t,0,[this.defaultCondition(e)]]]});this.updateTypes(o)}updateTypes(e){return new Promise((t=>{this.setState({types:_()(this.state.types,e)},(()=>{t()}))}))}addCondition(e,t){const o=this.getType(e),i=this.conditionGroupIndex(o.conditions,t),s=this.conditionIndex(o.conditions[i],t)+1,r=this.formatSpec([e,"conditions",i],{$splice:[[s,0,this.defaultCondition(e)]]});this.updateTypes(r)}updateCondition(e,t,o,i,s){const r=this.getType(e),n=this.conditionGroupIndex(r.conditions,t),a=this.conditionIndex(r.conditions[n],t),l=this.formatSpec([e,"conditions",n,a],{lhs:{$set:o},operator:{$set:i},rhs:{$set:s}});this.updateTypes(l)}deleteCondition(e,t){const o=this.getType(e),i=this.conditionGroupIndex(o.conditions,t),s=o.conditions[i];let r;if(1===s.length)r=this.formatSpec([e,"conditions"],{$splice:[[i,1]]});else{const o=this.conditionIndex(s,t);r=this.formatSpec([e,"conditions",i],{$splice:[[o,1]]})}this.updateTypes(r)}startAddingProperties(e){this.setState({addingProperties:e})}handleAddPropertiesButtonClick(e,t){this.addProperties(e,t).then((t=>{t.forEach((t=>{this.openAccordionItemForPropertyOrAlt(e,t)})),this.checkTypeValidity(e),this.showNotice((0,n._n)("The property has been added. You need to save the changes to make them live.","The properties have been added. You need to save the changes to make them live.",t.length,"wds"))})),this.stopAddingProperties()}getPropertiesForType(e){return Ho.getType(e).properties}openAccordionItemForPropertyOrAlt(e,t){const o=this.getPropertyById(t,this.getType(e).properties);if(this.hasAltVersions(o)){const e=this.getActiveAltVersion(o);this.openAccordionItemForProperty(e.id)}else this.openAccordionItemForProperty(t)}addProperties(e,t){const o=this.getType(e),i=[];let s,r=o.properties;t.forEach((e=>{[r,s]=this.addProperty(e,this.getPropertiesForType(o.type),r),i.push(...s)}));const n=this.formatSpec([e,"properties"],{$set:r});return new Promise((e=>{this.updateTypes(n).then((()=>e(i)))}))}typeHasMissingRequiredProperties(e){const t=this.getType(e);return this.requiredPropertiesMissing(t.properties,this.getPropertiesForType(t.type))}requiredPropertiesMissing(e,t){let o=!1;return Object.keys(t).some((i=>{const s=t[i];if(s.required){if(!e.hasOwnProperty(i))return o=!0,!0;if(this.isNestedProperty(s)&&this.isNestedProperty(e[i])&&this.requiredPropertiesMissing(e[i].properties,s.properties))return o=!0,!0}})),o}addProperty(e,t,o){const i=[];let s=o;return Object.keys(t).some((r=>{const n=t[r];if(n.id===e){const e=this.getDefaultProperty(n);return s=_()(s,{[r]:{$set:e}}),i.push(e.id),!0}if(this.isNestedProperty(n)&&o.hasOwnProperty(r)&&this.isNestedProperty(o[r])){const[t,a]=this.addProperty(e,n.properties,o[r].properties);s=_()(s,{[r]:{properties:{$set:t}}}),i.push(...a)}})),[s,i]}stopAddingProperties(){this.setState({addingProperties:"",addingNestedForProperty:0})}updateProperty(e,t,o,i){const s=this.getType(e),r=this.propertyKeys(t,s.properties),n=this.formatSpec([e,"properties",...r],{source:{$set:o},value:{$set:i}});this.updateTypes(n)}startDeletingProperty(e,t){this.setState({deletingProperty:e,deletingPropertyId:t})}handleDeleteButtonClick(e){this.deleteProperty(e,this.state.deletingPropertyId).then((()=>{this.checkTypeValidity(e),this.stopDeletingProperty()}))}deleteProperty(e,t){const o=this.getType(e),i=this.formatSpec([e,"properties"],{$set:this.deletePropertyById(t,o.properties)});return this.showNotice((0,n.__)("The property has been removed from this module.","wds"),"info"),this.updateTypes(i)}deletePropertyById(e,t){let o=t;return Object.keys(t).some((i=>{const s=t[i];if(e===s.id)return o=_()(o,{$unset:[i]}),!0;if(this.isNestedProperty(s)){const t=this.deletePropertyById(e,s.properties);let r;r=this.hasAltVersions(s)&&Object.keys(t).length!==Object.keys(s.properties).length||this.objectEmpty(t)?{$unset:[i]}:{[i]:{properties:{$set:t}}},o=_()(o,r)}})),o}objectEmpty(e){return!this.objectLength(e)}objectLength(e){return Object.keys(e).length}stopDeletingProperty(){this.setState({deletingProperty:"",deletingPropertyId:0})}getPropertyByKeys(e,t){let o=t;return e.forEach((e=>{o=o[e]})),o}propertyKeys(e,t){return this.findPropertyKeys((t=>t.hasOwnProperty("id")&&t.id===e),t)}findPropertyKeys(e,t){let o=[];return Object.keys(t).some((i=>{if(e(t[i]))return o.unshift(i),!0;if(this.isNestedProperty(t[i])){const s=this.findPropertyKeys(e,t[i].properties);if(s.length)return o.unshift(i,"properties",...s),!0}})),o}conditionGroupIndex(e,t){return e.findIndex((e=>this.conditionIndex(e,t)>-1))}conditionIndex(e,t){return e.findIndex((e=>e.id===t))}render(){return(0,e.createElement)(i().Fragment,null,!!this.state.invalidTypes.length&&this.getWarningElement((0,e.createInterpolateElement)((0,n.__)("One or more types have properties that are required by Google that have been removed. Please check your types and click on the <strong>Add Property</strong> button to add the missing <strong>required properties</strong> ( <span>*</span> ), for your content to be eligible for display as a rich result. To learn more about schema type properties, see our <DocLink>Schema Documentation</DocLink>."),{strong:(0,e.createElement)("strong",null),span:(0,e.createElement)("span",null),DocLink:(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema"})})),(0,e.createElement)("div",{id:"wds-schema-types-body",className:y()({hidden:!Object.keys(this.state.types).length})},(0,e.createElement)("div",{className:"sui-row"},(0,e.createElement)("div",{className:"sui-col-md-5"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Schema Type","wds")))),(0,e.createElement)("div",{className:"sui-col-md-7"},(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Location","wds"))))),(0,e.createElement)("div",{className:"sui-accordion sui-accordion-flushed",ref:this.accordionElement},Object.keys(this.state.types).map((t=>{const o=this.getType(t),s=this.getTypeSubText(o.type);return(0,e.createElement)(i().Fragment,{key:t},(0,e.createElement)("div",{className:y()("sui-accordion-item",this.getTypeAccordionItemClassName(t),{"sui-accordion-item--open":this.state.openTypes.includes(t),"sui-accordion-item--disabled":o.disabled||Ho.getType(o.type).disabled})},this.getTypeAccordionItemHeaderElement(t),(0,e.createElement)("div",{className:"sui-accordion-item-body"},this.state.openTypes.includes(t)&&(0,e.createElement)("div",null,this.getSchemaTypeRulesElement(t,this.getType(t).conditions),this.getPropertiesTableElement(t,this.getType(t).properties)),s&&(0,e.createElement)("span",{className:"wds-type-sub-text"},s))),this.state.deletingProperty===t&&this.getPropertyDeletionModalElement(t),this.state.addingProperties===t&&this.getAddTypePropertyModalElement(t),this.state.resettingProperties===t&&this.getPropertyResetModalElement(t),this.state.renamingType===t&&this.getTypeRenameModalElement(t),this.state.deletingType===t&&this.getTypeDeleteModalElement(t))})))),(0,e.createElement)("div",{id:"wds-schema-types-footer"},(0,e.createElement)(T,{onClick:()=>this.startAddingSchemaType(),dashed:!0,icon:"sui-icon-plus",text:(0,n.__)("Add New Type","wds")}),(0,e.createElement)("p",{className:"sui-description"},(0,n.__)("Add additional schema types you want to output on this site.","wds")),(0,e.createElement)(ni,null)),this.state.addingSchemaTypes&&this.getAddSchemaModalElement(),this.getStateInput())}getPropertiesTableElement(t,o){return(0,e.createElement)(ri,{onReset:()=>this.startResettingProperties(t),onAdd:()=>this.startAddingProperties(t)},(0,e.createElement)(bi,{properties:o,methods:this.getSchemaPropertyMethods(t)}))}getSchemaPropertyMethods(e){return{beforePropertyRender:t=>this.renderPropertyModals(e,t),requiredNestedPropertiesMissing:t=>this.nestedPropertyHasMissingRequiredProperties(e,t),onChangeActiveVersion:e=>this.startChangingPropertyType(e),onRepeat:t=>this.handleRepeatButtonClick(e,t),onAddNested:t=>this.startAddingNestedProperties(e,t),onChange:(t,o,i)=>this.updateProperty(e,t,o,i),onDelete:t=>this.startDeletingProperty(e,t)}}renderPropertyModals(t,o){return(0,e.createElement)(i().Fragment,null,this.state.addingNestedForProperty===o&&this.getAddNestedPropertyModalElement(t,o),this.state.changingPropertyTypeForId===o&&this.getPropertyTypeChangeModalElement(t,o))}getSchemaTypeRulesElement(t,o){return(0,e.createElement)("div",{className:"wds-schema-type-rules"},(0,e.createElement)("span",{className:"sui-icon-link","aria-hidden":"true"}),(0,e.createElement)("small",null,(0,e.createElement)("strong",null,(0,n.__)("Location","wds"))),(0,e.createElement)("span",{className:"sui-description"},(0,n.__)("Create a set of rules to determine where this schema.org type will be enabled or excluded.","wds")),this.getConditionGroupElements(t,o),(0,e.createElement)(T,{text:(0,n.__)("Add Rule (Or)","wds"),ghost:!0,onClick:()=>this.addGroup(t),icon:"sui-icon-plus"}))}checkTypeValidity(e){const t=this.typeHasMissingRequiredProperties(e);this.setTypeInvalid(e,t)}isTypeInvalid(e){return this.state.invalidTypes.includes(e)}setTypeInvalid(e,t){const o=this.isTypeInvalid(e);let i=this.state.invalidTypes.slice();return t&&!o?i.push(e):!t&&o&&(i=this.state.invalidTypes.filter((t=>t!==e))),this.setState({invalidTypes:i})}handleTypeStatusChange(e,t){const o=this.formatSpec([e,"disabled"],{$set:!t});this.updateTypes(o).then((()=>{let o;o=t?(0,n.__)("You have successfully activated the %s type.","wds"):(0,n.__)("You have successfully deactivated the %s type.","wds"),this.showNotice((0,n.sprintf)(o,this.getType(e).label))}))}handleTypeAccordionItemToggle(e,t){if(c()(e.target).closest(".sui-accordion-item-action").length)return!0;this.toggleType(t)}toggleType(e){let t;return this.state.openTypes.includes(e)?t=this.state.openTypes.filter((t=>t!==e)):(t=this.state.openTypes.slice(),t.push(e)),this.setState({openTypes:t})}getTypeAccordionItemHeaderElement(t){const o=this.getType(t);return(0,e.createElement)("div",{className:"sui-accordion-item-header wds-type-accordion-item-header",onClick:e=>this.handleTypeAccordionItemToggle(e,t)},(0,e.createElement)("div",{className:"sui-accordion-item-title sui-accordion-col-5"},(0,e.createElement)("span",{className:this.getSchemaTypeIcon(o.type)}),(0,e.createElement)("span",null,o.label),this.isTypeInvalid(t)&&(0,e.createElement)("span",{className:"sui-tooltip sui-tooltip-constrained","data-tooltip":(0,n.__)("This type has missing properties that are required by Google.","wds")},(0,e.createElement)("span",{className:"wds-invalid-type-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}))),(0,e.createElement)("div",{className:"sui-accordion-col-3"},(0,e.createElement)(Zo,{conditions:o.conditions})),(0,e.createElement)("div",{className:"sui-accordion-col-4"},(0,e.createElement)("label",{className:"sui-toggle sui-accordion-item-action"},(0,e.createElement)("input",{type:"checkbox",defaultChecked:!this.getType(t).disabled,onChange:e=>this.handleTypeStatusChange(t,e.target.checked)}),(0,e.createElement)("span",{"aria-hidden":"true",className:"sui-toggle-slider"})),(0,e.createElement)(Jo,{onRename:()=>this.startRenamingType(t),onDuplicate:()=>this.duplicateType(t),onDelete:()=>this.startDeletingType(t)}),(0,e.createElement)("button",{className:"sui-button-icon sui-accordion-open-indicator",type:"button",onClick:e=>this.handleTypeAccordionItemToggle(e,t),"aria-label":(0,n.__)("Open item","wds")},(0,e.createElement)("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}))))}getPropertyDeletionModalElement(t){const o=this.getPropertyById(this.state.deletingPropertyId,this.getType(t).properties).required?(0,n.__)("You are trying to delete a property that is required by Google. Are you sure you wish to delete it anyway?","wds"):(0,n.__)("Are you sure you wish to delete this property? You can add it again anytime.","wds");return(0,e.createElement)(v,{small:!0,id:"wds-confirm-property-deletion",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopDeletingProperty(),focusAfterOpen:"wds-schema-property-delete-button",description:o},(0,e.createElement)(T,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopDeletingProperty(),ghost:!0}),(0,e.createElement)(T,{text:(0,n.__)("Delete","wds"),onClick:()=>this.handleDeleteButtonClick(t),icon:"sui-icon-trash",color:"red",id:"wds-schema-property-delete-button"}))}getAddTypePropertyModalElement(e){const t=this.getType(e),o=this.preparePropertySelectorOptions(t.properties,this.getPropertiesForType(t.type));return this.getAddPropertyModalElement(e,o,(0,n.sprintf)((0,n.__)("Choose the properties to insert into your %s type module.","wds"),t.label))}getAddNestedPropertyModalElement(e,t){const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties),r=this.prepareRepeatableSourcePropertyKeys(i),a=this.getPropertyByKeys(r,this.getPropertiesForType(o.type)),l=this.preparePropertySelectorOptions(s.properties,a.properties);return this.getAddPropertyModalElement(e,l,(0,n.sprintf)((0,n.__)("Choose the properties to insert into the %s section of your %s schema.","wds"),a.label,o.label))}getAddPropertyModalElement(t,o,i){return(0,e.createElement)(x,{id:"wds-add-property",title:(0,n.__)("Add Properties","wds"),description:i,actionButtonText:(0,n.__)("Add","wds"),actionButtonIcon:"sui-icon-plus",onClose:()=>this.stopAddingProperties(),onAction:e=>this.handleAddPropertiesButtonClick(t,e),options:o,noOptionsMessage:(0,e.createElement)("div",{className:"wds-box-selector-message"},(0,e.createElement)("h3",null,(0,n.__)("No properties to add","wds")),(0,e.createElement)("p",{className:"sui-description"},(0,n.__)("It seems that you have already added all the available properties.","wds"))),requiredNotice:this.getWarningElement((0,e.createInterpolateElement)((0,n.__)("You are missing properties that are required by Google ( <span>*</span> ). Make sure you include all of them so that your content will be eligible for display as a rich result. To learn more about schema type properties, see our <a>Schema Documentation</a>."),{span:(0,e.createElement)("span",null),a:(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#schema"})}))})}getWarningElement(t){return(0,e.createElement)("div",{className:"wds-missing-properties-notice sui-notice sui-notice-warning"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,t))))}preparePropertySelectorOptions(e,t){const o=[];return Object.keys(t).forEach((i=>{const s=t[i];e.hasOwnProperty(i)||o.push({id:s.id,label:s.label,required:s.required})})),o}getConditionGroupElements(t,o){return o.map(((o,i)=>{const s=(0,w.first)(o);return(0,e.createElement)("div",{key:"condition-group-"+s.id,className:"wds-schema-type-condition-group"},0===i&&(0,e.createElement)("span",null,(0,n.__)("Rule","wds")),0!==i&&(0,e.createElement)("span",null,(0,n.__)("Or","wds")),this.getConditionElements(t,o,i))}))}getConditionElements(t,o,i){return o.map(((o,s)=>(0,e.createElement)(h,{onChange:(e,o,i,s)=>this.updateCondition(t,e,o,i,s),onAdd:e=>this.addCondition(t,e),onDelete:e=>this.deleteCondition(t,e),disableDelete:0===i&&0===s,key:o.id,id:o.id,lhs:o.lhs,operator:o.operator,rhs:o.rhs})))}isNestedProperty(e){return e.properties}getActiveAltVersion(e){return e.properties[e.activeVersion]}hasAltVersions(e){return this.isNestedProperty(e)&&!!e.activeVersion&&e.properties.hasOwnProperty(e.activeVersion)}getDefaultProperties(e){const t={};return Object.keys(e).forEach((o=>{const i=e[o];i.optional||(t[o]=this.getDefaultProperty(i))})),t}getDefaultProperty(e){const t=[{},e];return this.isNestedProperty(e)&&t.push({properties:this.getDefaultProperties(e.properties)}),t.push({id:(0,w.uniqueId)()}),Object.assign({},...t)}cloneConditions(e){const t=[];return e.forEach((e=>{const o=[];e.forEach((e=>{o.push(Object.assign({},e,{id:(0,w.uniqueId)()}))})),t.push(o)})),t}initializeProperties(e,t){const o={};return Object.keys(e).forEach((i=>{const s=e[i],r=this.prepareRepeatableSourcePropertyKeys(this.propertyKeys(s.id,e)),n=this.getPropertyByKeys(r,t);o[i]=this.initializeProperty(s,n)})),o}initializeProperty(e,t){const o=[];return o.push(t),o.push({type:e.type,source:e.source,value:e.value}),this.hasAltVersions(e)&&o.push({activeVersion:e.activeVersion}),this.isNestedProperty(e)&&this.isNestedProperty(t)&&o.push({properties:this.initializeProperties(e.properties,t.properties)}),o.push({id:(0,w.uniqueId)()}),Object.assign({},...o)}cloneProperties(e){const t={};return Object.keys(e).forEach((o=>{t[o]=this.cloneProperty(e[o])})),t}cloneProperty(e){const t=[{},e];return this.isNestedProperty(e)&&t.push({properties:this.cloneProperties(e.properties)}),t.push({id:(0,w.uniqueId)()}),Object.assign({},...t)}startAddingSchemaType(){this.setState({addingSchemaTypes:!0})}stopAddingSchemaType(){this.removeAddTypeQueryVar(),this.setState({addingSchemaTypes:!1})}handleAddSchemaTypesButtonClick(e,t,o){this.addSchemaType(e,t,o).then((t=>{this.stopAddingSchemaType(),this.showNotice((0,n.__)("The type has been added. You need to save the changes to make them live.","wds")),this.showAfterAdditionNotice(e),this.toggleType(t)}))}showInvalidTypesNotice(){let e=(0,n.__)("One or more properties that are required by Google have been removed. Please check your types and click on the <strong>Add Property</strong> button to see the missing <strong>required properties</strong> ( <span>*</span> ).");b().openNotice("wds-schema-types-invalid-notice","<p>"+e+"</p>",{type:"warning",icon:"warning-alert",dismiss:{show:!0}})}showAfterAdditionNotice(e){let t=Ho.getType(e).afterAdditionNotice||!1;t&&b().openNotice("wds-schema-types-local-business-notice","<p>"+t+"</p>",{type:"grey",icon:"info",dismiss:{show:!0}})}getAddSchemaModalElement(){return(0,e.createElement)(Wo,{onClose:()=>this.stopAddingSchemaType(),onAdd:(e,t,o)=>this.handleAddSchemaTypesButtonClick(e,t,o)})}getSchemaTypeIcon(e){return Ho.getType(e).icon}generateTypeId(e){return(0,w.uniqueId)(e+"-")}addSchemaType(e,t,o){const i={},s=this.generateTypeId(e);return i[s]={$set:{label:t,type:e,version:this.getPluginVersion(),conditions:o,properties:this.getDefaultProperties(this.getPropertiesForType(e))}},new Promise((e=>{this.updateTypes(i).then((()=>e(s)))}))}getPluginVersion(){return a.get("plugin_version","schema_types")}getType(e){return this.state.types[e]}handleRepeatButtonClick(e,t){this.repeatProperty(e,t),this.openAccordionItemForProperty(t);const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties);this.showNotice((0,n.sprintf)((0,n.__)("A new %s has been added.","wds"),s.hasOwnProperty("labelSingle")?s.labelSingle:s.label))}prepareRepeatableSourcePropertyKeys(e){const t=[];return e.forEach((e=>{(0,w.parseInt)(e)>0?t.push("0"):t.push(e)})),t}repeatProperty(e,t){const o=this.getType(e),i=this.propertyKeys(t,o.properties),s=this.getPropertyByKeys(i,o.properties),r=this.prepareRepeatableSourcePropertyKeys(i),n=this.getPropertyByKeys(r,this.getPropertiesForType(o.type)),a=Object.keys(n.properties).shift(),l=n.properties[a],d=Math.max(...Object.keys(s.properties))+1;let c=this.getDefaultProperty(l);l.disallowDeletion&&l.disallowFirstItemDeletionOnly&&delete c.disallowDeletion,l.updateLabelNumber&&l.label&&(c.label=l.label.replace("1",d+1));const u=this.formatSpec([e,"properties",...i,"properties",d],{$set:c});this.updateTypes(u)}startAddingNestedProperties(e,t){this.openAccordionItemForProperty(t),this.setState({addingNestedForProperty:t})}getTypeAccordionItemClassName(e){return"wds-schema-type-"+e+"-accordion"}getPropertyAccordionItemClassName(e){return"wds-schema-property-"+e+"-accordion"}openAccordionItemForProperty(e){const t=this.getPropertyAccordionItemClassName(e);c()("."+t).addClass("sui-accordion-item--open")}nestedPropertyHasMissingRequiredProperties(e,t){if(!this.isNestedProperty(t)||!t.required)return!1;const o=this.getType(e),i=this.propertyKeys(t.id,o.properties),s=this.prepareRepeatableSourcePropertyKeys(i),r=this.getPropertyByKeys(s,this.getPropertiesForType(o.type));return this.requiredPropertiesMissing(t.properties,r.properties)}startResettingProperties(e){this.setState({resettingProperties:e})}getPropertyResetModalElement(t){return(0,e.createElement)(v,{small:!0,id:"wds-confirm-property-reset",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopResettingProperties(),focusAfterOpen:"wds-schema-property-reset-button",description:(0,n.__)("Are you sure you want to dismiss your changes and turn back your properties list to default?","wds")},(0,e.createElement)(T,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopResettingProperties(),ghost:!0}),(0,e.createElement)(T,{text:(0,n.__)("Reset Properties","wds"),onClick:()=>this.resetProperties(t),icon:"sui-icon-refresh",id:"wds-schema-property-reset-button"}))}resetProperties(e){const t=this.getType(e),o=this.formatSpec([e,"properties"],{$set:this.getDefaultProperties(this.getPropertiesForType(t.type))});this.updateTypes(o).then((()=>{this.showNotice((0,n.__)("Properties have been reset to default","wds")),this.stopResettingProperties(),this.checkTypeValidity(e)}))}stopResettingProperties(){this.setState({resettingProperties:""})}startRenamingType(e){this.setState({renamingType:e})}stopRenamingType(){this.setState({renamingType:""})}renameType(e,t){const o=this.formatSpec([e,"label"],{$set:t});this.updateTypes(o).then((()=>{this.showNotice((0,n.__)("The type has been renamed.","wds")),this.stopRenamingType()}))}getTypeRenameModalElement(t){let o=Ho.getType(this.getType(t).type).schemaReplacementNotice;return(0,e.createElement)(ii,{name:this.getType(t).label,notice:!!o&&(0,e.createElement)(si,{type:"info",message:o}),onRename:e=>this.renameType(t,e),onClose:()=>this.stopRenamingType()})}startDeletingType(e){this.setState({deletingType:e})}stopDeletingType(){this.setState({deletingType:""})}deleteType(e){return this.updateTypes({$unset:[e]})}getTypeDeleteModalElement(t){return(0,e.createElement)(v,{small:!0,id:"wds-confirm-type-deletion",title:(0,n.__)("Are you sure?","wds"),onClose:()=>this.stopDeletingType(),focusAfterOpen:"wds-schema-type-delete-button",description:(0,n.__)("Are you sure you wish to delete this schema type? You can add it again anytime.","wds")},(0,e.createElement)(T,{text:(0,n.__)("Cancel","wds"),onClick:()=>this.stopDeletingType(),ghost:!0}),(0,e.createElement)(T,{text:(0,n.__)("Delete","wds"),onClick:()=>this.handleTypeDeleteButtonClick(t),icon:"sui-icon-trash",color:"red",id:"wds-schema-type-delete-button"}))}handleTypeDeleteButtonClick(e){this.deleteType(e).then((()=>{this.showNotice((0,n.__)("The type has been removed. You need to save the changes to make them live.","wds"),"info"),this.stopDeletingType(),this.setTypeInvalid(e,!1)}))}showNotice(e,t="success",o=!1){b().openNotice("wds-schema-types-notice","<p>"+e+"</p>",{type:t,icon:{error:"warning-alert",info:"info",warning:"warning-alert",success:"check-tick"}[t],dismiss:{show:o}})}getStateInput(){return(0,e.createElement)("input",{type:"hidden",name:"wds-schema-types",value:JSON.stringify(this.state.types)})}startChangingPropertyType(e){this.setState({changingPropertyTypeForId:e})}stopChangingPropertyType(){this.setState({changingPropertyTypeForId:0})}getPropertyTypeChangeModalElement(t,o){const i=this.getType(t),s=this.getPropertyParent(o,i.properties);let r=this.getAltVersionTypes(s);return r&&(r=r.filter((e=>s.activeVersion!==e.id))),(0,e.createElement)(x,{id:"wds-change-property-type",title:(0,n.__)("Change Property Type","wds"),description:(0,n.__)("Select one of the following types to switch.","wds"),actionButtonText:(0,n.__)("Change","wds"),actionButtonIcon:"sui-icon-defer",onClose:()=>this.stopChangingPropertyType(),onAction:e=>this.handlePropertyTypeChange(t,s,e),options:r,multiple:!1})}handlePropertyTypeChange(e,t,o){if(!o.length)return;const i=o[0],s=this.getType(e),r=this.propertyKeys(t.id,s.properties),a=this.prepareRepeatableSourcePropertyKeys(r),l=this.getPropertyByKeys(a,this.getPropertiesForType(s.type)),d=this.getDefaultProperties(l.properties),c=this.formatSpec([e,"properties",...r],{activeVersion:{$set:i},properties:{$set:d}});this.updateTypes(c).then((()=>{const t=this.getPropertyByKeys([i],d);this.openAccordionItemForProperty(t.id),this.showNotice((0,n.sprintf)((0,n.__)("Property type has been changed to %s","wds"),i)),this.checkTypeValidity(e)}))}getPropertyParent(e,t){const o=this.propertyKeys(e,t);return o.pop(),o.pop(),this.getPropertyByKeys(o,t)}getPropertyById(e,t){const o=this.propertyKeys(e,t);return this.getPropertyByKeys(o,t)}getAltVersionTypes(e){if(!this.hasAltVersions(e))return!1;const t=[];return Object.keys(e.properties).forEach((o=>{const i=e.properties[o];t.push({id:o,label:i.label})})),t}duplicateType(e){const t={},o=this.getType(e),i=this.generateTypeId(o.type),s=this.cloneProperties(o.properties),r=this.cloneConditions(o.conditions);t[i]={$set:{label:o.label,type:o.type,version:o.version||!1,conditions:r,properties:s}},this.updateTypes(t).then((()=>{this.checkTypeValidity(i),this.showNotice((0,n.__)("The type has been duplicated successfully.","wds"))}))}removeAddTypeQueryVar(){$o.removeQueryParam("add_type")}maybeStartAddingSchemaType(){"1"===$o.getQueryParam("add_type")&&this.startAddingSchemaType()}getTypeSubText(e){return Ho.getType(e).subText||""}}class xi extends i().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e),console.error(t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"sui-notice sui-notice-error"},(0,e.createElement)("div",{className:"sui-notice-content"},(0,e.createElement)("div",{className:"sui-notice-message"},(0,e.createElement)("span",{className:"sui-notice-icon sui-icon-warning-alert sui-md","aria-hidden":"true"}),(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Something went wrong. Please contact ",(0,e.createElement)("a",{target:"_blank",href:"https://wpmudev.com/get-support/"},"support"),"."))))):this.props.children}}var Ai=xi;c()((()=>{c()("#wds-schema-type-components").length&&(0,s.render)((0,e.createElement)(Ai,null,(0,e.createElement)(Si,null)),document.getElementById("wds-schema-type-components"))}))}()}();
|
includes/assets/js/components/notice.js
CHANGED
@@ -27,7 +27,8 @@ export default class Notice extends React.Component {
|
|
27 |
warning: 'sui-icon-warning-alert',
|
28 |
info: 'sui-icon-info',
|
29 |
success: 'sui-icon-check-tick',
|
30 |
-
purple: 'sui-icon-info'
|
|
|
31 |
};
|
32 |
|
33 |
return icons[type];
|
27 |
warning: 'sui-icon-warning-alert',
|
28 |
info: 'sui-icon-info',
|
29 |
success: 'sui-icon-check-tick',
|
30 |
+
purple: 'sui-icon-info',
|
31 |
+
"": 'sui-icon-info',
|
32 |
};
|
33 |
|
34 |
return icons[type];
|
includes/assets/js/components/schema/add-schema-type-wizard-modal.js
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
import React from 'react';
|
2 |
-
import schemaTypesHierarchy from "./schema-types-hierarchy";
|
3 |
import {first, last, uniqueId} from "lodash-es";
|
4 |
import Modal from "../modal";
|
5 |
import {__, sprintf} from "@wordpress/i18n";
|
6 |
import BoxSelector from "../box-selector";
|
7 |
import Button from "../button";
|
8 |
-
import schemaTypes from "./schema-types";
|
9 |
import SchemaTypeCondition from "./schema-type-condition";
|
10 |
import cloneDeep from "lodash-es/cloneDeep";
|
11 |
import {createInterpolateElement} from '@wordpress/element';
|
|
|
12 |
|
13 |
export default class AddSchemaTypeWizardModal extends React.Component {
|
14 |
static defaultProps = {
|
@@ -149,10 +148,7 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
149 |
return false;
|
150 |
}
|
151 |
|
152 |
-
|
153 |
-
addedTypes.push(first(selectedTypes));
|
154 |
-
|
155 |
-
return !!this.getSubTypes(addedTypes);
|
156 |
}
|
157 |
|
158 |
loadPreviousTypes() {
|
@@ -167,40 +163,39 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
167 |
|
168 |
getOptions() {
|
169 |
const addedTypes = this.state.addedTypes;
|
170 |
-
let
|
171 |
-
if (
|
172 |
-
|
|
|
|
|
|
|
173 |
} else {
|
174 |
-
|
175 |
}
|
176 |
-
}
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
typesPath.forEach((pathType) => {
|
182 |
-
if (types && types.hasOwnProperty(pathType)) {
|
183 |
-
types = types[pathType];
|
184 |
-
} else {
|
185 |
-
types = false;
|
186 |
-
}
|
187 |
-
});
|
188 |
|
189 |
-
|
|
|
|
|
|
|
|
|
190 |
}
|
191 |
|
192 |
-
buildOptionsFromTypes(
|
193 |
const options = [];
|
194 |
-
|
|
|
195 |
if (
|
196 |
-
|
197 |
-
|
198 |
) {
|
199 |
options.push({
|
200 |
-
id:
|
201 |
-
label:
|
202 |
-
icon:
|
203 |
-
disabled: !!
|
204 |
});
|
205 |
}
|
206 |
});
|
@@ -265,28 +260,24 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
265 |
this.setState({selectedTypes: selectedTypes});
|
266 |
}
|
267 |
|
268 |
-
getSubTypesNotice(
|
269 |
-
|
|
|
|
|
270 |
return '';
|
271 |
}
|
272 |
|
273 |
-
return
|
274 |
}
|
275 |
|
276 |
-
getTypeLabel(
|
277 |
-
|
278 |
-
return type;
|
279 |
-
}
|
280 |
-
|
281 |
-
return schemaTypes[type].label;
|
282 |
}
|
283 |
|
284 |
-
getTypeLabelFull(
|
285 |
-
|
286 |
-
return type;
|
287 |
-
}
|
288 |
|
289 |
-
return
|
290 |
}
|
291 |
|
292 |
breadcrumbs() {
|
@@ -339,15 +330,14 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
339 |
if (this.isStateType()) {
|
340 |
if (this.typesAdded()) {
|
341 |
const selected = last(this.state.addedTypes);
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
});
|
351 |
} else {
|
352 |
return __('Start by selecting the schema type you want to use. By default, all of the types will include the properties required and recommended by Google.', 'wds');
|
353 |
}
|
@@ -396,22 +386,12 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
396 |
});
|
397 |
}
|
398 |
|
399 |
-
getDefaultCondition(
|
400 |
-
const
|
401 |
const fallback = {id: uniqueId(), lhs: 'post_type', operator: '=', rhs: 'post'};
|
402 |
|
403 |
-
|
404 |
-
|
405 |
-
condition = schemaTypeDefinition.condition;
|
406 |
-
} else if (
|
407 |
-
schemaTypeDefinition.parent
|
408 |
-
&& schemaTypes[schemaTypeDefinition.parent].condition
|
409 |
-
) {
|
410 |
-
condition = schemaTypes[schemaTypeDefinition.parent].condition
|
411 |
-
}
|
412 |
-
|
413 |
-
return condition
|
414 |
-
? Object.assign({}, condition, {id: uniqueId()})
|
415 |
: fallback;
|
416 |
}
|
417 |
|
@@ -496,30 +476,28 @@ export default class AddSchemaTypeWizardModal extends React.Component {
|
|
496 |
return string.toLowerCase().includes(subString.toLowerCase());
|
497 |
}
|
498 |
|
499 |
-
typeMatchesSearch(
|
500 |
-
const typeMatches = this.stringIncludesSubstring(
|
501 |
if (typeMatches) {
|
502 |
return true;
|
503 |
}
|
504 |
|
505 |
-
return this.stringIncludesSubstring(this.getTypeLabel(
|
506 |
}
|
507 |
|
508 |
-
typeOrSubtypeMatchesSearch(
|
509 |
-
if (this.typeMatchesSearch(
|
510 |
return true;
|
511 |
}
|
512 |
|
513 |
-
const
|
514 |
-
addedTypes.push(type);
|
515 |
-
const subTypes = this.getSubTypes(addedTypes);
|
516 |
|
517 |
-
if (!
|
518 |
return false;
|
519 |
} else {
|
520 |
let subtypeMatched = false;
|
521 |
-
|
522 |
-
if (this.typeMatchesSearch(
|
523 |
subtypeMatched = true;
|
524 |
}
|
525 |
});
|
1 |
import React from 'react';
|
|
|
2 |
import {first, last, uniqueId} from "lodash-es";
|
3 |
import Modal from "../modal";
|
4 |
import {__, sprintf} from "@wordpress/i18n";
|
5 |
import BoxSelector from "../box-selector";
|
6 |
import Button from "../button";
|
|
|
7 |
import SchemaTypeCondition from "./schema-type-condition";
|
8 |
import cloneDeep from "lodash-es/cloneDeep";
|
9 |
import {createInterpolateElement} from '@wordpress/element';
|
10 |
+
import SchemaTypes from "./schema-types";
|
11 |
|
12 |
export default class AddSchemaTypeWizardModal extends React.Component {
|
13 |
static defaultProps = {
|
148 |
return false;
|
149 |
}
|
150 |
|
151 |
+
return !!this.getSubTypes(first(selectedTypes));
|
|
|
|
|
|
|
152 |
}
|
153 |
|
154 |
loadPreviousTypes() {
|
163 |
|
164 |
getOptions() {
|
165 |
const addedTypes = this.state.addedTypes;
|
166 |
+
let typeKeys;
|
167 |
+
if (addedTypes.length) {
|
168 |
+
typeKeys = this.getSubTypes(last(addedTypes));
|
169 |
+
if (!typeKeys) {
|
170 |
+
return [];
|
171 |
+
}
|
172 |
} else {
|
173 |
+
typeKeys = SchemaTypes.getTopLevelTypeKeys();
|
174 |
}
|
|
|
175 |
|
176 |
+
return this.buildOptionsFromTypes(typeKeys);
|
177 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
+
getSubTypes(typeKey) {
|
180 |
+
const type = SchemaTypes.getType(typeKey);
|
181 |
+
return type.children.length
|
182 |
+
? type.children
|
183 |
+
: false;
|
184 |
}
|
185 |
|
186 |
+
buildOptionsFromTypes(typeKeys) {
|
187 |
const options = [];
|
188 |
+
typeKeys.forEach((typeKey) => {
|
189 |
+
const type = SchemaTypes.getType(typeKey);
|
190 |
if (
|
191 |
+
!type.hidden &&
|
192 |
+
(this.state.searchTerm.trim() === '' || this.typeOrSubtypeMatchesSearch(typeKey))
|
193 |
) {
|
194 |
options.push({
|
195 |
+
id: typeKey,
|
196 |
+
label: type.label,
|
197 |
+
icon: type.icon,
|
198 |
+
disabled: !!type.disabled
|
199 |
});
|
200 |
}
|
201 |
});
|
260 |
this.setState({selectedTypes: selectedTypes});
|
261 |
}
|
262 |
|
263 |
+
getSubTypesNotice(typeKey) {
|
264 |
+
const type = SchemaTypes.getType(typeKey);
|
265 |
+
if (!type.children.length) {
|
266 |
+
// No subtypes so no notice
|
267 |
return '';
|
268 |
}
|
269 |
|
270 |
+
return type.subTypesNotice || '';
|
271 |
}
|
272 |
|
273 |
+
getTypeLabel(typeKey) {
|
274 |
+
return SchemaTypes.getType(typeKey).label;
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
|
277 |
+
getTypeLabelFull(typeKey) {
|
278 |
+
const type = SchemaTypes.getType(typeKey);
|
|
|
|
|
279 |
|
280 |
+
return type.labelFull || type.label;
|
281 |
}
|
282 |
|
283 |
breadcrumbs() {
|
330 |
if (this.isStateType()) {
|
331 |
if (this.typesAdded()) {
|
332 |
const selected = last(this.state.addedTypes);
|
333 |
+
return <React.Fragment>
|
334 |
+
{sprintf(
|
335 |
+
__('You can specify a subtype of %s, or you can skip this to add the generic type.', 'wds'),
|
336 |
+
this.getTypeLabel(selected)
|
337 |
+
)}
|
338 |
+
<br/>
|
339 |
+
{this.getSubTypesNotice(selected)}
|
340 |
+
</React.Fragment>;
|
|
|
341 |
} else {
|
342 |
return __('Start by selecting the schema type you want to use. By default, all of the types will include the properties required and recommended by Google.', 'wds');
|
343 |
}
|
386 |
});
|
387 |
}
|
388 |
|
389 |
+
getDefaultCondition(typeKey) {
|
390 |
+
const type = SchemaTypes.getType(typeKey);
|
391 |
const fallback = {id: uniqueId(), lhs: 'post_type', operator: '=', rhs: 'post'};
|
392 |
|
393 |
+
return type.condition
|
394 |
+
? Object.assign({}, type.condition, {id: uniqueId()})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
: fallback;
|
396 |
}
|
397 |
|
476 |
return string.toLowerCase().includes(subString.toLowerCase());
|
477 |
}
|
478 |
|
479 |
+
typeMatchesSearch(typeKey) {
|
480 |
+
const typeMatches = this.stringIncludesSubstring(typeKey, this.state.searchTerm);
|
481 |
if (typeMatches) {
|
482 |
return true;
|
483 |
}
|
484 |
|
485 |
+
return this.stringIncludesSubstring(this.getTypeLabel(typeKey), this.state.searchTerm);
|
486 |
}
|
487 |
|
488 |
+
typeOrSubtypeMatchesSearch(typeKey) {
|
489 |
+
if (this.typeMatchesSearch(typeKey)) {
|
490 |
return true;
|
491 |
}
|
492 |
|
493 |
+
const subTypeKeys = this.getSubTypes(typeKey);
|
|
|
|
|
494 |
|
495 |
+
if (!subTypeKeys) {
|
496 |
return false;
|
497 |
} else {
|
498 |
let subtypeMatched = false;
|
499 |
+
subTypeKeys.forEach(subTypeKey => {
|
500 |
+
if (this.typeMatchesSearch(subTypeKey)) {
|
501 |
subtypeMatched = true;
|
502 |
}
|
503 |
});
|
includes/assets/js/components/schema/schema-builder.js
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
import React from 'react';
|
2 |
import SchemaTypeCondition from "./schema-type-condition";
|
3 |
import update from 'immutability-helper';
|
4 |
-
import {parseInt, uniqueId
|
5 |
import {__, _n, sprintf} from '@wordpress/i18n';
|
6 |
-
import SchemaPropertySimple from "./schema-property-simple";
|
7 |
import Modal from "../modal";
|
8 |
import Button from "../button";
|
9 |
-
import schemaProperties from "./schema-properties";
|
10 |
-
import schemaTypesList from "./schema-types";
|
11 |
-
import Dropdown from "../dropdown";
|
12 |
import classnames from 'classnames';
|
13 |
import $ from 'jQuery';
|
14 |
import SUI from 'SUI';
|
@@ -17,8 +13,15 @@ import BoxSelectorModal from "../box-selector-modal";
|
|
17 |
import AddSchemaTypeWizardModal from "./add-schema-type-wizard-modal";
|
18 |
import SchemaTypeLocations from "./schema-type-locations";
|
19 |
import {createInterpolateElement} from '@wordpress/element';
|
20 |
-
import schemaTypesHierarchy from "./schema-types-hierarchy";
|
21 |
import UrlUtil from "../utils/url-util";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
export default class SchemaBuilder extends React.Component {
|
24 |
constructor(props) {
|
@@ -35,7 +38,6 @@ export default class SchemaBuilder extends React.Component {
|
|
35 |
addingSchemaTypes: false,
|
36 |
resettingProperties: '',
|
37 |
renamingType: '',
|
38 |
-
newName: '',
|
39 |
deletingType: '',
|
40 |
changingPropertyTypeForId: 0,
|
41 |
openTypes: [],
|
@@ -70,10 +72,15 @@ export default class SchemaBuilder extends React.Component {
|
|
70 |
const schemaTypes = {};
|
71 |
const savedSchemaTypes = Config_Values.get('types', 'schema_types');
|
72 |
const initializedTypeIds = [];
|
|
|
73 |
Object.keys(savedSchemaTypes).forEach((schemaTypeKey) => {
|
74 |
const savedSchemaType = savedSchemaTypes[schemaTypeKey];
|
75 |
const typeId = this.generateTypeId(savedSchemaType.type);
|
76 |
-
const
|
|
|
|
|
|
|
|
|
77 |
const conditions = this.cloneConditions(savedSchemaType.conditions);
|
78 |
|
79 |
schemaTypes[typeId] = Object.assign({}, savedSchemaType, {
|
@@ -113,22 +120,11 @@ export default class SchemaBuilder extends React.Component {
|
|
113 |
}
|
114 |
|
115 |
defaultCondition(typeKey) {
|
116 |
-
const type = this.getType(typeKey);
|
117 |
-
const schemaTypeDefinition = schemaTypesList[type.type];
|
118 |
const fallback = {id: uniqueId(), lhs: 'post_type', operator: '=', rhs: 'post'};
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
condition = schemaTypeDefinition.condition;
|
123 |
-
} else if (
|
124 |
-
schemaTypeDefinition.parent
|
125 |
-
&& schemaTypesList[schemaTypeDefinition.parent].condition
|
126 |
-
) {
|
127 |
-
condition = schemaTypesList[schemaTypeDefinition.parent].condition
|
128 |
-
}
|
129 |
-
|
130 |
-
return condition
|
131 |
-
? Object.assign({}, condition, {id: uniqueId()})
|
132 |
: fallback;
|
133 |
}
|
134 |
|
@@ -224,13 +220,9 @@ export default class SchemaBuilder extends React.Component {
|
|
224 |
this.stopAddingProperties();
|
225 |
}
|
226 |
|
227 |
-
getPropertiesForType(
|
228 |
-
const
|
229 |
-
|
230 |
-
? schemaTypeDefinition.parent
|
231 |
-
: type;
|
232 |
-
|
233 |
-
return schemaProperties[propertiesKey];
|
234 |
}
|
235 |
|
236 |
openAccordionItemForPropertyOrAlt(typeKey, newPropertyId) {
|
@@ -502,9 +494,7 @@ export default class SchemaBuilder extends React.Component {
|
|
502 |
this.getTypeAccordionItemClassName(typeKey),
|
503 |
{
|
504 |
'sui-accordion-item--open': this.state.openTypes.includes(typeKey),
|
505 |
-
'sui-accordion-item--disabled':
|
506 |
-
(this.isWooCommerceProduct(type.type) && !this.isWooCommerceActive())
|
507 |
-
|| type.disabled
|
508 |
}
|
509 |
)}>
|
510 |
{this.getTypeAccordionItemHeaderElement(typeKey)}
|
@@ -538,19 +528,16 @@ export default class SchemaBuilder extends React.Component {
|
|
538 |
</div>
|
539 |
|
540 |
<div id="wds-schema-types-footer">
|
541 |
-
<
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
<span className="sui-icon-plus" aria-hidden="true"/>
|
546 |
-
{__('Add New Type', 'wds')}
|
547 |
-
</button>
|
548 |
|
549 |
<p className="sui-description">
|
550 |
{__('Add additional schema types you want to output on this site.', 'wds')}
|
551 |
</p>
|
552 |
|
553 |
-
|
554 |
</div>
|
555 |
|
556 |
{this.state.addingSchemaTypes && this.getAddSchemaModalElement()}
|
@@ -560,40 +547,31 @@ export default class SchemaBuilder extends React.Component {
|
|
560 |
}
|
561 |
|
562 |
getPropertiesTableElement(typeKey, properties) {
|
563 |
-
return <
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
<Button icon="sui-icon-plus"
|
589 |
-
onClick={() => this.startAddingProperties(typeKey)}
|
590 |
-
text={__('Add Property', 'wds')}
|
591 |
-
/>
|
592 |
-
</div>
|
593 |
-
</td>
|
594 |
-
</tr>
|
595 |
-
</tfoot>
|
596 |
-
</table>;
|
597 |
}
|
598 |
|
599 |
getSchemaTypeRulesElement(typeKey, conditions) {
|
@@ -704,23 +682,9 @@ export default class SchemaBuilder extends React.Component {
|
|
704 |
/>
|
705 |
<span aria-hidden="true" className="sui-toggle-slider"/>
|
706 |
</label>
|
707 |
-
<
|
708 |
-
|
709 |
-
|
710 |
-
<span className="sui-icon-pencil" aria-hidden="true"/>
|
711 |
-
{__('Rename', 'wds')}
|
712 |
-
</button>,
|
713 |
-
<button onClick={() => this.duplicateType(typeKey)}
|
714 |
-
type="button">
|
715 |
-
<span className="sui-icon-copy" aria-hidden="true"/>
|
716 |
-
{__('Duplicate', 'wds')}
|
717 |
-
</button>,
|
718 |
-
<button onClick={() => this.startDeletingType(typeKey)}
|
719 |
-
type="button">
|
720 |
-
<span className="sui-icon-trash" aria-hidden="true"/>
|
721 |
-
{__('Delete', 'wds')}
|
722 |
-
</button>,
|
723 |
-
]}/>
|
724 |
|
725 |
<button className="sui-button-icon sui-accordion-open-indicator"
|
726 |
type="button"
|
@@ -870,56 +834,14 @@ export default class SchemaBuilder extends React.Component {
|
|
870 |
return property.properties;
|
871 |
}
|
872 |
|
873 |
-
isFlatNestedProperty(property) {
|
874 |
-
return property.properties && property.flatten;
|
875 |
-
}
|
876 |
-
|
877 |
getActiveAltVersion(property) {
|
878 |
return property.properties[property.activeVersion];
|
879 |
}
|
880 |
|
881 |
-
hasLoop(property) {
|
882 |
-
return !!property.loop;
|
883 |
-
}
|
884 |
-
|
885 |
hasAltVersions(property) {
|
886 |
return this.isNestedProperty(property) && !!property.activeVersion && property.properties.hasOwnProperty(property.activeVersion);
|
887 |
}
|
888 |
|
889 |
-
getPropertyElements(typeKey, properties) {
|
890 |
-
const elements = [];
|
891 |
-
Object.keys(properties).forEach((propertyKey) => {
|
892 |
-
const property = properties[propertyKey];
|
893 |
-
|
894 |
-
elements.push(this.getPropertyElement(typeKey, property));
|
895 |
-
});
|
896 |
-
|
897 |
-
return elements;
|
898 |
-
}
|
899 |
-
|
900 |
-
getPropertyElement(typeKey, property, isAnAltVersion = false) {
|
901 |
-
if (this.hasAltVersions(property)) {
|
902 |
-
return this.getPropertyElement(typeKey, this.getActiveAltVersion(property), true);
|
903 |
-
} else if (this.isPropertyRepeatable(property)) {
|
904 |
-
return this.getRepeatingPropertyElements(typeKey, property, isAnAltVersion);
|
905 |
-
} else if (this.isFlatNestedProperty(property)) {
|
906 |
-
return this.getPropertyElements(typeKey, property.properties);
|
907 |
-
} else if (this.isNestedProperty(property)) {
|
908 |
-
return this.getNestedPropertyElements(typeKey, property, isAnAltVersion);
|
909 |
-
} else {
|
910 |
-
return this.getSimplePropertyElement(typeKey, property);
|
911 |
-
}
|
912 |
-
}
|
913 |
-
|
914 |
-
getSimplePropertyElement(typeKey, property) {
|
915 |
-
return <SchemaPropertySimple
|
916 |
-
{...property}
|
917 |
-
key={'property-' + property.id}
|
918 |
-
onChange={(id, source, value) => this.updateProperty(typeKey, id, source, value)}
|
919 |
-
onDelete={id => this.startDeletingProperty(typeKey, id)}
|
920 |
-
/>;
|
921 |
-
}
|
922 |
-
|
923 |
getDefaultProperties(properties) {
|
924 |
const defaultProperties = {};
|
925 |
Object.keys(properties).forEach((propertyKey) => {
|
@@ -959,6 +881,39 @@ export default class SchemaBuilder extends React.Component {
|
|
959 |
return clonedConditionGroup;
|
960 |
}
|
961 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
962 |
cloneProperties(properties) {
|
963 |
const clonedProperties = {};
|
964 |
Object.keys(properties).forEach((propertyKey) => {
|
@@ -998,34 +953,11 @@ export default class SchemaBuilder extends React.Component {
|
|
998 |
.then((typeKey) => {
|
999 |
this.stopAddingSchemaType();
|
1000 |
this.showNotice(__('The type has been added. You need to save the changes to make them live.', 'wds'));
|
1001 |
-
|
1002 |
-
this.showLocalBusinessNotice();
|
1003 |
-
}
|
1004 |
this.toggleType(typeKey);
|
1005 |
});
|
1006 |
}
|
1007 |
|
1008 |
-
isLocalBusinessType(needle, types = false) {
|
1009 |
-
if (needle === 'LocalBusiness') {
|
1010 |
-
return true;
|
1011 |
-
}
|
1012 |
-
|
1013 |
-
if (!types) {
|
1014 |
-
types = schemaTypesHierarchy['LocalBusiness'];
|
1015 |
-
}
|
1016 |
-
|
1017 |
-
let found = false;
|
1018 |
-
Object.keys(types).some((schemaType) => {
|
1019 |
-
if (schemaType === needle) {
|
1020 |
-
found = true;
|
1021 |
-
} else if (types[schemaType]) {
|
1022 |
-
found = this.isLocalBusinessType(needle, types[schemaType]);
|
1023 |
-
}
|
1024 |
-
return found;
|
1025 |
-
});
|
1026 |
-
return found;
|
1027 |
-
}
|
1028 |
-
|
1029 |
showInvalidTypesNotice() {
|
1030 |
let message = __('One or more properties that are required by Google have been removed. Please check your types and click on the <strong>Add Property</strong> button to see the missing <strong>required properties</strong> ( <span>*</span> ).');
|
1031 |
SUI.openNotice('wds-schema-types-invalid-notice', '<p>' + message + '</p>', {
|
@@ -1033,14 +965,12 @@ export default class SchemaBuilder extends React.Component {
|
|
1033 |
});
|
1034 |
}
|
1035 |
|
1036 |
-
|
1037 |
-
let message =
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
)
|
1043 |
-
);
|
1044 |
SUI.openNotice('wds-schema-types-local-business-notice', '<p>' + message + '</p>', {
|
1045 |
type: 'grey', icon: 'info', dismiss: {show: true}
|
1046 |
});
|
@@ -1054,17 +984,7 @@ export default class SchemaBuilder extends React.Component {
|
|
1054 |
}
|
1055 |
|
1056 |
getSchemaTypeIcon(typeKey) {
|
1057 |
-
return
|
1058 |
-
}
|
1059 |
-
|
1060 |
-
isProduct(type) {
|
1061 |
-
return type === 'Product' || this.isWooCommerceProduct(type);
|
1062 |
-
}
|
1063 |
-
|
1064 |
-
isWooCommerceProduct(type) {
|
1065 |
-
return type === 'WooProduct'
|
1066 |
-
|| type === 'WooSimpleProduct'
|
1067 |
-
|| type === 'WooVariableProduct';
|
1068 |
}
|
1069 |
|
1070 |
generateTypeId(type) {
|
@@ -1079,6 +999,7 @@ export default class SchemaBuilder extends React.Component {
|
|
1079 |
$set: {
|
1080 |
label: label,
|
1081 |
type: type,
|
|
|
1082 |
conditions: conditions,
|
1083 |
properties: this.getDefaultProperties(this.getPropertiesForType(type))
|
1084 |
}
|
@@ -1089,6 +1010,10 @@ export default class SchemaBuilder extends React.Component {
|
|
1089 |
});
|
1090 |
}
|
1091 |
|
|
|
|
|
|
|
|
|
1092 |
getType(typeKey) {
|
1093 |
return this.state.types[typeKey];
|
1094 |
}
|
@@ -1102,8 +1027,8 @@ export default class SchemaBuilder extends React.Component {
|
|
1102 |
const property = this.getPropertyByKeys(propertyKeys, type.properties);
|
1103 |
this.showNotice(sprintf(
|
1104 |
__('A new %s has been added.', 'wds'),
|
1105 |
-
property.hasOwnProperty('
|
1106 |
-
? property.
|
1107 |
: property.label
|
1108 |
));
|
1109 |
}
|
@@ -1147,11 +1072,11 @@ export default class SchemaBuilder extends React.Component {
|
|
1147 |
this.updateTypes(spec);
|
1148 |
}
|
1149 |
|
1150 |
-
startAddingNestedProperties(typeKey,
|
1151 |
-
this.openAccordionItemForProperty(
|
1152 |
|
1153 |
this.setState({
|
1154 |
-
addingNestedForProperty:
|
1155 |
});
|
1156 |
}
|
1157 |
|
@@ -1189,202 +1114,6 @@ export default class SchemaBuilder extends React.Component {
|
|
1189 |
);
|
1190 |
}
|
1191 |
|
1192 |
-
getNestedPropertyElements(typeKey, property, isAnAltVersion) {
|
1193 |
-
return <tr key={'nested-property-row-' + property.id}>
|
1194 |
-
<td colSpan={4} className="wds-schema-nested-properties">
|
1195 |
-
<div className="sui-accordion">
|
1196 |
-
<div
|
1197 |
-
className={classnames('sui-accordion-item', this.getPropertyAccordionItemClassName(property.id))}>
|
1198 |
-
{this.getAccordionItemHeaderElement(
|
1199 |
-
typeKey, property,
|
1200 |
-
<React.Fragment>
|
1201 |
-
{isAnAltVersion &&
|
1202 |
-
<div className="sui-accordion-item-action">
|
1203 |
-
<button onClick={() => this.startChangingPropertyType(property.id)}
|
1204 |
-
data-tooltip={__('Change the type of this property', 'wds')}
|
1205 |
-
type="button"
|
1206 |
-
className="sui-button-icon sui-tooltip">
|
1207 |
-
<span className="sui-icon-defer" aria-hidden="true"/>
|
1208 |
-
</button>
|
1209 |
-
</div>
|
1210 |
-
}
|
1211 |
-
</React.Fragment>
|
1212 |
-
)}
|
1213 |
-
|
1214 |
-
<div className="sui-accordion-item-body">
|
1215 |
-
{this.hasLoop(property) &&
|
1216 |
-
<div>{this.getLoopDescription(property)}</div>
|
1217 |
-
}
|
1218 |
-
|
1219 |
-
<table className="sui-table">
|
1220 |
-
<tbody>
|
1221 |
-
{this.getPropertyElements(typeKey, property.properties)}
|
1222 |
-
</tbody>
|
1223 |
-
{!property.disallowAddition && <tfoot>
|
1224 |
-
<tr>
|
1225 |
-
<td colSpan={4}>
|
1226 |
-
<Button onClick={() => this.startAddingNestedProperties(typeKey, property)}
|
1227 |
-
ghost={true}
|
1228 |
-
icon="sui-icon-plus"
|
1229 |
-
text={__('Add Property', 'wds')}/>
|
1230 |
-
</td>
|
1231 |
-
</tr>
|
1232 |
-
</tfoot>}
|
1233 |
-
</table>
|
1234 |
-
</div>
|
1235 |
-
</div>
|
1236 |
-
{this.state.addingNestedForProperty === property.id && this.getAddNestedPropertyModalElement(typeKey, property.id)}
|
1237 |
-
{this.state.changingPropertyTypeForId === property.id && this.getPropertyTypeChangeModalElement(typeKey, property.id)}
|
1238 |
-
</div>
|
1239 |
-
</td>
|
1240 |
-
</tr>;
|
1241 |
-
}
|
1242 |
-
|
1243 |
-
getRepeatingPropertyElements(typeKey, property, isAnAltVersion) {
|
1244 |
-
const repeatables = property.properties;
|
1245 |
-
|
1246 |
-
return <tr key={'repeating-property-row-' + property.id}>
|
1247 |
-
<td colSpan={4} className="wds-schema-repeating-properties">
|
1248 |
-
<div className="sui-accordion">
|
1249 |
-
<div
|
1250 |
-
className={classnames('sui-accordion-item', this.getPropertyAccordionItemClassName(property.id))}>
|
1251 |
-
{this.getAccordionItemHeaderElement(
|
1252 |
-
typeKey, property,
|
1253 |
-
<React.Fragment>
|
1254 |
-
{isAnAltVersion &&
|
1255 |
-
<div className="sui-accordion-item-action">
|
1256 |
-
<button onClick={() => this.startChangingPropertyType(property.id)}
|
1257 |
-
data-tooltip={__('Change the type of this property', 'wds')}
|
1258 |
-
type="button"
|
1259 |
-
className="sui-button-icon sui-tooltip">
|
1260 |
-
<span className="sui-icon-defer" aria-hidden="true"/>
|
1261 |
-
</button>
|
1262 |
-
</div>
|
1263 |
-
}
|
1264 |
-
|
1265 |
-
<div className="sui-accordion-item-action">
|
1266 |
-
<button onClick={() => this.handleRepeatButtonClick(typeKey, property.id)}
|
1267 |
-
type="button"
|
1268 |
-
data-tooltip={sprintf(
|
1269 |
-
__('Add another %s', 'wds'),
|
1270 |
-
this.getSingleLabel(property)
|
1271 |
-
)}
|
1272 |
-
className="sui-button-icon sui-tooltip">
|
1273 |
-
<span className="sui-icon-plus" aria-hidden="true"/>
|
1274 |
-
</button>
|
1275 |
-
</div>
|
1276 |
-
</React.Fragment>
|
1277 |
-
)}
|
1278 |
-
|
1279 |
-
<div className="sui-accordion-item-body">
|
1280 |
-
{Object.keys(repeatables).map(propertyKey => {
|
1281 |
-
const repeatable = repeatables[propertyKey];
|
1282 |
-
return <table className="sui-table" key={'repeatable-' + repeatable.id}>
|
1283 |
-
{repeatable.properties &&
|
1284 |
-
<thead>
|
1285 |
-
<tr>
|
1286 |
-
<td colSpan={2} className="sui-table-item-title">
|
1287 |
-
{this.getSingleLabel(property)}
|
1288 |
-
</td>
|
1289 |
-
<td>
|
1290 |
-
{!repeatable.disallowDeletion &&
|
1291 |
-
<Button text=""
|
1292 |
-
ghost={true}
|
1293 |
-
icon="sui-icon-trash"
|
1294 |
-
color="red"
|
1295 |
-
onClick={() => this.startDeletingProperty(typeKey, repeatable.id)}
|
1296 |
-
/>
|
1297 |
-
}
|
1298 |
-
</td>
|
1299 |
-
</tr>
|
1300 |
-
</thead>
|
1301 |
-
}
|
1302 |
-
|
1303 |
-
<tbody>
|
1304 |
-
{repeatable.properties && this.getPropertyElements(typeKey, repeatable.properties)}
|
1305 |
-
{!repeatable.properties && this.getSimplePropertyElement(typeKey, repeatable)}
|
1306 |
-
</tbody>
|
1307 |
-
</table>;
|
1308 |
-
}
|
1309 |
-
)}
|
1310 |
-
</div>
|
1311 |
-
</div>
|
1312 |
-
{this.state.changingPropertyTypeForId === property.id && this.getPropertyTypeChangeModalElement(typeKey, property.id)}
|
1313 |
-
</div>
|
1314 |
-
</td>
|
1315 |
-
</tr>;
|
1316 |
-
}
|
1317 |
-
|
1318 |
-
getLoopDescription(property) {
|
1319 |
-
if (property.loopDescription) {
|
1320 |
-
return property.loopDescription;
|
1321 |
-
}
|
1322 |
-
|
1323 |
-
return sprintf(
|
1324 |
-
__('The following block will be repeated for each %s in loop', 'wds'),
|
1325 |
-
this.getSingleLabel(property)
|
1326 |
-
);
|
1327 |
-
}
|
1328 |
-
|
1329 |
-
getSingleLabel(property) {
|
1330 |
-
return property.label_single ? property.label_single : property.label;
|
1331 |
-
}
|
1332 |
-
|
1333 |
-
getAccordionItemHeaderElement(typeKey, property, actions) {
|
1334 |
-
const requiredNotice = property.requiredNotice
|
1335 |
-
? property.requiredNotice
|
1336 |
-
: __('This property is required by Google.', 'wds');
|
1337 |
-
const description = property.description
|
1338 |
-
? property.description
|
1339 |
-
: '';
|
1340 |
-
|
1341 |
-
return <div className="sui-accordion-item-header">
|
1342 |
-
<div className="sui-accordion-item-title">
|
1343 |
-
<span className={classnames({'sui-tooltip sui-tooltip-constrained': !!description})}
|
1344 |
-
style={{"--tooltip-width": "300px"}}
|
1345 |
-
data-tooltip={description}>
|
1346 |
-
{property.label}
|
1347 |
-
</span>
|
1348 |
-
{property.required &&
|
1349 |
-
<span className="wds-required-asterisk sui-tooltip sui-tooltip-constrained"
|
1350 |
-
data-tooltip={requiredNotice}>*</span>
|
1351 |
-
}
|
1352 |
-
{this.nestedPropertyHasMissingRequiredProperties(typeKey, property) &&
|
1353 |
-
<span className="sui-tooltip sui-tooltip-constrained"
|
1354 |
-
data-tooltip={__('This section has missing properties that are required by Google.', 'wds')}>
|
1355 |
-
<span className="wds-invalid-type-icon sui-icon-warning-alert sui-md"
|
1356 |
-
aria-hidden="true"/>
|
1357 |
-
</span>
|
1358 |
-
}
|
1359 |
-
</div>
|
1360 |
-
|
1361 |
-
<div className="sui-accordion-col-auto">
|
1362 |
-
{actions}
|
1363 |
-
{!property.disallowDeletion &&
|
1364 |
-
<div className="sui-accordion-item-action wds-delete-accordion-item-action">
|
1365 |
-
<span className="sui-icon-trash"
|
1366 |
-
onClick={() => this.startDeletingProperty(typeKey, property.id)}
|
1367 |
-
aria-hidden="true"/>
|
1368 |
-
</div>}
|
1369 |
-
|
1370 |
-
<button className="sui-button-icon sui-accordion-open-indicator"
|
1371 |
-
type="button"
|
1372 |
-
aria-label={__('Open item', 'wds')}>
|
1373 |
-
<span className="sui-icon-chevron-down" aria-hidden="true"/>
|
1374 |
-
</button>
|
1375 |
-
</div>
|
1376 |
-
</div>;
|
1377 |
-
}
|
1378 |
-
|
1379 |
-
isPropertyRepeatable(property) {
|
1380 |
-
if (!this.isNestedProperty(property)) {
|
1381 |
-
return false;
|
1382 |
-
}
|
1383 |
-
|
1384 |
-
const nonNumericKeys = Object.keys(property.properties).filter(key => isNaN(key));
|
1385 |
-
return nonNumericKeys.length === 0;
|
1386 |
-
}
|
1387 |
-
|
1388 |
startResettingProperties(typeKey) {
|
1389 |
this.setState({
|
1390 |
resettingProperties: typeKey
|
@@ -1434,31 +1163,18 @@ export default class SchemaBuilder extends React.Component {
|
|
1434 |
startRenamingType(typeKey) {
|
1435 |
this.setState({
|
1436 |
renamingType: typeKey,
|
1437 |
-
newName: this.getType(typeKey).label,
|
1438 |
});
|
1439 |
}
|
1440 |
|
1441 |
stopRenamingType() {
|
1442 |
this.setState({
|
1443 |
renamingType: '',
|
1444 |
-
newName: '',
|
1445 |
});
|
1446 |
}
|
1447 |
|
1448 |
-
|
1449 |
-
this.setState({newName: name});
|
1450 |
-
}
|
1451 |
-
|
1452 |
-
renameType(typeKey) {
|
1453 |
-
if (!this.state.newName) {
|
1454 |
-
this.stopRenamingType();
|
1455 |
-
this.showNotice(__('You need to enter a name', 'wds'), 'error');
|
1456 |
-
|
1457 |
-
return;
|
1458 |
-
}
|
1459 |
-
|
1460 |
const spec = this.formatSpec([typeKey, 'label'], {
|
1461 |
-
$set:
|
1462 |
});
|
1463 |
this.updateTypes(spec).then(() => {
|
1464 |
this.showNotice(__('The type has been renamed.', 'wds'));
|
@@ -1467,52 +1183,18 @@ export default class SchemaBuilder extends React.Component {
|
|
1467 |
}
|
1468 |
|
1469 |
getTypeRenameModalElement(typeKey) {
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
footer={
|
1479 |
-
<React.Fragment>
|
1480 |
-
<Button text={__('Cancel', 'wds')}
|
1481 |
-
onClick={() => this.stopRenamingType()}
|
1482 |
-
ghost={true}
|
1483 |
-
/>
|
1484 |
-
|
1485 |
-
<Button text={__('Save', 'wds')}
|
1486 |
-
onClick={() => this.renameType(typeKey)}
|
1487 |
-
icon="sui-icon-check"
|
1488 |
-
id="wds-schema-rename-type-button"
|
1489 |
-
/>
|
1490 |
-
</React.Fragment>
|
1491 |
}
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
<input className="sui-form-control"
|
1496 |
-
id="wds-schema-rename-type-input"
|
1497 |
-
onChange={e => this.setNewName(e.target.value)}
|
1498 |
-
value={this.state.newName}/>
|
1499 |
-
|
1500 |
-
{this.isProduct(this.getType(typeKey).type) && this.isWooCommerceActive() &&
|
1501 |
-
<div className="sui-notice sui-notice-info" style={{marginTop: "30px"}}>
|
1502 |
-
<div className="sui-notice-content">
|
1503 |
-
<div className="sui-notice-message">
|
1504 |
-
<span className="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"/>
|
1505 |
-
<p>{__('On the pages where this schema type is printed, schema generated by WooCommerce will be replaced to avoid generating multiple product schemas for the same product page.', 'wds')}</p>
|
1506 |
-
</div>
|
1507 |
-
</div>
|
1508 |
-
</div>
|
1509 |
-
}
|
1510 |
-
</div>
|
1511 |
-
</Modal>;
|
1512 |
-
}
|
1513 |
-
|
1514 |
-
isWooCommerceActive() {
|
1515 |
-
return !!Config_Values.get('woocommerce', 'schema_types');
|
1516 |
}
|
1517 |
|
1518 |
startDeletingType(typeKey) {
|
@@ -1582,18 +1264,6 @@ export default class SchemaBuilder extends React.Component {
|
|
1582 |
return <input type="hidden" name="wds-schema-types" value={JSON.stringify(this.state.types)}/>;
|
1583 |
}
|
1584 |
|
1585 |
-
getSaveSettingsFooter() {
|
1586 |
-
return <div id="wds-save-schema-types" className="sui-box-footer">
|
1587 |
-
<button name="submit"
|
1588 |
-
type="submit"
|
1589 |
-
className="sui-button sui-button-blue">
|
1590 |
-
<span className="sui-icon-save" aria-hidden="true"/>
|
1591 |
-
|
1592 |
-
{__('Save Settings', 'wds')}
|
1593 |
-
</button>
|
1594 |
-
</div>;
|
1595 |
-
}
|
1596 |
-
|
1597 |
startChangingPropertyType(propertyId) {
|
1598 |
this.setState({changingPropertyTypeForId: propertyId});
|
1599 |
}
|
@@ -1690,6 +1360,7 @@ export default class SchemaBuilder extends React.Component {
|
|
1690 |
$set: {
|
1691 |
label: type.label,
|
1692 |
type: type.type,
|
|
|
1693 |
conditions: conditions,
|
1694 |
properties: properties
|
1695 |
}
|
@@ -1711,30 +1382,7 @@ export default class SchemaBuilder extends React.Component {
|
|
1711 |
}
|
1712 |
}
|
1713 |
|
1714 |
-
getTypeSubText(
|
1715 |
-
|
1716 |
-
return createInterpolateElement(
|
1717 |
-
__('Note: You must include one of the following properties: <strong>review</strong>, <strong>aggregateRating</strong> or <strong>offers</strong>. Once you include one of either a review or aggregateRating or offers, the other two properties will become recommended by the Rich Results Test.', 'wds'),
|
1718 |
-
{strong: <strong/>}
|
1719 |
-
);
|
1720 |
-
}
|
1721 |
-
|
1722 |
-
if (type === 'Book') {
|
1723 |
-
return createInterpolateElement(
|
1724 |
-
__('Note: Rich Results Test supports the Books Schema type for a limited number of sites for the time being, so please go to the <a>Structured Data testing tool</a> to check your book type.', 'wds'),
|
1725 |
-
{
|
1726 |
-
a: <a
|
1727 |
-
target="_blank"
|
1728 |
-
href="https://search.google.com/structured-data/testing-tool/u/0/"/>
|
1729 |
-
}
|
1730 |
-
)
|
1731 |
-
}
|
1732 |
-
|
1733 |
-
if (type === 'SoftwareApplication') {
|
1734 |
-
return createInterpolateElement(
|
1735 |
-
__('Note: You must include one of the following properties: <strong>review</strong> or <strong>aggregateRating</strong>. Once you include one of either a review or aggregateRating, the other property will become recommended by the Rich Results Test.', 'wds'),
|
1736 |
-
{strong: <strong/>}
|
1737 |
-
);
|
1738 |
-
}
|
1739 |
}
|
1740 |
}
|
1 |
import React from 'react';
|
2 |
import SchemaTypeCondition from "./schema-type-condition";
|
3 |
import update from 'immutability-helper';
|
4 |
+
import {first, parseInt, uniqueId} from "lodash-es";
|
5 |
import {__, _n, sprintf} from '@wordpress/i18n';
|
|
|
6 |
import Modal from "../modal";
|
7 |
import Button from "../button";
|
|
|
|
|
|
|
8 |
import classnames from 'classnames';
|
9 |
import $ from 'jQuery';
|
10 |
import SUI from 'SUI';
|
13 |
import AddSchemaTypeWizardModal from "./add-schema-type-wizard-modal";
|
14 |
import SchemaTypeLocations from "./schema-type-locations";
|
15 |
import {createInterpolateElement} from '@wordpress/element';
|
|
|
16 |
import UrlUtil from "../utils/url-util";
|
17 |
+
import SchemaTypeDropdown from "./schema-type-dropdown";
|
18 |
+
import SchemaTypeRenameModal from "./schema-type-rename-modal";
|
19 |
+
import Notice from "../notice";
|
20 |
+
import SchemaTypePropertiesTable from "./schema-type-properties-table";
|
21 |
+
import SchemaTypesBoxFooter from "./schema-types-box-footer";
|
22 |
+
import SchemaProperties from "./schema-properties";
|
23 |
+
import SchemaTypeTransformer from "./schema-type-transformer";
|
24 |
+
import SchemaTypes from "./schema-types";
|
25 |
|
26 |
export default class SchemaBuilder extends React.Component {
|
27 |
constructor(props) {
|
38 |
addingSchemaTypes: false,
|
39 |
resettingProperties: '',
|
40 |
renamingType: '',
|
|
|
41 |
deletingType: '',
|
42 |
changingPropertyTypeForId: 0,
|
43 |
openTypes: [],
|
72 |
const schemaTypes = {};
|
73 |
const savedSchemaTypes = Config_Values.get('types', 'schema_types');
|
74 |
const initializedTypeIds = [];
|
75 |
+
const transformer = new SchemaTypeTransformer();
|
76 |
Object.keys(savedSchemaTypes).forEach((schemaTypeKey) => {
|
77 |
const savedSchemaType = savedSchemaTypes[schemaTypeKey];
|
78 |
const typeId = this.generateTypeId(savedSchemaType.type);
|
79 |
+
const sourceProperties = this.getPropertiesForType(savedSchemaType.type);
|
80 |
+
const properties = this.initializeProperties(
|
81 |
+
transformer.transformProperties(savedSchemaType.type, savedSchemaType.properties),
|
82 |
+
sourceProperties
|
83 |
+
);
|
84 |
const conditions = this.cloneConditions(savedSchemaType.conditions);
|
85 |
|
86 |
schemaTypes[typeId] = Object.assign({}, savedSchemaType, {
|
120 |
}
|
121 |
|
122 |
defaultCondition(typeKey) {
|
123 |
+
const type = SchemaTypes.getType(this.getType(typeKey).type);
|
|
|
124 |
const fallback = {id: uniqueId(), lhs: 'post_type', operator: '=', rhs: 'post'};
|
125 |
|
126 |
+
return type.condition
|
127 |
+
? Object.assign({}, type.condition, {id: uniqueId()})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
: fallback;
|
129 |
}
|
130 |
|
220 |
this.stopAddingProperties();
|
221 |
}
|
222 |
|
223 |
+
getPropertiesForType(typeKey) {
|
224 |
+
const propertiesForType = SchemaTypes.getType(typeKey).properties;
|
225 |
+
return propertiesForType;
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
openAccordionItemForPropertyOrAlt(typeKey, newPropertyId) {
|
494 |
this.getTypeAccordionItemClassName(typeKey),
|
495 |
{
|
496 |
'sui-accordion-item--open': this.state.openTypes.includes(typeKey),
|
497 |
+
'sui-accordion-item--disabled': type.disabled || SchemaTypes.getType(type.type).disabled
|
|
|
|
|
498 |
}
|
499 |
)}>
|
500 |
{this.getTypeAccordionItemHeaderElement(typeKey)}
|
528 |
</div>
|
529 |
|
530 |
<div id="wds-schema-types-footer">
|
531 |
+
<Button onClick={() => this.startAddingSchemaType()}
|
532 |
+
dashed={true}
|
533 |
+
icon="sui-icon-plus"
|
534 |
+
text={__('Add New Type', 'wds')}/>
|
|
|
|
|
|
|
535 |
|
536 |
<p className="sui-description">
|
537 |
{__('Add additional schema types you want to output on this site.', 'wds')}
|
538 |
</p>
|
539 |
|
540 |
+
<SchemaTypesBoxFooter/>
|
541 |
</div>
|
542 |
|
543 |
{this.state.addingSchemaTypes && this.getAddSchemaModalElement()}
|
547 |
}
|
548 |
|
549 |
getPropertiesTableElement(typeKey, properties) {
|
550 |
+
return <SchemaTypePropertiesTable onReset={() => this.startResettingProperties(typeKey)}
|
551 |
+
onAdd={() => this.startAddingProperties(typeKey)}>
|
552 |
+
|
553 |
+
<SchemaProperties properties={properties}
|
554 |
+
methods={this.getSchemaPropertyMethods(typeKey)}/>
|
555 |
+
</SchemaTypePropertiesTable>;
|
556 |
+
}
|
557 |
+
|
558 |
+
getSchemaPropertyMethods(typeKey) {
|
559 |
+
return {
|
560 |
+
beforePropertyRender: (propertyId) => this.renderPropertyModals(typeKey, propertyId),
|
561 |
+
requiredNestedPropertiesMissing: (property) => this.nestedPropertyHasMissingRequiredProperties(typeKey, property),
|
562 |
+
onChangeActiveVersion: (propertyId) => this.startChangingPropertyType(propertyId),
|
563 |
+
onRepeat: (propertyId) => this.handleRepeatButtonClick(typeKey, propertyId),
|
564 |
+
onAddNested: (propertyId) => this.startAddingNestedProperties(typeKey, propertyId),
|
565 |
+
onChange: (propertyId, source, value) => this.updateProperty(typeKey, propertyId, source, value),
|
566 |
+
onDelete: (propertyId) => this.startDeletingProperty(typeKey, propertyId),
|
567 |
+
};
|
568 |
+
}
|
569 |
+
|
570 |
+
renderPropertyModals(typeKey, propertyId) {
|
571 |
+
return <React.Fragment>
|
572 |
+
{this.state.addingNestedForProperty === propertyId && this.getAddNestedPropertyModalElement(typeKey, propertyId)}
|
573 |
+
{this.state.changingPropertyTypeForId === propertyId && this.getPropertyTypeChangeModalElement(typeKey, propertyId)}
|
574 |
+
</React.Fragment>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
}
|
576 |
|
577 |
getSchemaTypeRulesElement(typeKey, conditions) {
|
682 |
/>
|
683 |
<span aria-hidden="true" className="sui-toggle-slider"/>
|
684 |
</label>
|
685 |
+
<SchemaTypeDropdown onRename={() => this.startRenamingType(typeKey)}
|
686 |
+
onDuplicate={() => this.duplicateType(typeKey)}
|
687 |
+
onDelete={() => this.startDeletingType(typeKey)}/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
688 |
|
689 |
<button className="sui-button-icon sui-accordion-open-indicator"
|
690 |
type="button"
|
834 |
return property.properties;
|
835 |
}
|
836 |
|
|
|
|
|
|
|
|
|
837 |
getActiveAltVersion(property) {
|
838 |
return property.properties[property.activeVersion];
|
839 |
}
|
840 |
|
|
|
|
|
|
|
|
|
841 |
hasAltVersions(property) {
|
842 |
return this.isNestedProperty(property) && !!property.activeVersion && property.properties.hasOwnProperty(property.activeVersion);
|
843 |
}
|
844 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
845 |
getDefaultProperties(properties) {
|
846 |
const defaultProperties = {};
|
847 |
Object.keys(properties).forEach((propertyKey) => {
|
881 |
return clonedConditionGroup;
|
882 |
}
|
883 |
|
884 |
+
initializeProperties(savedProperties, sourceProperties) {
|
885 |
+
const initializedProperties = {};
|
886 |
+
Object.keys(savedProperties).forEach((propertyKey) => {
|
887 |
+
const savedProperty = savedProperties[propertyKey];
|
888 |
+
const sourcePropertyKeys = this.prepareRepeatableSourcePropertyKeys(this.propertyKeys(savedProperty.id, savedProperties));
|
889 |
+
const sourceProperty = this.getPropertyByKeys(sourcePropertyKeys, sourceProperties);
|
890 |
+
initializedProperties[propertyKey] = this.initializeProperty(savedProperty, sourceProperty);
|
891 |
+
});
|
892 |
+
|
893 |
+
return initializedProperties;
|
894 |
+
}
|
895 |
+
|
896 |
+
initializeProperty(savedProperty, sourceProperty) {
|
897 |
+
const args = [];
|
898 |
+
args.push(sourceProperty);
|
899 |
+
args.push({
|
900 |
+
type: savedProperty.type,
|
901 |
+
source: savedProperty.source,
|
902 |
+
value: savedProperty.value
|
903 |
+
});
|
904 |
+
if (this.hasAltVersions(savedProperty)) {
|
905 |
+
args.push({activeVersion: savedProperty.activeVersion});
|
906 |
+
}
|
907 |
+
if (this.isNestedProperty(savedProperty) && this.isNestedProperty(sourceProperty)) {
|
908 |
+
args.push({
|
909 |
+
properties: this.initializeProperties(savedProperty.properties, sourceProperty.properties)
|
910 |
+
});
|
911 |
+
}
|
912 |
+
args.push({id: uniqueId()});
|
913 |
+
|
914 |
+
return Object.assign({}, ...args);
|
915 |
+
}
|
916 |
+
|
917 |
cloneProperties(properties) {
|
918 |
const clonedProperties = {};
|
919 |
Object.keys(properties).forEach((propertyKey) => {
|
953 |
.then((typeKey) => {
|
954 |
this.stopAddingSchemaType();
|
955 |
this.showNotice(__('The type has been added. You need to save the changes to make them live.', 'wds'));
|
956 |
+
this.showAfterAdditionNotice(schemaType);
|
|
|
|
|
957 |
this.toggleType(typeKey);
|
958 |
});
|
959 |
}
|
960 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
961 |
showInvalidTypesNotice() {
|
962 |
let message = __('One or more properties that are required by Google have been removed. Please check your types and click on the <strong>Add Property</strong> button to see the missing <strong>required properties</strong> ( <span>*</span> ).');
|
963 |
SUI.openNotice('wds-schema-types-invalid-notice', '<p>' + message + '</p>', {
|
965 |
});
|
966 |
}
|
967 |
|
968 |
+
showAfterAdditionNotice(typeKey) {
|
969 |
+
let message = SchemaTypes.getType(typeKey).afterAdditionNotice || false;
|
970 |
+
if (!message) {
|
971 |
+
return;
|
972 |
+
}
|
973 |
+
|
|
|
|
|
974 |
SUI.openNotice('wds-schema-types-local-business-notice', '<p>' + message + '</p>', {
|
975 |
type: 'grey', icon: 'info', dismiss: {show: true}
|
976 |
});
|
984 |
}
|
985 |
|
986 |
getSchemaTypeIcon(typeKey) {
|
987 |
+
return SchemaTypes.getType(typeKey).icon;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
988 |
}
|
989 |
|
990 |
generateTypeId(type) {
|
999 |
$set: {
|
1000 |
label: label,
|
1001 |
type: type,
|
1002 |
+
version: this.getPluginVersion(),
|
1003 |
conditions: conditions,
|
1004 |
properties: this.getDefaultProperties(this.getPropertiesForType(type))
|
1005 |
}
|
1010 |
});
|
1011 |
}
|
1012 |
|
1013 |
+
getPluginVersion() {
|
1014 |
+
return Config_Values.get('plugin_version', 'schema_types');
|
1015 |
+
}
|
1016 |
+
|
1017 |
getType(typeKey) {
|
1018 |
return this.state.types[typeKey];
|
1019 |
}
|
1027 |
const property = this.getPropertyByKeys(propertyKeys, type.properties);
|
1028 |
this.showNotice(sprintf(
|
1029 |
__('A new %s has been added.', 'wds'),
|
1030 |
+
property.hasOwnProperty('labelSingle')
|
1031 |
+
? property.labelSingle
|
1032 |
: property.label
|
1033 |
));
|
1034 |
}
|
1072 |
this.updateTypes(spec);
|
1073 |
}
|
1074 |
|
1075 |
+
startAddingNestedProperties(typeKey, propertyId) {
|
1076 |
+
this.openAccordionItemForProperty(propertyId);
|
1077 |
|
1078 |
this.setState({
|
1079 |
+
addingNestedForProperty: propertyId,
|
1080 |
});
|
1081 |
}
|
1082 |
|
1114 |
);
|
1115 |
}
|
1116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1117 |
startResettingProperties(typeKey) {
|
1118 |
this.setState({
|
1119 |
resettingProperties: typeKey
|
1163 |
startRenamingType(typeKey) {
|
1164 |
this.setState({
|
1165 |
renamingType: typeKey,
|
|
|
1166 |
});
|
1167 |
}
|
1168 |
|
1169 |
stopRenamingType() {
|
1170 |
this.setState({
|
1171 |
renamingType: '',
|
|
|
1172 |
});
|
1173 |
}
|
1174 |
|
1175 |
+
renameType(typeKey, newName) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1176 |
const spec = this.formatSpec([typeKey, 'label'], {
|
1177 |
+
$set: newName
|
1178 |
});
|
1179 |
this.updateTypes(spec).then(() => {
|
1180 |
this.showNotice(__('The type has been renamed.', 'wds'));
|
1183 |
}
|
1184 |
|
1185 |
getTypeRenameModalElement(typeKey) {
|
1186 |
+
let replacementNotice = SchemaTypes.getType(this.getType(typeKey).type).schemaReplacementNotice;
|
1187 |
+
|
1188 |
+
return <SchemaTypeRenameModal
|
1189 |
+
name={this.getType(typeKey).label}
|
1190 |
+
notice={
|
1191 |
+
replacementNotice
|
1192 |
+
? <Notice type="info" message={replacementNotice}/>
|
1193 |
+
: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1194 |
}
|
1195 |
+
onRename={(newName) => this.renameType(typeKey, newName)}
|
1196 |
+
onClose={() => this.stopRenamingType()}
|
1197 |
+
/>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1198 |
}
|
1199 |
|
1200 |
startDeletingType(typeKey) {
|
1264 |
return <input type="hidden" name="wds-schema-types" value={JSON.stringify(this.state.types)}/>;
|
1265 |
}
|
1266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1267 |
startChangingPropertyType(propertyId) {
|
1268 |
this.setState({changingPropertyTypeForId: propertyId});
|
1269 |
}
|
1360 |
$set: {
|
1361 |
label: type.label,
|
1362 |
type: type.type,
|
1363 |
+
version: type.version || false,
|
1364 |
conditions: conditions,
|
1365 |
properties: properties
|
1366 |
}
|
1382 |
}
|
1383 |
}
|
1384 |
|
1385 |
+
getTypeSubText(typeKey) {
|
1386 |
+
return SchemaTypes.getType(typeKey).subText || '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1387 |
}
|
1388 |
}
|
includes/assets/js/components/schema/schema-properties.js
CHANGED
@@ -1,37 +1,23 @@
|
|
1 |
-
import
|
2 |
-
import
|
3 |
-
import Product from "./schema-properties/product/product";
|
4 |
-
import WooProduct from "./schema-properties/product/woo-product";
|
5 |
-
import FAQPage from "./schema-properties/faq-page/faq-page";
|
6 |
-
import HowTo from "./schema-properties/how-to/how-to";
|
7 |
-
import LocalBusiness from "./schema-properties/local-business/local-business";
|
8 |
-
import FoodEstablishment from "./schema-properties/local-business/food-establishment"
|
9 |
-
import WooSimpleProduct from "./schema-properties/product/woo-simple-product";
|
10 |
-
import Recipe from "./schema-properties/recipe/recipe";
|
11 |
-
import JobPosting from "./schema-properties/job-posting/job-posting";
|
12 |
-
import Book from "./schema-properties/book/book";
|
13 |
-
import Course from "./schema-properties/course/course";
|
14 |
-
import SoftwareApplication from "./schema-properties/software-application/software-application";
|
15 |
-
import MobileApplication from "./schema-properties/software-application/mobile-application";
|
16 |
-
import WebApplication from "./schema-properties/software-application/web-application";
|
17 |
-
import Movie from "./schema-properties/movie/movie";
|
18 |
|
19 |
-
export default {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
}
|
|
1 |
+
import React from 'react';
|
2 |
+
import SchemaProperty from "./schema-property";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
export default class SchemaProperties extends React.Component {
|
5 |
+
static defaultProps = {
|
6 |
+
properties: {},
|
7 |
+
methods: {},
|
8 |
+
};
|
9 |
+
|
10 |
+
render() {
|
11 |
+
return <React.Fragment>
|
12 |
+
{Object.keys(this.props.properties).map(
|
13 |
+
propertyKey => {
|
14 |
+
const property = this.props.properties[propertyKey];
|
15 |
+
return <SchemaProperty {...property}
|
16 |
+
key={'schema-property-' + property.id}
|
17 |
+
methods={this.props.methods}
|
18 |
+
/>;
|
19 |
+
}
|
20 |
+
)}
|
21 |
+
</React.Fragment>;
|
22 |
+
}
|
23 |
+
}
|
includes/assets/js/components/schema/schema-properties/article/article.js
CHANGED
@@ -85,7 +85,7 @@ const Article = {
|
|
85 |
image: {
|
86 |
id: id(),
|
87 |
label: __('Images', 'wds'),
|
88 |
-
|
89 |
required: true,
|
90 |
description: __('Images related to the article.', 'wds'),
|
91 |
properties: {
|
85 |
image: {
|
86 |
id: id(),
|
87 |
label: __('Images', 'wds'),
|
88 |
+
labelSingle: __('Image', 'wds'),
|
89 |
required: true,
|
90 |
description: __('Images related to the article.', 'wds'),
|
91 |
properties: {
|
includes/assets/js/components/schema/schema-properties/book/book-edition.js
CHANGED
@@ -96,7 +96,7 @@ const BookEdition = {
|
|
96 |
identifier: {
|
97 |
id: id(),
|
98 |
label: __('Identifiers', 'wds'),
|
99 |
-
|
100 |
description: __("The external or other ID that unambiguously identifies this edition.", 'wds'),
|
101 |
disallowDeletion: true,
|
102 |
properties: {
|
@@ -142,7 +142,7 @@ const BookEdition = {
|
|
142 |
author: {
|
143 |
id: id(),
|
144 |
label: __('Authors', 'wds'),
|
145 |
-
|
146 |
description: __('The author(s) of the edition. Only use this when the author of the edition is different from the work author information.', 'wds'),
|
147 |
disallowDeletion: true,
|
148 |
properties: {
|
@@ -158,7 +158,7 @@ const BookEdition = {
|
|
158 |
sameAs: {
|
159 |
id: id(),
|
160 |
label: __('Same As', 'wds'),
|
161 |
-
|
162 |
description: __("The URL of a reference web page that unambiguously indicates the edition. For example, a Wikipedia page for this specific edition. Don't reuse the sameAs of the Work.", 'wds'),
|
163 |
disallowDeletion: true,
|
164 |
properties: {
|
96 |
identifier: {
|
97 |
id: id(),
|
98 |
label: __('Identifiers', 'wds'),
|
99 |
+
labelSingle: __('Identifier', 'wds'),
|
100 |
description: __("The external or other ID that unambiguously identifies this edition.", 'wds'),
|
101 |
disallowDeletion: true,
|
102 |
properties: {
|
142 |
author: {
|
143 |
id: id(),
|
144 |
label: __('Authors', 'wds'),
|
145 |
+
labelSingle: __('Author', 'wds'),
|
146 |
description: __('The author(s) of the edition. Only use this when the author of the edition is different from the work author information.', 'wds'),
|
147 |
disallowDeletion: true,
|
148 |
properties: {
|
158 |
sameAs: {
|
159 |
id: id(),
|
160 |
label: __('Same As', 'wds'),
|
161 |
+
labelSingle: __('URL', 'wds'),
|
162 |
description: __("The URL of a reference web page that unambiguously indicates the edition. For example, a Wikipedia page for this specific edition. Don't reuse the sameAs of the Work.", 'wds'),
|
163 |
disallowDeletion: true,
|
164 |
properties: {
|
includes/assets/js/components/schema/schema-properties/book/book.js
CHANGED
@@ -37,7 +37,7 @@ const Book = {
|
|
37 |
author: {
|
38 |
id: id(),
|
39 |
label: __('Authors', 'wds'),
|
40 |
-
|
41 |
required: true,
|
42 |
description: __('The authors of the book.', 'wds'),
|
43 |
properties: {
|
@@ -51,7 +51,7 @@ const Book = {
|
|
51 |
contributor: {
|
52 |
id: id(),
|
53 |
label: __('Contributors', 'wds'),
|
54 |
-
|
55 |
optional: true,
|
56 |
description: __('People who have made contributions to the book.', 'wds'),
|
57 |
properties: {
|
@@ -65,7 +65,7 @@ const Book = {
|
|
65 |
sameAs: {
|
66 |
id: id(),
|
67 |
label: __('Same As', 'wds'),
|
68 |
-
|
69 |
description: __("The URL of a reference page that identifies the work. For example, a Wikipedia, Wikidata, VIAF, or Library of Congress page for the book.", 'wds'),
|
70 |
properties: {
|
71 |
0: {
|
@@ -80,7 +80,7 @@ const Book = {
|
|
80 |
editor: {
|
81 |
id: id(),
|
82 |
label: __('Editors', 'wds'),
|
83 |
-
|
84 |
optional: true,
|
85 |
description: __('People who have edited the book.', 'wds'),
|
86 |
properties: {
|
@@ -94,7 +94,7 @@ const Book = {
|
|
94 |
workExample: {
|
95 |
id: id(),
|
96 |
label: __('Editions', 'wds'),
|
97 |
-
|
98 |
description: __("The editions of the work.", 'wds'),
|
99 |
properties: {
|
100 |
0: {
|
@@ -115,7 +115,7 @@ const Book = {
|
|
115 |
review: {
|
116 |
id: id(),
|
117 |
label: __('Reviews', 'wds'),
|
118 |
-
|
119 |
properties: {
|
120 |
0: {
|
121 |
id: id(),
|
37 |
author: {
|
38 |
id: id(),
|
39 |
label: __('Authors', 'wds'),
|
40 |
+
labelSingle: __('Author', 'wds'),
|
41 |
required: true,
|
42 |
description: __('The authors of the book.', 'wds'),
|
43 |
properties: {
|
51 |
contributor: {
|
52 |
id: id(),
|
53 |
label: __('Contributors', 'wds'),
|
54 |
+
labelSingle: __('Contributor', 'wds'),
|
55 |
optional: true,
|
56 |
description: __('People who have made contributions to the book.', 'wds'),
|
57 |
properties: {
|
65 |
sameAs: {
|
66 |
id: id(),
|
67 |
label: __('Same As', 'wds'),
|
68 |
+
labelSingle: __('URL', 'wds'),
|
69 |
description: __("The URL of a reference page that identifies the work. For example, a Wikipedia, Wikidata, VIAF, or Library of Congress page for the book.", 'wds'),
|
70 |
properties: {
|
71 |
0: {
|
80 |
editor: {
|
81 |
id: id(),
|
82 |
label: __('Editors', 'wds'),
|
83 |
+
labelSingle: __('Editor', 'wds'),
|
84 |
optional: true,
|
85 |
description: __('People who have edited the book.', 'wds'),
|
86 |
properties: {
|
94 |
workExample: {
|
95 |
id: id(),
|
96 |
label: __('Editions', 'wds'),
|
97 |
+
labelSingle: __('Edition', 'wds'),
|
98 |
description: __("The editions of the work.", 'wds'),
|
99 |
properties: {
|
100 |
0: {
|
115 |
review: {
|
116 |
id: id(),
|
117 |
label: __('Reviews', 'wds'),
|
118 |
+
labelSingle: __('Review', 'wds'),
|
119 |
properties: {
|
120 |
0: {
|
121 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/course/course-instance.js
CHANGED
@@ -114,7 +114,7 @@ const CourseInstance = {
|
|
114 |
instructor: {
|
115 |
id: id(),
|
116 |
label: __('Instructors', 'wds'),
|
117 |
-
|
118 |
description: __('A person assigned to instruct or provide instructional assistance for the course instance.', 'wds'),
|
119 |
disallowDeletion: true,
|
120 |
properties: {
|
@@ -130,7 +130,7 @@ const CourseInstance = {
|
|
130 |
image: {
|
131 |
id: id(),
|
132 |
label: __('Images', 'wds'),
|
133 |
-
|
134 |
description: __('Images related to the course instance.', 'wds'),
|
135 |
disallowDeletion: true,
|
136 |
properties: {
|
@@ -158,6 +158,7 @@ const CourseInstance = {
|
|
158 |
description: __('The physical location where the course will be held.', 'wds'),
|
159 |
disallowDeletion: true,
|
160 |
disallowAddition: true,
|
|
|
161 |
},
|
162 |
VirtualLocation: {
|
163 |
id: id(),
|
@@ -165,6 +166,7 @@ const CourseInstance = {
|
|
165 |
type: 'VirtualLocation',
|
166 |
disallowAddition: true,
|
167 |
disallowDeletion: true,
|
|
|
168 |
properties: {
|
169 |
url: {
|
170 |
id: id(),
|
114 |
instructor: {
|
115 |
id: id(),
|
116 |
label: __('Instructors', 'wds'),
|
117 |
+
labelSingle: __('Instructor', 'wds'),
|
118 |
description: __('A person assigned to instruct or provide instructional assistance for the course instance.', 'wds'),
|
119 |
disallowDeletion: true,
|
120 |
properties: {
|
130 |
image: {
|
131 |
id: id(),
|
132 |
label: __('Images', 'wds'),
|
133 |
+
labelSingle: __('Image', 'wds'),
|
134 |
description: __('Images related to the course instance.', 'wds'),
|
135 |
disallowDeletion: true,
|
136 |
properties: {
|
158 |
description: __('The physical location where the course will be held.', 'wds'),
|
159 |
disallowDeletion: true,
|
160 |
disallowAddition: true,
|
161 |
+
isAnAltVersion: true,
|
162 |
},
|
163 |
VirtualLocation: {
|
164 |
id: id(),
|
166 |
type: 'VirtualLocation',
|
167 |
disallowAddition: true,
|
168 |
disallowDeletion: true,
|
169 |
+
isAnAltVersion: true,
|
170 |
properties: {
|
171 |
url: {
|
172 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/course/course.js
CHANGED
@@ -52,7 +52,7 @@ const Course = {
|
|
52 |
hasCourseInstance: {
|
53 |
id: id(),
|
54 |
label: __('Course Instances', 'wds'),
|
55 |
-
|
56 |
description: __('An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.', 'wds'),
|
57 |
optional: true,
|
58 |
properties: {
|
@@ -74,7 +74,7 @@ const Course = {
|
|
74 |
review: {
|
75 |
id: id(),
|
76 |
label: __('Reviews', 'wds'),
|
77 |
-
|
78 |
properties: {
|
79 |
0: {
|
80 |
id: id(),
|
52 |
hasCourseInstance: {
|
53 |
id: id(),
|
54 |
label: __('Course Instances', 'wds'),
|
55 |
+
labelSingle: __('Course Instance', 'wds'),
|
56 |
description: __('An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.', 'wds'),
|
57 |
optional: true,
|
58 |
properties: {
|
74 |
review: {
|
75 |
id: id(),
|
76 |
label: __('Reviews', 'wds'),
|
77 |
+
labelSingle: __('Review', 'wds'),
|
78 |
properties: {
|
79 |
0: {
|
80 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/event/event.js
CHANGED
@@ -85,7 +85,7 @@ const Event = {
|
|
85 |
image: {
|
86 |
id: id(),
|
87 |
label: __('Images', 'wds'),
|
88 |
-
|
89 |
properties: {
|
90 |
0: {
|
91 |
id: id(),
|
@@ -109,6 +109,7 @@ const Event = {
|
|
109 |
properties: EventPlace,
|
110 |
required: true,
|
111 |
description: __('The physical location of the event.', 'wds'),
|
|
|
112 |
},
|
113 |
VirtualLocation: {
|
114 |
id: id(),
|
@@ -129,6 +130,7 @@ const Event = {
|
|
129 |
},
|
130 |
required: true,
|
131 |
description: __('The virtual location of the event.', 'wds'),
|
|
|
132 |
}
|
133 |
},
|
134 |
required: true,
|
@@ -143,7 +145,7 @@ const Event = {
|
|
143 |
performer: {
|
144 |
id: id(),
|
145 |
label: __('Performers', 'wds'),
|
146 |
-
|
147 |
properties: {
|
148 |
0: {
|
149 |
id: id(),
|
@@ -161,7 +163,7 @@ const Event = {
|
|
161 |
Offer: {
|
162 |
id: id(),
|
163 |
label: __('Offers', 'wds'),
|
164 |
-
|
165 |
properties: {
|
166 |
0: {
|
167 |
id: id(),
|
@@ -170,6 +172,7 @@ const Event = {
|
|
170 |
}
|
171 |
},
|
172 |
description: __('A nested Offer, one for each ticket type.', 'wds'),
|
|
|
173 |
},
|
174 |
AggregateOffer: {
|
175 |
id: id(),
|
@@ -177,6 +180,7 @@ const Event = {
|
|
177 |
label: __('Aggregate Offer', 'wds'),
|
178 |
properties: EventAggregateOffer,
|
179 |
description: __('A nested AggregateOffer, representing all available offers.', 'wds'),
|
|
|
180 |
}
|
181 |
}
|
182 |
},
|
@@ -191,7 +195,7 @@ const Event = {
|
|
191 |
review: {
|
192 |
id: id(),
|
193 |
label: __('Reviews', 'wds'),
|
194 |
-
|
195 |
properties: {
|
196 |
0: {
|
197 |
id: id(),
|
85 |
image: {
|
86 |
id: id(),
|
87 |
label: __('Images', 'wds'),
|
88 |
+
labelSingle: __('Image', 'wds'),
|
89 |
properties: {
|
90 |
0: {
|
91 |
id: id(),
|
109 |
properties: EventPlace,
|
110 |
required: true,
|
111 |
description: __('The physical location of the event.', 'wds'),
|
112 |
+
isAnAltVersion: true,
|
113 |
},
|
114 |
VirtualLocation: {
|
115 |
id: id(),
|
130 |
},
|
131 |
required: true,
|
132 |
description: __('The virtual location of the event.', 'wds'),
|
133 |
+
isAnAltVersion: true,
|
134 |
}
|
135 |
},
|
136 |
required: true,
|
145 |
performer: {
|
146 |
id: id(),
|
147 |
label: __('Performers', 'wds'),
|
148 |
+
labelSingle: __('Performer', 'wds'),
|
149 |
properties: {
|
150 |
0: {
|
151 |
id: id(),
|
163 |
Offer: {
|
164 |
id: id(),
|
165 |
label: __('Offers', 'wds'),
|
166 |
+
labelSingle: __('Offer', 'wds'),
|
167 |
properties: {
|
168 |
0: {
|
169 |
id: id(),
|
172 |
}
|
173 |
},
|
174 |
description: __('A nested Offer, one for each ticket type.', 'wds'),
|
175 |
+
isAnAltVersion: true,
|
176 |
},
|
177 |
AggregateOffer: {
|
178 |
id: id(),
|
180 |
label: __('Aggregate Offer', 'wds'),
|
181 |
properties: EventAggregateOffer,
|
182 |
description: __('A nested AggregateOffer, representing all available offers.', 'wds'),
|
183 |
+
isAnAltVersion: true,
|
184 |
}
|
185 |
}
|
186 |
},
|
195 |
review: {
|
196 |
id: id(),
|
197 |
label: __('Reviews', 'wds'),
|
198 |
+
labelSingle: __('Review', 'wds'),
|
199 |
properties: {
|
200 |
0: {
|
201 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/faq-page/faq-page.js
CHANGED
@@ -8,7 +8,7 @@ const FAQPage = {
|
|
8 |
mainEntity: {
|
9 |
id: id(),
|
10 |
label: __('Questions', 'wds'),
|
11 |
-
|
12 |
disallowDeletion: true,
|
13 |
properties: {
|
14 |
0: {
|
8 |
mainEntity: {
|
9 |
id: id(),
|
10 |
label: __('Questions', 'wds'),
|
11 |
+
labelSingle: __('Question', 'wds'),
|
12 |
disallowDeletion: true,
|
13 |
properties: {
|
14 |
0: {
|
includes/assets/js/components/schema/schema-properties/how-to/how-to.js
CHANGED
@@ -35,7 +35,7 @@ const HowTo = {
|
|
35 |
image: {
|
36 |
id: id(),
|
37 |
label: __('Images', 'wds'),
|
38 |
-
|
39 |
properties: {
|
40 |
0: {
|
41 |
id: id(),
|
@@ -50,7 +50,7 @@ const HowTo = {
|
|
50 |
supply: {
|
51 |
id: id(),
|
52 |
label: __('Supplies', 'wds'),
|
53 |
-
|
54 |
properties: {
|
55 |
0: {
|
56 |
id: id(),
|
@@ -83,7 +83,7 @@ const HowTo = {
|
|
83 |
tool: {
|
84 |
id: id(),
|
85 |
label: __('Tools', 'wds'),
|
86 |
-
|
87 |
properties: {
|
88 |
0: {
|
89 |
id: id(),
|
@@ -124,7 +124,7 @@ const HowTo = {
|
|
124 |
step: {
|
125 |
id: id(),
|
126 |
label: __('Steps', 'wds'),
|
127 |
-
|
128 |
properties: {
|
129 |
0: {
|
130 |
id: id(),
|
@@ -197,7 +197,7 @@ const HowTo = {
|
|
197 |
review: {
|
198 |
id: id(),
|
199 |
label: __('Reviews', 'wds'),
|
200 |
-
|
201 |
properties: {
|
202 |
0: {
|
203 |
id: id(),
|
35 |
image: {
|
36 |
id: id(),
|
37 |
label: __('Images', 'wds'),
|
38 |
+
labelSingle: __('Image', 'wds'),
|
39 |
properties: {
|
40 |
0: {
|
41 |
id: id(),
|
50 |
supply: {
|
51 |
id: id(),
|
52 |
label: __('Supplies', 'wds'),
|
53 |
+
labelSingle: __('Supply', 'wds'),
|
54 |
properties: {
|
55 |
0: {
|
56 |
id: id(),
|
83 |
tool: {
|
84 |
id: id(),
|
85 |
label: __('Tools', 'wds'),
|
86 |
+
labelSingle: __('Tool', 'wds'),
|
87 |
properties: {
|
88 |
0: {
|
89 |
id: id(),
|
124 |
step: {
|
125 |
id: id(),
|
126 |
label: __('Steps', 'wds'),
|
127 |
+
labelSingle: __('Step', 'wds'),
|
128 |
properties: {
|
129 |
0: {
|
130 |
id: id(),
|
197 |
review: {
|
198 |
id: id(),
|
199 |
label: __('Reviews', 'wds'),
|
200 |
+
labelSingle: __('Review', 'wds'),
|
201 |
properties: {
|
202 |
0: {
|
203 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/job-posting/job-hiring-organization.js
CHANGED
@@ -31,7 +31,7 @@ const JobHiringOrganization = {
|
|
31 |
sameAs: {
|
32 |
id: id(),
|
33 |
label: __('Same As', 'wds'),
|
34 |
-
|
35 |
description: __("URL of reference web pages that unambiguously indicate the item's identity.", 'wds'),
|
36 |
properties: {
|
37 |
0: {
|
31 |
sameAs: {
|
32 |
id: id(),
|
33 |
label: __('Same As', 'wds'),
|
34 |
+
labelSingle: __('URL', 'wds'),
|
35 |
description: __("URL of reference web pages that unambiguously indicate the item's identity.", 'wds'),
|
36 |
properties: {
|
37 |
0: {
|
includes/assets/js/components/schema/schema-properties/job-posting/job-posting.js
CHANGED
@@ -156,7 +156,7 @@ const JobPosting = {
|
|
156 |
jobLocation: {
|
157 |
id: id(),
|
158 |
label: __('Job Locations', 'wds'),
|
159 |
-
|
160 |
required: true,
|
161 |
description: __('The physical location(s) of the business where the employee will report to work (such as an office or worksite), not the location where the job was posted. Include as many properties as possible. The more properties you provide, the higher quality the job posting is to the users.', 'wds'),
|
162 |
properties: {
|
@@ -170,7 +170,7 @@ const JobPosting = {
|
|
170 |
applicantLocationRequirements: {
|
171 |
id: id(),
|
172 |
label: __('Applicant Location Requirements', 'wds'),
|
173 |
-
|
174 |
description: __('The geographic location(s) in which employees may be located for to be eligible for the Work from home job. This property is only recommended if applicants may be located in one or more geographic locations and the job may or must be 100% remote.', 'wds'),
|
175 |
properties: {
|
176 |
0: {
|
156 |
jobLocation: {
|
157 |
id: id(),
|
158 |
label: __('Job Locations', 'wds'),
|
159 |
+
labelSingle: __('Job Location', 'wds'),
|
160 |
required: true,
|
161 |
description: __('The physical location(s) of the business where the employee will report to work (such as an office or worksite), not the location where the job was posted. Include as many properties as possible. The more properties you provide, the higher quality the job posting is to the users.', 'wds'),
|
162 |
properties: {
|
170 |
applicantLocationRequirements: {
|
171 |
id: id(),
|
172 |
label: __('Applicant Location Requirements', 'wds'),
|
173 |
+
labelSingle: __('Applicant Location Requirement', 'wds'),
|
174 |
description: __('The geographic location(s) in which employees may be located for to be eligible for the Work from home job. This property is only recommended if applicants may be located in one or more geographic locations and the job may or must be 100% remote.', 'wds'),
|
175 |
properties: {
|
176 |
0: {
|
includes/assets/js/components/schema/schema-properties/local-business/local-business.js
CHANGED
@@ -118,7 +118,7 @@ const LocalBusiness = {
|
|
118 |
image: {
|
119 |
id: id(),
|
120 |
label: __('Images', 'wds'),
|
121 |
-
|
122 |
properties: {
|
123 |
0: {
|
124 |
id: id(),
|
@@ -170,7 +170,7 @@ const LocalBusiness = {
|
|
170 |
openingHoursSpecification: {
|
171 |
id: id(),
|
172 |
label: __('Opening Hours', 'wds'),
|
173 |
-
|
174 |
properties: {
|
175 |
0: {
|
176 |
id: id(),
|
@@ -185,7 +185,7 @@ const LocalBusiness = {
|
|
185 |
review: {
|
186 |
id: id(),
|
187 |
label: __('Reviews', 'wds'),
|
188 |
-
|
189 |
properties: {
|
190 |
0: {
|
191 |
id: id(),
|
118 |
image: {
|
119 |
id: id(),
|
120 |
label: __('Images', 'wds'),
|
121 |
+
labelSingle: __('Image', 'wds'),
|
122 |
properties: {
|
123 |
0: {
|
124 |
id: id(),
|
170 |
openingHoursSpecification: {
|
171 |
id: id(),
|
172 |
label: __('Opening Hours', 'wds'),
|
173 |
+
labelSingle: __('Opening Hours Specification', 'wds'),
|
174 |
properties: {
|
175 |
0: {
|
176 |
id: id(),
|
185 |
review: {
|
186 |
id: id(),
|
187 |
label: __('Reviews', 'wds'),
|
188 |
+
labelSingle: __('Review', 'wds'),
|
189 |
properties: {
|
190 |
0: {
|
191 |
id: id(),
|
includes/assets/js/components/schema/schema-properties/local-business/local-review.js
CHANGED
@@ -56,6 +56,7 @@ const LocalReview = {
|
|
56 |
properties: LocalReviewAuthorPerson,
|
57 |
description: __("The author of the review. The reviewer's name must be a valid name.", 'wds'),
|
58 |
required: true, // This is only going to be shown as required and not going to be validated because parent is not required
|
|
|
59 |
},
|
60 |
Organization: {
|
61 |
id: id(),
|
@@ -66,6 +67,7 @@ const LocalReview = {
|
|
66 |
properties: LocalReviewAuthorOrganization,
|
67 |
description: __("The author of the review. The reviewer's name must be a valid name.", 'wds'),
|
68 |
required: true, // This is only going to be shown as required and not going to be validated because parent is not required
|
|
|
69 |
}
|
70 |
},
|
71 |
},
|
56 |
properties: LocalReviewAuthorPerson,
|
57 |
description: __("The author of the review. The reviewer's name must be a valid name.", 'wds'),
|
58 |
required: true, // This is only going to be shown as required and not going to be validated because parent is not required
|
59 |
+
isAnAltVersion: true,
|
60 |
},
|
61 |
Organization: {
|
62 |
id: id(),
|
67 |
properties: LocalReviewAuthorOrganization,
|
68 |
description: __("The author of the review. The reviewer's name must be a valid name.", 'wds'),
|
69 |
required: true, // This is only going to be shown as required and not going to be validated because parent is not required
|
70 |
+
isAnAltVersion: true,
|
71 |
}
|
72 |
},
|
73 |
},
|
includes/assets/js/components/schema/schema-properties/movie/movie.js
CHANGED
@@ -28,7 +28,7 @@ const Movie = {
|
|
28 |
image: {
|
29 |
id: id(),
|
30 |
label: __('Images', 'wds'),
|
31 |
-
|
32 |
description: __("An image that represents the movie. Images must have a high resolution and have a 6:9 aspect ratio. While Google can crop images that are close to a 6:9 aspect ratio, images largely deviating from this ratio aren't eligible for the feature.", 'wds'),
|
33 |
required: true,
|
34 |
properties: {
|
@@ -59,7 +59,7 @@ const Movie = {
|
|
59 |
review: {
|
60 |
id: id(),
|
61 |
|
28 |
image: {
|
29 |
id: id(),
|
30 |
label: __('Images', 'wds'),
|
31 |
+
labelSingle: __('Image', 'wds'),
|
32 |
description: __("An image that represents the movie. Images must have a high resolution and have a 6:9 aspect ratio. While Google can crop images that are close to a 6:9 aspect ratio, images largely deviating from this ratio aren't eligible for the feature.", 'wds'),
|
33 |
required: true,
|
34 |
properties: {
|
59 |
review: {
|
60 |
id: id(),
|
61 |
|