Version Description
- 2022-06-15 =
- Fix - Avoid losing focus when selecting an option in Tree Select Control.
- Fix - Bump node-forge from 1.2.1 to 1.3.1.
- Tweak - Clear input search filter after selecting an option.
- Tweak - Disable Review Request in Standalone Accounts.
- Tweak - Update copy for Free and Enhanced Listings merge
- Tweak - WC 6.6 compatibility.
Download this release
Release Info
Developer | automattic |
Plugin | Google Listings & Ads |
Version | 1.13.5 |
Comparing to | |
See all releases |
Code changes from version 1.13.4 to 1.13.5
- changelog.txt +8 -0
- google-listings-and-ads.php +2 -2
- js/build/index.asset.php +1 -1
- js/build/index.js +19 -19
changelog.txt
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
*** WooCommerce Google Listings and Ads Changelog ***
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.13.4 - 2022-06-07 =
|
4 |
* Fix - Adding Github Actions for storybook.
|
5 |
* Fix - Do not show error notice when Merchant Center review request API call failed.
|
1 |
*** WooCommerce Google Listings and Ads Changelog ***
|
2 |
|
3 |
+
= 1.13.5 - 2022-06-15 =
|
4 |
+
* Fix - Avoid losing focus when selecting an option in Tree Select Control.
|
5 |
+
* Fix - Bump node-forge from 1.2.1 to 1.3.1.
|
6 |
+
* Tweak - Clear input search filter after selecting an option.
|
7 |
+
* Tweak - Disable Review Request in Standalone Accounts.
|
8 |
+
* Tweak - Update copy for Free and Enhanced Listings merge
|
9 |
+
* Tweak - WC 6.6 compatibility.
|
10 |
+
|
11 |
= 1.13.4 - 2022-06-07 =
|
12 |
* Fix - Adding Github Actions for storybook.
|
13 |
* Fix - Do not show error notice when Merchant Center review request API call failed.
|
google-listings-and-ads.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Google Listings and Ads
|
4 |
* Plugin URL: https://wordpress.org/plugins/google-listings-and-ads/
|
5 |
* Description: Native integration with Google that allows merchants to easily display their products across Google’s network.
|
6 |
-
* Version: 1.13.
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com/
|
9 |
* Text Domain: google-listings-and-ads
|
@@ -28,7 +28,7 @@ use Psr\Container\ContainerInterface;
|
|
28 |
|
29 |
defined( 'ABSPATH' ) || exit;
|
30 |
|
31 |
-
define( 'WC_GLA_VERSION', '1.13.
|
32 |
define( 'WC_GLA_MIN_PHP_VER', '7.3' );
|
33 |
define( 'WC_GLA_MIN_WC_VER', '6.0' );
|
34 |
|
3 |
* Plugin Name: Google Listings and Ads
|
4 |
* Plugin URL: https://wordpress.org/plugins/google-listings-and-ads/
|
5 |
* Description: Native integration with Google that allows merchants to easily display their products across Google’s network.
|
6 |
+
* Version: 1.13.5
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com/
|
9 |
* Text Domain: google-listings-and-ads
|
28 |
|
29 |
defined( 'ABSPATH' ) || exit;
|
30 |
|
31 |
+
define( 'WC_GLA_VERSION', '1.13.5' ); // WRCS: DEFINED_VERSION.
|
32 |
define( 'WC_GLA_MIN_PHP_VER', '7.3' );
|
33 |
define( 'WC_GLA_MIN_WC_VER', '6.0' );
|
34 |
|
js/build/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-components', 'wc-customer-effort-score', 'wc-navigation', 'wc-settings', 'wc-store-data', 'wp-a11y', 'wp-api-fetch', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-url', 'wp-warning'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-components', 'wc-customer-effort-score', 'wc-navigation', 'wc-settings', 'wc-store-data', 'wp-a11y', 'wp-api-fetch', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-url', 'wp-warning'), 'version' => 'a724e064368a990d6c1153e6c9981804');
|
js/build/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
(function(){var __webpack_modules__={9171:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateDateInputForRange=t.dateValidationMessages=t.loadLocaleData=t.getDateFormatsForInterval=t.defaultTableDateFormat=t.weekTicksThreshold=t.dayTicksThreshold=t.getChartTypeForQuery=t.getIntervalForQuery=t.getAllowedIntervalsForQuery=t.getPreviousDate=t.getDateDifferenceInDays=t.getCurrentDates=t.getDateParamsFromQuery=t.getCurrentPeriod=t.getLastPeriod=t.getStoreTimeZoneMoment=t.getRangeLabel=t.toMoment=t.appendTimestamp=t.periods=t.presetValues=t.defaultDateTimeFormat=t.isoDateFormat=void 0;const o=r(n(6292)),a=n(2819),i=n(5736),s=n(129);function l(e,n){if(o.default.isMoment(n))return n.isValid()?n:null;if("string"==typeof n){const r=o.default(n,[t.isoDateFormat,e],!0);return r.isValid()?r:null}throw new Error("toMoment requires a string to be passed as an argument")}function c(e,t){const n=e.year()===t.year(),r=n&&e.month()===t.month(),o=n&&r&&e.isSame(t,"day"),a=i.__("MMM D, YYYY","woocommerce-admin");if(o)return e.format(a);if(r){const n=e.date();return e.format(a).replace(n,`${n} - ${t.date()}`)}if(n){const n=i.__("MMM D","woocommerce-admin");return`${e.format(n)} - ${t.format(a)}`}return`${e.format(a)} - ${t.format(a)}`}function u(){return window.wcSettings&&window.wcSettings.timeZone?["+","-"].includes(window.wcSettings.timeZone.charAt(0))?o.default().utcOffset(window.wcSettings.timeZone):o.default().tz(window.wcSettings.timeZone):o.default()}function d(e,t){const n=u().startOf(e).subtract(1,e),r=n.clone().endOf(e);let a,i;if("previous_period"===t)if("year"===e)a=o.default().startOf(e).subtract(2,e),i=a.clone().endOf(e);else{const e=r.diff(n,"days");i=n.clone().subtract(1,"days"),a=i.clone().subtract(e,"days")}else a=n.clone().subtract(1,"years"),i=r.clone().subtract(1,"years");return"month"===e&&(i=i.clone().endOf("month")),{primaryStart:n,primaryEnd:r,secondaryStart:a,secondaryEnd:i}}function g(e,t){const n=u().startOf(e),r=u(),o=r.diff(n,"days");let a,i;return"previous_period"===t?(a=n.clone().subtract(1,e),i=r.clone().subtract(1,e)):(a=n.clone().subtract(1,"years"),i=a.clone().add(o+1,"days").subtract(1,"seconds")),{primaryStart:n,primaryEnd:r,secondaryStart:a,secondaryEnd:i}}t.isoDateFormat="YYYY-MM-DD",t.defaultDateTimeFormat="YYYY-MM-DDTHH:mm:ss",t.presetValues=[{value:"today",label:i.__("Today","woocommerce-admin")},{value:"yesterday",label:i.__("Yesterday","woocommerce-admin")},{value:"week",label:i.__("Week to Date","woocommerce-admin")},{value:"last_week",label:i.__("Last Week","woocommerce-admin")},{value:"month",label:i.__("Month to Date","woocommerce-admin")},{value:"last_month",label:i.__("Last Month","woocommerce-admin")},{value:"quarter",label:i.__("Quarter to Date","woocommerce-admin")},{value:"last_quarter",label:i.__("Last Quarter","woocommerce-admin")},{value:"year",label:i.__("Year to Date","woocommerce-admin")},{value:"last_year",label:i.__("Last Year","woocommerce-admin")},{value:"custom",label:i.__("Custom","woocommerce-admin")}],t.periods=[{value:"previous_period",label:i.__("Previous Period","woocommerce-admin")},{value:"previous_year",label:i.__("Previous Year","woocommerce-admin")}],t.appendTimestamp=(e,n)=>{if("start"===n)return e.startOf("day").format(t.defaultDateTimeFormat);if("now"===n)return e.format(t.defaultDateTimeFormat);if("end"===n)return e.endOf("day").format(t.defaultDateTimeFormat);throw new Error("appendTimestamp requires second parameter to be either `start`, `now` or `end`")},t.toMoment=l,t.getRangeLabel=c,t.getStoreTimeZoneMoment=u,t.getLastPeriod=d,t.getCurrentPeriod=g;const p=a.memoize(((e,t,n,r)=>{switch(e){case"today":return g("day",t);case"yesterday":return d("day",t);case"week":return g("week",t);case"last_week":return d("week",t);case"month":return g("month",t);case"last_month":return d("month",t);case"quarter":return g("quarter",t);case"last_quarter":return d("quarter",t);case"year":return g("year",t);case"last_year":return d("year",t);case"custom":const e=r.diff(n,"days");if("previous_period"===t){const t=n.clone().subtract(1,"days");return{primaryStart:n,primaryEnd:r,secondaryStart:t.clone().subtract(e,"days"),secondaryEnd:t}}return{primaryStart:n,primaryEnd:r,secondaryStart:n.clone().subtract(1,"years"),secondaryEnd:r.clone().subtract(1,"years")}}}),((e,t,n,r)=>[e,t,n&&n.format(),r&&r.format()].join(":"))),f=a.memoize(((e,t,n,r,a)=>{if(e&&t)return{period:e,compare:t,after:n?o.default(n):null,before:r?o.default(r):null};const i=s.parse(a.replace(/&/g,"&"));return{period:i.period,compare:i.compare,after:i.after?o.default(i.after):null,before:i.before?o.default(i.before):null}}),((e,t,n,r,o)=>[e,t,n,r,o].join(":")));t.getDateParamsFromQuery=(e,t="period=month&compare=previous_year")=>{const{period:n,compare:r,after:o,before:a}=e;return f(n,r,o,a,t)};const m=a.memoize(((e,n,r,o,i,s)=>({primary:{label:a.find(t.presetValues,(t=>t.value===e)).label,range:c(r,o),after:r,before:o},secondary:{label:a.find(t.periods,(e=>e.value===n)).label,range:c(i,s),after:i,before:s}})),((e,t,n,r,o,a)=>[e,t,n&&n.format(),r&&r.format(),o&&o.format(),a&&a.format()].join(":")));function h(e){let n=[];if("custom"===e.period){const{primary:r}=t.getCurrentDates(e),o=t.getDateDifferenceInDays(r.before,r.after);n=o>=365?["day","week","month","quarter","year"]:o>=90?["day","week","month","quarter"]:o>=28?["day","week","month"]:o>=7?["day","week"]:o>1&&o<7?["day"]:["hour","day"]}else switch(e.period){case"today":case"yesterday":n=["hour","day"];break;case"week":case"last_week":default:n=["day"];break;case"month":case"last_month":n=["day","week"];break;case"quarter":case"last_quarter":n=["day","week","month"];break;case"year":case"last_year":n=["day","week","month","quarter"]}return n}t.getCurrentDates=(e,n="period=month&compare=previous_year")=>{const{period:r,compare:o,after:a,before:i}=t.getDateParamsFromQuery(e,n),{primaryStart:s,primaryEnd:l,secondaryStart:c,secondaryEnd:u}=p(r,o,a,i);return m(r,o,s,l,c,u)},t.getDateDifferenceInDays=(e,t)=>{const n=o.default(e),r=o.default(t);return n.diff(r,"days")},t.getPreviousDate=(e,t,n,r,a)=>{const i=o.default(e);if("previous_year"===r)return i.clone().subtract(1,"years");const s=o.default(t),l=o.default(n),c=s.diff(l,a);return i.clone().subtract(c,a)},t.getAllowedIntervalsForQuery=h,t.getIntervalForQuery=function(e){const t=h(e),n=t[0];let r=e.interval||n;return e.interval&&!t.includes(e.interval)&&(r=n),r},t.getChartTypeForQuery=function({chartType:e}){return["line","bar"].includes(e)?e:"line"},t.dayTicksThreshold=63,t.weekTicksThreshold=9,t.defaultTableDateFormat="m/d/Y",t.getDateFormatsForInterval=function(e,n=0){let r="%B %-d, %Y",o="%B %-d, %Y",a="%Y-%m-%d",s="%b %Y",l=t.defaultTableDateFormat;switch(e){case"hour":r="%_I%p %B %-d, %Y",o="%_I%p %b %-d, %Y",a="%_I%p",s="%b %-d, %Y",l="h A";break;case"day":n<t.dayTicksThreshold?a="%-d":(a="%b",s="%Y");break;case"week":n<t.weekTicksThreshold?(a="%-d",s="%b %Y"):(a="%b",s="%Y"),r=i.__("Week of %B %-d, %Y","woocommerce-admin"),o=i.__("Week of %B %-d, %Y","woocommerce-admin");break;case"quarter":case"month":r="%B %Y",o="%B %Y",a="%b",s="%Y";break;case"year":r="%Y",o="%Y",a="%Y"}return{screenReaderFormat:r,tooltipLabelFormat:o,xFormat:a,x2Format:s,tableFormat:l}},t.loadLocaleData=function({userLocale:e,weekdaysShort:t}){"en"!==o.default.locale()&&o.default.updateLocale(e,{longDateFormat:{L:i.__("MM/DD/YYYY","woocommerce-admin"),LL:i.__("MMMM D, YYYY","woocommerce-admin"),LLL:i.__("D MMMM YYYY LT","woocommerce-admin"),LLLL:i.__("dddd, D MMMM YYYY LT","woocommerce-admin"),LT:i.__("HH:mm","woocommerce-admin")},weekdaysMin:t})},t.dateValidationMessages={invalid:i.__("Invalid date","woocommerce-admin"),future:i.__("Select a date in the past","woocommerce-admin"),startAfterEnd:i.__("Start date must be before end date","woocommerce-admin"),endBeforeStart:i.__("Start date must be before end date","woocommerce-admin")},t.validateDateInputForRange=function(e,n,r,a,i){const s=l(i,n);return s?o.default().isBefore(s,"day")?{date:null,error:t.dateValidationMessages.future}:"after"===e&&r&&s.isAfter(r,"day")?{date:null,error:t.dateValidationMessages.startAfterEnd}:"before"===e&&a&&s.isBefore(a,"day")?{date:null,error:t.dateValidationMessages.endBeforeStart}:{date:s}:{date:null,error:t.dateValidationMessages.invalid}}},4940:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.recordPageView=t.queueRecordEvent=t.recordEvent=void 0;const o=r(n(1227)).default("wc-admin:tracks");function a(e,t){if(o("recordevent %s %o","wcadmin_"+e,t,{_tqk:window._tkq,shouldRecord:!!window._tkq&&!!window.wcTracks&&!!window.wcTracks.isEnabled}),!window.wcTracks||"function"!=typeof window.wcTracks.recordEvent)return!1;window.wcTracks.recordEvent(e,t)}t.recordEvent=a;const i={localStorageKey:()=>"tracksQueue",clear(){window.localStorage&&window.localStorage.removeItem(i.localStorageKey())},get(){if(!window.localStorage)return[];let e=window.localStorage.getItem(i.localStorageKey());return e=e?JSON.parse(e):[],e=Array.isArray(e)?e:[],e},add(...e){if(!window.localStorage)return o("Unable to queue, running now",{args:e}),void a.apply(null,e||void 0);let t=i.get();const n={args:e};t.push(n),t=t.slice(-100),o("Adding new item to queue.",n),window.localStorage.setItem(i.localStorageKey(),JSON.stringify(t))},process(){if(!window.localStorage)return;const e=i.get();i.clear(),o("Processing items in queue.",e),e.forEach((e=>{"object"==typeof e&&(o("Processing item in queue.",e),a.apply(null,e.args||void 0))}))}};t.queueRecordEvent=function(e,t){i.add(e,t)},t.recordPageView=function(e,t){e&&(a("page_view",Object.assign({path:e},t)),i.process())}},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1227:function(e,t,n){var r=n(4155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:function(e,t,n){e.exports=function(e){function t(e){let n,o=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const a=t.formatters[o];if("function"==typeof a){const t=e[s];n=a.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3836:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-checkmark-circle",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658A9.98 9.98 0 0012 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10a9.94 9.94 0 00-.966-4.266L11 17.768z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8222:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-chevron-left",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7188:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-credit-card",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8359:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-external",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},3119:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-gift",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7719:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-help-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2v-1.141A3.991 3.991 0 0016 10zm-3 6h-2v2h2v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7132:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},5683:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7489:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-notice",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},4886:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-phone",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 2H8a2 2 0 00-2 2v16a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},3115:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-plus-small",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8249:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-sync",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4a8 8 0 018 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12a8 8 0 008 8v-2c-3.308 0-6-2.692-6-6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},6928:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:i,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?a:r,i=e.searchWords,s=e.textToHighlight;return s=o(s),i.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(r,n?"g":"gi"),i=void 0;i=a.exec(s);){var l=i.index,c=a.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,n,!1)}return r};function a(e){return e}}])},8679:function(e,t,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),h=0;h<i.length;++h){var y=i[h];if(!(a[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=g(n,y);try{c(t,y,v)}catch(e){}}}}return t}},9016:function(e){"use strict";e.exports=function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,s=void 0===n?".":n,l="";return l=(a?function(e,t){if(-1===(""+e).indexOf("e"))return+(Math.round(e+"e+"+t)+"e-"+t);var n=(""+e).split("e"),r="";return+n[1]+t>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+t))+"e-"+t)).toFixed(t)}(o,a).toString():""+Math.round(o)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(l[1]||"").length<a&&(l[1]=l[1]||"",l[1]+=new Array(a-l[1].length+1).join("0")),l.join(s)}},9588:function(e){e.exports=function(e,t){var n,r,o=0;function a(){var a,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},a.clear=function(){n=null,r=null,o=0},a}},2441:function(e,t,n){var r;!function(o,a,i){if(o){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},g=1;g<20;++g)l[111+g]="f"+g;for(g=0;g<=9;++g)l[g+96]=g.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},b.init=function(){var e=b(a);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,o,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],d[r]&&(r=d[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],a.push("shift")),m(r)&&a.push(r);return{key:r,modifiers:a,action:t=h(r,a,t)}}function v(e,t){return null!==e&&e!==a&&(e===t||v(e.parentNode,t))}function b(e){var t=this;if(e=e||a,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,i=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function c(e,n,o,a,i,s){var l,c,u,d,g=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(a||!c.seq||r[c.seq]==c.level)&&p==c.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(u=n,d=c.modifiers,u.sort().join(",")===d.sort().join(",")))){var f=!a&&c.combo==i,h=a&&c.seq==a&&c.level==s;(f||h)&&t._callbacks[e].splice(l,1),g.push(c)}return g}function u(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function g(e,a,i,d,p){t._directMap[e+":"+i]=a;var m,h=(e=e.replace(/\s+/g," ")).split(" ");h.length>1?function(e,t,a,i){function c(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){u(a,t,e),"keyup"!==i&&(o=f(t)),setTimeout(l,10)}r[e]=0;for(var p=0;p<t.length;++p){var m=p+1===t.length?d:c(i||y(t[p+1]).action);g(t[p],m,i,e,p)}}(e,h,a,i):(m=y(e,i),t._callbacks[m.key]=t._callbacks[m.key]||[],c(m.key,m.modifiers,{type:m.action},d,e,p),t._callbacks[m.key][d?"unshift":"push"]({callback:a,modifiers:m.modifiers,action:m.action,seq:d,level:p,combo:e}))}t._handleKey=function(e,t,n){var r,o=c(e,t,n),a={},d=0,g=!1;for(r=0;r<o.length;++r)o[r].seq&&(d=Math.max(d,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=d)continue;g=!0,a[o[r].seq]=1,u(o[r].callback,n,o[r].combo,o[r].seq)}else g||u(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&i;n.type!=s||m(e)||p||l(a),i=g&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)g(e[r],t,n)},p(e,"keypress",d),p(e,"keydown",d),p(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},3956:function(){!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,a){return!!this.paused||!t[o]&&!t[a]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},7824:function(e){var t=1e3,n=60*t,r=60*n,o=24*r;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,i){i=i||{};var s,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"weeks":case"week":case"w":return 6048e5*i;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===c&&isFinite(e))return i.long?(s=e,(l=Math.abs(s))>=o?a(s,l,o,"day"):l>=r?a(s,l,r,"hour"):l>=n?a(s,l,n,"minute"):l>=t?a(s,l,t,"second"):s+" ms"):function(e){var a=Math.abs(e);return a>=o?Math.round(e/o)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6470:function(e,t,n){"use strict";var r=n(4155);function o(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var n,r="",o=0,a=-1,i=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===i);else if(a!==s-1&&2===i){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,a=s,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),o=s-a-1;a=s,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var i={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=r.cwd()),s=e),o(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return o(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];o(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(o(e),o(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,a=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var l=t.length-s,c=a<l?a:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else a>c&&(47===e.charCodeAt(n+d)?u=d:0===d&&(u=0));break}var g=e.charCodeAt(n+d);if(g!==t.charCodeAt(s+d))break;47===g&&(u=d)}var p="";for(d=n+u+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(o(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!a){r=i;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');o(e);var n,r=0,a=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!i){r=n+1;break}}else-1===l&&(i=!1,l=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(a=n):(s=-1,a=l))}return r===a?a=l:-1===a&&(a=e.length),e.slice(r,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(r,a)},extname:function(e){o(e);for(var t=-1,n=0,r=-1,a=!0,i=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===r&&(a=!1,r=s+1),46===l?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),a=47===r;a?(t.root="/",n=1):n=0;for(var i=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===r?-1===i?i=u:1!==d&&(d=1):-1!==i&&(d=-1);else if(!c){s=u+1;break}return-1===i||-1===l||0===d||1===d&&i===l-1&&i===s+1?-1!==l&&(t.base=t.name=0===s&&a?e.slice(1,l):e.slice(s,l)):(0===s&&a?(t.name=e.slice(1,i),t.base=e.slice(1,l)):(t.name=e.slice(s,i),t.base=e.slice(s,l)),t.ext=e.slice(i,l)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},4155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&g())}function g(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||i(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},129:function(e,t,n){"use strict";var r=n(8261),o=n(5235),a=n(5798);e.exports={formats:a,parse:o,stringify:r}},5235:function(e,t,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,g=u.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<g.length;++n)0===g[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===g[n]?f="utf-8":"utf8=%26%2310003%3B"===g[n]&&(f="iso-8859-1"),p=n,n=g.length);for(n=0;n<g.length;++n)if(n!==p){var m,h,y=g[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,i.decoder,f,"key"),h=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),i.decoder,f,"key"),h=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,f,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===f&&(h=s(h)),y.indexOf("[]=")>-1&&(h=a(h)?[h]:h),o.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},g=Object.keys(u),p=0;p<g.length;++p){var f=g[p],m=c(f,u[f],n,"string"==typeof e);d=r.merge(d,m,n)}return r.compact(d)}},8261:function(e,t,n){"use strict";var r=n(2769),o=n(5798),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,a,i,l,u,d,p,f,m,h,y,v){var b,_=t;if("function"==typeof u?_=u(n,_):_ instanceof Date?_=f(_):"comma"===o&&s(_)&&(_=r.maybeMap(_,(function(e){return e instanceof Date?f(e):e}))),null===_){if(a)return l&&!y?l(n,g.encoder,v,"key",m):n;_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(_))return l?[h(y?n:l(n,g.encoder,v,"key",m))+"="+h(l(_,g.encoder,v,"value",m))]:[h(n)+"="+h(String(_))];var w,E=[];if(void 0===_)return E;if("comma"===o&&s(_))w=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(u))w=u;else{var $=Object.keys(_);w=d?$.sort(d):$}for(var C=0;C<w.length;++C){var k=w[C],S="object"==typeof k&&void 0!==k.value?k.value:_[k];if(!i||null!==S){var x=s(_)?"function"==typeof o?o(n,k):n:n+(p?"."+k:"["+k+"]");c(E,e(S,x,o,a,i,l,u,d,p,f,m,h,y,v))}}return E};e.exports=function(e,t){var n,r=e,l=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=g.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}}(t);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var h=n[m];l.skipNulls&&null===r[h]||c(d,p(r[h],h,f,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var y=d.join(l.delimiter),v=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),y.length>0?v+y:""}},2769:function(e,t,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t}),i)}}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,g=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case g:case h:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=g,t.Fragment=a,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===g},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},9864:function(e,t,n){"use strict";e.exports=n(9921)},5464:function(e,t,n){var r=n(9196),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},a=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},i=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=i);var t=r.useState(e(null)),n=t[0],o=t[1],s=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(a,{onResize:s})}),[s]),n]}},3272:function(e,t,n){"use strict";var r,o={},a=n(9670);function i(e,t){o[e]=function(e,t){return e in r?r[e]:t}(e,t)}e.exports.configure=function(e,t,n){if(r=e||{},n=n||{},i("autoRename",!1),i("autoRenameStrict",!1),i("blacklist",{}),i("clean",!0),i("greedy",!1),i("processUrls",!1),i("stringMap",[]),i("useCalc",!1),Array.isArray(o.stringMap)){for(var s,l,c=0;c<o.stringMap.length;c++){var u=o.stringMap[c];if(s&&l)break;"left-right"===u.name?s=!0:"ltr-rtl"===u.name&&(l=!0)}s||o.stringMap.push({name:"left-right",priority:100,exclusive:!1,search:["left","Left","LEFT"],replace:["right","Right","RIGHT"],options:{scope:"*",ignoreCase:!1}}),l||o.stringMap.push({name:"ltr-rtl",priority:100,exclusive:!1,search:["ltr","Ltr","LTR"],replace:["rtl","Rtl","RTL"],options:{scope:"*",ignoreCase:!1}}),o.stringMap.sort((function(e,t){return e.priority-t.priority}))}return o.plugins=[],Array.isArray(t)?(t.some((function(e){return"rtlcss"===e.name}))||o.plugins.push(a),o.plugins=o.plugins.concat(t)):t&&"rtlcss"===t.name||o.plugins.push(a),o.plugins.sort((function(e,t){return e.priority-t.priority})),o.hooks={pre:function(){},post:function(){}},"function"==typeof n.pre&&(o.hooks.pre=n.pre),"function"==typeof n.post&&(o.hooks.post=n.post),o}},5915:function(e){e.exports=function(e){var t,n=0,r=e.text,o=r.match(/^\s*!?\s*rtl:/);return o&&(t={source:e,name:"",param:"",begin:!0,end:!0,blacklist:!1,preserve:!1},(n=(r=r.slice(o[0].length)).indexOf(":"))>-1?(t.name=r.slice(0,n),t.begin="end"!==t.name,t.end="begin"!==t.name,"begin"===t.name||"end"===t.name?(n=(r=r.slice(t.name.length+1)).indexOf(":"))>-1?(t.name=r.slice(0,n),r=r.slice(n),t.param=r.slice(1)):t.name=r:t.param=r.slice(n+1)):t.name=r),t}},9670:function(module,__unused_webpack_exports,__webpack_require__){"use strict";var config=__webpack_require__(3272),util=__webpack_require__(8805);module.exports={name:"rtlcss",priority:100,directives:{control:{ignore:{expect:{atrule:!0,comment:!0,decl:!0,rule:!0},endNode:null,begin:function(e,t,n){if(!this.endNode&&t.begin&&t.end){for(var r=e;r&&r.nodes;)r=r.nodes[r.nodes.length-1];this.endNode=r}var o=!0;return"comment"===e.type&&e.text.match(/^\s*!?\s*rtl:end:ignore/)&&(o=!1),o},end:function(e,t,n){return!!(t.begin!==t.end&&"comment"===e.type||t.begin&&t.end&&e===this.endNode)&&(this.endNode=null,!0)}},rename:{expect:{rule:!0},begin:function(e,t,n){return e.selector=n.util.applyStringMap(e.selector,!1),!1},end:function(e,t){return!0}},raw:{expect:{self:!0},begin:function(e,t,n){var r=n.postcss.parse(t.param,{from:e.source.input.from});return e.parent.insertBefore(e,r),!0},end:function(e,t){return!0}},remove:{expect:{atrule:!0,rule:!0,decl:!0},begin:function(e,t,n){var r=!1;switch(e.type){case"atrule":case"rule":case"decl":r=!0,e.remove()}return r},end:function(e,t,n){return!0}},options:{expect:{self:!0},stack:[],begin:function(e,t,n){var r;this.stack.push(util.extend({},n.config));try{r=JSON.parse(t.param)}catch(t){throw e.error("Invlaid options object",{details:t})}return n.config=config.configure(r,n.config.plugins),n.util=util.configure(n.config),!0},end:function(e,t,n){var r=this.stack.pop();return r&&!t.begin&&(n.config=r,n.util=util.configure(n.config)),!0}},config:{expect:{self:!0},expr:{fn:/function([^\(]*)\(([^\(\)]*?)\)[^\{]*\{([^]*)\}/gi,rx:/\/([^\/]*)\/(.*)/gi},stack:[],begin:function(node,metadata,context){var configuration;this.stack.push(util.extend({},context.config));try{configuration=eval("("+metadata.param+")")}catch(e){throw node.error("Invlaid config object",{details:e})}return context.config=config.configure(configuration.options,configuration.plugins),context.util=util.configure(context.config),!0},end:function(e,t,n){var r=this.stack.pop();return r&&!t.begin&&(n.config=r,n.util=util.configure(n.config)),!0}}},value:[{name:"ignore",action:function(e,t,n){return!0}},{name:"prepend",action:function(e,t,n){var r="";return e.raws.value.raw.replace(t,(function(e,t){r+=t})),e.value=e.raws.value.raw=r+e.raws.value.raw,!0}},{name:"append",action:function(e,t,n){return e.value=e.raws.value.raw=e.raws.value.raw.replace(t,(function(e,t){return e+t})),!0}},{name:"insert",action:function(e,t,n){return e.value=e.raws.value.raw=e.raws.value.raw.replace(t,(function(e,t){return t+e})),!0}},{name:"",action:function(e,t,n){return e.raws.value.raw.replace(t,(function(t,n){e.value=e.raws.value.raw=n+t})),!0}}]},processors:[{name:"variable",expr:/^--/im,action:function(e,t){return{prop:e,value:t}}},{name:"direction",expr:/direction/im,action:function(e,t,n){return{prop:e,value:n.util.swapLtrRtl(t)}}},{name:"left",expr:/left/im,action:function(e,t,n){return{prop:e.replace(this.expr,(function(){return"right"})),value:t}}},{name:"right",expr:/right/im,action:function(e,t,n){return{prop:e.replace(this.expr,(function(){return"left"})),value:t}}},{name:"four-value syntax",expr:/^(margin|padding|border-(color|style|width))$/gi,cache:null,action:function(e,t,n){null===this.cache&&(this.cache={match:/[^\s\uFFFD]+/g});var r=n.util.guardFunctions(t),o=r.value.match(this.cache.match);if(o&&4===o.length&&(r.store.length>0||o[1]!==o[3])){var a=0;r.value=r.value.replace(this.cache.match,(function(){return o[(4-a++)%4]}))}return{prop:e,value:n.util.unguardFunctions(r)}}},{name:"border radius",expr:/border-radius/gi,cache:null,flip:function(e){var t,n=e.match(this.cache.match);if(n)switch(n.length){case 2:t=1,n[0]!==n[1]&&(e=e.replace(this.cache.match,(function(){return n[t--]})));break;case 3:e=e.replace(this.cache.white,(function(e){return e+n[1]+" "}));break;case 4:t=0,n[0]===n[1]&&n[2]===n[3]||(e=e.replace(this.cache.match,(function(){return n[(5-t++)%4]})))}return e},action:function(e,t,n){null===this.cache&&(this.cache={match:/[^\s\uFFFD]+/g,slash:/[^\/]+/g,white:/(^\s*)/});var r=n.util.guardFunctions(t);return r.value=r.value.replace(this.cache.slash,function(e){return this.flip(e)}.bind(this)),{prop:e,value:n.util.unguardFunctions(r)}}},{name:"shadow",expr:/shadow/gi,cache:null,action:function(e,t,n){null===this.cache&&(this.cache={replace:/[^,]+/g});var r=n.util.guardHexColors(t),o=n.util.guardFunctions(r.value);return o.value=o.value.replace(this.cache.replace,(function(e){return n.util.negate(e)})),r.value=n.util.unguardFunctions(o),{prop:e,value:n.util.unguardHexColors(r)}}},{name:"transform and perspective origin",expr:/(?:transform|perspective)-origin/gi,cache:null,flip:function(e,t){return"0"===e?e="100%":e.match(this.cache.percent)?e=t.util.complement(e):e.match(this.cache.length)&&(e=t.util.flipLength(e)),e},action:function(e,t,n){if(null===this.cache&&(this.cache={match:n.util.regex(["calc","percent","length"],"g"),percent:n.util.regex(["calc","percent"],"i"),length:n.util.regex(["length"],"gi"),xKeyword:/(left|right)/i}),t.match(this.cache.xKeyword))t=n.util.swapLeftRight(t);else{var r=n.util.guardFunctions(t),o=r.value.match(this.cache.match);o&&o.length>0&&(o[0]=this.flip(o[0],n),r.value=r.value.replace(this.cache.match,(function(){return o.shift()})),t=n.util.unguardFunctions(r))}return{prop:e,value:t}}},{name:"transform",expr:/^(?!text\-).*?transform$/gi,cache:null,flip:function(e,t,n){var r=0;return e.replace(this.cache.unit,(function(e){return t(++r,e)}))},flipMatrix:function(e,t){return this.flip(e,(function(e,n){return 2===e||3===e||5===e?t.util.negate(n):n}),t)},flipMatrix3D:function(e,t){return this.flip(e,(function(e,n){return 2===e||4===e||5===e||13===e?t.util.negate(n):n}),t)},flipRotate3D:function(e,t){return this.flip(e,(function(e,n){return 1===e||4===e?t.util.negate(n):n}),t)},action:function(e,t,n){null===this.cache&&(this.cache={negatable:/((translate)(x|3d)?|rotate(z|y)?)$/gi,unit:n.util.regex(["calc","number"],"g"),matrix:/matrix$/i,matrix3D:/matrix3d$/i,skewXY:/skew(x|y)?$/i,rotate3D:/rotate3d$/i});var r=n.util.guardFunctions(t);return{prop:e,value:n.util.unguardFunctions(r,function(e,t){return t.length&&(t.match(this.cache.matrix3D)?e=this.flipMatrix3D(e,n):t.match(this.cache.matrix)?e=this.flipMatrix(e,n):t.match(this.cache.rotate3D)?e=this.flipRotate3D(e,n):t.match(this.cache.skewXY)?e=n.util.negateAll(e):t.match(this.cache.negatable)&&(e=n.util.negate(e))),e}.bind(this))}}},{name:"transition",expr:/transition(-property)?$/i,action:function(e,t,n){return{prop:e,value:n.util.swapLeftRight(t)}}},{name:"background",expr:/background(-position(-x)?|-image)?$/i,cache:null,flip:function(e,t){var n=util.saveTokens(e,!0),r=n.value.match(this.cache.match);if(r&&r.length>0){var o=(n.value.match(this.cache.position)||"").length;r.length>=3||2===o?n.value=util.swapLeftRight(n.value):(r[0]="0"===r[0]?"100%":r[0].match(this.cache.percent)?t.util.complement(r[0]):r[0].match(this.cache.length)?t.util.flipLength(r[0]):t.util.swapLeftRight(r[0]),n.value=n.value.replace(this.cache.match,(function(){return r.shift()})))}return util.restoreTokens(n)},update:function(e,t,n){return n.match(this.cache.gradient)?(t=e.util.swapLeftRight(t)).match(this.cache.angle)&&(t=e.util.negate(t)):(!0===e.config.processUrls||!0===e.config.processUrls.decl&&n.match(this.cache.url))&&(t=e.util.applyStringMap(t,!0)),t},action:function(e,t,n){null===this.cache&&(this.cache={match:n.util.regex(["position","percent","length","calc"],"ig"),percent:n.util.regex(["calc","percent"],"i"),position:n.util.regex(["position"],"g"),length:n.util.regex(["length"],"gi"),gradient:/gradient$/i,angle:/\d+(deg|g?rad|turn)/i,url:/^url/i});var r=n.util.guardHexColors(t),o=n.util.guardFunctions(r.value),a=o.value.split(",");if("background-image"!==e.toLowerCase())for(var i=0;i<a.length;i++)a[i]=this.flip(a[i],n);return o.value=a.join(","),r.value=n.util.unguardFunctions(o,this.update.bind(this,n)),{prop:e,value:n.util.unguardHexColors(r)}}},{name:"keyword",expr:/float|clear|text-align/i,action:function(e,t,n){return{prop:e,value:n.util.swapLeftRight(t)}}},{name:"cursor",expr:/cursor/i,cache:null,update:function(e,t,n){return(!0===e.config.processUrls||!0===e.config.processUrls.decl&&n.match(this.cache.url))&&(t=e.util.applyStringMap(t,!0)),t},flip:function(e){return e.replace(this.cache.replace,function(e,t){return e.replace(t,t.replace(this.cache.e,"*").replace(this.cache.w,"e").replace(this.cache.star,"w"))}.bind(this))},action:function(e,t,n){null===this.cache&&(this.cache={replace:/\b(ne|nw|se|sw|nesw|nwse)-resize/gi,url:/^url/i,e:/e/i,w:/w/i,star:/\*/i});for(var r=n.util.guardFunctions(t),o=r.value.split(","),a=0;a<o.length;a++)o[a]=this.flip(o[a]);return r.value=o.join(","),{prop:e,value:n.util.unguardFunctions(r,this.update.bind(this,n))}}}]}},8314:function(e,t,n){"use strict";var r=n(5344),o=n(3028),a=n(3272),i=n(8805);e.exports=r.plugin("rtlcss",(function(e,t,n){var s=a.configure(e,t,n),l={postcss:r,config:s,util:i.configure(s)};return function(e,t){var n=0,a={};l.config.hooks.pre(e,r),e.walk((function(e){var r=!1;if(o.walk((function(t){!t.metadata.blacklist&&t.directive.expect[e.type]&&(t.directive.begin(e,t.metadata,l)&&(r=!0),t.metadata.end&&t.directive.end(e,t.metadata,l)&&o.pop(t))})),!1===r)switch(e.type){case"atrule":if(!0===l.config.processUrls||!0===l.config.processUrls.atrule){var i=l.util.applyStringMap(e.params,!0);e.params=i}break;case"comment":o.parse(e,t,(function(n){var r=!0;return null===n.directive&&(n.preserve=!l.config.clean,l.util.each(l.config.plugins,(function(e){var o=l.config.blacklist[e.name];return o&&!0===o[n.metadata.name]?(n.metadata.blacklist=!0,n.metadata.end&&(r=!1),n.metadata.begin&&t.warn('directive "'+e.name+"."+n.metadata.name+'" is blacklisted.',{node:n.source}),!1):(n.directive=e.directives.control[n.metadata.name],!n.directive&&void 0)}))),n.directive?!n.metadata.begin&&n.metadata.end?(n.directive.end(e,n.metadata,l)&&o.pop(n),r=!1):n.directive.expect.self&&n.directive.begin(e,n.metadata,l)&&n.metadata.end&&n.directive.end(e,n.metadata,l)&&(r=!1):n.metadata.blacklist||(r=!1,t.warn('unsupported directive "'+n.metadata.name+'".',{node:n.source})),r}));break;case"decl":if(!l.util.each(l.config.plugins,(function(t){return l.util.each(t.directives.value,(function(t){if(e.raws.value&&e.raws.value.raw){var r=l.util.regexDirective(t.name);if(r.test(e.raws.value.raw)&&(r.lastIndex=0,t.action(e,r,l)))return l.config.clean&&(e.value=e.raws.value.raw=l.util.trimDirective(e.raws.value.raw)),n++,!1}}))})))break;if(l.util.each(l.config.plugins,(function(t){return l.util.each(t.processors,(function(t){if(e.prop.match(t.expr)){var r=e.raws.value&&e.raws.value.raw?e.raws.value.raw:e.value,o=l.util.saveComments(r),a=t.action(e.prop,o.value,l);return o.value=a.value,a.value=l.util.restoreComments(o),a.prop===e.prop&&a.value===r||(n++,e.prop=a.prop,e.value=a.value),!1}}))})),l.config.autoRename&&!n&&"rule"===e.parent.type&&l.util.isLastOfType(e)){var s=l.util.applyStringMap(e.parent.selector);if(!0===l.config.autoRenameStrict){var c=a[s];c?(c.selector=e.parent.selector,e.parent.selector=s):a[e.parent.selector]=e.parent}else e.parent.selector=s}break;case"rule":n=0}})),o.walk((function(e){t.warn('unclosed directive "'+e.metadata.name+'".',{node:e.source})})),Object.keys(a).forEach((function(e){t.warn("renaming skipped due to lack of a matching pair.",{node:a[e]})})),l.config.hooks.post(e,r)}})),e.exports.process=function(e,t,n,o){return r([this(t,n,o)]).process(e).css},e.exports.configure=function(e){return r([this((e=e||{}).options,e.plugins,e.hooks)])}},3028:function(e,t,n){"use strict";var r=n(5915);e.exports={stack:[],pop:function(e){var t=this.stack.indexOf(e);-1!==t&&this.stack.splice(t,1),e.preserve||e.source.remove()},parse:function(e,t,n){var o,a=r(e);a&&(!a.begin&&a.end?this.walk(function(t){if(a.name===t.metadata.name)return this.pop(t),o={metadata:a,directive:t.directive,source:e,preserve:t.preserve},!1}.bind(this)):o={metadata:a,directive:null,source:e,preserve:null},void 0===o?t.warn('found end "'+a.name+'" without a matching begin.',{node:e}):n(o)?this.stack.push(o):o.preserve||o.source.remove())},walk:function(e){for(var t=this.stack.length;--t>-1&&e(this.stack[t]););}}},8805:function(e){"use strict";var t,n="»",r=new RegExp("�","ig"),o=new RegExp("¤","ig"),a="(calc¤)|(\\-?(\\d*?\\.\\d+|\\d+))(?!d\\()",i=/\/\*[^]*?\*\//gim,s=/\/\*\s*(?:!)?\s*rtl:[^]*?\*\//gim,l=/[.*+?^${}()|[\]\\]/g,c=/\([^\(\)]+\)/i,u=/#[a-f0-9]{3,6}/gi,d=/calc/,g=new RegExp("«\\d+:\\d+»","ig"),p=new RegExp("\\w*?«\\d+:\\d+»","ig"),f=new RegExp(a,"i"),m=new RegExp(a,"ig"),h=new RegExp(a,"i"),y={scope:"*",ignoreCase:!0},v=0;function b(e){return e.replace(l,"\\$&")}e.exports={extend:function(e,t){for(var n in void 0!==e&&"object"==typeof e||(e={}),t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},swap:function(e,n,r,o){var a=b(n)+"|"+b(r);((o=o||y).hasOwnProperty("greedy")?o.greedy:t.greedy)||(a="\\b("+a+")\\b");var i=o.ignoreCase?"img":"mg";return e.replace(new RegExp(a,i),(function(e){return t=e,a=n,(o.ignoreCase?t.toLowerCase()===a.toLowerCase():t===a)?r:n;var t,a}))},swapLeftRight:function(e){return this.swap(e,"left","right")},swapLtrRtl:function(e){return this.swap(e,"ltr","rtl")},applyStringMap:function(e,n){for(var r=e,o=0;o<t.stringMap.length;o++){var a=t.stringMap[o],i=this.extend(a.options,y);if("*"===i.scope||n&&"url"===i.scope||!n&&"selector"===i.scope){if(Array.isArray(a.search)&&Array.isArray(a.replace))for(var s=0;s<a.search.length;s++)r=this.swap(r,a.search[s],a.replace[s%a.search.length],i);else r=this.swap(r,a.search,a.replace,i);if(!0===a.exclusive)break}}return r},negate:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(h,(function(e){return o.test(e)?e.replace(o,(function(e){return"(-1*"+e+")"})):-1*parseFloat(e,10)})),this.restoreTokens(t)},negateAll:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(m,(function(e){return o.test(e)?e.replace(o,(function(e){return"(-1*"+e+")"})):-1*parseFloat(e,10)})),this.restoreTokens(t)},complement:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(f,(function(e){return o.test(e)?e.replace(o,(function(e){return"(100% - "+e+")"})):100-parseFloat(e,10)})),this.restoreTokens(t)},flipLength:function(e){return t.useCalc?"calc(100% - "+e+")":e},save:function(e,t,n,r,o){var a={value:t,store:[],replacement:n,restorer:r};return a.value=a.value.replace(e,(function(e){return o&&e.match(o)?e:(a.store.push(e),a.replacement)})),a},restore:function(e){var t=0,n=e.value.replace(e.restorer,(function(){return e.store[t++]}));return e.store.length=0,n},saveComments:function(e){return this.save(i,e,"�",r)},restoreComments:function(e){return this.restore(e)},saveTokens:function(e,t){return!0===t?this.save(p,e,"¤",o,d):this.save(g,e,"¤",o)},restoreTokens:function(e){return this.restore(e)},guard:function(e,t,r){var o={value:t,store:[],offset:v++,token:"«"+v,indexed:!0===r};if(!0===o.indexed)for(;e.test(o.value);)o.value=o.value.replace(e,(function(e){return o.store.push(e),o.token+":"+o.store.length+n}));else o.value=o.value.replace(e,(function(e){return o.store.push(e),o.token+n}));return o},unguard:function(e,t){if(!0===e.indexed){for(var r=new RegExp("(\\w*?)"+e.token+":(\\d+)"+n,"i");r.test(e.value);)e.value=e.value.replace(r,(function(n,r,o){var a=e.store[o-1];return"function"==typeof t?r+t(a,r):r+a}));return e.value}return e.value.replace(new RegExp("(\\w*?)"+e.token+n,"i"),(function(n,r){var o=e.store.shift();return"function"==typeof t?r+t(o,r):r+o}))},guardHexColors:function(e){return this.guard(u,e,!0)},unguardHexColors:function(e,t){return this.unguard(e,t)},guardFunctions:function(e){return this.guard(c,e,!0)},unguardFunctions:function(e,t){return this.unguard(e,t)},trimDirective:function(e){return e.replace(s,"")},regexCache:{},regexDirective:function(e){return this.regexCache[e]=this.regexCache[e]||new RegExp("(?:\\/\\*\\s*(?:!)?\\s*rtl:"+(e?b(e)+"(?::)?":"")+")([^]*?)(?:\\*\\/)","img"),this.regexCache[e]},regex:function(e,t){e=e||[];for(var n="",r=0;r<e.length;r++)switch(e[r]){case"percent":n+="|(\\-?(\\d*?\\.\\d+|\\d+)%)";break;case"length":n+="|(\\-?(\\d*?\\.\\d+|\\d+))(?:ex|ch|r?em|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc)?";break;case"number":n+="|(\\-?(\\d*?\\.\\d+|\\d+))";break;case"position":n+="|(left|center|right|top|bottom)";break;case"calc":n+="|(calc«\\d+:\\d+»)"}return new RegExp(n.slice(1),t)},isLastOfType:function(e){for(var t=!0,n=e.next();n;){if(n&&n.type===e.type){t=!1;break}n=n.next()}return t},each:function(e,t){for(var n=0;n<e.length;n++)if(!1===t(e[n]))return!1;return!0}},e.exports.configure=function(e){return t=e,this}},8090:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="atrule",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},t.prototype.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},t}(((r=n(2146))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},2282:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="comment",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(3200))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},2146:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(3118)),a=i(n(2282));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e){return e.map((function(e){return e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e}))}var u=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.push=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},t.prototype.walk=function(e){return this.each((function(t,n){var r=e(t,n);return!1!==r&&t.walk&&(r=t.walk(e)),r}))},t.prototype.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("decl"===e.type)return t(e,n)})))},t.prototype.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("rule"===e.type)return t(e,n)})))},t.prototype.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("atrule"===e.type)return t(e,n)})))},t.prototype.walkComments=function(e){return this.walk((function(t,n){if("comment"===t.type)return e(t,n)}))},t.prototype.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i,l=this.normalize(s,this.last),c=l,u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var g;if(u){if(d>=c.length)break;g=c[d++]}else{if((d=c.next()).done)break;g=d.value}var p=g;this.nodes.push(p)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i,l=this.normalize(s,this.first,"prepend").reverse(),c=l,u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var g;if(u){if(d>=c.length)break;g=c[d++]}else{if((d=c.next()).done)break;g=d.value}var p=g;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+l.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}a.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),o=r,a=Array.isArray(o),i=0;for(o=a?o:o[Symbol.iterator]();;){var s;if(a){if(i>=o.length)break;s=o[i++]}else{if((i=o.next()).done)break;s=i.value}var l=s;this.nodes.splice(e,0,l)}var c=void 0;for(var u in this.indexes)e<=(c=this.indexes[u])&&(this.indexes[u]=c+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;this.nodes.splice(e+1,0,s)}var l=void 0;for(var c in this.indexes)e<(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=c(n(1647)(e).nodes);else if(Array.isArray(e)){var i=e=e.slice(0),s=Array.isArray(i),l=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(l>=i.length)break;u=i[l++]}else{if((l=i.next()).done)break;u=l.value}var d=u;d.parent&&d.parent.removeChild(d,"ignore")}}else if("root"===e.type){var g=e=e.nodes.slice(0),p=Array.isArray(g),f=0;for(g=p?g:g[Symbol.iterator]();;){var m;if(p){if(f>=g.length)break;m=g[f++]}else{if((f=g.next()).done)break;m=f.value}var h=m;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new o.default(e)]}else if(e.selector)e=[new(n(806))(e)];else if(e.name)e=[new(n(8090))(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new a.default(e)]}var y=e.map((function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e}));return y},t.prototype.rebuild=function(e,t){var r=this,i=void 0;if("root"===e.type){var s=n(573);i=new s}else if("atrule"===e.type){var l=n(8090);i=new l}else if("rule"===e.type){var c=n(806);i=new c}else"decl"===e.type?i=new o.default:"comment"===e.type&&(i=new a.default);for(var u in e)"nodes"===u?i.nodes=e.nodes.map((function(e){return r.rebuild(e,i)})):"parent"===u&&t?i.parent=t:e.hasOwnProperty(u)&&(i[u]=e[u]);return i},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(i(n(3200)).default);t.default=u,e.exports=t.default},4639:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(5580)),o=i(n(683)),a=i(n(8818));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r,o,a,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),void 0!==n&&void 0!==r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,a.default)(n));var i=n.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,i.length),c=String(l).length;function u(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return i.slice(s,l).map((function(e,n){var r=s+1+n,o=" "+(" "+r).slice(-c)+" | ";if(r===t.line){var a=d(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return u(">")+d(o)+e+"\n "+a+u("^")}return" "+d(o)+e})).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=s,e.exports=t.default},3118:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="decl",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(3200))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},1810:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(4639)),i=l(n(8389)),s=l(n(6470));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0,d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c(this,e),null===t||"object"===(void 0===t?"undefined":r(t))&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=s.default.resolve(n.from));var o=new i.default(this.css,n);if(o.text){this.map=o;var a=o.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}this.file||(u+=1,this.id="<input css "+u+">"),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,i=this.origin(t,n);return(o=i?new a.default(e,i.line,i.column,i.source,i.file,r.plugin):new a.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},a=n.sourceContentFor(r.source);return a&&(o.source=a),o},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:s.default.resolve(this.map.consumer().sourceRoot||".",e)},o(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=d,e.exports=t.default},1799:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=u(n(2455)),i=u(n(4594)),s=u(n(6094)),l=u(n(4974)),c=u(n(1647));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return"object"===(void 0===e?"undefined":o(e))&&"function"==typeof e.then}var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringified=!1,this.processed=!1;var a=void 0;if("object"===(void 0===n?"undefined":o(n))&&null!==n&&"root"===n.type)a=n;else if(n instanceof e||n instanceof l.default)a=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var i=c.default;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{a=i(n,r)}catch(e){this.error=e}}this.result=new l.default(t,a,r)}return e.prototype.warnings=function(){return this.sync().warnings()},e.prototype.toString=function(){return this.css},e.prototype.then=function(e,t){return"from"in this.opts||(0,s.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)},e.prototype.catch=function(e){return this.async().catch(e)},e.prototype.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion){var n=t.postcssPlugin,r=t.postcssVersion,o=this.result.processor.version,a=r.split("."),i=o.split(".");(a[0]!==i[0]||parseInt(a[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,d(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(d(this.run(o)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=i.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new a.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=g,e.exports=t.default},1841:function(e,t){"use strict";t.__esModule=!0;var n={split:function(e,t,n){for(var r=[],o="",a=!1,i=0,s=!1,l=!1,c=0;c<e.length;c++){var u=e[c];s?l?l=!1:"\\"===u?l=!0:u===s&&(s=!1):'"'===u||"'"===u?s=u:"("===u?i+=1:")"===u?i>0&&(i-=1):0===i&&-1!==t.indexOf(u)&&(a=!0),a?(""!==o&&r.push(o.trim()),o="",a=!1):o+=u}return(n||""!==o)&&r.push(o.trim()),r},space:function(e){return n.split(e,[" ","\n","\t"])},comma:function(e){return n.split(e,[","],!0)}};t.default=n,e.exports=t.default},2455:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(4014)),o=a(n(6470));function a(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var a;if(t){if(n>=e.length)break;a=e[n++]}else{if((n=e.next()).done)break;a=n.value}var i=a,s=this.relative(i.file),l=i.root||o.default.dirname(i.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new r.default.SourceMapConsumer(i.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=i.consumer(),this.map.applySourceMap(c,s,this.relative(l))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},e.prototype.toBase64=function(e){return Buffer?Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new r.default.SourceMapGenerator({file:this.outputFile()});var t=1,n=1,o=void 0,a=void 0;this.stringify(this.root,(function(r,i,s){e.css+=r,i&&"end"!==s&&(i.source&&i.source.start?e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:n-1},original:{line:i.source.start.line,column:i.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}})),(o=r.match(/\n/g))?(t+=o.length,a=r.lastIndexOf("\n"),n=r.length-a):n+=r.length,i&&"start"!==s&&(i.source&&i.source.end?e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:n-1},original:{line:i.source.end.line,column:i.source.end.column}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}}))}))},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=i,e.exports=t.default},3200:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=l(n(4639)),a=l(n(3255)),i=l(n(4594)),s=l(n(6094));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function e(t,n){var o=new t.constructor;for(var a in t)if(t.hasOwnProperty(a)){var i=t[a],s=void 0===i?"undefined":r(i);"parent"===a&&"object"===s?n&&(o[a]=n):"source"===a?o[a]=i:i instanceof Array?o[a]=i.map((function(t){return e(t,o)})):("object"===s&&null!==i&&(i=e(i)),o[a]=i)}return o},d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.default;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=u(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;this.parent.insertBefore(this,s)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,s.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,s.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,s.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},e.prototype.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e})):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new a.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},e.prototype.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=d,e.exports=t.default},1647:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new o.default(e,t),a=new r.default(n);try{a.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return a.root};var r=a(n(9890)),o=a(n(1810));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9890:function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(3118)),o=c(n(7272)),a=c(n(2282)),i=c(n(8090)),s=c(n(573)),l=c(n(806));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},e.prototype.parse=function(){for(var e=void 0;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},e.prototype.comment=function(e){var t=new a.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},e.prototype.emptyRule=function(e){var t=new l.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},e.prototype.other=function(e){for(var t=!1,n=null,r=!1,o=null,a=[],i=[],s=e;s;){if(n=s[0],i.push(s),"("===n||"["===n)o||(o=s),a.push("("===n?")":"]");else if(0===a.length){if(";"===n){if(r)return void this.decl(i);break}if("{"===n)return void this.rule(i);if("}"===n){this.tokenizer.back(i.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(o=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(o),t&&r){for(;i.length&&("space"===(s=i[i.length-1][0])||"comment"===s);)this.tokenizer.back(i.pop());this.decl(i)}else this.unknownWord(i)},e.prototype.rule=function(e){e.pop();var t=new l.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new r.default;this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;t.prop+=e.shift()[1]}t.raws.between="";for(var a=void 0;e.length;){if(":"===(a=e.shift())[0]){t.raws.between+=a[1];break}t.raws.between+=a[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){if("!important"===(a=e[i])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,i);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===a[1].toLowerCase()){for(var l=e.slice(0),c="",u=i;u>0;u--){var d=l[u][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(t.important=!0,t.raws.important=c,e=l)}if("space"!==a[0]&&"comment"!==a[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new i.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var n=void 0,r=void 0,o=!1,a=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){a=!0;break}if("}"===e[0]){if(s.length>0){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(t.source.end={line:n[4],column:n[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,"params",s),o&&(e=s[s.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,n){for(var r=void 0,o=void 0,a=n.length,i="",s=!0,l=void 0,c=void 0,u=/^([.|#])?([\w])+/i,d=0;d<a;d+=1)"comment"!==(o=(r=n[d])[0])||"rule"!==e.type?"comment"===o||"space"===o&&d===a-1?s=!1:i+=r[1]:(c=n[d-1],l=n[d+1],"space"!==c[0]&&"space"!==l[0]&&u.test(c[1])&&u.test(l[1])?i+=r[1]:s=!1);if(!s){var g=n.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={value:i,raw:g}}e[t]=i},e.prototype.spacesAndCommentsFromEnd=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},e.prototype.spacesAndCommentsFromStart=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},e.prototype.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},e.prototype.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},e.prototype.colon=function(e){for(var t=0,n=void 0,r=void 0,o=void 0,a=0;a<e.length;a++){if("("===(r=(n=e[a])[0]))t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(o){if("word"===o[0]&&"progid"===o[1])continue;return a}this.doubleColon(n)}o=n}return!1},e.prototype.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},e.prototype.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},e.prototype.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},e.prototype.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},e.prototype.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},e.prototype.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},e.prototype.precheckMissedSemicolon=function(e){},e.prototype.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n=0,r=void 0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon",r[2],r[3])}},e}();t.default=u,e.exports=t.default},5344:function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(3118)),o=p(n(9432)),a=p(n(4594)),i=p(n(2282)),s=p(n(8090)),l=p(n(3e3)),c=p(n(1647)),u=p(n(1841)),d=p(n(806)),g=p(n(573));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){var n=function(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n},r=void 0;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=a.default,f.parse=c.default,f.vendor=l.default,f.list=u.default,f.comment=function(e){return new i.default(e)},f.atRule=function(e){return new s.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new g.default(e)},t.default=f,e.exports=t.default},8389:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(n(4014)),a=s(n(6470)),i=s(n(1285));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=n.map?n.map.prev:void 0,o=this.loadMap(n.from,r);o&&(this.text=o)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from(n,"base64").toString():new Buffer(n,"base64").toString():window.atob(n);var n,r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&i.default.existsSync&&i.default.existsSync(n))return i.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=a.default.join(a.default.dirname(e),r)),this.root=a.default.dirname(r),!(!i.default.existsSync||!i.default.existsSync(r))&&i.default.readFileSync(r,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":r(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();t.default=l,e.exports=t.default},9432:function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(r=n(1799))&&r.__esModule?r:{default:r};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.version="6.0.23",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var s=i;if(s.postcss&&(s=s.postcss),"object"===(void 0===s?"undefined":o(s))&&Array.isArray(s.plugins))t=t.concat(s.plugins);else{if("function"!=typeof s)throw"object"===(void 0===s?"undefined":o(s))&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}}return t},e}();t.default=s,e.exports=t.default},4974:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(9936))&&r.__esModule?r:{default:r},i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}return e.prototype.toString=function(){return this.css},e.prototype.warn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new a.default(e,t);return this.messages.push(n),n},e.prototype.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},o(e,[{key:"content",get:function(){return this.css}}]),e}();t.default=i,e.exports=t.default},573:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var a=o,i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var l;if(i){if(s>=a.length)break;l=a[s++]}else{if((s=a.next()).done)break;l=s.value}l.raws.before=n.raws.before}}return o},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(1799),r=n(9432),o=new t(new r,this,e);return o.stringify()},t}(((r=n(2146))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},806:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(2146)),a=i(n(1841));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="rule",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectors",get:function(){return a.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(o.default);t.default=s,e.exports=t.default},3255:function(e,t){"use strict";t.__esModule=!0;var n={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "},r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.builder=t}return e.prototype.stringify=function(e,t){this[e.type](e,t)},e.prototype.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},e.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},e.prototype.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},e.prototype.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},e.prototype.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},e.prototype.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],a=this.raw(o,"before");a&&this.builder(a),this.stringify(o,t!==r||n)}},e.prototype.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},e.prototype.raw=function(e,t,r){var o=void 0;if(r||(r=t),t&&void 0!==(o=e.raws[t]))return o;var a=e.parent;if("before"===r&&(!a||"root"===a.type&&a.first===e))return"";if(!a)return n[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,l="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[l]?o=this[l](i,e):i.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=n[r]),i.rawCache[r]=o,o},e.prototype.rawSemicolon=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},e.prototype.rawEmptyBody=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},e.prototype.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/[^\s]/g,""),!1}})),t},e.prototype.rawBeforeComment=function(e,t){var n=void 0;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeDecl=function(e,t){var n=void 0;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeRule=function(e){var t=void 0;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeClose=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var i=0;i<o;i++)n+=a}return n},e.prototype.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=r,e.exports=t.default},4594:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new o.default(t).stringify(e)};var r,o=(r=n(3255))&&r.__esModule?r:{default:r};e.exports=t.default},8818:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(683)),o=i(n(7272)),a=i(n(1810));function i(e){return e&&e.__esModule?e:{default:e}}var s={brackets:r.default.cyan,"at-word":r.default.cyan,call:r.default.cyan,comment:r.default.gray,string:r.default.green,class:r.default.yellow,hash:r.default.magenta,"(":r.default.cyan,")":r.default.cyan,"{":r.default.yellow,"}":r.default.yellow,"[":r.default.yellow,"]":r.default.yellow,":":r.default.yellow,";":r.default.yellow};t.default=function(e){for(var t=(0,o.default)(new a.default(e),{ignoreErrors:!0}),n="",r=function(){var e=t.nextToken(),r=s[function(e,t){var n=e[0],r=e[1];if("word"===n){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!t.endOfFile()){var o=t.nextToken();if(t.back(o),"brackets"===o[0]||"("===o[0])return"call"}return n}(e,t)];n+=r?e[1].split(/\r?\n/).map((function(e){return r(e)})).join("\n"):e[1]};!t.endOfFile();)r();return n},e.exports=t.default},7272:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=e.css.valueOf(),p=t.ignoreErrors,f=void 0,m=void 0,h=void 0,y=void 0,v=void 0,b=void 0,_=void 0,w=void 0,E=void 0,$=void 0,C=void 0,k=void 0,S=void 0,x=void 0,O=g.length,P=-1,A=1,N=0,R=[],T=[];function M(t){throw e.error("Unclosed "+t,A,N-P)}function j(){return 0===T.length&&N>=O}function I(){if(T.length)return T.pop();if(!(N>=O)){switch(((f=g.charCodeAt(N))===o||f===i||f===s&&g.charCodeAt(N+1)!==o)&&(P=N,A+=1),f){case o:case a:case 9:case s:case i:m=N;do{m+=1,(f=g.charCodeAt(m))===o&&(P=m,A+=1)}while(f===a||f===o||9===f||f===s||f===i);x=["space",g.slice(N,m)],N=m-1;break;case 91:x=["[","[",A,N-P];break;case 93:x=["]","]",A,N-P];break;case 123:x=["{","{",A,N-P];break;case 125:x=["}","}",A,N-P];break;case 58:x=[":",":",A,N-P];break;case 59:x=[";",";",A,N-P];break;case 40:if(k=R.length?R.pop()[1]:"",S=g.charCodeAt(N+1),"url"===k&&S!==n&&34!==S&&S!==a&&S!==o&&9!==S&&S!==i&&S!==s){m=N;do{if($=!1,-1===(m=g.indexOf(")",m+1))){if(p){m=N;break}M("bracket")}for(C=m;g.charCodeAt(C-1)===r;)C-=1,$=!$}while($);x=["brackets",g.slice(N,m+1),A,N-P,A,m-P],N=m}else m=g.indexOf(")",N+1),b=g.slice(N,m+1),-1===m||u.test(b)?x=["(","(",A,N-P]:(x=["brackets",b,A,N-P,A,m-P],N=m);break;case 41:x=[")",")",A,N-P];break;case n:case 34:h=f===n?"'":'"',m=N;do{if($=!1,-1===(m=g.indexOf(h,m+1))){if(p){m=N+1;break}M("string")}for(C=m;g.charCodeAt(C-1)===r;)C-=1,$=!$}while($);b=g.slice(N,m+1),y=b.split("\n"),(v=y.length-1)>0?(w=A+v,E=m-y[v].length):(w=A,E=P),x=["string",g.slice(N,m+1),A,N-P,w,m-E],P=E,A=w,N=m;break;case 64:l.lastIndex=N+1,l.test(g),m=0===l.lastIndex?g.length-1:l.lastIndex-2,x=["at-word",g.slice(N,m+1),A,N-P,A,m-P],N=m;break;case r:for(m=N,_=!0;g.charCodeAt(m+1)===r;)m+=1,_=!_;if(f=g.charCodeAt(m+1),_&&47!==f&&f!==a&&f!==o&&9!==f&&f!==s&&f!==i&&(m+=1,d.test(g.charAt(m)))){for(;d.test(g.charAt(m+1));)m+=1;g.charCodeAt(m+1)===a&&(m+=1)}x=["word",g.slice(N,m+1),A,N-P,A,m-P],N=m;break;default:47===f&&42===g.charCodeAt(N+1)?(0===(m=g.indexOf("*/",N+2)+1)&&(p?m=g.length:M("comment")),b=g.slice(N,m+1),y=b.split("\n"),(v=y.length-1)>0?(w=A+v,E=m-y[v].length):(w=A,E=P),x=["comment",b,A,N-P,w,m-E],P=E,A=w,N=m):(c.lastIndex=N+1,c.test(g),m=0===c.lastIndex?g.length-1:c.lastIndex-2,x=["word",g.slice(N,m+1),A,N-P,A,m-P],R.push(x),N=m)}return N++,x}}function F(e){T.push(e)}return{back:F,nextToken:I,endOfFile:j}};var n=39,r=92,o=10,a=32,i=12,s=13,l=/[ \n\t\r\f\{\}\(\)'"\\;/\[\]#]/g,c=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,u=/.[\\\/\("'\n]/,d=/[a-f0-9]/i;e.exports=t.default},3e3:function(e,t){"use strict";t.__esModule=!0,t.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},e.exports=t.default},6094:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){n[e]||(n[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};var n={};e.exports=t.default},9936:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var o=r.node.positionBy(r);this.line=o.line,this.column=o.column}for(var a in r)this[a]=r[a]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t.default=r,e.exports=t.default},40:function(e,t,n){var r=n(5037),o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function i(){this._array=[],this._set=a?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},i.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,t){var n=a?e:r.toSetString(e),i=a?this.has(e):o.call(this._set,n),s=this._array.length;i&&!t||this._array.push(e),i||(a?this._set.set(e,s):this._set[n]=s)},i.prototype.has=function(e){if(a)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},i.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},i.prototype.toArray=function(){return this._array.slice()},t.I=i},3858:function(e,t,n){var r=n(2629);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,a,i,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&a),c+=(a&=31)<<u,u+=5}while(o);n.value=(s=(i=c)>>1,1==(1&i)?-s:s),n.rest=t}},2629:function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},115:function(e,t){function n(e,r,o,a,i,s){var l=Math.floor((r-e)/2)+e,c=i(o,a[l],!0);return 0===c?l:c>0?r-l>1?n(l,r,o,a,i,s):s==t.LEAST_UPPER_BOUND?r<a.length?r:-1:l:l-e>1?n(e,l,o,a,i,s):s==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,o,a){if(0===r.length)return-1;var i=n(-1,r.length,e,r,o,a||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(r[i],r[i-1],!0);)--i;return i}},212:function(e,t,n){var r=n(5037);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,a,i,s;n=e,o=(t=this._last).generatedLine,a=n.generatedLine,i=t.generatedColumn,s=n.generatedColumn,a>o||a==o&&s>=i||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=o},8251:function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,a){if(o<a){var i=o-1;n(e,(u=o,d=a,Math.round(u+Math.random()*(d-u))),a);for(var s=e[a],l=o;l<a;l++)t(e[l],s)<=0&&n(e,i+=1,l);n(e,i+1,l);var c=i+1;r(e,t,o,c-1),r(e,t,c+1,a)}var u,d}t.U=function(e,t){r(e,t,0,e.length-1)}},5177:function(e,t,n){var r=n(5037),o=n(115),a=n(40).I,i=n(3858),s=n(8251).U;function l(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);l&&(l=r.normalize(l)),i=i.map(String).map(r.normalize).map((function(e){return l&&r.isAbsolute(l)&&r.isAbsolute(e)?r.relative(l,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(l,e,t)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),a=r.getArg(n,"column");if(o<s.line||o===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:a+1},consumer:new l(r.getArg(e,"map"),t)}}))}l.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var o,a=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(i,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,a)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var a=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(void 0===e.column)for(var l=s.originalLine;s&&s.originalLine===l;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var c=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==c;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return a},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=a.fromArray(e._names.toArray(),!0),i=n._sources=a.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var l=e._mappings.toArray().slice(),d=n.__generatedMappings=[],g=n.__originalMappings=[],p=0,f=l.length;p<f;p++){var m=l[p],h=new u;h.generatedLine=m.generatedLine,h.generatedColumn=m.generatedColumn,m.source&&(h.source=i.indexOf(m.source),h.originalLine=m.originalLine,h.originalColumn=m.originalColumn,m.name&&(h.name=o.indexOf(m.name)),g.push(h)),d.push(h)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,a,l,c,d=1,g=0,p=0,f=0,m=0,h=0,y=e.length,v=0,b={},_={},w=[],E=[];v<y;)if(";"===e.charAt(v))d++,v++,g=0;else if(","===e.charAt(v))v++;else{for((n=new u).generatedLine=d,l=v;l<y&&!this._charIsMappingSeparator(e,l);l++);if(a=b[o=e.slice(v,l)])v+=o.length;else{for(a=[];v<l;)i.decode(e,v,_),c=_.value,v=_.rest,a.push(c);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");b[o]=a}n.generatedColumn=g+a[0],g=n.generatedColumn,a.length>1&&(n.source=m+a[1],m+=a[1],n.originalLine=p+a[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+a[3],f=n.originalColumn,a.length>4&&(n.name=h+a[4],h+=a[4])),E.push(n),"number"==typeof n.originalLine&&w.push(n)}s(E,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,s(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,a,i){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,a,i)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var a=r.getArg(o,"source",null);null!==a&&(a=this._sources.at(a),a=r.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var i=r.getArg(o,"name",null);return null!==i&&(i=this._names.at(i)),{source:a,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,a=e;if(null!=this.sourceRoot&&(a=r.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var i=a.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!o.path||"/"==o.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(o>=0){var a=this._originalMappings[o];if(a.source===n.source)return{line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[n];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],a=o.consumer._generatedMappings,i=0;i<a.length;i++){var l=a[i],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)}},8530:function(e,t,n){var r=n(3858),o=n(5037),a=n(40).I,i=n(212).H;function s(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new i,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var a=r;null!==t&&(a=o.relative(t,r)),n._sources.has(a)||n._sources.add(a);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},s.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),a=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:a})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=o.relative(i,r));var s=new a,l=new a;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=o.join(n,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,a,i=0,s=1,l=0,c=0,u=0,d=0,g="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==s)for(i=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-d),d=a,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),g+=e}return g},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},8570:function(e,t,n){var r=n(8530).SourceMapGenerator,o=n(5037),a=/(\r?\n)/,i="$$$isSourceNode$$$";function s(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,i=e.split(a),l=0,c=function(){return e()+(e()||"");function e(){return l<i.length?i[l++]:void 0}},u=1,d=0,g=null;return t.eachMapping((function(e){if(null!==g){if(!(u<e.generatedLine)){var t=(n=i[l]||"").substr(0,e.generatedColumn-d);return i[l]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(g,t),void(g=e)}p(g,c()),u++,d=0}for(;u<e.generatedLine;)r.add(c()),u++;if(d<e.generatedColumn){var n=i[l]||"";r.add(n.substr(0,e.generatedColumn)),i[l]=n.substr(e.generatedColumn),d=e.generatedColumn}g=e}),this),l<i.length&&(g&&p(g,c()),r.add(i.splice(l).join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,a))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var a=n?o.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[i]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][i]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,a=null,i=null,s=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(a===r.source&&i===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),a=r.source,i=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),a=null,o=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(a=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=s},5037:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var i,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(i=l[u])?l.splice(u,1):".."===i?c++:c>0&&(""===i?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),r?(r.path=n,a(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),s=o(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l}t.urlParse=o,t.urlGenerate=a,t.normalize=i,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=s(a(r),t)}return i(t)}},4014:function(e,t,n){t.SourceMapGenerator=n(8530).SourceMapGenerator,t.SourceMapConsumer=n(5177).SourceMapConsumer,t.SourceNode=n(8570).SourceNode},4624:function(e,t,n){"use strict";e.exports=n(5627)},5627:function(e,t){"use strict";var n=function(e){if(!e.includes("grid"))return e;if("display:grid"===e)return"\n display: -ms-grid;\n display: grid;\n ";if("display:inline-grid"===e)return"\n display: -ms-inline-grid;\n display: inline-grid;\n ";var t=e.match(/^grid-([a-z-]+): *(.+)/);if(!t)return e;var n=t[1],r=t[2];return"template"===n?function(e,t){var n=t.split(/\s*\/\s*/),r=n[0],o=n[1],a=/repeat\((\d+), *(.+)\)/;return r&&o?"\n -ms-grid-rows: "+r.replace(a,"($2)[$1]")+";\n -ms-grid-columns: "+o.replace(a,"($2)[$1]")+";\n grid-"+e+": "+t+";\n ":e+": "+t+";"}(n,r):"template-rows"===n||"template-columns"===n?function(e,t){return"\n -ms-grid-"+e.split("-")[1]+": "+t.replace(/repeat\((\d+), *(.+)\)/,"($2)[$1]")+";\n grid-"+e+": "+t+";\n "}(n,r):"row"===n||"column"===n?function(e,t){var n=t.split(/\s*\/\s*/),r=n[0],o=n[1],a=null==o?void 0:o.match("span ");if(!r)return"\n -ms-grid-"+e+": "+t+";\n grid-"+e+": "+t+";\n ";if(r&&a)return"\n -ms-grid-"+e+": "+r+";\n -ms-grid-"+e+"-span: "+o.replace("span ","")+";\n grid-"+e+": "+t+";\n ";if(r&&!a){var i=parseInt(r);return"\n -ms-grid-"+e+": "+r+";\n -ms-grid-"+e+"-span: "+(parseInt(o)-i)+";\n grid-"+e+": "+t+";\n "}return"\n grid-"+e+": "+t+";\n "}(n,r):e},r=function(e,t){if(1===e||2===e)return Array.isArray(t)?t.forEach((function(e){return n(e)})):n(t)};Object.defineProperty(r,"name",{value:"griddie"}),t.default=r},7621:function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,l=o.round,c=o.min,u=o.max,d=o.random;function g(e,t){if(t=t||{},(e=e||"")instanceof g)return e;if(!(this instanceof g))return new g(e,t);var n=function(e){var t,n,r,s={r:0,g:0,b:0},l=1,d=null,g=null,p=null,f=!1,m=!1;return"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=z.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=z.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=z.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=z.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=z.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=z.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=z.hex8.exec(e))?{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:L(t[4]),format:n?"name":"hex8"}:(t=z.hex6.exec(e))?{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"}:(t=z.hex4.exec(e))?{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=z.hex3.exec(e))&&{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(t=e.r,n=e.g,r=e.b,s={r:255*T(t,255),g:255*T(n,255),b:255*T(r,255)},f=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(d=F(e.s),g=F(e.v),s=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),c=r%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c]}}(e.h,d,g),f=!0,m="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(d=F(e.s),p=F(e.l),s=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=i(l,s,e+1/3),o=i(l,s,e),a=i(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,d,p),f=!0,m="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=R(l),{ok:f,format:e.format||m,r:c(255,u(s.r,0)),g:c(255,u(s.g,0)),b:c(255,u(s.b,0)),a:l}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function f(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),s=a,l=a-i;if(o=0===a?0:l/a,a==i)r=0;else{switch(a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function m(e,t,n,r){var o=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(e,t,n,r){return[I(D(r)),I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.s-=t/100,n.s=M(n.s),g(n)}function v(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.s+=t/100,n.s=M(n.s),g(n)}function b(e){return g(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.l+=t/100,n.l=M(n.l),g(n)}function w(e,t){t=0===t?0:t||10;var n=g(e).toRgb();return n.r=u(0,c(255,n.r-l(-t/100*255))),n.g=u(0,c(255,n.g-l(-t/100*255))),n.b=u(0,c(255,n.b-l(-t/100*255))),g(n)}function E(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.l-=t/100,n.l=M(n.l),g(n)}function $(e,t){var n=g(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,g(n)}function C(e){var t=g(e).toHsl();return t.h=(t.h+180)%360,g(t)}function k(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+120)%360,s:t.s,l:t.l}),g({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+90)%360,s:t.s,l:t.l}),g({h:(n+180)%360,s:t.s,l:t.l}),g({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+72)%360,s:t.s,l:t.l}),g({h:(n+216)%360,s:t.s,l:t.l})]}function O(e,t,n){t=t||6,n=n||30;var r=g(e).toHsl(),o=360/n,a=[g(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(g(r));return a}function P(e,t){t=t||6;for(var n=g(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(g({h:r,s:o,v:a})),a=(a+s)%1;return i}g.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16)),I(D(r))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=g(e);n="#"+h(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return g(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification($,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},g.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return g(e,t)},g.equals=function(e,t){return!(!e||!t)&&g(e).toRgbString()==g(t).toRgbString()},g.random=function(){return g.fromRatio({r:d(),g:d(),b:d()})},g.mix=function(e,t,n){n=0===n?0:n||50;var r=g(e).toRgb(),o=g(t).toRgb(),a=n/100;return g({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},g.readability=function(e,t){var n=g(e),r=g(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},g.isReadable=function(e,t,n){var r,o,a,i,s,l=g.readability(e,t);switch(o=!1,(a=n,"AA"!==(i=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),r={level:i,size:s}).level+r.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},g.mostReadable=function(e,t,n){var r,o,a,i,s=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=g.readability(e,t[c]))>l&&(l=r,s=g(t[c]));return g.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,g.mostReadable(e,["#fff","#000"],n))};var A=g.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=g.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return c(1,u(0,e))}function j(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return j(e)/255}var G,B,q,z=(B="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",q="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=g:void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}(Math)},8026:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/account-card//5585d65b9d8c575e5a1f.gogole-g-logo.svg"},4515:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/account-card//25a37606f64ef10ff60e.wp-logo.svg"},8465:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/free-listings/configure-product-listings/hero//0cab27878b485c59ab37.google-free-listing.svg"},221:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/dashboard/campaign-creation-success-guide//c4325f35cdc65f85a7c1.header.svg"},4802:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/benefits-card//ff593be89bcb7ad1ab7e.image.png"},1704:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/customer-quotes-card//1ad852c48821e91bfd6e.img-quote.svg"},434:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//3905a197de7922d5b82a.img-dashboard.svg"},2454:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//563fd40c029bebb36783.img-free-listings.svg"},9648:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//c94ebde75361208ddf3a.img-product-promotion.svg"},4682:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/get-started-card//d7e2d04ea7d6535fecf8.image.svg"},5314:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/images//64742f6405be8486218c.google-logo.svg"},1393:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/product-feed/submission-success-guide//9a968634c60ce598aae3.woocommerce-logo.svg"},9196:function(e){"use strict";e.exports=window.React},2819:function(e){"use strict";e.exports=window.lodash},6292:function(e){"use strict";e.exports=window.moment},5736:function(e){"use strict";e.exports=window.wp.i18n},683:function(){},1285:function(){},5580:function(){}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e}();var __webpack_exports__={};!function(){"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{Text:function(){return bi},block:function(){return _i},destructive:function(){return Ei},highlighterText:function(){return Ci},muted:function(){return $i},positive:function(){return wi},upperCase:function(){return ki}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{createAdsCampaign:function(){return rd},deleteAdsCampaign:function(){return ad},deleteShippingRates:function(){return Au},deleteShippingTimes:function(){return Tu},disconnectAllAccounts:function(){return Hu},disconnectGoogleAccount:function(){return qu},disconnectGoogleAdsAccount:function(){return zu},fetchAdsCampaigns:function(){return nd},fetchExistingGoogleAdsAccounts:function(){return Vu},fetchExistingGoogleMCAccounts:function(){return Gu},fetchGoogleAccount:function(){return Fu},fetchGoogleAdsAccount:function(){return Bu},fetchGoogleAdsAccountBillingStatus:function(){return Uu},fetchGoogleMCAccount:function(){return Lu},fetchJetpackAccount:function(){return Iu},fetchMCSetup:function(){return sd},fetchSettings:function(){return Mu},fetchShippingRates:function(){return Ou},fetchShippingTimes:function(){return Nu},fetchTargetAudience:function(){return Zu},handleFetchError:function(){return xu},receiveAdsAccount:function(){return Ju},receiveGoogleAccountAccess:function(){return Du},receiveGoogleAdsAccountBillingStatus:function(){return ed},receiveGoogleMCContactInformation:function(){return Wu},receiveMCAccount:function(){return Xu},receiveMCIssues:function(){return dd},receiveMCProductFeed:function(){return gd},receiveMCProductStatistics:function(){return cd},receiveMCReviewRequest:function(){return ud},receiveMCSetup:function(){return ld},receiveReport:function(){return id},requestPhoneVerificationCode:function(){return Ku},saveSettings:function(){return ju},saveTargetAudience:function(){return td},sendMCReviewRequest:function(){return fd},updateAdsCampaign:function(){return od},updateGoogleMCContactInformation:function(){return Yu},updateMCProductVisibility:function(){return pd},upsertShippingRates:function(){return Pu},upsertShippingTimes:function(){return Ru},verifyPhoneNumber:function(){return Qu}});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{getAdsCampaigns:function(){return Ud},getDashboardPerformance:function(){return Jd},getExistingGoogleAdsAccounts:function(){return Gd},getExistingGoogleMCAccounts:function(){return Fd},getGoogleAccount:function(){return Md},getGoogleAccountAccess:function(){return jd},getGoogleAdsAccount:function(){return Dd},getGoogleAdsAccountBillingStatus:function(){return Ld},getGoogleMCAccount:function(){return Id},getGoogleMCContactInformation:function(){return Bd},getGoogleMCPhoneNumber:function(){return qd},getJetpackAccount:function(){return Td},getMCCountriesAndContinents:function(){return zd},getMCIssues:function(){return Kd},getMCProductFeed:function(){return Qd},getMCProductStatistics:function(){return Wd},getMCReviewRequest:function(){return Yd},getMCSetup:function(){return Vd},getReport:function(){return Xd},getReportByApiQuery:function(){return Zd},getSettings:function(){return Rd},getShippingRates:function(){return Ad},getShippingTimes:function(){return Nd},getTargetAudience:function(){return Hd}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{getAdsCampaigns:function(){return mg},getExistingGoogleAdsAccounts:function(){return dg},getExistingGoogleMCAccounts:function(){return lg},getGoogleAccount:function(){return ag},getGoogleAccountAccess:function(){return ig},getGoogleAdsAccount:function(){return cg},getGoogleAdsAccountBillingStatus:function(){return ug},getGoogleMCAccount:function(){return sg},getGoogleMCContactInformation:function(){return gg},getJetpackAccount:function(){return og},getMCCountriesAndContinents:function(){return pg},getMCIssues:function(){return bg},getMCProductFeed:function(){return _g},getMCProductStatistics:function(){return yg},getMCReviewRequest:function(){return vg},getMCSetup:function(){return hg},getReportByApiQuery:function(){return Eg},getSettings:function(){return rg},getShippingRates:function(){return tg},getShippingTimes:function(){return ng},getTargetAudience:function(){return fg}});var o=__webpack_require__(5736),a=window.wp.hooks,i=window.wc.wcSettings,s=window.wp.element;function l(){return l=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},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=__webpack_require__(4184),d=__webpack_require__.n(u),g=(0,s.createContext)({}),p=function(){return(0,s.useContext)(g)};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=__webpack_require__(9196),h=__webpack_require__.n(m),y=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,b=y((function(e){return v.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}var w=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),E=function(e){function t(e,r,l,c,g){for(var p,f,m,h,_,E=0,$=0,C=0,k=0,S=0,R=0,M=m=p=0,I=0,F=0,D=0,L=0,G=l.length,B=G-1,q="",z="",H="",U="";I<G;){if(f=l.charCodeAt(I),I===B&&0!==$+k+C+E&&(0!==$&&(f=47===$?10:47),k=C=E=0,G++,B++),0===$+k+C+E){if(I===B&&(0<F&&(q=q.replace(d,"")),0<q.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(I)}f=59}switch(f){case 123:for(p=(q=q.trim()).charCodeAt(0),m=1,L=++I;I<G;){switch(f=l.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(I+1)){case 42:case 47:e:{for(M=I+1;M<B;++M)switch(l.charCodeAt(M)){case 47:if(42===f&&42===l.charCodeAt(M-1)&&I+2!==M){I=M+1;break e}break;case 10:if(47===f){I=M+1;break e}}I=M}}break;case 91:f++;case 40:f++;case 34:case 39:for(;I++<B&&l.charCodeAt(I)!==f;);}if(0===m)break;I++}if(m=l.substring(L,I),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(q=q.replace(d,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=N}if(L=(m=t(r,F,m,f,g+1)).length,0<T&&(_=s(3,m,F=n(N,q,D),r,O,x,L,f,g,c),q=F.join(""),void 0!==_&&0===(L=(m=_.trim()).length)&&(f=0,m="")),0<L)switch(f){case 115:q=q.replace(w,i);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(y,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,q,D),m,c,g+1);H+=m,m=D=F=M=p=0,q="",f=l.charCodeAt(++I);break;case 125:case 59:if(1<(L=(q=(0<F?q.replace(d,""):q).trim()).length))switch(0===M&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(q=q.replace(" ",":")).length),0<T&&void 0!==(_=s(1,q,r,e,O,x,z.length,c,g,c))&&0===(L=(q=_.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),f=q.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=q+l.charAt(I);break}default:58!==q.charCodeAt(L-1)&&(z+=o(q,p,f,q.charCodeAt(2)))}D=F=M=p=0,q="",f=l.charCodeAt(++I)}}switch(f){case 13:case 10:47===$?$=0:0===1+p&&107!==c&&0<q.length&&(F=1,q+="\0"),0<T*j&&s(0,q,r,e,O,x,z.length,c,g,c),x=1,O++;break;case 59:case 125:if(0===$+k+C+E){x++;break}default:switch(x++,h=l.charAt(I),f){case 9:case 32:if(0===k+E+$)switch(S){case 44:case 58:case 9:case 32:h="";break;default:32!==f&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===k+$+E&&(F=D=1,h="\f"+h);break;case 108:if(0===k+$+E+P&&0<M)switch(I-M){case 2:112===S&&58===l.charCodeAt(I-3)&&(P=S);case 8:111===R&&(P=R)}break;case 58:0===k+$+E&&(M=I);break;case 44:0===$+C+k+E&&(F=1,h+="\r");break;case 34:case 39:0===$&&(k=k===f?0:0===k?f:k);break;case 91:0===k+$+C&&E++;break;case 93:0===k+$+C&&E--;break;case 41:0===k+$+E&&C--;break;case 40:0===k+$+E&&(0===p&&(2*S+3*R==533||(p=1)),C++);break;case 64:0===$+C+k+E+M+m&&(m=1);break;case 42:case 47:if(!(0<k+E+C))switch($){case 0:switch(2*f+3*l.charCodeAt(I+1)){case 235:$=47;break;case 220:L=I,$=42}break;case 42:47===f&&42===S&&L+2!==I&&(33===l.charCodeAt(L+2)&&(z+=l.substring(L,I+1)),h="",$=0)}}0===$&&(q+=h)}R=S,S=f,I++}if(0<(L=z.length)){if(F=r,0<T&&void 0!==(_=s(2,z,F,e,O,x,L,c,g,c))&&0===(z=_).length)return U+z+H;if(z=F.join(",")+"{"+z+"}",0!=A*P){switch(2!==A||a(z,2)||(P=0),P){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(v,"::-webkit-input-$1")+z.replace(v,"::-moz-$1")+z.replace(v,":-ms-input-$1")+z}P=0}}return U+z+H}function n(e,t,n){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===A||2===A&&a(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(g,":-webkit-")+i.replace(g,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(_,"tb");break;case 232:l=i.replace(_,"tb-rl");break;case 220:l=i.replace(_,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace($,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace($,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),M(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,s,l,u){for(var d,g=0,p=t;g<T;++g)switch(d=R[g].call(c,e,p,n,r,o,a,i,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!=typeof e?A=1:(A=2,M=e):A=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var o=s(-1,n,r,r,O,x,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(N,r,n,0,0);return 0<T&&void 0!==(o=s(-2,a,r,r,O,x,a.length,0,0,0))&&(a=o),P=0,x=O=1,a}var u=/^\0+/g,d=/[\0\r\f]/g,g=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,$=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,O=1,P=0,A=1,N=[],R=[],T=0,M=null,j=0;return c.use=function e(t){switch(t){case void 0:case null:T=R.length=0;break;default:if("function"==typeof t)R[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},$="/*|*/";function C(e){e&&k.current.insert(e+"}")}var k={current:null},S=function(e,t,n,r,o,a,i,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return k.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+$;break;case 3:switch(s){case 102:case 112:return k.current.insert(n[0]+t),"";default:return t+(0===c?$:"")}case-2:t.split("/*|*/}").forEach(C)}},x=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new E(t),a={};r=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(S),i=function(e,t,n,r){var a=t.name;k.current=n,o(e,t.styles),r&&(l.inserted[a]=!0)};var l={key:n,sheet:new w({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return l},O=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},P={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,N=/_EMO_([^_]+?)_([^]*?)_EMO_/g,R=function(e){return 45===e.charCodeAt(1)},T=function(e){return null!=e&&"boolean"!=typeof e},M=y((function(e){return R(e)?e:e.replace(A,"-$&").toLowerCase()})),j=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(N,(function(e,t,n){return F={name:t,styles:n,next:F},t}))}return 1===P[e]||R(e)||"number"!=typeof t||0===t?t:t+"px"};function I(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)F={name:o.name,styles:o.styles,next:F},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=I(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":T(i)&&(r+=M(a)+":"+j(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=I(e,t,i,!1);switch(a){case"animation":case"animationName":r+=M(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)T(i[l])&&(r+=M(a)+":"+j(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=F,i=n(e);return F=a,I(e,t,i,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var F,D=/label:\s*([^\s;\n{]+)\s*;/g,L=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";F=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=I(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=I(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);D.lastIndex=0;for(var s,l="";null!==(s=D.exec(o));)l+="-"+s[1];return{name:O(o)+l,styles:o,next:F}},G=(Object.prototype.hasOwnProperty,(0,m.createContext)("undefined"!=typeof HTMLElement?x():null)),B=(0,m.createContext)({}),q=(G.Provider,function(e){var t=function(t,n){return(0,m.createElement)(G.Consumer,null,(function(r){return e(t,r,n)}))};return(0,m.forwardRef)(t)});function z(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var H=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}},U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(t)},V=(m.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o});function W(e,t,n){var r=[],o=z(e,r,n);return r.length<2?n:o+t(r)}q((function(e,t){return(0,m.createElement)(B.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered);return H(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return W(t.registered,r,V(n))},theme:n};return e.children(o)}))}));var Y=b,K=function(e){return"theme"!==e&&"innerRef"!==e},Q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Y:K};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var i=t.__emotion_real===t,s=i&&t.__emotion_base||t;"function"!=typeof o&&i&&(o=t.__emotion_forwardProp);var l=o||Q(s),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var g=u.length,p=1;p<g;p++)d.push(u[p],u[0][p])}var f=q((function(e,t,n){return(0,m.createElement)(B.Consumer,null,(function(r){var i=c&&e.as||s,u="",g=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=r}"string"==typeof e.className?u=z(t.registered,g,e.className):null!=e.className&&(u=e.className+" ");var h=L(d.concat(g),t.registered,p);H(t,h,"string"==typeof i),u+=t.key+"-"+h.name,void 0!==a&&(u+=" "+a);var y=c&&void 0===o?Q(i):l,v={};for(var b in e)c&&"as"===b||y(b)&&(v[b]=e[b]);return v.className=u,v.ref=n||e.innerRef,(0,m.createElement)(i,v)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(t,r){return e(t,void 0!==r?X({},n||{},{},r):n).apply(void 0,d)},f}},ee={name:"8kj89b",styles:"flex-direction:row-reverse;"},te=J("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return U({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),U({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return U("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?ee:""}),""),ne=J("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),re=J(ne,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"}),oe=(0,s.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,o=e.className,a=e.gap,i=void 0===a?2:a,u=e.justify,g=void 0===u?"space-between":u,p=e.isReversed,f=void 0!==p&&p,m=c(e,["align","className","gap","justify","isReversed"]),h=d()("components-flex",o);return(0,s.createElement)(te,l({},m,{align:r,className:h,ref:t,gap:i,justify:g,isReversed:f}))})),ae=oe,ie=__webpack_require__(2819),se=__webpack_require__(7621),le=__webpack_require__.n(se);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de={black:"#000",white:"#fff"},ge={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},pe={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Ee(ge.gray[900],.62)},fe={900:Ee("#000510",.9),800:Ee("#00000a",.85),700:Ee("#06060b",.8),600:Ee("#000913",.75),500:Ee("#0a1829",.7),400:Ee("#0a1829",.65),300:Ee("#0e1c2e",.62),200:Ee("#162435",.55),100:Ee("#223443",.5),backgroundFill:Ee(pe[700],.7)},me={900:Ee("#304455",.45),800:Ee("#425863",.4),700:Ee("#667886",.35),600:Ee("#7b86a2",.3),500:Ee("#9197a2",.25),400:Ee("#95959c",.2),300:Ee("#829493",.15),200:Ee("#8b8b96",.1),100:Ee("#747474",.05)},he={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Ee(de.white,.65)},ye={900:Ee(de.white,.5),800:Ee(de.white,.45),700:Ee(de.white,.4),600:Ee(de.white,.35),500:Ee(de.white,.3),400:Ee(de.white,.25),300:Ee(de.white,.2),200:Ee(de.white,.15),100:Ee(de.white,.1),backgroundFill:Ee(he[300],.8)},ve={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},be={theme:"var( --wp-admin-theme-color, ".concat(ve.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(ve.medium.focus,")")},_e={theme:be.theme,background:de.white,backgroundDisabled:he[200],border:ge.gray[700],borderFocus:be.themeDark10,borderDisabled:ge.gray[400],borderLight:ge.gray[200],label:pe[500],textDisabled:pe[150],textDark:de.white,textLight:de.black},we=ue(ue({},de),{},{darkGray:(0,ie.merge)({},pe,ge.darkGray),darkOpacity:fe,darkOpacityLight:me,mediumGray:ge.mediumGray,gray:ge.gray,lightGray:(0,ie.merge)({},he,ge.lightGray),lightGrayLight:ye,blue:(0,ie.merge)({},ve,ge.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:be,ui:_e});function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=le()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function $e(e){return(0,ie.get)(we,e,"#000")}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var ke={borderColor:$e("lightGray.500"),borderRadius:"3px",backgroundShady:$e("lightGray.200")},Se=ke.borderColor,xe=ke.borderRadius,Oe=ke.backgroundShady,Pe=J("div",{target:"e1q7k77g0",label:"CardUI"})("background:",$e("white"),";box-sizing:border-box;border-radius:",xe,";border:1px solid ",Se,";",je,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Ae=J(ae,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Se,";border-top-left-radius:",xe,";border-top-right-radius:",xe,";box-sizing:border-box;&:last-child{border-bottom:none;}",Me,";",je,";",Ie,";"),Ne=(J("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",xe,";border-top-right-radius:",xe,";}&:last-of-type{border-bottom-left-radius:",xe,";border-bottom-right-radius:",xe,";}"),J("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Ce(3)," ").concat(Ce(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Ce(2)," ").concat(Ce(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Ce(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Ce(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ie,";")),Re=J(ae,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Se,";border-bottom-left-radius:",xe,";border-bottom-right-radius:",xe,";box-sizing:border-box;&:first-of-type{border-top:none;}",Me,";",je,";",Ie,";"),Te=J("hr",{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Se,";box-sizing:border-box;display:block;height:0;width:100%;");function Me(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Ce(3)," ").concat(Ce(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Ce(2)," ").concat(Ce(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Ce(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Ce(1),";\n\t\t\t}\n\t\t}\n\t")}function je(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ie(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(Oe,";\n\t\t}\n\t")}function Fe(e){var t=e.className,n=e.isBorderless,r=e.isElevated,o=e.size,a=c(e,["className","isBorderless","isElevated","size"]),i=g.Provider,u={isBorderless:n,isElevated:r,size:o},p=d()("components-card",n&&"is-borderless",r&&"is-elevated",o&&"is-size-".concat(o),t);return(0,s.createElement)(i,{value:u},(0,s.createElement)(Pe,l({},a,{className:p})))}Fe.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var De=Fe;function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be={isShady:!1,size:"medium"},qe=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=Ge(Ge(Ge({},Be),p()),e).size,a=d()("components-card__body",n&&"is-shady",o&&"is-size-".concat(o),t);return(0,s.createElement)(Ne,l({},r,{className:a}))},ze=(0,s.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),o=d()("components-flex__item",n);return(0,s.createElement)(ne,l({},r,{className:o,ref:t}))}));function He(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ue=U;function Ve(){var e=He(["\n\t","\n\t","\n"]);return Ve=function(){return e},e}function We(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return We=function(){return e},e}function Ye(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ye=function(){return e},e}function Ke(){var e=He(["\n\t\t\t\t","\n\t\t\t"]);return Ke=function(){return e},e}function Qe(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Qe=function(){return e},e}function Ze(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ze=function(){return e},e}function Xe(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Xe=function(){return e},e}function Je(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Je=function(){return e},e}function et(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return et=function(){return e},e}var tt="font-weight: 400;",nt="font-weight: 600;",rt="\n ".concat(tt,"\n"),ot="\n\tfont-size: 32px;\n\tline-height: 40px;\n",at="\n\tfont-size: 24px;\n\tline-height: 32px;\n",it="\n\tfont-size: 20px;\n\tline-height: 28px;\n",st="\n\t".concat(nt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n"),lt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",ct="\n\tfont-size: 14px;\n\tline-height: 20px;\n",ut="\n\t".concat(tt,"\n"),dt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",gt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",pt="\n ".concat(nt,"\n font-size: 14px;\n line-height: 20px;\n"),ft="\n\t".concat(tt,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),mt="\n\t".concat(nt,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),ht="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(ge.gray[700],"\n"),yt=function(e){return Ue(Ve(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body"){case"title.large":return Ue(et(),rt,ot);case"title.medium":return Ue(Je(),rt,at);case"title.small":return Ue(Xe(),rt,it);case"subtitle":return Ue(Ze(),st,lt);case"subtitle.small":return Ue(Qe(),st,ct);case"body":return Ue(Ke(),ut);case"body.large":return Ue(Ye(),ut,dt);case"body.small":return Ue(We(),ut,gt);case"button":return pt;case"caption":return ft;case"label":return mt;case"sectionheading":return ht}}(e.variant))};function vt(e){if(Array.isArray(e))return e}function bt(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 _t(e,t){if(e){if("string"==typeof e)return bt(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)?bt(e,t):void 0}}function wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,t){return vt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(e){i=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||_t(e,t)||wt()}var $t=ie.isArray,Ct=ie.isBoolean,kt=ie.isDate,St=ie.isEmpty,xt=ie.isFunction,Ot=ie.isMap,Pt=ie.isNaN,At=ie.isNil,Nt=ie.isNull,Rt=ie.isNumber,Tt=ie.isObject,Mt=ie.isObjectLike,jt=ie.isPlainObject,It=ie.isRegExp,Ft=ie.isSet,Dt=ie.isString,Lt=ie.isSymbol,Gt=ie.isUndefined,Bt=ie.isWeakMap,qt=ie.isWeakSet,zt={blob:function(e){return e instanceof Blob},defined:function(e){return!At(e)},file:function(e){return e instanceof File},numeric:function(e){var t="string"==typeof e?e.replace(/,/g,""):e;return!Pt(parseFloat(t))&&!Pt(Number(t))&&isFinite(t)&&"[object array]"!==Object.prototype.toString.call(t).toLowerCase()},numericZero:function(e){return 0===e||"0"===e},valueEmpty:function(e){return!zt.defined(e)||""===e},objectInterpolation:function(e){return jt(e)},array:$t,boolean:Ct,date:kt,empty:St,function:xt,map:Ot,nan:Pt,nil:At,number:Rt,null:Nt,object:Tt,objectLike:Mt,plainObject:jt,regExp:It,set:Ft,string:Dt,symbol:Lt,undefined:Gt,weakSet:qt,weakMap:Bt},Ht="data-system-ui-color-blind-mode",Ut='[data-system-ui-mode="dark"]',Vt='[data-system-ui-contrast-mode="high"]',Wt="["+Ht+'="true"]',Yt=""+Ut+Vt,Kt={baseStyles:{},config:{},darkModeConfig:{},highContrastModeConfig:{},darkHighContrastModeConfig:{},compilerOptions:void 0};function Qt(e){return"--wp-g2-"+(0,ie.kebabCase)(e)}function Zt(e){return"var("+Qt(e.toString())+")"}function Xt(e){void 0===e&&(e={});for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=Et(r[n],2),a=o[0],i=o[1];t[""+Qt(a)]=null==i?void 0:i.toString()}return t}function Jt(e,t,n){void 0===e&&(e=":root"),void 0===t&&(t={}),void 0===n&&(n=!0);var r=Xt(t),o=[],a=!1;n?(o.push(e+" {"),a=!0):":root"!==e&&(o.push("&"+e+" {"),a=!0);for(var i=0,s=Object.entries(r);i<s.length;i++){var l=Et(s[i],2),c=l[0],u=l[1];zt.defined(u)&&!zt.boolean(u)&&o.push(c+": "+u+";")}return a&&o.push("}"),o.join("")}function en(e,t){return e.map((function(e){return"function"==typeof e?e(t):e}))}function tn(e,t){return t||(t=e.slice(0)),e.raw=t,e}var nn=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}};function rn(){var e=tn(["\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t"]);return rn=function(){return e},e}var on={didInjectGlobal:!1};function an(e){var t=e.globalStyles,n=e.injectGlobal;if(!on.didInjectGlobal){var r=t.darkHighContrastModeCSSVariables,o=t.darkModeCSSVariables,a=t.globalCSSVariables,i=t.highContrastModeCSSVariables;n&&(n(rn(),a,o,i,r),on.didInjectGlobal=!0)}}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ln=(0,m.createContext)({isDark:null,isColorBlind:null,isReducedMotion:null,isHighContrast:null});var cn=window.wp.isShallowEqual,un=m.useLayoutEffect,dn=window.wp.data;function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fn="g2/is-reduced-motion",mn={isReducedMotion:!1};(0,dn.registerStore)(fn,{reducer:function(e,t){return void 0===e&&(e=mn),"SET_IS_REDUCED_MOTION"===t.type?pn(pn({},e),{},{isReducedMotion:t.isReducedMotion}):e},actions:{setIsReducedMotion:function(e){return{type:"SET_IS_REDUCED_MOTION",isReducedMotion:e}}},selectors:{getIsReducedMotion:function(e){return e.isReducedMotion}}});var hn=fn;function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bn=function(e,t){return"SET_THEME"===t.type?vn(vn({},e),{},{theme:t.theme}):e};function wn(){var e=tn(["",""]);return wn=function(){return e},e}function En(e){var t,n=e.injectGlobal,r=e.isGlobal,o=void 0===r||r,a=e.theme,i=void 0===a?{}:a,s=e.selector,l=void 0===s?":root":s,c=Et((void 0===t&&(t=""),(0,m.useReducer)(bn,{theme:t})),2),u=c[0].theme,d=c[1],g=(0,m.useRef)(),p=(0,m.useRef)(!1);if(!p.current&&o&&i){if("function"==typeof n)try{var f=Jt(l,i,o);n(wn(),f)}catch(e){}p.current=!0}return un((function(){if(!(g.current&&i&&(0,cn.isShallowEqualObjects)(g.current,i))){g.current=i;var e=function(){var e="StyleSystemThemeProviderStyleNode",t=document.getElementById(e);if(t)return t;(t=document.createElement("style")).id=e,t.setAttribute("data-g2-theme-provider","theme");var n=document.querySelector("head");return n&&n.appendChild(t),t}(),t=Jt(l,i,o);o?e&&(e.innerHTML=t):d(function(e){return{type:"SET_THEME",theme:e}}(t))}}),[n,o,d,i]),u}function $n(){var e=tn(["\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t"]);return $n=function(){return e},e}function Cn(e,t){var n=e.children,r=e.compiler,o=e.className,a=e.isGlobal,i=void 0!==a&&a,s=e.globalStyles,l=e.isDark,u=e.isColorBlind,d=e.isReducedMotion,g=e.isHighContrast,p=e.theme,y=void 0===p?{}:p,v=e.darkTheme,b=void 0===v?{}:v,_=e.highContrastTheme,w=void 0===_?{}:_,E=e.darkHighContrastTheme,$=void 0===E?{}:E,C=c(e,["children","compiler","className","isGlobal","globalStyles","isDark","isColorBlind","isReducedMotion","isHighContrast","theme","darkTheme","highContrastTheme","darkHighContrastTheme"]),k=r.css,S=r.cx,x=r.injectGlobal;an({injectGlobal:x,globalStyles:s});var O=(0,m.useRef)(),P=En({injectGlobal:x,isGlobal:i,theme:y,selector:":root"}),A=En({injectGlobal:x,isGlobal:i,theme:b,selector:(0,ie.repeat)(Ut,3)}),N=En({injectGlobal:x,isGlobal:i,theme:w,selector:(0,ie.repeat)(Vt,3)}),R=En({injectGlobal:x,isGlobal:i,theme:$,selector:(0,ie.repeat)(Yt,3)});!function(e){var t=e.isColorBlind,n=e.isGlobal,r=void 0===n||n,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(t)){var e=document.documentElement;!r&&o.current&&(e=o.current),t?e.setAttribute("data-system-ui-color-blind-mode","true"):e.setAttribute("data-system-ui-color-blind-mode","false")}}),[r,t,o])}({isColorBlind:u,isGlobal:i,ref:O}),function(e){var t=e.isDark,n=e.isGlobal,r=void 0===n||n,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(t)){var e=document.documentElement;!r&&o.current&&(e=o.current),t?e.setAttribute("data-system-ui-mode","dark"):e.setAttribute("data-system-ui-mode","light")}}),[r,t,o])}({isDark:l,isGlobal:i,ref:O}),function(e){var t=e.isGlobal,n=void 0===t||t,r=e.isHighContrast,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(r)){var e=document.documentElement;!n&&o.current&&(e=o.current),r?e.setAttribute("data-system-ui-contrast-mode","high"):e.setAttribute("data-system-ui-contrast-mode","normal")}}),[n,r,o])}({isGlobal:i,isHighContrast:g,ref:O}),function(e){var t=e.isGlobal,n=void 0===t||t,r=e.isReducedMotion,o=e.ref,a=Et([(0,dn.useSelect)((function(e){return e(hn).getIsReducedMotion()})),(0,dn.useDispatch)(hn).setIsReducedMotion],2)[1];(0,m.useEffect)((function(){n&&a(!!r)}),[n,r,a]),(0,m.useEffect)((function(){if(zt.defined(r)){var e=document.documentElement;!n&&o.current&&(e=o.current),r?e.setAttribute("data-system-ui-reduced-motion-mode","true"):e.setAttribute("data-system-ui-reduced-motion-mode","false")}}),[n,r,o])}({isGlobal:i,isReducedMotion:d,ref:O});var T=function(e){void 0===e&&(e={});for(var t=(0,m.useContext)(ln),n=(0,m.useRef)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)).current,r=0,o=Object.entries(e);r<o.length;r++){var a=Et(o[r],2),i=a[0],s=a[1];zt.defined(s)&&(n[i]=s)}return n}({isDark:l,isReducedMotion:d,isColorBlind:u,isHighContrast:g}),M=function(e){void 0===e&&(e={});var t=e,n=t.isColorBlind,r=t.isDark,o=t.isHighContrast,a=t.isReducedMotion,i={};return r&&(i["data-system-ui-mode"]="dark"),o&&(i["data-system-ui-contrast-mode"]=!0),n&&(i[Ht]=!0),a&&(i["data-system-ui-reduced-motion-mode"]=!0),i}(T),j=S(o,k($n(),P,A,N,R));return h().createElement("div",Object.assign({},C,M,{className:j,"data-system-theme-provider":!0,ref:nn([t,O])}),h().createElement(ln.Provider,{value:T},n))}var kn=h().memo(h().forwardRef(Cn));function Sn(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function xn(e,t,n){var r=[],o=z(e,r,n);return r.length<2?n:o+t(r)}var On=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n};function Pn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var An=new RegExp(/var\(.*?\)[ ) ]*/,"g");function Nn(e){return null==e||null==e.includes?void 0:e.includes("var(")}function Rn(e){var t,n,r,o,a=(null==(t=e.match(/\(/g))?void 0:t.length)||0,i=(null==(n=e.match(/\)/g))?void 0:n.length)||0;if(a>i)o=""+e+(0,ie.repeat)(")",a-i);else{var s=new RegExp("((\\)){"+(i-a)+"})$","gi");o=e.replace(s,"")}return null==(r=o)?void 0:r.trim()}function Tn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mn(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)?Mn(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Mn(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 jn(e,t){var n,r,o=!1,a=Et(e.split(/:/),2);n=a[0],r=a[1],n=n.trim();for(var i,s,l=Tn(r.match(An)||[]);!(i=l()).done;)for(var c,u=i.value,d=Tn((u=u.trim()).replace(/ /g,"").split("var(").filter(Boolean));!(c=d()).done;){var g=vt(s=Rn(c.value).split(","))||Pn(s)||_t(s)||wt(),p=g[0],f=g.slice(1).join(","),m=t&&t.get(p)||f;m&&(o=!0,r=r.replace(u,m))}return[n,r=o?Rn(r):void 0]}function In(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 Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ln=function(e){var t=this;void 0===e&&(e={}),this.state={},this.get=function(e){return t.state[e]},this.getState=function(){return t.state},this.setState=function(e){return void 0===e&&(e={}),t._updateState(e),t._resolveVariablesInStateValue(),t.state},this._updateState=function(e){void 0===e&&(e={}),t.state=Object.freeze(Dn(Dn({},t.state),e))},this._resolveVariablesInStateValue=function(){for(var e,n={},r=Object.entries(t.state).filter((function(e){var t=Et(e,2);return t[0],Nn(t[1])})),o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return In(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)?In(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}(r);!(e=o()).done;){var a=Et(e.value,2),i=a[0],s=Et(jn("resolve: "+a[1],t),2)[1];s&&(n[i]=s)}t._updateState(n),r.length&&t._resolveVariablesInStateValue()},this.setState(e)};function Gn(e){return void 0===e&&(e={}),new Ln(e)}var Bn,qn,zn=["40em","52em","64em"],Hn=function(e,t){void 0===e&&(e={}),void 0===t&&(t=function(e,t){return t});var n={},r=[null].concat(zn.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var o in e){var a=o,i=e[a];if(null!==i)if(Array.isArray(i))for(var s=0;s<i.slice(0,r.length).length;s++){var l=r[s];l?(n[l]=n[l]||{},null!==i[s]&&(n[l][a]=t(a,i[s]))):n[a]=t(a,i[s])}else n[a]=i}return n},Un=__webpack_require__(4624),Vn=__webpack_require__(9588),Wn=__webpack_require__.n(Vn),Yn=Wn()((function(e,t){var n=e.split(";").filter(Boolean),r=!1,o=n.reduce((function(e,n){if(!Nn(n))return[].concat(e,[n]);var o=function(e,t){if(Nn(e)||function(e){return 0===e.indexOf("--")}(e)){var n=Et(jn(e,t),2),r=n[0],o=n[1];return o?[r,o].join(":"):void 0}}(n,t);return o?(r=!0,[].concat(e,[o,n])):[].concat(e,[n])}),[]),a=o.join(";").concat(";");return r?a:void 0}));function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn="undefined"!=typeof window&&(null==(Bn=window)||null==(qn=Bn.CSS)||null==qn.supports?void 0:qn.supports("(--a: 0)")),Xn={rootStore:Gn(),skipSupportedBrowsers:!0},Jn=function(e){void 0===e&&(e={});var t=Qn(Qn({},Xn),e),n=t.rootStore,r=t.skipSupportedBrowsers;return function(e,t,o,__,a,i,s,l){if((!r||!Zn)&&2===e&&107!==l&&Nn(t))return Yn(t,n)}};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr,rr,or,ar=new WeakSet,ir=new Set,sr={key:"wp-css",level:7},lr=function(e){void 0===e&&(e=sr);var t=tr(tr({},sr),e),n=t.key,r=t.level,o=(0,ie.clamp)(r,0,20);return function(e,__,t){if(!ar.has(t)){ar.add(t);for(var r=new RegExp("."+n+"-[\\w|\\d]*","g"),a=0;a<t.length;a++){var i=t[a],s=Et(i.match(r)||[],1)[0];if(s){if(ir.has(s))return;ir.add(s),i=i.replace(new RegExp(s,"g"),s).replace(s,(0,ie.repeat)(s,o)),t[a]=i}}}}},cr=__webpack_require__(8314),ur=__webpack_require__.n(cr),dr=!1;"undefined"!=typeof window&&(dr="rtl"===(null==(nr=window)||null==(rr=nr.document)||null==(or=rr.documentElement)?void 0:or.dir));var gr=function(e,t){if(-1===e)return dr?ur().process(t,void 0,void 0,void 0):void 0};function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mr={key:"css",specificityLevel:7,rootStore:new Ln};function hr(e){var t=fr(fr({},mr),e),n=t.key,r=t.rootStore,o=function(e){var t=e.specificityLevel,n=void 0===t?7:t,r=e.key,o=void 0===r?"css":r,a=e.skipSupportedBrowsers;return[gr,Jn({skipSupportedBrowsers:void 0===a||a,rootStore:e.rootStore}),lr({level:n,key:o}),Un.default]}({key:n,specificityLevel:t.specificityLevel,rootStore:r});e.stylisPlugins?Array.isArray(e.stylisPlugins)?t.stylisPlugins=[].concat(o,e.stylisPlugins):zt.defined(e.stylisPlugins)?t.stylisPlugins=[].concat(o,[e.stylisPlugins]):t.stylisPlugins=o:t.stylisPlugins=o;var a,i=fr(fr({},function(e){var t=x(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered,void 0);return H(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return xn(t.registered,n,On(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered);Sn(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered),a="animation-"+o.name;return Sn(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:z.bind(null,t.registered),merge:xn.bind(null,t.registered,n)}}(t)),{},{breakpoints:zn,__events:{all:a=a||new Map,on:function(e,t){var n=a.get(e);n&&n.push(t)||a.set(e,[t])},off:function(e,t){var n=a.get(e);n&&n.splice(n.indexOf(t)>>>0,1)},emit:function(e,t){(a.get(e)||[]).slice().map((function(e){e(t)})),(a.get("*")||[]).slice().map((function(n){n(e,t)}))}}}),s=i.css;i.css=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],a=n.slice(1);if(zt.objectInterpolation(o))return e(Hn(o));if(Array.isArray(o)){for(var i=0,s=o.length;i<s;i++){var l=o[i];zt.objectInterpolation(l)&&(o[i]=Hn(l))}return e.apply(void 0,[o].concat(a))}return e.apply(void 0,n)}}(s);var l=i.sheet.insert;return i.sheet.insert=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];l.apply(i.sheet,[].concat(n)),(e=i.__events).emit.apply(e,["sheet.insert"].concat(n))},i}function yr(){var e=tn(["\n\t\t\t@media (prefers-reduced-motion) {\n\t\t\t\ttransition: none !important;\n\t\t\t}\n\t\t\t"," & {\n\t\t\t\ttransition: none !important;\n\t\t\t}\n\t\t"]);return yr=function(){return e},e}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=b,wr=Kt,Er=function(e,t){var n=br(br({},wr),t),r=n.baseStyles,o=n.compiler,a=n.globalStyles,i=o.css,s=o.cx,l=o.injectGlobal,u={Base:i({boxSizing:"border-box"}),reduceMotion:i(yr(),'[data-system-ui-reduced-motion-mode="true"]')},d=i(r),g=(0,m.forwardRef)((function(t,n){var r=t.css,o=t.as,g=t.children,p=t.className,f=t.forwardedRef,m=c(t,["css","as","children","className","forwardedRef"]);an({globalStyles:a,injectGlobal:l});var y=o||e,v="string"!=typeof p?s(p):p,b=s(u.Base,u.reduceMotion,d,v,r&&i(r)),_={};for(var w in m)"string"==typeof y?_r(w)&&(_[w]=m[w]):_[w]=m[w];var E=h().useMemo((function(){return f?nn([f,n]):n}),[f,n]);return h().createElement(y,br({className:b,ref:E},_),g)}));return g},$r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];function Cr(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}var kr=__webpack_require__(8679),Sr=__webpack_require__.n(kr);function xr(e){return"string"==typeof e?e:e.displayName||e.name||"Component"}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr=Kt;function Tr(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,a=n;o<a.length;o++){var i=a[o];"number"!=typeof i&&"string"!=typeof i||e.push(i),Array.isArray(i)&&e.push(Tr.apply(void 0,i),",")}return e.join(" ").trim().replace(/,$/,"")}var Mr=Tr;function jr(e){return"number"==typeof e?"calc("+Zt("gridBase")+" * "+e+")":e}function Ir(e){for(var t={},n=Object.entries(e),r=n[0][1],o=le()(r).lighten(15).toHexString(),a=n[n.length-1][1],i=le()(a).darken(15).toHexString(),s=0,l=n;s<l.length;s++){var c=Et(l[s],2),u=c[0],d=c[1];t[u+"Text"]=le().mostReadable(d,[o,r,a,i]).toHexString()}return t}function Fr(e,t){void 0===t&&(t=!1);var n={},r=Et(Object.entries(e)[2],2),o=r[0],a=r[1],i=Et(o.split(/\d+/),1)[0],s=t?"#000":"#fff",l=t?"#fff":"#000",c=t?"darken":"lighten";return[10,20,30,40,50,60,70,80,90].forEach((function(e,t){var r=a;r=le()(r).setAlpha(e/100).toRgbString();var o=le().mix(a,s,t).toRgbString();le().isReadable(o,l,{})||(r=le()(r)[c](20).toRgbString()),n[i+"Rgba"+e]=r})),n}function Dr(e,t){var n,r=((n={})[e]=t,n);return[10,20,30,40,50,60,70,80,90].forEach((function(n){r[e+"Rgba"+n]=le()(t).setAlpha(n/100).toRgbString()})),r}function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Mr.calc=function(){return"calc("+Tr.apply(void 0,arguments)+")"};var Br={purple100:"#f3f1f8",purple300:"#B4A8D2",purple500:"#826eb4",purple700:"#4e426c",purple900:"#342c48"},qr={darkGray100:"#8F98A1",darkGray300:"#6C7781",darkGray500:"#555D66",darkGray700:"#32373C",darkGray900:"#191E23"},zr={lightGray100:"#fbfbfc",lightGray300:"#edeff0",lightGray500:"#e2e4e7",lightGray700:"#ccd0d4",lightGray900:"#a2aab2"},Hr={red100:"#fcebeb",red300:"#ea8484",red500:"#dc3232",red700:"#b02828",red900:"#841e1e"},Ur={orange100:"#fef1ea",orange300:"#f9a87e",orange500:"#F56E28",orange700:"#ca4a1f",orange900:"#aa3e1a"},Vr={yellow100:"#fff8e6",yellow300:"#ffd566",yellow500:"#ffb900",yellow700:"#ee8e0d",yellow900:"#dd631a"},Wr={green100:"#edf8ee",green300:"#90d296",green500:"#46b450",green700:"#328540",green900:"#25612f"},Yr={blue100:"#e6f6fb",blue300:"#66c6e4",blue500:"#00a0d2",blue700:"#0085ba",blue900:"#0072A8"},Kr=Gr(Gr(Gr({},qr),Ir(qr)),Fr(qr)),Qr=Gr(Gr(Gr({},zr),Ir(zr)),Fr(zr)),Zr=Gr(Gr(Gr({},Hr),Ir(Hr)),Fr(Hr)),Xr=Gr(Gr(Gr({},Ur),Ir(Ur)),Fr(Ur)),Jr=Gr(Gr(Gr({},Vr),Ir(Vr)),Fr(Vr)),eo=Gr(Gr(Gr({},Wr),Ir(Wr)),Fr(Wr)),to=Gr(Gr(Gr({},Br),Ir(Br)),Fr(Br)),no=Gr(Gr(Gr({},Yr),Ir(Yr)),Fr(Yr)),ro=Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},Kr),Qr),Zr),Xr),Jr),eo),to),no),oo={black:"#000000",blueberry:"#3858E9",blueberryDark:"#1D35B4",greens:"#33F078",grey:"#40464D",greyBlack:"#1E1E1E",lightBlue:"#33F078",lightGrey:"#40464D",lighterGrey:"#dddddd",pomegrade:"#E26F56",wordpressBlue:"#007cba",white:"#ffffff"},ao={colorBackgroundBlue:Zt("blueRgba10"),colorBackgroundBlueText:Zt("blue900"),colorBackgroundDarkGray:Zt("darkGrayRgba10"),colorBackgroundDarkGrayText:Zt("darkGray900"),colorBackgroundGreen:Zt("greenRgba10"),colorBackgroundGreenText:Zt("green900"),colorBackgroundLightGray:Zt("lightGrayRgba10"),colorBackgroundLightGrayText:Zt("lightGray900"),colorBackgroundOrange:Zt("orangeRgba10"),colorBackgroundOrangeText:Zt("orange900"),colorBackgroundPurple:Zt("purpleRgba10"),colorBackgroundPurpleText:Zt("purple900"),colorBackgroundRed:Zt("redRgba10"),colorBackgroundRedText:Zt("red900"),colorBackgroundYellow:Zt("yellowRgba10"),colorBackgroundYellowText:Zt("yellow900")},io={colorBackgroundBlue:Zt("blueRgba20"),colorBackgroundBlueText:Zt("blue300"),colorBackgroundDarkGray:Zt("darkGrayRgba20"),colorBackgroundDarkGrayText:Zt("white"),colorBackgroundGreen:Zt("greenRgba20"),colorBackgroundGreenText:Zt("green300"),colorBackgroundLightGray:Zt("lightGrayRgba20"),colorBackgroundLightGrayText:Zt("white"),colorBackgroundOrange:Zt("orangeRgba20"),colorBackgroundOrangeText:Zt("orange300"),colorBackgroundPurple:Zt("purpleRgba20"),colorBackgroundPurpleText:Zt("purple300"),colorBackgroundRed:Zt("redRgba20"),colorBackgroundRedText:Zt("red300"),colorBackgroundYellow:Zt("yellowRgba20"),colorBackgroundYellowText:Zt("yellow300")},so=Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},Fr(Yr,!0)),Fr(Wr,!0)),Fr(Ur,!0)),Fr(Br,!0)),Fr(Hr,!0)),Fr(Vr,!0)),Fr(qr,!0)),Fr(zr,!0));function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uo=co(co(co(co({},ro),ao),{},{colorAdmin:"#007cba",colorDestructive:"#D94F4F",colorBodyBackground:Zt("white"),colorDivider:"rgba(0, 0, 0, 0.1)",colorPositive:Zt("greens"),colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",colorText:"#1e1e1e",colorTextInverted:Zt("white"),colorTextHeading:"#050505",colorTextMuted:"#8a8b8c"},Dr("colorAdmin","#007cba")),Dr("colorDestructive","#D94F4F")),go={fontFamily:'Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif',fontFamilyMono:"SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace",fontSize:"13px",fontSizeH1:"calc(2.44 * "+Zt("fontSize")+")",fontSizeH2:"calc(1.95 * "+Zt("fontSize")+")",fontSizeH3:"calc(1.56 * "+Zt("fontSize")+")",fontSizeH4:"calc(1.25 * "+Zt("fontSize")+")",fontSizeH5:"calc(1 * "+Zt("fontSize")+")",fontSizeH6:"calc(0.8 * "+Zt("fontSize")+")",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * "+Zt("fontSize")+")",fontSizeXSmall:"calc(0.75 * "+Zt("fontSize")+")",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600"},po={surfaceBackgroundColor:Zt("surfaceColor"),surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:"#ffffff",surfaceColor:Zt("white")},fo={controlBackgroundColor:Zt("white"),controlBackgroundColorHover:"rgba(0, 0, 0, 0.05)",controlBackgroundColorActive:"rgba(0, 0, 0, 0.05)",controlBackgroundDimColor:"rgba(0, 0, 0, 0.1)",controlBackgroundBrightColor:"rgba(0, 0, 0, 0.03)",controlBorderColor:"#757575",controlBorderColorHover:Zt("controlBorderColor"),controlBorderColorSubtle:"transparent",controlBorderRadius:"2px",controlBorderSubtleColor:"rgba(0, 0, 0, 0.2)",controlBoxShadowFocusSize:"0.5px",controlBoxShadow:"transparent",controlBoxShadowFocus:Mr("0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorAdmin")),controlPseudoBoxShadowFocusWidth:"2px",controlPseudoBoxShadowFocusRingSize:Mr.calc(Zt("controlPseudoBoxShadowFocusWidth"),"+ 1px +",Zt("controlBoxShadowFocusSize")),controlPseudoBoxShadowFocusRingSizeSmall:Mr.calc(Zt("controlPseudoBoxShadowFocusWidth"),"+ 1px"),controlPseudoBoxShadowFocus:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSize"),Zt("colorAdmin")]),controlPseudoBoxShadowFocusSmall:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSizeSmall"),Zt("colorAdmin")]),controlDestructivePseudoBoxShadowFocus:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSize"),Zt("colorDestructive")]),controlDestructivePseudoBoxShadowFocusSmall:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSizeSmall"),Zt("colorDestructive")]),controlDestructiveBorderColor:Zt("colorDestructive"),controlDestructiveBorderColorFocus:Zt("controlDestructiveBorderColor"),controlDestructiveBoxShadowFocus:Mr("0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorDestructive")),controlHeight:"30px",controlHeightLarge:"calc("+Zt("controlHeight")+" * 1.2)",controlHeightSmall:"calc("+Zt("controlHeight")+" * 0.8)",controlHeightXLarge:"calc("+Zt("controlHeight")+" * 1.4)",controlHeightXSmall:"calc("+Zt("controlHeight")+" * 0.67)",controlHeightXXSmall:"calc("+Zt("controlHeight")+" * 0.4)",controlPaddingX:"12px",controlPaddingXLarge:"calc("+Zt("controlPaddingX")+" * 1.3334)",controlPaddingXSmall:"calc("+Zt("controlPaddingX")+" / 1.3334)",controlPrimaryTextColorActive:Zt("white"),controlPrimaryTextColor:Zt("white"),controlSurfaceBoxShadow:Mr(["0 1px 1px rgba(0, 0, 0, 0.2)"],["0 1px 2px rgba(0, 0, 0, 0.2)"]),controlSurfaceColor:Zt("white"),controlTextActiveColor:Zt("colorAdmin"),controlInnerControltextColor:Zt("colorAdmin")},mo={buttonPaddingXRatio:"calc(4/3)",buttonPaddingX:Mr.calc(Zt("controlPaddingX"),"*",Zt("buttonPaddingXRatio")),buttonTextColor:Zt("colorAdmin"),buttonTextColorActive:Zt("buttonTextColor"),buttonPrimaryColor:Zt("colorAdmin"),buttonPrimaryColorHover:Zt("buttonPrimaryColor"),buttonPrimaryColorActive:Zt("colorText"),buttonPrimaryColorFocus:Zt("buttonPrimaryColor"),buttonPrimaryBorderColor:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorHover:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorActive:Zt("buttonPrimaryColor"),buttonPrimaryTextColor:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorHover:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorActive:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorFocus:Zt("controlPrimaryTextColor"),buttonSecondaryColor:"transparent",buttonSecondaryColorHover:Zt("buttonSecondaryColor"),buttonSecondaryColorActive:"rgba(0, 0, 0, 0.05)",buttonSecondaryColorFocus:Zt("buttonSecondaryColor"),buttonSecondaryBorderColor:Zt("buttonPrimaryColor"),buttonSecondaryTextColor:Zt("buttonPrimaryColor"),buttonSecondaryTextColorFocus:Zt("buttonPrimaryColor"),buttonSecondaryTextColorActive:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorHover:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorActive:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonTertiaryColor:"transparent",buttonTertiaryColorHover:Zt("buttonTertiaryColor"),buttonTertiaryColorActive:"rgba(0, 0, 0, 0.05)",buttonTertiaryColorFocus:Zt("buttonTertiaryColor"),buttonTertiaryBorderColor:"transparent",buttonTertiaryTextColor:Zt("buttonPrimaryColor"),buttonTertiaryTextColorFocus:Zt("buttonPrimaryColor"),buttonTertiaryTextColorActive:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorHover:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorActive:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonControlActiveStateColor:Zt("colorText"),buttonControlActiveStateColorHover:Zt("buttonControlActiveStateColor"),buttonControlActiveStateColorActive:Zt("buttonControlActiveStateColor"),buttonControlActiveStateColorFocus:Zt("buttonControlActiveStateColor"),buttonControlActiveStateTextColor:Zt("buttonPrimaryTextColor"),buttonControlActiveStateBorderColorFocus:Zt("buttonPrimaryColor"),buttonControlActiveStateBoxShadowFocus:Mr(["0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorAdmin")],["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("buttonControlActiveStateTextColor"),"inset"])},ho={cardBorderRadius:"2px",cardPaddingX:jr(3),cardPaddingY:jr(3),cardPadding:Mr(Zt("cardPaddingX"),Zt("cardPaddingY")),cardHeaderFooterPaddingY:jr(1),cardHeaderHeight:"44px"},yo={flexGap:jr(2),flexItemMarginRight:Zt("flexGap")},vo={linkColor:Zt("colorAdmin"),linkColorHover:Zt("colorAdmin"),linkColorActive:Zt("colorAdmin"),linkColorFocus:Zt("colorAdmin")},bo={menuItemBorderWidth:"1px",menuItemFocusBackgroundColor:"transparent",menuItemFocusBorderColor:Zt("colorAdmin"),menuItemFocusTextColor:Zt("menuItemFocusBorderColor"),menuItemFocusBoxShadow:Zt("controlBorderSubtleColor"),menuItemActiveBackgroundColor:Zt("controlBackgroundColor"),menuItemActiveBorderColor:Zt("menuItemFocusBorderColor"),menuItemActiveTextColor:Zt("colorText"),menuItemActiveBoxShadow:Zt("controlBorderSubtleColor"),menuItemHeight:"30px",menuItemHeightLarge:"calc("+Zt("menuItemHeight")+" * 1.2)",menuItemHeightSmall:"calc("+Zt("menuItemHeight")+" * 0.8)",menuItemHeightXLarge:"calc("+Zt("menuItemHeight")+" * 1.4)",menuItemHeightXSmall:"calc("+Zt("menuItemHeight")+" * 0.67)",menuItemHeightXXSmall:"calc("+Zt("menuItemHeight")+" * 0.4)"},_o={panelHeaderPadding:jr(3)+" "+jr(4),panelBodyPadding:jr(2)+" "+jr(4)+" "+jr(3)},wo={radioBoxShadow:Zt("checkboxBoxShadow"),radioSize:Zt("checkboxSize"),radioDotSize:"10px"},Eo={segmentedControlFontSize:"12px",segmentedControlBackgroundColor:Zt("controlBackgroundColor"),segmentedControlBorderColor:Zt("controlBorderColor"),segmentedControlBackdropBackgroundColor:Zt("controlSurfaceColor"),segmentedControlBackdropBorderColor:Zt("controlBorderColor"),segmentedControlBackdropBoxShadow:"transparent",segmentedControlButtonColorActive:Zt("controlBackgroundColor")},$o={sliderThumbBorderColor:"transparent",sliderThumbBoxShadow:"none",sliderThumbBoxShadowSizeFocus:"3px",sliderThumbBoxShadowColorFocus:Zt("colorAdminRgba20"),sliderThumbBackgroundColor:Zt("colorAdmin")},Co={switchBackdropBackgroundColor:Zt("lightGray900"),switchBackdropBackgroundColorActive:Zt("colorAdmin"),switchBackdropBorderColor:Zt("lightGray900"),switchBackdropBorderColorActive:Zt("colorAdmin"),switchBackdropBorderColorFocus:Zt("white"),switchToggleBackgroundColor:Zt("colorTextInverted"),switchToggleBackgroundColorActive:Zt("colorTextInverted"),switchToggleBoxShadow:"none",switchPaddingOffset:"6px"},ko=co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co({},oo),uo),ho),fo),{elevationIntensity:1}),yo),go),po),{transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),mo),{checkboxBoxShadow:"none",checkboxSize:"16px"}),{gridBase:"4px"}),vo),bo),_o),wo),Eo),$o),Co);function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oo=xo(xo(xo({},io),so),{},{buttonPrimaryTextColorActive:Zt("controlPrimaryTextColorActive"),buttonControlActiveStateTextColor:Zt("colorTextInverted"),colorBodyBackground:"#18191A",colorDivider:"rgba(255, 255, 255, 0.1)",colorScrollbarThumb:"rgba(255, 255, 255, 0.2)",colorScrollbarThumbHover:"rgba(255, 255, 255, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",colorText:"#E4E6EB",colorTextInverted:"#050505",colorTextHeading:"#ffffff",controlBackgroundColor:Zt("colorBodyBackground"),controlBackgroundColorHover:"rgba(255, 255, 255, 0.3)",controlBackgroundBrightColor:"rgba(255, 255, 255, 0.08)",controlBackgroundDimColor:"rgba(255, 255, 255, 0.2)",controlBorderSubtleColor:"rgba(255, 255, 255, 0.5)",controlPrimaryTextColorActive:Zt("black"),controlPrimaryTextColor:Zt("white"),controlSurfaceColor:"rgba(255, 255, 255, 0.3)",controlTextActiveColor:Zt("white"),surfaceBackgroundColor:Zt("colorBodyBackground"),surfaceBackgroundSubtleColor:"#151515",surfaceBackgroundTintColor:"#252525",surfaceBackgroundTertiaryColor:"#000",surfaceBorderColor:"rgba(255, 255, 255, 0.1)",surfaceBorderBoldColor:"rgba(255, 255, 255, 0.15)",surfaceBorderSubtleColor:"rgba(255, 255, 255, 0.05)",surfaceColor:"#292929"}),Po=xo({},Oo),Ao=function(e){void 0===e&&(e=Rr);var t=Nr(Nr({},Rr),e),n=t.baseStyles,r=t.compilerOptions,o=function(e){var t=e.config,n=void 0===t?{}:t,r=e.darkModeConfig,o=void 0===r?{}:r,a=e.highContrastModeConfig,i=void 0===a?{}:a,s=e.darkHighContrastModeConfig,l=void 0===s?{}:s,c=function(e){void 0===e&&(e={});for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=Et(r[n],2),a=o[0],i=o[1],s="var("+Qt(a)+", "+i+")";t[a]=s}return t}(n);return{theme:c,globalVariables:Xt(n),globalCSSVariables:Jt(":root",n),darkModeCSSVariables:Jt((0,ie.repeat)(Ut,3),o),highContrastModeCSSVariables:Jt((0,ie.repeat)(Vt,3),i),darkHighContrastModeCSSVariables:Jt((0,ie.repeat)(Yt,3),l)}}({config:t.config,darkHighContrastModeConfig:t.darkHighContrastModeConfig,darkModeConfig:t.darkModeConfig,highContrastModeConfig:t.highContrastModeConfig}),a=Gn(o.globalVariables);a.setState(o.globalVariables);var i=hr(Nr(Nr({},r),{},{rootStore:a})),s=i.css,l=i.cx,u=function(e){for(var t,n=e.baseStyles,r=e.compiler,o=e.globalStyles,a={},i=function(e){return Er(e,{baseStyles:n,compiler:r,globalStyles:o})},s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cr(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)?Cr(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}($r);!(t=s()).done;){var l=t.value;a[l]=i(l)}return a}({baseStyles:n,compiler:i,globalStyles:o}),d=function(e){var t=e.compiler,n=e.core,r=t.css,o=t.cx,a=n.div;function i(e,t){void 0===t&&(t={});var n=t.props;return function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var d=h().forwardRef((function(t,i){var s=t.as,u=t.className,d=c(t,["as","className"]),g=Pr(Pr(Pr({},n),d),{},{ref:i}),p=en(l,d),f=o(r.apply(void 0,p),u);return h().createElement(a,Object.assign({as:s||e},g,{className:f}))}));return d.displayName="string"==typeof e?"Styled("+xr(e)+")":zt.defined(null==e?void 0:e.displayName)?e.displayName:"Styled("+xr(e)+")",d.withComponent=function(e,n){return i(e,void 0!==n?Pr(Pr({},t||{}),n):t).apply(void 0,l)},"string"!=typeof e?Sr()(d,e):d}}var s=i.bind(void 0);return $r.forEach((function(e){s[e]=i(e)})),s}({compiler:i,core:u}),g=u.div;return{compiler:i,core:u,createCoreElement:function(e){return Er(e,{baseStyles:n,compiler:i,globalStyles:o})},createToken:Qt,css:s,cx:l,get:function(e){return"var("+Qt(e.toString())+")"},styled:d,View:g,ThemeProvider:function(e){return h().createElement(kn,Object.assign({},e,{compiler:i,globalStyles:o}))},rootStore:a}}({baseStyles:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontFamily:Zt("fontFamily"),fontSize:Zt("fontSize"),fontWeight:Zt("fontWeight"),margin:0},config:ko,darkModeConfig:Po,highContrastModeConfig:{colorDivider:"#444",controlBorderColor:"#444",controlBorderColorHover:"#444",controlBorderColorSubtle:"#444",surfaceBorderColor:"#444"},darkHighContrastModeConfig:{colorDivider:"#eee",controlBorderColor:"#eee",controlBorderColorHover:"#eee",controlBorderColorSubtle:"#eee",surfaceBorderColor:"#eee"}}),No=(Ao.ThemeProvider,Ao.compiler),Ro=Ao.core,To=(Ao.createCoreElement,Ao.createToken),Mo=Ao.get,jo=(Ao.styled,No.breakpoints,No.cache,No.cx);function Io(e){return"number"==typeof e?"calc("+Mo("gridBase")+" * "+e+")":e}No.flush,No.getRegisteredStyles,No.hydrate,No.injectGlobal,No.keyframes,No.merge,No.sheet;var Fo=No.css,Do={gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space"},Lo={space:Io};function Go(e,t){var n=Do[e],r=t;return n&&Lo&&(r=(0,Lo[n])(t)),r}function Bo(e){void 0===e&&(e={});var t={};for(var n in e)t[n]=Go(n,e[n]);return t}function qo(e){if(zt.objectInterpolation(e))return Fo(Bo(Hn(e,Go)));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e)){for(var o=0,a=e.length;o<a;o++){var i=e[o];zt.objectInterpolation(i)&&(e[o]=Bo(Hn(i,Go)))}return Fo.apply(void 0,[e].concat(n))}return Fo.apply(void 0,[e].concat(n))}var zo=(0,m.createContext)({}),Ho="data-g2-component";function Uo(e,t){var n,r=(0,m.useContext)(zo),o=Array.isArray(t)?t[0]:t,a=(null==r?void 0:r[o])||{},i=((n={})["data-g2-c16t"]=!0,n),s=function(e){var t;return(t={})[Ho]=e,t}(o);for(var l in s)"string"==typeof s[l]&&(i[l]=s[l]);var u=a._overrides,d=a.css,g=c(a,["_overrides","css"]),p=Object.entries(g).length?Object.assign({},g,e):e,f=jo(d&&qo(d),p.css&&qo(p.css),Wo(o),e.className),h="function"==typeof p.renderChildren?p.renderChildren(p):p.children;for(var y in p)"css"!==y&&(i[y]=p[y]);for(var v in u)i[v]=u[v];return i.children=h,i.className=f,i}function Vo(e){if(!e||"string"!=typeof e)return"";var t=(0,ie.kebabCase)(e);return"components-"+t+" wp-components-"+t}var Wo=Wn()((function(e){return e?Array.isArray(e)?jo((0,ie.uniq)(e).map(Vo)):"string"==typeof e?Vo(e):"":""}));function Yo(e,t,n){void 0===n&&(n={});var r=n.memo,o=void 0===r||r,a=(0,m.forwardRef)(e);o&&(a=h().memo(a));var i=Array.isArray(t)?t[0]:t||a.name,s=a.__contextSystemKey__||[i];return Array.isArray(t)&&(s=[].concat(s,t)),"string"==typeof t&&(s=[].concat(s,[t])),a.displayName=i,a.__contextSystemKey__=(0,ie.uniq)(s),a}function Ko(e){if(!e)return[];var t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}var Qo=__webpack_require__(4155),Zo=Ro.div;Zo.displayName="View";var Xo=Zo,Jo={bottom:qo({alignItems:"flex-end",display:"flex",justifyContent:"center"}),center:qo({alignItems:"center",display:"flex",justifyContent:"center"}),left:qo({alignItems:"center",display:"flex",justifyContent:"flex-start"}),right:qo({alignItems:"center",display:"flex",justifyContent:"flex-end"}),top:qo({alignItems:"flex-start",display:"flex",justifyContent:"center"})},ea={center:qo({margin:"auto"}),content:Jo,left:qo({marginRight:"auto"}),right:qo({marginLeft:"auto"})};function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ra={transitionDuration:Mo("transitionDuration"),transitionProperty:"all",transitionTimingFunction:"ease-in-out"},oa=function(e){return qo({transition:e})};oa.default=qo(na(na({},ra),{},{transitionTimingFunction:"ease"})),oa.bounce=qo(na(na({},ra),{},{transitionTimingFunction:"cubic-bezier(.8, .5, .2, 1.4)"})),oa.delay=function(e){return qo({transitionDelay:e+"s"})},oa.duration=function(e){return qo({transitionDuration:e+"s"})},oa.ease=qo(na(na({},ra),{},{transitionTimingFunction:"ease"})),oa.easeIn=qo(na(na({},ra),{},{transitionTimingFunction:"ease-in"})),oa.easeInOut=qo(na(na({},ra),{},{transitionTimingFunction:"ease-in-out"})),oa.easeOut=qo(na(na({},ra),{},{transitionTimingFunction:"ease-out"})),oa.easing=function(e){return qo(na(na({},ra),{},{transitionTimingFunction:e}))},oa.linear=qo(na(na({},ra),{},{transitionTimingFunction:"linear"}));var aa=["blue","red","purple","green","yellow","orange","darkGray","lightGray"];function ia(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return ia=function(){return e},e}function sa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ia(),Wt,o)}function la(){var e=tn(["",""]);return la=function(){return e},e}function ca(){var e=tn(["\n\t\t",";\n\t\t",";\n\t"]);return ca=function(){return e},e}function ua(e,t){if(void 0===t&&(t={}),!aa.includes(e))return"";var n,r=t,o=r.isBold,a=r.isSubtle,i=o?"Rgba20":"Rgba10",s=qo({background:Mo(o?e+"Rgba70":a?e+"Rgba10":e+"Rgba20")});return"green"===e&&(n=qo({backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 10px, "+Mo("colorBackgroundGreen")+" 10px, "+Mo("colorBackgroundGreen")+" 20px)"})),"red"===e&&(n=qo({backgroundImage:"linear-gradient(45deg, "+Mo("red"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("red"+i)+" 75%, "+Mo("red"+i)+"),\n linear-gradient(-45deg, "+Mo("red"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("red"+i)+" 75%, "+Mo("red"+i)+")",backgroundSize:"10px 10px"})),"yellow"===e&&(n=qo({backgroundImage:"linear-gradient(45deg, "+Mo("yellow"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("yellow"+i)+" 75%, "+Mo("yellow"+i)+"),\n linear-gradient(-45deg, "+Mo("yellow"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("yellow"+i)+" 75%, "+Mo("yellow"+i)+")",backgroundSize:"10px 10px"})),qo(ca(),s,sa(la(),n))}function da(e){return qo({background:e})}da.black=da(Mo("black")),da.white=da(Mo("white")),da.admin=da(Mo("colorAdmin")),da.blue=ua("blue"),da.darkGray=ua("darkGray"),da.green=ua("green"),da.lightGray=ua("lightGray"),da.orange=ua("orange"),da.purple=ua("purple"),da.red=ua("red"),da.yellow=ua("yellow"),da.control=da(Mo("controlBackgroundColor")),da.surface=da(Mo("surfaceBackgroundColor")),da.secondary=da(Mo("surfaceBackgroundSubtleColor"));var ga={default:qo({border:"1px solid "+Mo("controlBorderColor")}),focus:qo({border:"1px solid "+Mo("colorAdmin"),boxShadow:Mo("controlBoxShadowFocus")}),subtle:qo({border:"1px solid "+Mo("controlBorderSubtleColor")})},pa={all:qo({border:"1px solid "+Mo("surfaceBorderColor")}),bottom:qo({borderBottom:"1px solid "+Mo("surfaceBorderColor")}),control:ga,left:qo({borderLeft:"1px solid "+Mo("surfaceBorderColor")}),right:qo({borderRight:"1px solid "+Mo("surfaceBorderColor")}),top:qo({borderTop:"1px solid "+Mo("surfaceBorderColor")})};function fa(e){return qo({borderRadius:e})}function ma(){var e=tn(["\n\t\t@media not all and (min-resolution: 0.001dpcm) {\n\t\t\t@supports (-webkit-appearance: none) {\n\t\t\t\t","\n\t\t\t}\n\t\t}\n\t"]);return ma=function(){return e},e}function ha(){var e=tn(["\n\t\t@-moz-document url-prefix() {\n\t\t\t",";\n\t\t}\n\t"]);return ha=function(){return e},e}function ya(){var e=tn(["\n\t\t@media screen and (-ms-high-contrast: active),\n\t\t\t(-ms-high-contrast: none) {\n\t\t\t",";\n\t\t}\n\t"]);return ya=function(){return e},e}fa.none=fa(0),fa.round=fa(Mo("controlBorderRadius")),fa.circle=fa(99999);var va={ie:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ya(),o)},firefox:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ha(),o)},safari:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ma(),o)}},ba=function(e){return le()(e)};ba.admin=Mo("colorAdmin"),ba.text=Mo("colorText"),ba.textInverted=Mo("colorTextInverted"),ba.border=Mo("surfaceBorderColor"),ba.positive=Mo("colorPositive"),ba.destructive=Mo("colorDestructive"),["blue","red","purple","green","yellow","orange","darkGray","lightGray"].forEach((function(e){[null,100,300,500,700,900].forEach((function(t){t?ba[""+e+t]=Mo(""+e+t):ba[e]=Mo(e+"500")}))})),Object.keys(oo).forEach((function(e){ba[e]=Mo(e)}));var _a=function(e){var t=e.height,n=e.width,r=[];return zt.defined(n)&&r.push([qo({maxWidth:"100%",width:n})]),zt.defined(t)&&r.push([qo({height:t,maxHeight:"100%"})]),qo(r)};_a.width=function(e){return qo({maxWidth:"100%",width:e})},_a.height=function(e){return qo({height:e,maxHeight:"100%"})};var wa={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function Ea(e){return void 0===e&&(e=13),wa[e]?Ea(wa[e]):"number"!=typeof e?e:"calc("+e/13+" * "+Mo("fontSize")+")"}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ka(e){return qo({color:e})}ka.black=ka(Mo("black")),ka.white=ka(Mo("white")),ka.admin=ka(Mo("colorAdmin")),ka.purple=ka(Mo("purple500")),ka.green=ka(Mo("green500")),ka.yellow=ka(Mo("yellow500")),ka.orange=ka(Mo("orange500")),ka.darkGray=ka(Mo("darkGray500")),ka.lightGray=ka(Mo("lightGray500")),ka.text=ka(Mo("colorText")),ka.textInverted=ka(Mo("colorTextInverted"));var Sa={default:qo({color:Mo("colorText"),fontFamily:Mo("fontFamily"),fontWeight:400}),monospace:qo({fontFamily:Mo("fontFamilyMono")})},xa={bold:qo({fontWeight:600}),italic:qo({fontStyle:"italic"}),smallCaps:qo({fontSize:Ea(10),fontWeight:600,textTransform:"uppercase"}),caption:qo({fontSize:Ea(10),fontWeight:600,textTransform:"uppercase",opacity:.5})},Oa={body:qo({fontSize:Ea(13)}),caption:qo({fontSize:Ea(10)}),footnote:qo({fontSize:Ea(11)}),headline:jo(xa.bold,qo({fontSize:Ea(13)})),largeTitle:qo({fontSize:Ea(28)}),subheadline:qo({fontSize:Ea(12)}),title:qo({fontSize:Ea(20)})},Pa={color:ka,size:function(e){return qo({fontSize:Ea(e)})}},Aa={alignment:{left:qo({textAlign:"left"}),center:qo({textAlign:"center"}),right:qo({textAlign:"right"})}},Na=Ca(Ca(Ca(Ca(Ca({},Sa),Oa),xa),Pa),Aa);function Ra(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return Ra=function(){return e},e}function Ta(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return Ta=function(){return e},e}var Ma={};function ja(e){return qo({opacity:e})}Ma.colorBlind=sa,Ma.dark=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(Ra(),Ut,o)},Ma.highContrast=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(Ta(),Vt,o)},ja.subtle=ja(.7),ja.muted=ja(.5),ja.hidden=ja(0);var Ia={absolute:qo({position:"absolute"}),fixed:qo({position:"fixed"}),bottom:qo({bottom:0,position:"absolute"}),bottomLeft:qo({bottom:0,left:0,position:"absolute"}),bottomRight:qo({bottom:0,position:"absolute",right:0}),full:qo({bottom:0,left:0,position:"absolute",right:0,top:0}),left:qo({left:0,position:"absolute"}),relative:qo({position:"relative"}),right:qo({position:"absolute",right:0}),sticky:qo({position:"sticky",top:0}),top:qo({position:"absolute",top:0}),topLeft:qo({left:0,position:"absolute",top:0}),topRight:qo({position:"absolute",right:0,top:0})};function Fa(e){return zt.numeric(e)?e+"px":e}function Da(e){return"0 "+Fa(e)+" "+Fa(2*e)+" 0\n\trgba(0 ,0, 0, "+e/20+")"}function La(e){return qo({margin:Io(e)})}function Ga(e){return qo({padding:Io(e)})}function Ba(){var e=tn(["\n\t\t"," {\n\t\t\t",";\n\t\t}\n\t"]);return Ba=function(){return e},e}La.x=function(e){return qo({marginLeft:Io(e),marginRight:Io(e)})},La.y=function(e){return qo({marginBottom:Io(e),marginTop:Io(e)})},La.top=function(e){return qo({marginTop:Io(e)})},La.bottom=function(e){return qo({marginBottom:Io(e)})},La.left=function(e){return qo({marginLeft:Io(e)})},La.right=function(e){return qo({marginRight:Io(e)})},Ga.x=function(e){return qo({paddingLeft:Io(e),paddingRight:Io(e)})},Ga.y=function(e){return qo({paddingBottom:Io(e),paddingTop:Io(e)})},Ga.top=function(e){return qo({paddingTop:Io(e)})},Ga.bottom=function(e){return qo({paddingBottom:Io(e)})},Ga.left=function(e){return qo({paddingLeft:Io(e)})},Ga.right=function(e){return qo({paddingRight:Io(e)})};var qa=function(e){return this[Ho]=e,this};qa.prototype.getSelector=function(){return'[data-g2-component="'+this[Ho]+'"]'},qa.prototype.css=function(){var e=qo.apply(void 0,arguments);return qo(Ba(),this.getSelector(),e)};function za(e){return"number"==typeof e||"string"==typeof e}function Ha(e,t){if(void 0===t&&(t=0),za(e)){var n=za(t)?t:0;return qo({transform:"translate("+Fa(e)+", "+Fa(n)+")"})}if(zt.plainObject(e)){var r=e.x,o=void 0===r?0:r,a=e.y,i=void 0===a?0:a;return qo({transform:"translate("+Fa(o)+", "+Fa(i)+")"})}return""}Ha.x=function(e){return qo({transform:"translateX("+Fa(e)+")"})},Ha.y=function(e){return qo({transform:"translateY("+Fa(e)+")"})};var Ua={};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Ua.clamp=function(e,t,n){return"max("+t+", min("+n+", "+e+"))"},Ua.color=ba,Ua.space=Io,Ua.px=Fa;var Wa={Tooltip:999999,Popover:9999,Dropdown:9998,Modal:999,ControlFocus:1};function Ya(e,t){return"number"==typeof e?e:"string"!=typeof e?t:(Wa[e]||"number"!=typeof t||(Wa[e]=t),Wa[e])}function Ka(e,t){return qo({zIndex:Ya(e,t)})}Ka.get=function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wa)};var Qa={$:function(e){return new qa(e)},active:function(){return qo({"&:active":qo.apply(void 0,arguments)})},alignment:ea,animation:oa,background:da,border:pa,borderRadius:fa,browsers:va,color:ba,createToken:To,css:qo,flow:Mr,focus:function(){return qo({"&:focus":qo.apply(void 0,arguments)})},font:Na,frame:_a,get:Mo,getTokenValue:function(e){var t=Mo(e).replace("var(","").replace(/\)$/g,"");return window.getComputedStyle(document.documentElement).getPropertyValue(t)},hover:function(){return qo({"&:hover":qo.apply(void 0,arguments)})},margin:La,mode:Ma,offset:Ha,opacity:ja,padding:Ga,position:Ia,rotate:function(e){return qo({transform:"rotate("+e+"deg)"})},scale:function(e){return qo({transform:"scale("+e+")"})},scaleX:function(e){return qo({transform:"scaleX("+e+")"})},scaleY:function(e){return qo({transform:"scaleY("+e+")"})},shadow:function(e){if("number"==typeof e)return qo({boxShadow:Da(e)});if(!zt.plainObject(e))return"";var t=e.color,n=void 0===t?"black":t,r=e.radius,o=void 0===r?10:r,a=e.x,i=void 0===a?0:a,s=e.y,l=void 0===s?5:s,c=le()(n).setAlpha(.3).toRgbString()||"rgba(0, 0, 0, 0.3)";return qo({boxShadow:Fa(i)+" "+Fa(l)+" "+Fa(o)+" "+c})},space:Io,value:Ua,zIndex:Ka};function Za(){var e=He(["\n\tdisplay: block;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n"]);return Za=function(){return e},e}var Xa=qo(Za());function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti,ni="auto",ri="head",oi="middle",ai="none",ii={ellipsis:"…",ellipsizeMode:ni,limit:0,numberOfLines:0};function si(e,t,n,r){if("string"!=typeof e)return"";var o=e.length,a=~~t,i=~~n,s=(0,ie.isNil)(r)?"…":r;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(o-i)}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(){var e=He(["\n\t\t\t-webkit-box-orient: vertical;\n\t\t\t-webkit-line-clamp: ",";\n\t\t\tdisplay: -webkit-box;\n\t\t\toverflow: hidden;\n\t\t"]);return ui=function(){return e},e}var di=Wn()((function(e){var t;if("string"!=typeof e)return"";if(function(e){return"string"==typeof e&&le()(e).isValid()}(e))return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";var n=function(){if("undefined"!=typeof document){if(!ti){var e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),ti=e}return ti}}();if(!n)return"";n.style.background=e;var r=null===(t=window)||void 0===t?void 0:t.getComputedStyle(n).background;return n.style.background="",r||""}));function gi(){var e=He(["\n\ttext-transform: uppercase;\n"]);return gi=function(){return e},e}function pi(){var e=He(["\n\tmark {\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tbox-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,\n\t\t\t0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;\n\t}\n"]);return pi=function(){return e},e}function fi(){var e=He(["\n\tcolor: ",";\n"]);return fi=function(){return e},e}function mi(){var e=He(["\n\tcolor: ",";\n"]);return mi=function(){return e},e}function hi(){var e=He(["\n\tcolor: ",";\n"]);return hi=function(){return e},e}function yi(){var e=He(["\n\tdisplay: block;\n"]);return yi=function(){return e},e}function vi(){var e=He(["\n\tcolor: ",";\n\tline-height: ",";\n"]);return vi=function(){return e},e}var bi=qo(vi(),Qa.color.text,Qa.get("fontLineHeightBase")),_i=qo(yi()),wi=qo(hi(),Qa.color.positive),Ei=qo(mi(),Qa.color.destructive),$i=qo(fi(),Qa.get("colorTextMuted")),Ci=qo(pi(),Qa.get("yellowRgba70")),ki=qo(gi());function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}var xi=__webpack_require__(6928);function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=Wn()((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ti=function(e){var t=e.as,n=e.name,r=void 0===n?"Component":n,o=e.useHook,a=void 0===o?ie.identity:o,i=e.memo,c=void 0===i||i;function u(e,n){var r=a(e);return(0,s.createElement)(Xo,l({as:t||"div"},r,{ref:n}))}return u.displayName=r,Yo(u,r,{memo:c})}({as:"span",useHook:function(t){var n=Uo(t,"Text"),r=n.adjustLineHeightForInnerControls,o=n.align,a=n.children,i=n.className,l=n.color,u=n.ellipsizeMode,d=n.isDestructive,g=void 0!==d&&d,p=n.display,f=n.highlightEscape,m=void 0!==f&&f,h=n.highlightCaseSensitive,y=void 0!==h&&h,v=n.highlightWords,b=n.highlightSanitize,_=n.isBlock,w=void 0!==_&&_,E=n.letterSpacing,$=n.lineHeight,C=n.optimizeReadabilityFor,k=n.size,S=n.truncate,x=void 0!==S&&S,O=n.upperCase,P=void 0!==O&&O,A=n.variant,N=n.weight,R=void 0===N?Qa.get("fontWeight"):N,T=c(n,["adjustLineHeightForInnerControls","align","children","className","color","ellipsizeMode","isDestructive","display","highlightEscape","highlightCaseSensitive","highlightWords","highlightSanitize","isBlock","letterSpacing","lineHeight","optimizeReadabilityFor","size","truncate","upperCase","variant","weight"]),M=a,j=Array.isArray(v),I="caption"===k;j&&(M=function(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,o=void 0===r?-1:r,a=e.activeStyle,i=e.autoEscape,l=e.caseSensitive,c=void 0!==l&&l,u=e.children,d=e.findChunks,g=e.highlightClassName,p=void 0===g?"":g,f=e.highlightStyle,m=void 0===f?{}:f,h=e.highlightTag,y=void 0===h?"mark":h,v=e.sanitize,b=e.searchWords,_=void 0===b?[]:b,w=e.unhighlightClassName,E=void 0===w?"":w,$=e.unhighlightStyle;if(!u)return null;if("string"!=typeof u)return u;var C,k=u,S=(0,xi.findAll)({autoEscape:i,caseSensitive:c,findChunks:d,sanitize:v,searchWords:_,textToHighlight:k}),x=y,O=-1,P="",A=S.map((function(e,t){var r=k.substr(e.start,e.end-e.start);if(e.highlight){var i;O++,i="object"===Si(p)?c?p[r]:(p=Ai(p))[r.toLowerCase()]:p;var l=O===+o;P="".concat(i," ").concat(l?n:""),C=!0===l&&null!==a?Object.assign({},m,a):m;var u=Pi(Pi({},Qa.$("TextHighlight")),{},{children:r,className:P,key:t,style:C});return"string"!=typeof x&&(u.highlightIndex=O),(0,s.createElement)(x,u)}return(0,s.createElement)("span",Pi(Pi({},Qa.$("Text")),{},{children:r,className:E,key:t,style:$}))}));return A}({autoEscape:m,children:a,caseSensitive:y,searchWords:v,sanitize:b}));var F,D=(0,s.useMemo)((function(){var t,n={},a=function(e){var t=e.adjustLineHeightForInnerControls,n=e.lineHeight;if(!(0,ie.isNil)(n))return n;if(t){var r="calc(".concat(Qa.get("controlHeight")," + ").concat(Qa.space(2),")");switch(t){case"large":r="calc(".concat(Qa.get("controlHeightLarge")," + ").concat(Qa.space(2),")");break;case"small":r="calc(".concat(Qa.get("controlHeightSmall")," + ").concat(Qa.space(2),")");break;case"xSmall":r="calc(".concat(Qa.get("controlHeightXSmall")," + ").concat(Qa.space(2),")")}return r}}({lineHeight:$,adjustLineHeightForInnerControls:r});if(n.Base=qo({color:l,display:p,fontSize:Ea(k),fontWeight:R,lineHeight:a,letterSpacing:E,textAlign:o}),n.upperCase=qo({textTransform:"uppercase"}),n.optimalTextColor=null,C){var s="dark"==(t=function(e){var t=di(e);return le().isReadable(t,"#000000")?"#000000":"#ffffff"}(C),"#000000"===t?"dark":"light");n.optimalTextColor=qo(s?{color:Qa.get("black")}:{color:Qa.get("white")})}return jo(bi,n.Base,n.optimalTextColor,g&&Ei,!!j&&Ci,w&&_i,I&&$i,A&&e[A],P&&n.upperCase,i)}),[r,o,i,l,p,w,I,g,j,E,$,C,k,P,A,R]);!0===x&&(F="auto"),!1===x&&(F="none");var L=function(e){var t=Uo(e,"Truncate"),n=t.className,r=t.children,o=t.ellipsis,a=void 0===o?"…":o,i=t.ellipsizeMode,l=void 0===i?ni:i,u=t.limit,d=void 0===u?0:u,g=t.numberOfLines,p=void 0===g?0:g,f=c(t,["className","children","ellipsis","ellipsizeMode","limit","numberOfLines"]),m=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=ei(ei({},ii),r),a=o.ellipsis,i=o.ellipsizeMode,s=o.limit;if(i===ai)return n;switch(i){case ri:e=0,t=s;break;case oi:e=Math.floor(s/2),t=Math.floor(s/2);break;default:e=s,t=0}return i!==ni?si(n,e,t,a):n}("string"==typeof r?r:"",{ellipsis:a,ellipsizeMode:l,limit:d,numberOfLines:p}),h=l===ni,y=(0,s.useMemo)((function(){var e={};return e.numberOfLines=qo(ui(),p),jo(h&&!p&&Xa,h&&!!p&&e.numberOfLines,n)}),[n,p,h]);return ci(ci({},f),{},{className:y,children:m})}(Ri(Ri({},T),{},{className:D,children:a,ellipsizeMode:u||F}));return!x&&Array.isArray(a)&&(M=s.Children.map(a,(function(e){return(0,ie.isPlainObject)(e)&&"props"in e&&(n=["Link"],(t=e)&&("string"==typeof n?Ko(t).includes(n):Array.isArray(n)&&n.some((function(e){return Ko(t).includes(e)}))))?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e;var t,n}))),Ri(Ri({},L),{},{children:x?L.children:M})},name:"Text"});function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ji=1===__webpack_require__(4155).env.COMPONENT_SYSTEM_PHASE?Ti:void 0,Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return null},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Component",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e};return 1===Qo.env.COMPONENT_SYSTEM_PHASE?Yo((function(o,a){var i=Uo(o,n),u=i.__unstableVersion,d=c(i,["__unstableVersion"]);if("next"===u){var g=r(d);return(0,s.createElement)(t,l({},g,{ref:a}))}return(0,s.createElement)(e,l({},o,{ref:a}))}),n):e}(J("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",yt,""),ji,"WPComponentsText",(function(e){var t=e.as,n=e.variant,r=c(e,["as","variant"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:t,css:yt({variant:n}).styles},r)})),Fi=__webpack_require__(4802),Di=()=>(0,s.createElement)(De,{className:"gla-get-started-benefits-card",isBorderless:!0},(0,s.createElement)(qe,null,(0,s.createElement)("div",{className:"gla-get-started-benefits-card__image"},(0,s.createElement)("img",{src:Fi,alt:(0,o.__)("Google Listings & Ads Benefits","google-listings-and-ads"),width:"100%",height:"100%"})),(0,s.createElement)(ze,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-benefits-card__title"},(0,s.createInterpolateElement)((0,o.__)("Increase clicks by <strong>50%</strong>","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)})),(0,s.createElement)(Ii,{variant:"body",className:"gla-get-started-benefits-card__description"},(0,o.__)("Using free listings and ads together increased clicks by 50% and doubled impressions. Small-to-medium merchants saw the largest share of the increases.","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-benefits-card__hint"},(0,o.__)("Source: Google Internal Data, July 2020","google-listings-and-ads"))))),Li=(0,s.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),o=d()("components-flex__block",n);return(0,s.createElement)(re,l({},r,{className:o,ref:t}))}));function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qi={isBorderless:!1,isShady:!1,size:"medium"},zi=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=Bi(Bi(Bi({},qi),p()),e),a=o.isBorderless,i=o.size,u=d()("components-card__header",a&&"is-borderless",n&&"is-shady",i&&"is-size-".concat(i),t);return(0,s.createElement)(Ae,l({},r,{className:u}))},Hi=__webpack_require__(1704);const Ui=e=>{let{quote:t,name:n}=e;return(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Hi,alt:(0,o.__)("An image of a quote.","google-listings-and-ads"),width:"34",height:"34"}),(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__content",variant:"body"},t),(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__name"},n))};var Vi=()=>(0,s.createElement)(De,{className:"gla-get-started-customer-quotes-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__title",variant:"title.medium"},(0,o.__)("21,000+ WooCommerce store owners like you already list products on Google for free","google-listings-and-ads"))),(0,s.createElement)(ae,{gap:0},(0,s.createElement)(Ui,{quote:(0,o.__)("Thank you Google and WooCommerce for creating this app. It’s so simple to use and connect your products to Merchant Center.","google-listings-and-ads"),name:(0,o.__)("joshualukewhite","google-listings-and-ads")}),(0,s.createElement)(Ui,{quote:(0,o.__)("It does everything smoothly. Perfect and must need add-on from WooCommerce. Some things are just “essentials”.","google-listings-and-ads"),name:(0,o.__)("Anonymous","google-listings-and-ads")}))),Wi=function(e){var t=e.label,n=e.children;return(0,s.createElement)("div",{className:"components-panel__header"},t&&(0,s.createElement)("h2",null,t),n)},Yi=(0,s.forwardRef)((function(e,t){var n=e.header,r=e.className,o=e.children,a=d()(r,"components-panel");return(0,s.createElement)("div",{className:a,ref:t},n&&(0,s.createElement)(Wi,{label:n}),o)}));function Ki(e){var t=Et((0,s.useState)((function(){return!(!e||"undefined"==typeof window||!window.matchMedia(e).matches)})),2),n=t[0],r=t[1];return(0,s.useEffect)((function(){if(e){var t=function(){return r(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&n}var Qi=__webpack_require__(4155),Zi="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,Xi=Qi.env.FORCE_REDUCED_MOTION||Zi?function(){return!0}:function(){return Ki("(prefers-reduced-motion: reduce)")};function Ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ts=function(e){return(0,s.createElement)("circle",e)},ns=function(e){return(0,s.createElement)("path",e)},rs=function(e){var t=e.className,n=e.isPressed,r=es(es({},c(e,["className","isPressed"])),{},{className:d()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1});return(0,s.createElement)("svg",r)},os=(0,s.createElement)(rs,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(ns,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),as=(0,s.createElement)(rs,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(ns,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),is=window.wp.deprecated,ss=__webpack_require__.n(is),ls=window.wp.dom,cs=window.wp.keycodes,us={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ds={">=":"min-width","<":"max-width"},gs={">=":function(e,t){return t>=e},"<":function(e,t){return t<e}},ps=(0,s.createContext)(null),fs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=(0,s.useContext)(ps),r=!n&&"(".concat(ds[t],": ").concat(us[e],"px)"),o=Ki(r);return n?gs[t](us[e],n):o};fs.__experimentalWidthProvider=ps.Provider;var ms=fs,hs=__webpack_require__(5464),ys=__webpack_require__.n(hs)(),vs=function(){return(0,s.useCallback)((function(e){e&&e.addEventListener("keydown",(function(t){if(t.keyCode===cs.TAB){var n=ls.focus.tabbable.find(e);if(n.length){var r=n[0],o=n[n.length-1];t.shiftKey&&t.target===r?(t.preventDefault(),o.focus()):(t.shiftKey||t.target!==o)&&n.includes(t.target)||(t.preventDefault(),r.focus())}}}))}),[])},bs=function(e){var t=(0,s.useRef)(),n=(0,s.useRef)(),r=(0,s.useRef)(e);return(0,s.useEffect)((function(){r.current=e}),[e]),(0,s.useCallback)((function(e){if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){var o=t.current.contains(t.current.ownerDocument.activeElement);if(t.current.isConnected&&!o)return;r.current?r.current():n.current.focus()}}),[])};function _s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=(0,s.useRef)(e);return(0,s.useEffect)((function(){t.current=e}),[e]),(0,s.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=ls.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}var ws=["button","submit"];function Es(e){var t=(0,s.useRef)(e);(0,s.useEffect)((function(){t.current=e}),[e]);var n=(0,s.useRef)(!1),r=(0,s.useRef)(),o=(0,s.useCallback)((function(){clearTimeout(r.current)}),[]);(0,s.useEffect)((function(){return function(){return o()}}),[]),(0,s.useEffect)((function(){e||o()}),[e,o]);var a=(0,s.useCallback)((function(e){var t=e.type,r=e.target;(0,ie.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,ie.includes)(ws,e.type)}return!1}(r)&&(n.current=!0)}),[]),i=(0,s.useCallback)((function(e){e.persist(),n.current||(r.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:a,onMouseUp:a,onTouchStart:a,onTouchEnd:a,onBlur:i}}var $s=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ss(e,t,n,r,a,i,s,l){var c=t.width;"left"===n&&(0,o.isRTL)()?n="right":"right"===n&&(0,o.isRTL)()&&(n="left"),"left"===r&&(0,o.isRTL)()?r="right":"right"===r&&(0,o.isRTL)()&&(r="left");var u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},g=e.left;"right"===r?g=e.right:"middle"!==i&&(g=u);var p=e.right;"left"===r?p=e.left:"middle"!==i&&(p=u);var f,m={popoverLeft:g,contentWidth:g-c>0?c:g},h={popoverLeft:p,contentWidth:p+c>window.innerWidth?window.innerWidth-p:c},y=n,v=null;if(!a&&!l)if("center"===n&&d.contentWidth===c)y="center";else if("left"===n&&m.contentWidth===c)y="left";else if("right"===n&&h.contentWidth===c)y="right";else{var b="left"==(y=m.contentWidth>h.contentWidth?"left":"right")?m.contentWidth:h.contentWidth;c>window.innerWidth&&(v=window.innerWidth),b!==c&&(y="center",d.popoverLeft=window.innerWidth/2)}if(f="center"===y?d.popoverLeft:"left"===y?m.popoverLeft:h.popoverLeft,s){var _=s.getBoundingClientRect();f=Math.min(f,_.right-c)}return{xAxis:y,popoverLeft:f,contentWidth:v}}function xs(e,t,n,r,o,a,i,s){var l=t.height;if(o){var c=o.getBoundingClientRect().top+l-i;if(e.top<=c)return{yAxis:n,popoverTop:Math.min(e.bottom,c)}}var u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);var d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},g={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l},f=n,m=null;if(!o&&!s)if("middle"===n&&d.contentHeight===l)f="middle";else if("top"===n&&g.contentHeight===l)f="top";else if("bottom"===n&&p.contentHeight===l)f="bottom";else{var h="top"==(f=g.contentHeight>p.contentHeight?"top":"bottom")?g.contentHeight:p.contentHeight;m=h!==l?h:null}return{yAxis:f,popoverTop:"middle"===f?d.popoverTop:"top"===f?g.popoverTop:p.popoverTop,contentHeight:m}}function Os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ps(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 As(e,t,n){return t&&Ps(e.prototype,t),n&&Ps(e,n),e}function Ns(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ts(e,t){if(t&&("object"===Si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rs(e)}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ms(e);if(t){var o=Ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ts(this,n)}}var Is=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,o=void 0===r?"lockscroll":r,a=0,i=0;function l(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](o),n.documentElement.classList[r](o),e||(t.scrollTop=i)}function c(){0===a&&l(!0),++a}function u(){1===a&&l(!1),--a}return function(e){Ns(n,e);var t=js(n);function n(){return Os(this,n),t.apply(this,arguments)}return As(n,[{key:"componentDidMount",value:function(){c()}},{key:"componentWillUnmount",value:function(){u()}},{key:"render",value:function(){return null}}]),n}(s.Component)}();function Fs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ms(e)););return e}function Ds(){return Ds="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Fs(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ds.apply(this,arguments)}function Ls(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||Pn(e)||_t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}window.wp.warning;var Gs=__webpack_require__(4155),Bs=(0,s.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==Gs&&Gs.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}});var qs=(0,s.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),zs=(qs.Provider,qs.Consumer);s.Component;var Hs=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Rs(e)),e}return As(o,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||Ds(Ms(o.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,i=(0,ie.map)(a(n,this),(function(e){var t=e.occurrence,n=(0,ie.isFunction)(e.children)?e.children(o):e.children;return s.Children.map(n,(function(e,n){if(!e||(0,ie.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return(0,s.cloneElement)(e,{key:r})}))})).filter((0,ie.negate)(s.isEmptyElement));return(0,s.createElement)(s.Fragment,null,(0,ie.isFunction)(t)?t(i):i)}}]),o}(s.Component),Us=function(e){return(0,s.createElement)(zs,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,o=t.getFills;return(0,s.createElement)(Hs,l({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))}))},Vs=0;function Ws(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=function(e){var t=(0,s.useContext)(qs),n=t.getSlot,r=t.subscribe,o=Et((0,s.useState)(n(e)),2),a=o[0],i=o[1];return(0,s.useEffect)((function(){return i(n(e)),r((function(){i(n(e))}))}),[e]),a}(t),i=(0,s.useRef)({name:t,children:n});return i.current.occurrence||(i.current.occurrence=++Vs),(0,s.useLayoutEffect)((function(){return r(t,i.current),function(){return o(t,i.current)}}),[]),(0,s.useLayoutEffect)((function(){i.current.children=n,a&&a.forceUpdate()}),[n]),(0,s.useLayoutEffect)((function(){t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,r(t,i.current))}),[t]),a&&a.node?((0,ie.isFunction)(n)&&(n=n(a.props.fillProps)),(0,s.createPortal)(n,a.node)):null}var Ys=function(e){return(0,s.createElement)(zs,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return(0,s.createElement)(Ws,l({},e,{registerFill:n,unregisterFill:r}))}))};function Ks(e){var t=e.name,n=e.fillProps,r=void 0===n?{}:n,o=e.as,a=void 0===o?"div":o,i=c(e,["name","fillProps","as"]),u=(0,s.useContext)(Bs),d=(0,s.useRef)();return(0,s.useLayoutEffect)((function(){return u.registerSlot(t,d,r),function(){u.unregisterSlot(t,d)}}),[u.registerSlot,u.unregisterSlot,t]),(0,s.useLayoutEffect)((function(){u.updateSlot(t,r)})),(0,s.createElement)(a,l({ref:d},i))}function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xs(e){var t=(0,s.useContext)(Bs),n=t.slots[e]||{},r=t.fills[e],o=(0,s.useMemo)((function(){return r||[]}),[r]),a=(0,s.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),i=(0,s.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=(0,s.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),c=(0,s.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return Zs(Zs({},n),{},{updateSlot:a,unregisterSlot:i,fills:o,registerFill:l,unregisterFill:c})}function Js(e){var t,n=e.name,r=e.children,o=Xs(n),a=(0,s.useRef)({rerender:(t=Et((0,s.useState)({}),2)[1],function(){return t({})})});return(0,s.useEffect)((function(){return o.registerFill(a),function(){o.unregisterFill(a)}}),[o.registerFill,o.unregisterFill]),o.ref&&o.ref.current?("function"==typeof r&&(r=r(o.fillProps)),(0,s.createPortal)(r,o.ref.current)):null}function el(e){var t=e.bubblesVirtually,n=c(e,["bubblesVirtually"]);return t?(0,s.createElement)(Ks,n):(0,s.createElement)(Us,n)}function tl(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ys,e),(0,s.createElement)(Js,e))}var nl="Popover";function rl(e,t){var n=t.defaultView,r=n.frameElement;if(!r)return e;var o=r.getBoundingClientRect();return new n.DOMRect(e.left+o.left,e.top+o.top,e.width,e.height)}function ol(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,s=r.paddingRight,l=o?parseInt(o,10):0,c=a?parseInt(a,10):0,u=i?parseInt(i,10):0,d=s?parseInt(s,10):0;return{x:e.left+u,y:e.top+l,width:e.width-u-d,height:e.height-l-c,left:e.left+u,right:e.right-d,top:e.top+l,bottom:e.bottom-c}}function al(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function sl(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ll=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,o=e.children,a=e.className,i=e.noArrow,u=void 0===i||i,g=e.isAlternate,p=e.position,m=void 0===p?"bottom right":p,h=(e.range,e.focusOnMount),y=void 0===h?"firstElement":h,v=e.anchorRef,b=e.shouldAnchorIncludePadding,_=e.anchorRect,w=e.getAnchorRect,E=e.expandOnMobile,$=e.animate,C=void 0===$||$,k=e.onClickOutside,S=e.onFocusOutside,x=e.__unstableStickyBoundaryElement,O=e.__unstableSlotName,P=void 0===O?nl:O,A=e.__unstableObserveElement,N=e.__unstableBoundaryParent,R=e.__unstableForcePosition,T=c(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableStickyBoundaryElement","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent","__unstableForcePosition"]),M=(0,s.useRef)(null),j=(0,s.useRef)(null),I=(0,s.useRef)(),F=ms("medium","<"),D=Et((0,s.useState)(),2),L=D[0],G=D[1],B=Xs(P),q=E&&F,z=Et(ys(),2),H=z[0],U=z[1];u=q||u,(0,s.useLayoutEffect)((function(){if(q)return sl(I.current,"is-without-arrow",u),sl(I.current,"is-alternate",g),al(I.current,"data-x-axis"),al(I.current,"data-y-axis"),il(I.current,"top"),il(I.current,"left"),il(j.current,"maxHeight"),void il(j.current,"maxWidth");var e=function(){if(I.current&&j.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return rl((0,ls.getRectangleFromRange)(r),r.endContainer.ownerDocument);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){var a=rl(r.getBoundingClientRect(),r.ownerDocument);return o?a:ol(a,r)}var i=r.top,s=r.bottom,l=i.getBoundingClientRect(),c=s.getBoundingClientRect(),u=rl(new window.DOMRect(l.left,l.top,l.width,c.bottom-l.top),i.ownerDocument);return o?u:ol(u,r)}if(e.current){var d=e.current.parentNode,g=d.getBoundingClientRect();return o?g:ol(g,d)}}(M,_,w,v,b);if(e){var t,n,r=I.current,o=r.offsetParent,a=r.ownerDocument,i=0;if(o&&o!==a.body){var s=o.getBoundingClientRect();i=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}N&&(t=null===(n=I.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode);var l=function(e,t){var n=arguments.length>3?arguments[3]:void 0,r=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,i=Et((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top").split(" "),3),s=i[0],l=i[1],c=void 0===l?"center":l,u=i[2],d=xs(e,t,s,u,n,0,r,a);return ks(ks({},Ss(e,t,c,u,n,d.yAxis,o,a)),d)}(e,U.height?U:j.current.getBoundingClientRect(),m,x,I.current,i,t,R),c=l.popoverTop,d=l.popoverLeft,p=l.xAxis,f=l.yAxis,h=l.contentHeight,y=l.contentWidth;"number"==typeof c&&"number"==typeof d&&(il(I.current,"top",c+"px"),il(I.current,"left",d+"px")),sl(I.current,"is-without-arrow",u||"center"===p&&"middle"===f),sl(I.current,"is-alternate",g),al(I.current,"data-x-axis",p),al(I.current,"data-y-axis",f),il(j.current,"maxHeight","number"==typeof h?h+"px":""),il(j.current,"maxWidth","number"==typeof y?y+"px":""),G(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))}}};e();var t,n=I.current.ownerDocument,r=n.defaultView,o=r.setInterval(e,500),a=function(){r.cancelAnimationFrame(t),t=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);var i,s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(v);return s&&s!==n&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),A&&(i=new r.MutationObserver(e)).observe(A,{attributes:!0}),function(){r.clearInterval(o),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(t),s&&s!==n&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),i&&i.disconnect()}}),[q,_,w,v,b,m,U,x,A,N]);var V=vs(),W=bs(),Y=_s(y),K=Es((function(e){if(S)S(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),ss()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()})),Q=[I,y?V:null,y?W:null,y?Y:null],Z=(0,s.useCallback)(nn(Q),Q),X=Boolean(C&&L)&&function(e){if("loading"===e.type)return d()("components-animate__loading");var t=e.type,n=e.origin,r=void 0===n?function(e){return"appear"===e?"top":"left"}(t):n;if("appear"===t){var o,a=Et(r.split(" "),2),i=a[0],s=a[1],l=void 0===s?"center":s;return d()("components-animate__appear",(f(o={},"is-from-"+l,"center"!==l),f(o,"is-from-"+i,"middle"!==i),o))}return"slide-in"===t?d()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:L}),J=(0,s.createElement)("div",l({className:d()("components-popover",a,X,{"is-expanded":q,"is-without-arrow":u,"is-alternate":g})},T,{onKeyDown:function(e){e.keyCode===cs.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)}},K,{ref:Z,tabIndex:"-1"}),q&&(0,s.createElement)(Is,null),q&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},t),(0,s.createElement)(xl,{className:"components-popover__close",icon:$s,onClick:n})),(0,s.createElement)("div",{ref:j,className:"components-popover__content"},(0,s.createElement)("div",{style:{position:"relative"}},H,o)));return B.ref&&(J=(0,s.createElement)(tl,{name:P},J)),v||_?J:(0,s.createElement)("span",{ref:M},J)};ll.Slot=function(e){var t=e.name,n=void 0===t?nl:t;return(0,s.createElement)(el,{bubblesVirtually:!0,name:n,className:"popover-slot"})};var cl=ll,ul=function(e){var t,n,r=e.shortcut,o=e.className;return r?((0,ie.isString)(r)&&(t=r),(0,ie.isObject)(r)&&(t=r.display,n=r.ariaLabel),(0,s.createElement)("span",{className:o,"aria-label":n},t)):null};function dl(e,t){var n=(0,m.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,m.useRef)(!0),o=(0,m.useRef)(n),a=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,m.useEffect)((function(){r.current=!1,o.current=a}),[a]),a.result}function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fl=(0,s.createElement)("div",{className:"event-catcher"}),ml=function(e){var t=e.eventHandlers,n=e.child,r=e.childrenWithPopover;return(0,s.cloneElement)((0,s.createElement)("span",{className:"disabled-element-wrapper"},(0,s.cloneElement)(fl,t),(0,s.cloneElement)(n,{children:r}),","),t)},hl=function(e){var t=e.child,n=e.eventHandlers,r=e.childrenWithPopover;return(0,s.cloneElement)(t,pl(pl({},n),{},{children:r}))},yl=function(e,t,n){if(1===s.Children.count(e)){var r=s.Children.only(e);"function"==typeof r.props[t]&&r.props[t](n)}},vl=function(e){var t=e.children,n=e.position,r=e.text,o=e.shortcut,a=Et((0,s.useState)(!1),2),i=a[0],l=a[1],c=Et((0,s.useState)(!1),2),u=c[0],d=c[1],g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dl((function(){return ie.debounce.apply(void 0,t)}),t);return(0,s.useEffect)((function(){return function(){return r.cancel()}}),[r]),r}(d,700),p=function(e){yl(t,"onMouseDown",e),document.addEventListener("mouseup",h),l(!0)},f=function(e){yl(t,"onMouseUp",e),document.removeEventListener("mouseup",h),l(!1)},m=function(e){return"mouseUp"===e?f:"mouseDown"===e?p:void 0},h=m("mouseUp"),y=function(e,n){return function(r){if(yl(t,e,r),!(r.currentTarget.disabled||"focus"===r.type&&i)){g.cancel();var o=(0,ie.includes)(["focus","mouseenter"],r.type);o!==u&&(n?g(o):d(o))}}},v=function(){g.cancel()};if((0,s.useEffect)((function(){return v}),[]),1!==s.Children.count(t))return t;var b={onMouseEnter:y("onMouseEnter",!0),onMouseLeave:y("onMouseLeave"),onClick:y("onClick"),onFocus:y("onFocus"),onBlur:y("onBlur"),onMouseDown:m("mouseDown")},_=s.Children.only(t),w=_.props,E=w.children,$=w.disabled?ml:hl,C=function(e){var t=e.grandchildren,n=e.isOver,r=e.position,o=e.text,a=e.shortcut;return(0,s.concatChildren)(t,n&&(0,s.createElement)(cl,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,s.createElement)(ul,{className:"components-tooltip__shortcut",shortcut:a})))}(pl({grandchildren:E},{isOver:u,position:n,text:r,shortcut:o}));return $({child:_,eventHandlers:b,childrenWithPopover:C})},bl=function(e){var t=e.icon,n=e.className,r=c(e,["icon","className"]),o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,s.createElement)("span",l({className:o},r))};function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var El=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,o=c(e,["icon","size"]);if("string"==typeof n)return(0,s.createElement)(bl,l({icon:n},o));if(n&&bl===n.type)return(0,s.cloneElement)(n,wl({},o));var a=r||24;if("function"==typeof n)return n.prototype instanceof s.Component?(0,s.createElement)(n,wl({size:a},o)):n(wl({size:a},o));if(n&&("svg"===n.type||n.type===rs)){var i=wl(wl({width:a,height:a},n.props),o);return(0,s.createElement)(rs,i)}return(0,s.isValidElement)(n)?(0,s.cloneElement)(n,wl({size:a},o)):n};function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cl=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=c(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=c(e,["as"]);return"function"==typeof r.children?r.children(r):(0,s.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:d()("components-visually-hidden",r)},o))};function kl(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}var Sl=["onMouseDown","onClick"],xl=(0,s.forwardRef)((function(e,t){var n=e.href,r=e.target,o=e.isPrimary,a=e.isSmall,i=e.isTertiary,u=e.isPressed,g=e.isBusy,p=e.isDefault,f=e.isSecondary,m=e.isLink,h=e.isDestructive,y=e.className,v=e.disabled,b=e.icon,_=e.iconPosition,w=void 0===_?"left":_,E=e.iconSize,$=e.showTooltip,C=e.tooltipPosition,k=e.shortcut,S=e.label,x=e.children,O=e.text,P=e.__experimentalIsFocusable,A=e.describedBy,N=c(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconPosition","iconSize","showTooltip","tooltipPosition","shortcut","label","children","text","__experimentalIsFocusable","describedBy"]);p&&ss()("Button isDefault prop",{alternative:"isSecondary"});var R=d()("components-button",y,{"is-secondary":p||f,"is-primary":o,"is-small":a,"is-tertiary":i,"is-pressed":u,"is-busy":g,"is-link":m,"is-destructive":h,"has-text":!!b&&!!x,"has-icon":!!b}),T=v&&!P,M=void 0===n||T?"button":"a",j="a"===M?{href:n,target:r}:{type:"button",disabled:T,"aria-pressed":u};if(v&&P){j["aria-disabled"]=!0;var I,F=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kl(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)?kl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}(Sl);try{for(F.s();!(I=F.n()).done;)N[I.value]=function(e){e.stopPropagation(),e.preventDefault()}}catch(e){F.e(e)}finally{F.f()}}var D=!T&&($&&S||k||!!S&&(!x||(0,ie.isArray)(x)&&!x.length)&&!1!==$),L=A?(0,ie.uniqueId)():null,G=N["aria-describedby"]||L,B=(0,s.createElement)(M,l({},j,N,{className:R,"aria-label":N["aria-label"]||S,"aria-describedby":G,ref:t}),b&&"left"===w&&(0,s.createElement)(El,{icon:b,size:E}),O&&(0,s.createElement)(s.Fragment,null,O),b&&"right"===w&&(0,s.createElement)(El,{icon:b,size:E}),x);return D?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(vl,{text:A||S,shortcut:k,position:C},B),A&&(0,s.createElement)(Cl,null,(0,s.createElement)("span",{id:L},A))):(0,s.createElement)(s.Fragment,null,B,A&&(0,s.createElement)(Cl,null,(0,s.createElement)("span",{id:L},A)))}));function Ol(e){return null!=e}function Pl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(Ol))&&void 0!==e?e:n}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rl={initial:void 0,fallback:""},Tl=function(e,t){var n=(0,s.useRef)(!1);(0,s.useEffect)((function(){if(n.current)return e();n.current=!0}),t)},Ml=(0,s.forwardRef)((function(e,t){var n=e.isOpened,r=e.icon,o=e.title,a=c(e,["isOpened","icon","title"]);return o?(0,s.createElement)("h2",{className:"components-panel__body-title"},(0,s.createElement)(xl,l({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),(0,s.createElement)("span",{"aria-hidden":"true"},(0,s.createElement)(El,{className:"components-panel__arrow",icon:n?os:as})),o,r&&(0,s.createElement)(El,{icon:r,className:"components-panel__icon",size:20}))):null})),jl=(0,s.forwardRef)((function(e,t){var n=e.buttonProps,r=void 0===n?{}:n,o=e.children,a=e.className,i=e.icon,c=e.initialOpen,u=e.onToggle,g=void 0===u?ie.noop:u,p=e.opened,f=e.title,m=e.scrollAfterOpen,h=void 0===m||m,y=Et(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rl,n=Nl(Nl({},Rl),t),r=n.initial,o=n.fallback,a=Et((0,s.useState)(e),2),i=a[0],l=a[1],c=Ol(e);return(0,s.useEffect)((function(){c&&i&&l(void 0)}),[c,i]),[Pl([e,i,r],o),function(e){c||l(e)}]}(p,{initial:void 0===c||c}),2),v=y[0],b=y[1],_=(0,s.useRef)(),w=Xi()?"auto":"smooth",E=(0,s.useRef)();E.current=h,Tl((function(){var e;v&&E.current&&null!==(e=_.current)&&void 0!==e&&e.scrollIntoView&&_.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:w})}),[v,w]);var $=d()("components-panel__body",a,{"is-opened":v});return(0,s.createElement)("div",{className:$,ref:nn([_,t])},(0,s.createElement)(Ml,l({icon:i,isOpened:v,onClick:function(e){e.preventDefault();var t=!v;b(t),g(t)},title:f},r)),"function"==typeof o?o({opened:v}):v&&o)}));jl.displayName="PanelBody";var Il=jl,Fl=function(e){var t=e.className,n=e.children,r=d()("components-panel__row",t);return(0,s.createElement)("div",{className:r},n)},Dl=__webpack_require__(4940);const Ll=(e,t,n)=>r=>{(0,Dl.recordEvent)(e,{id:t,action:r?"expand":"collapse",context:n})};function Gl(e){let{trackName:t,faqItems:n,className:r,context:a}=e;return(0,s.createElement)(Yi,{className:d()("gla-faqs-panel",r),header:(0,o.__)("Frequently asked questions","google-listings-and-ads")},n.map((e=>{let{trackId:n,question:r,answer:o}=e;return(0,s.createElement)(Il,{key:n,title:r,initialOpen:!1,onToggle:Ll(t,n,a)},(0,s.createElement)(Fl,null,o))})))}var Bl=window.wc.components,ql=e=>{const{eventName:t,eventProps:n,onClick:r=(()=>{}),...o}=e;return(0,s.createElement)(Bl.Link,l({},o,{onClick:e=>{t&&(0,Dl.recordEvent)(t,n),r(e)}}))},zl=e=>{const{context:t,linkId:n,href:r,...o}=e;return(0,s.createElement)(ql,l({eventProps:{context:t,link_id:n,href:r},type:"external",target:"_blank",href:r},o,{eventName:"gla_documentation_link_click"}))};const Hl=[{trackId:"what-do-i-need-to-get-started",question:(0,o.__)("What do I need to get started?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("In order to sync your WooCommerce store with Google and begin showcasing your products online, you will need to provide the following during setup; Google account access, target audience, shipping information, tax rate information (required for US only), and ensure your store is running on a compatible PHP version. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"general-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/#general-requirements"})}))},{trackId:"what-if-i-already-have-free-listings",question:(0,o.__)("What if I already have Google listings or ads set up? Will syncing my store replace my current Google listings?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Once you link an existing account to connect your store, your Shopping ads and free listings will stop running. You’ll need to re-upload your feed and product data in order to run Shopping ads and show free listings.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Learn more about claiming URLs <link>here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"claiming-urls",href:"https://support.google.com/merchants/answer/7527436"})})),(0,s.createElement)("p",null,(0,o.__)("If you have an existing Content API feed, it will not be changed, overwritten or deleted by this WooCommerce integration. Instead, products will be added to your existing Content API feed.","google-listings-and-ads")))},{trackId:"is-my-store-ready-to-sync-with-google",question:(0,o.__)("Is my store ready to sync with Google?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("In order to meet the Google Merchant Center requirements make sure your website has the following; secure checkout process and payment information, refund and return policies, billing terms and conditions, business contact information. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"google-merchant-center-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/#google-merchant-center-requirements"})}))},{trackId:"what-is-a-performance-max-campaign",question:(0,o.__)("What is a Performance Max campaign?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Performance Max campaigns make it easy to connect your WooCommerce store to Google Shopping ads so you can showcase your products to shoppers across Google Search, Maps, Shopping, YouTube, Gmail, the Display Network and Discover feed to drive traffic and sales for your store. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"performance-max",href:"https://woocommerce.com/document/google-listings-and-ads/#google-performance-max-campaigns"})}))},{trackId:"what-are-free-listings",question:(0,o.__)("What are free listings?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Google Free Listings allows stores to showcase eligible products to shoppers looking for what you offer and drive traffic to your store with Google’s free listings on the Shopping tab. Your products can also appear on Google Search, Google Images, and Gmail if you’re selling in the United States. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"free-listings",href:"https://woocommerce.com/document/google-listings-and-ads/#free-listings-on-google"})}))},{trackId:"where-to-track-free-listings-and-performance-max-campaign-performance",question:(0,o.__)("Where can I track my free listings and Performance Max campaign performance?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Once your free listings and Performance Max campaigns are set up, you will be able to track your performance straight from your WooCommerce dashboard. You can view your reports yearly, quarterly, monthly, weekly, or daily. The following metrics will be visible within your report: conversions, clicks, impressions, total sales and total spend. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"campaign-analytics",href:"https://woocommerce.com/document/google-listings-and-ads/#getting-started-with-campaign-analytics"})}))},{trackId:"how-to-sync-products-to-google-free-listings",question:(0,o.__)("How do I sync my products to Google free listings?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,o.__)("The Google Listings and Ads plugin allows you to upload your store and product data to Google. Your products will sync automatically to make relevant information available for free listings, Google Ads, and other Google services. You can create a new Merchant Center account or link an existing account to connect your store and list products across Google.","google-listings-and-ads"))},{trackId:"can-i-run-both-shopping-ads-and-free-listings-campaigns",question:(0,o.__)("Can I run both Shopping ads and free listings campaigns at the same time?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,o.__)("Yes, you can run both at the same time, and we recommend it! In the US, advertisers running free listings and ads together have seen an average of over 50% increase in clicks and over 100% increase in impressions on both free listings and ads on the Shopping tab. Your store is automatically opted into free listings automatically and can choose to run a paid Performance Max campaign.","google-listings-and-ads"))},{trackId:"how-can-i-get-the-ad-credit-offer",question:(0,o.__)("How can I get the $500 ad credit offer?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Create a new Google Ads account through Google Listings & Ads and a promotional code will be automatically applied to your account. You’ll have 60 days to spend $500 to qualify for the $500 ads credit.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Ad credit amounts vary by country and region. Full terms and conditions can be found <link>here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"terms-and-conditions-of-google-ads-coupons",href:"https://www.google.com/ads/coupons/terms/"})})))}];var Ul=()=>(0,s.createElement)(Gl,{className:"gla-get-started-faqs",trackName:"gla_faq",context:"get-started",faqItems:Hl}),Vl=__webpack_require__(2454),Wl=__webpack_require__(9648),Yl=__webpack_require__(434);const Kl=e=>{let{linkId:t,href:n}=e;return(0,s.createElement)(Ii,{className:"gla-get-started-features-card__learn-more",variant:"body"},(0,s.createInterpolateElement)((0,o.__)("<link>Learn More →</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started",linkId:t,href:n})}))};var Ql=()=>(0,s.createElement)(De,{className:"gla-get-started-features-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{className:"gla-get-started-features-card__title",variant:"title.medium"},(0,o.__)("49% of shoppers surveyed say they use Google to discover or find a new item or product","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__description",variant:"body"},(0,o.__)("With Google Listings & Ads, connect with the right shoppers at the right moment when they’re looking to buy products like yours.","google-listings-and-ads"))),(0,s.createElement)(ae,{gap:0},(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Vl,alt:(0,o.__)("Drawing of WooCommerce and Google","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Show products automatically on Google for free","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("When your products are added and approved, they’ll be eligible for free listings, reaching shoppers across Google’s network.","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-free-listing-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#free-listings-on-google"})),(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Wl,alt:(0,o.__)("Drawing of a mobile and product ads","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Promote products and drive more sales with paid ads","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("Connect your Google Ads account, choose a budget, and Google will optimize your ads so they appear at the right time and place. ","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-google-ads-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#google-performance-max-campaigns"})),(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Yl,alt:(0,o.__)("Drawing of a bar and line charts heading up","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Track performance straight from your store dashboard","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("Real-time reporting all within your WooCommerce dashboard means you know how your campaigns are performing at all times.","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-dashboard-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#getting-started-with-campaign-analytics"}))));const Zl=window.glaData,Xl="report-source",Jl="paid",ec="free",tc=Jl,nc="programs",rc="submission-success",oc="campaign-creation-success",ac="gla-can-onboarding-setup-ces-prompt-open",ic="GOOGLE_DISCONNECTED",sc="flat_rate",lc="product",cc="account",uc="request-review";var dc=__webpack_require__(4682),gc=e=>{const{className:t,disabled:n,loading:r,eventName:o,eventProps:a,text:i,onClick:c=(()=>{}),...u}=e,g=["app-button",t];let p;return r&&(p=(0,s.createElement)(Bl.Spinner,null)),i&&(p=(0,s.createElement)(s.Fragment,null,r&&(0,s.createElement)(Bl.Spinner,null),i),u.icon&&g.push("app-button--icon-with-text"),"right"===u.iconPosition&&g.push("app-button--icon-position-right")),(0,s.createElement)(xl,l({className:d()(...g),disabled:n||r,text:p,onClick:function(){o&&(0,Dl.recordEvent)(o,a),c(...arguments)}},u))},pc=window.wc.navigation;const fc="/google/dashboard",mc="/google/settings",hc="/free-listings/edit",yc="/campaigns/edit",vc="/campaigns/create",bc="/edit-phone-number",_c="/edit-store-address",wc="/reconnect-wpcom-account",Ec="/reconnect-google-account",$c=fc,Cc=mc,kc=()=>(0,pc.getNewPath)({subpath:vc},$c),Sc=()=>(0,pc.getNewPath)(null,"/google/setup-mc",null),xc=()=>(0,pc.getNewPath)(null,$c,null),Oc=()=>(0,pc.getNewPath)(null,Cc,null),Pc=e=>{let t;switch(e){case"JETPACK_DISCONNECTED":t=wc;break;case ic:t=Ec;break;default:return}return(0,pc.getNewPath)({subpath:t},Cc,null)};var Ac=()=>{const e=!Zl.mcSupportedLanguage;return(0,s.createElement)(De,{className:"gla-get-started-card",isBorderless:!0},(0,s.createElement)(ze,{className:"motivation-image"},(0,s.createElement)("img",{src:dc,alt:(0,o.__)("Google Shopping search results example","google-listings-and-ads"),width:"279",height:"185"})),(0,s.createElement)(qe,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-card__title"},(0,o.__)("Get your products in front of more shoppers with Google Listings & Ads","google-listings-and-ads")),(0,s.createElement)(gc,{isPrimary:!0,disabled:e,href:Sc(),eventName:"gla_setup_mc",eventProps:{target:"set_up_free_listings",trigger:"click",context:"get-started"}},(0,o.__)("Start listing products →","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-card__terms-notice"},(0,s.createInterpolateElement)((0,o.__)("By clicking ‘Start listing products‘, you agree to our <link>Terms of Service.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started",linkId:"wp-terms-of-service",href:"https://wordpress.com/tos/"})}))))},Nc=function(e){return(0,s.createElement)("div",{className:"components-tip"},(0,s.createElement)(rs,{width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),(0,s.createElement)("p",null,e.children))};const Rc={allow:"fullscreen",allowtransparency:"true",scrolling:"no",width:"100%",height:"100%",className:"wistia_embed",name:"wistia_embed"};var Tc=e=>{const{id:t,src:n,title:r,iframeProps:a={}}=e,[i,c]=(0,s.useState)(!1);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie.noop;(0,s.useEffect)((()=>{const n=document.createElement("script");return n.src=e,n.async=!0,document.body.appendChild(n),n.onload=()=>{t()},()=>{document.body.removeChild(n)}}),[e,t])}("https://fast.wistia.com/assets/external/E-v1.js",(0,s.useCallback)((()=>{window._wq&&window._wq.push({id:t,onReady:e=>{e.bind("play",(()=>c(!0)))}})}),[t,c])),(0,s.createElement)("div",{className:d()("gla-wistia-video",i?"is-playing":"")},(0,s.createElement)("div",{className:"gla-wistia-video__container"},(0,s.createElement)("iframe",l({src:n,title:r?(0,o.sprintf)(// translators: %s: The title of the iframe.
|
2 |
-
(0,o.__)("%s Video","google-listings-and-ads"),r):(0,o.__)("Wistia Video","google-listings-and-ads")},Rc,a))))},Mc=__webpack_require__(5314),jc=()=>{const e=!Zl.mcSupportedLanguage;return(0,s.createElement)(De,{className:"gla-get-started-with-video-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)("p",null,(0,o.__)("The official extension for WooCommerce, built in collaboration with","google-listings-and-ads")),(0,s.createElement)("img",{src:Mc,alt:(0,o.__)("Google Logo","google-listings-and-ads"),width:"71",height:"24"})),(0,s.createElement)(Li,{className:"motivation-video"},(0,s.createElement)(Tc,{id:"lpvgtsjwrg",src:"https://fast.wistia.net/embed/iframe/lpvgtsjwrg?seo=false&videoFoam=true",title:"WooCommerce-Google-Listings-Ads"})),(0,s.createElement)(qe,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-with-video-card__title"},(0,o.__)("Reach new customers across Google with free product listings and paid ads","google-listings-and-ads")),(0,s.createElement)(Ii,{variant:"body",className:"gla-get-started-with-video-card__description"},(0,o.__)("Sync your products directly to Google, manage your product feed, and create Google Ad campaigns–without leaving your WooCommerce dashboard. The official extension, built in collaboration with Google.","google-listings-and-ads")),(0,s.createElement)(gc,{className:"gla-get-started-with-video-card__button",isPrimary:!0,disabled:e,href:Sc(),eventName:"gla_setup_mc",eventProps:{target:"set_up_free_listings",trigger:"click",context:"get-started-with-video"}},(0,o.__)("Start listing products →","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-with-video-card__hint"},(0,o.__)("Estimated setup time: 15 min","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-with-video-card__terms-notice",variant:"body"},(0,s.createInterpolateElement)((0,o.__)("By clicking ‘Start listing products’, you agree to our <link>Terms of Service.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started-with-video",linkId:"wp-terms-of-service",href:"https://wordpress.com/tos/"})}))),(0,s.createElement)(Nc,null,(0,o.__)("If you’re already using another extension to manage your product feed with Google, make sure to deactivate or uninstall it first to prevent duplicate product feeds.","google-listings-and-ads")))},Ic=window.wp.a11y,Fc=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,a=e.children,i=e.spokenMessage,l=void 0===i?a:i,c=e.onRemove,u=void 0===c?ie.noop:c,g=e.isDismissible,p=void 0===g||g,f=e.actions,m=void 0===f?[]:f,h=e.politeness,y=void 0===h?function(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}(r):h,v=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((function(){n&&(0,Ic.speak)(n,t)}),[n,t])}(l,y);var b=d()(t,"components-notice","is-"+r,{"is-dismissible":p});return v&&(a=(0,s.createElement)(s.RawHTML,null,a)),(0,s.createElement)("div",{className:b},(0,s.createElement)("div",{className:"components-notice__content"},a,m.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,l=e.onClick,c=e.url;return(0,s.createElement)(xl,{key:t,href:c,isPrimary:o,isSecondary:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:l,className:d()("components-notice__action",n)},r)}))),p&&(0,s.createElement)(xl,{className:"components-notice__dismiss",icon:$s,label:(0,o.__)("Dismiss this notice"),onClick:u,showTooltip:!1}))},Dc=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));const Lc="wc/gla";var Gc,Bc,qc=window.wp.dataControls,zc=window.wp.apiFetch,Hc=__webpack_require__.n(zc),Uc="RECEIVE_SHIPPING_RATES",Vc="UPSERT_SHIPPING_RATES",Wc="DELETE_SHIPPING_RATES",Yc="RECEIVE_SHIPPING_TIMES",Kc="UPSERT_SHIPPING_TIMES",Qc="DELETE_SHIPPING_TIMES",Zc="RECEIVE_SETTINGS",Xc="SAVE_SETTINGS",Jc="RECEIVE_ACCOUNTS_JETPACK",eu="RECEIVE_ACCOUNTS_GOOGLE",tu="RECEIVE_ACCOUNTS_GOOGLE_ACCESS",nu="RECEIVE_ACCOUNTS_GOOGLE_MC",ru="RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING",ou="RECEIVE_ACCOUNTS_GOOGLE_ADS",au="DISCONNECT_ACCOUNTS_GOOGLE",iu="DISCONNECT_ACCOUNTS_GOOGLE_ADS",su="DISCONNECT_ACCOUNTS_ALL",lu="RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS",cu="RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING",uu="RECEIVE_MC_CONTACT_INFORMATION",du="VERIFIED_MC_PHONE_NUMBER",gu="RECEIVE_MC_COUNTRIES_AND_CONTINENTS",pu="RECEIVE_TARGET_AUDIENCE",fu="SAVE_TARGET_AUDIENCE",mu="RECEIVE_ADS_CAMPAIGNS",hu="CREATE_ADS_CAMPAIGN",yu="UPDATE_ADS_CAMPAIGN",vu="DELETE_ADS_CAMPAIGN",bu="RECEIVE_MC_SETUP",_u="RECEIVE_REPORT",wu="RECEIVE_MC_PRODUCT_STATISTICS",Eu="RECEIVE_MC_REVIEW_REQUEST",$u="RECEIVE_MC_ISSUES",Cu="RECEIVE_MC_PRODUCT_FEED",ku="UPDATE_MC_PRODUCTS_VISIBILITY";function Su(e){const t=e.targeted_locations.length>0,n=t?e.targeted_locations:[e.country];return{...e,allowMultiple:t,displayCountries:n}}function xu(e,t){const{createNotice:n}=(0,dn.dispatch)("core/notices");401!==e.statusCode&&n("error",t),console.log(e)}function*Ou(){try{const e=(yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates"})).map((e=>({...e,rate:Number(e.rate)})));return{type:Uc,shippingRates:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading shipping rates.","google-listings-and-ads"))}}function*Pu(e){const t=(yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates/batch",method:"POST",data:{rates:e}})).success.map((e=>({...e.rate,rate:Number(e.rate.rate)})));return{type:Vc,shippingRates:t}}function*Au(e){return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates/batch",method:"DELETE",data:{ids:e}}),{type:Wc,ids:e}}function*Nu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times"}),t=Object.values(e).map((e=>({countryCode:e.country_code,time:Number(e.time)})));return{type:Yc,shippingTimes:t}}catch(e){yield xu(e,(0,o.__)("There was an error loading shipping times.","google-listings-and-ads"))}}function*Ru(e){const{countryCodes:t,time:n}=e;try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times/batch",method:"POST",data:{country_codes:t,time:n}}),{type:Kc,shippingTime:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to add / update shipping times. Please try again later.","google-listings-and-ads"))}}function*Tu(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times/batch",method:"DELETE",data:{country_codes:e}}),{type:Qc,countryCodes:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to delete shipping times. Please try again later.","google-listings-and-ads"))}}function*Mu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/settings"});return{type:Zc,settings:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading merchant center settings.","google-listings-and-ads"))}}function*ju(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/settings",method:"POST",data:e}),{type:Xc,settings:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to save settings. Please try again later.","google-listings-and-ads"))}}function*Iu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/jetpack/connected"});return{type:Jc,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Jetpack account info.","google-listings-and-ads"))}}function*Fu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/google/connected"});return{type:eu,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google account info.","google-listings-and-ads"))}}function Du(e){return{type:tu,data:e}}function*Lu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/connection"});return{type:nu,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Merchant Center account info.","google-listings-and-ads"))}}function*Gu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/accounts"});return{type:ru,accounts:e}}catch(e){yield xu(e,(0,o.__)("There was an error getting your Google Merchant Center accounts.","google-listings-and-ads"))}}function*Bu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/connection"});return{type:ou,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Ads account info.","google-listings-and-ads"))}}function*qu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/google/connect",method:"DELETE"}),{type:au}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect your Google account. Please try again later.","google-listings-and-ads")),e}}function*zu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/ads/connection",method:"DELETE"}),{type:iu}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect your Google Ads account. Please try again later.","google-listings-and-ads")),e}}function*Hu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/connections",method:"DELETE"}),{type:su}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect all your accounts. Please try again later.","google-listings-and-ads")),e}}function*Uu(){try{return ed(yield(0,qc.apiFetch)({path:"/wc/gla/ads/billing-status"}))}catch(e){yield xu(e,(0,o.__)("There was an error getting the billing status of your Google Ads account.","google-listings-and-ads"))}}function*Vu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/accounts"});return{type:cu,accounts:e}}catch(e){yield xu(e,(0,o.__)("There was an error getting your Google Ads accounts.","google-listings-and-ads"))}}function Wu(e){return{type:uu,data:e}}function*Yu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/contact-information",method:"POST"});yield Wu(e)}catch(e){throw yield xu(e,(0,o.__)("Unable to update your Google Merchant Center contact information. Please try again later.","google-listings-and-ads")),e}}function*Ku(e,t,n){try{return{verificationId:(yield(0,qc.apiFetch)({path:"/wc/gla/mc/phone-verification/request",method:"POST",data:{phone_region_code:e,phone_number:t,verification_method:n}})).verification_id}}catch(e){if("rateLimitExceeded"===e.reason)throw{...e,display:(0,o.__)("Unable to initiate the verification code request. A maximum of five attempts to verify the same phone number every four hours. Please try again later.","google-listings-and-ads")};yield xu(e,(0,o.__)("Unable to request the phone verification code. Please try again later.","google-listings-and-ads"))}}function*Qu(e,t,n){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/phone-verification/verify",method:"POST",data:{verification_id:e,verification_code:t,verification_method:n}}),{type:du}}catch(e){const{reason:t,message:n=""}=e;if("badRequest"===t){const[,t]=n.match(/^\[(\w+)\]/)||[],r={verificationCode:(0,o.__)("Wrong verification code. Please try again.","google-listings-and-ads"),verificationId:(0,o.__)("The verification code has expired. Please initiate a new verification request by the resend button.","google-listings-and-ads")};if(t in r)throw{...e,display:r[t]}}yield xu(e,(0,o.__)("Unable to verify your phone number. Please try again later.","google-listings-and-ads"))}}function*Zu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/target_audience"});return{type:pu,target_audience:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading target audience.","google-listings-and-ads"))}}function Xu(e){return{type:nu,account:e}}function Ju(e){return{type:ou,account:e}}function ed(e){return{type:lu,billingStatus:e}}function*td(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/target_audience",method:"POST",data:e}),{type:fu,target_audience:e}}catch(e){yield xu(e,(0,o.__)("There was an error saving target audience data.","google-listings-and-ads"))}}function*nd(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/campaigns"});return{type:mu,adsCampaigns:e.map(Su)}}catch(e){yield xu(e,(0,o.__)("There was an error loading ads campaigns.","google-listings-and-ads"))}}function*rd(e,t){try{const n=yield(0,qc.apiFetch)({path:"/wc/gla/ads/campaigns",method:"POST",data:{amount:e,targeted_locations:t}});return{type:hu,createdCampaign:Su(n)}}catch(e){throw yield xu(e,(0,o.__)("Unable to create your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function*od(e,t){try{return yield(0,qc.apiFetch)({path:`/wc/gla/ads/campaigns/${e}`,method:"PATCH",data:t}),{type:yu,id:e,data:t}}catch(e){throw yield xu(e,(0,o.__)("Unable to update your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function*ad(e){try{return yield(0,qc.apiFetch)({path:`/wc/gla/ads/campaigns/${e}`,method:"DELETE"}),{type:vu,id:e}}catch(e){throw yield xu(e,(0,o.__)("Unable to delete your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function id(e,t){return{type:_u,reportKey:e,data:t}}function*sd(){try{return ld(yield(0,qc.apiFetch)({path:"/wc/gla/mc/setup"}))}catch(e){yield xu(e,(0,o.__)("There was an error loading your merchant center setup status.","google-listings-and-ads"))}}function*ld(e){return{type:bu,mcSetup:e}}function*cd(e){return{type:wu,mcProductStatistics:e}}function*ud(e){return{type:Eu,mcReviewRequest:e}}function*dd(e,t){return{type:$u,query:e,data:t}}function*gd(e,t){return{type:Cu,query:e,data:t}}function*pd(e,t){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/product-visibility",method:"POST",data:{ids:e,visible:t}}),{type:ku}}catch(e){throw yield xu(e,(0,o.__)("Unable to update the channel visibility of products. Please try again later.","google-listings-and-ads")),e}}function*fd(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/review",method:"POST"});return yield ud(e)}catch(e){throw yield xu(e,null==e?void 0:e.message),e}}function md(e){return[e]}function hd(e){return!!e&&"object"==typeof e}function yd(){var e={clear:function(){e.head=null}};return e}function vd(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function bd(e,t){var n,r;function o(){n=Bc?new WeakMap:yd()}function a(){var n,o,a,i,s,l=arguments.length;for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];for(s=t.apply(null,i),(n=r(s)).isUniqueByDependants||(n.lastDependants&&!vd(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),o=n.head;o;){if(vd(o.args,i,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=md),r=Bc?function(e){var t,r,o,a,i=n,s=!0;for(t=0;t<e.length;t++){if(!hd(r=e[t])){s=!1;break}i.has(r)?i=i.get(r):(o=new WeakMap,i.set(r,o),i=o)}return i.has(Gc)||((a=yd()).isUniqueByDependants=s,i.set(Gc,a)),i.get(Gc)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}Gc={},Bc="undefined"!=typeof WeakMap;var _d=window.wp.date,wd=__webpack_require__(9171);const Ed=["clicks","impressions"],$d=["sales","conversions","spend",...Ed],Cd=Object.freeze({NONE:0,FOR_METRIC:1,FOR_REQUEST:2});function kd(e,t,n){const r=(0,wd.getCurrentDates)(t);return{after:(0,_d.format)("Y-m-d",r[n].after),before:(0,_d.format)("Y-m-d",r[n].before),fields:"free"===e?Ed:$d}}function Sd(e,t,n){return`${e}:${t}:${JSON.stringify(n,Object.keys(n).sort())}`}function xd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(n||Object.keys(e)).reduce(((n,r)=>({...n,[r]:Od(e[r],t[r],e[r]&&t[r]?Cd.NONE:Cd.FOR_REQUEST)})),{})}const Od=(e,t,n)=>({value:e,delta:Pd(e,t),prevValue:t,missingFreeListingsData:n});function Pd(e,t){let n=null;if("number"==typeof e&&"number"==typeof t&&(n=0,e!==t)){const r=(e-t)/t*100;n=Number.isFinite(r)?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=Math.pow(10,t);return Math.round(e*n)/n}(r):null}return n}const Ad=e=>e.mc.shipping.rates,Nd=e=>e.mc.shipping.times,Rd=e=>e.mc.settings,Td=e=>e.mc.accounts.jetpack,Md=e=>e.mc.accounts.google,jd=e=>e.mc.accounts.google_access,Id=e=>e.mc.accounts.mc,Fd=e=>e.mc.accounts.existing_mc,Dd=e=>e.mc.accounts.ads,Ld=e=>e.mc.accounts.ads_billing_status,Gd=e=>e.mc.accounts.existing_ads,Bd=e=>e.mc.contact,qd=(0,dn.createRegistrySelector)((e=>t=>{const n=e(Lc);return{loaded:!!Bd(t)||n.hasFinishedResolution("getGoogleMCContactInformation"),data:n.getGoogleMCContactInformation()}})),zd=bd((e=>{const{countries:t,continents:n}=e.mc;return{countries:t,continents:n}}),(e=>[e.mc.countries,e.mc.continents])),Hd=e=>e.mc.target_audience,Ud=e=>e.ads_campaigns,Vd=e=>e.mc_setup,Wd=e=>e.mc_product_statistics,Yd=e=>e.mc_review_request,Kd=bd(((e,t)=>{const n=e.mc_issues[t.issue_type];if(!n)return n;const r=(t.page-1)*t.per_page,o=r+t.per_page;return{issues:n.issues.slice(r,o),total:n.total}}),(e=>[e.mc_issues])),Qd=(e,t)=>e.mc_product_feed?{products:e.mc_product_feed.pages[t.page],total:e.mc_product_feed.total}:e.mc_product_feed,Zd=(e,t,n,r)=>{const o=Sd(t,n,r);return e.report[o]||null},Xd=(0,dn.createRegistrySelector)((e=>(t,n,r,o,a)=>{const i=e(Lc),s=function(e,t,n,r){const o=kd(t,n,r),{order:a="desc"}=n;let{orderby:i}=n;i&&o.fields.includes(i)||(i=o.fields[0]);const s={...o,interval:"day",orderby:i,order:a};return"programs"===e&&n.programs?s.ids=n.programs:"products"===e&&n.products&&(s.ids=n.products.replace(/\d+/g,"gla_$&")),s}(n,r,o,a),l=[n,r,s];return{reportQuery:s,loaded:i.hasFinishedResolution("getReportByApiQuery",l),data:i.getReportByApiQuery(...l)}})),Jd=(0,dn.createRegistrySelector)((e=>(t,n,r,o)=>{const a=e(Lc),i=["programs",n,kd(n,r,o)],s=a.getReportByApiQuery(...i);return{data:s?s.totals:null,loaded:a.hasFinishedResolution("getReportByApiQuery",i)}}));var eg=window.wp.url;function*tg(){yield Ou()}function*ng(){yield Nu()}function*rg(){yield Mu()}function*og(){yield Iu()}function*ag(){yield Fu()}function*ig(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/google/reconnected"});yield Du(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading Google account access info.","google-listings-and-ads"))}}function*sg(){yield Lu()}function*lg(){yield Gu()}function*cg(){yield Bu()}function*ug(){yield Uu()}function*dg(){yield Vu()}function*gg(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/contact-information"});yield Wu(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Merchant Center contact information.","google-listings-and-ads"))}}function*pg(){try{const e={continents:!0},t=(0,eg.addQueryArgs)("/wc/gla/mc/countries",e),n=yield(0,qc.apiFetch)({path:t});return{type:gu,data:n}}catch(e){yield xu(e,(0,o.__)("There was an error loading supported country details.","google-listings-and-ads"))}}function*fg(){yield Zu()}function*mg(){yield nd()}function*hg(){yield sd()}function*yg(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/product-statistics"});yield cd(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading your merchant center product statistics.","google-listings-and-ads"))}}function*vg(){const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/review"});yield ud(e)}function*bg(e){try{const{issue_type:t,...n}=e,r=yield(0,qc.apiFetch)({path:(0,eg.addQueryArgs)(`/wc/gla/mc/issues/${t||cc}`,n)});yield dd(e,r)}catch(e){yield xu(e,(0,o.__)("There was an error loading issues to resolve.","google-listings-and-ads"))}}function*_g(e){try{const t=yield(0,qc.apiFetch)({path:(0,eg.addQueryArgs)("/wc/gla/mc/product-feed",e)});yield gd(e,t)}catch(e){yield xu(e,(0,o.__)("There was an error loading product feed.","google-listings-and-ads"))}}ag.shouldInvalidate=e=>e.type===au,ig.shouldInvalidate=e=>e.type===au,gg.shouldInvalidate=e=>e.type===du,bg.shouldInvalidate=e=>e.type===ku,_g.shouldInvalidate=(e,t)=>e.type===ku||e.type===Cu&&(e.query.per_page!==t.per_page||e.query.orderby!==t.orderby||e.query.order!==t.order);const wg=new Map([[ec,"mc"],[Jl,"ads"]]);function*Eg(e,t,n){const r=`/wc/gla/${wg.get(t)}/reports/${e}`,a=(0,eg.addQueryArgs)(r,n);try{const r=yield(0,qc.apiFetch)({path:a}),o=Sd(e,t,n);yield id(o,r)}catch(e){yield xu(e,(0,o.__)("There was an error loading report.","google-listings-and-ads"))}}const $g={mc:{target_audience:null,countries:null,continents:null,shipping:{rates:[],times:[]},settings:null,accounts:{jetpack:null,google:null,mc:null,ads:null,existing_mc:null,existing_ads:null,ads_billing_status:null,google_access:null},contact:null},ads_campaigns:null,mc_setup:null,mc_product_statistics:null,mc_issues:{account:null,product:null},mc_review_request:{status:null,cooldown:null,issues:null,reviewEligibleRegions:[]},mc_product_feed:null,report:{}};function Cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=Object.assign(e.constructor(),e),r=e=>null==e?{}:(0,ie.clone)(e),o=e=>t?Array.isArray(t)||Array.isArray(e)?[].concat(t,e):`${t}.${e}`:e;return{setIn(e,t){const a=o(e);return(0,ie.setWith)(n,a,t,r),this},end:()=>n}}function kg(e,t,n){return Cg(e).setIn(t,n).end()}function Sg(e,t){return t?e.json?e.json():Promise.reject(e):e}(0,dn.registerStore)(Lc,{actions:t,selectors:n,resolvers:r,controls:qc.controls,reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Uc:return kg(e,"mc.shipping.rates",t.shippingRates);case Vc:{const{shippingRates:n}=t,r=[...e.mc.shipping.rates];return n.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));t>=0?r[t]=e:r.push(e)})),kg(e,"mc.shipping.rates",r)}case Wc:{const{ids:n}=t,r=e.mc.shipping.rates.filter((e=>!n.includes(e.id)));return kg(e,"mc.shipping.rates",r)}case Yc:return kg(e,"mc.shipping.times",t.shippingTimes);case Kc:{const{countryCodes:n,time:r}=t.shippingTime,o=[...e.mc.shipping.times];return n.forEach((e=>{const t={countryCode:e,time:r},n=o.findIndex((t=>t.countryCode===e));n>=0?o[n]=t:o.push(t)})),kg(e,"mc.shipping.times",o)}case Qc:{const n=new Set(t.countryCodes),r=e.mc.shipping.times.filter((e=>!n.has(e.countryCode)));return kg(e,"mc.shipping.times",r)}case Zc:return kg(e,"mc.settings",t.settings);case Xc:return kg(e,"mc.settings",{...e.mc.settings,...t.settings});case Jc:return kg(e,"mc.accounts.jetpack",t.account);case eu:return kg(e,"mc.accounts.google",t.account);case tu:return kg(e,"mc.accounts.google_access",t.data);case nu:return kg(e,"mc.accounts.mc",t.account);case ru:return kg(e,"mc.accounts.existing_mc",t.accounts);case ou:return kg(e,"mc.accounts.ads",t.account);case iu:return kg(e,"mc.accounts.ads",$g.mc.accounts.ads);case lu:return kg(e,"mc.accounts.ads_billing_status",t.billingStatus);case cu:return kg(e,"mc.accounts.existing_ads",t.accounts);case uu:return kg(e,"mc.contact",t.data);case gu:{const{data:n}=t;return Cg(e,"mc").setIn("countries",n.countries).setIn("continents",n.continents).end()}case pu:case fu:return kg(e,"mc.target_audience",t.target_audience);case mu:return kg(e,"ads_campaigns",t.adsCampaigns);case hu:return kg(e,"ads_campaigns",[...e.ads_campaigns||[],t.createdCampaign]);case yu:{const{id:n,data:r}=t,o=e.ads_campaigns.findIndex((e=>e.id===n)),a={...e.ads_campaigns[o],...r},i=[...e.ads_campaigns];return i[o]=a,kg(e,"ads_campaigns",i)}case vu:{const{id:n}=t,r=e.ads_campaigns.filter((e=>e.id!==n));return kg(e,"ads_campaigns",r)}case bu:return kg(e,"mc_setup",t.mcSetup);case wu:return kg(e,"mc_product_statistics",t.mcProductStatistics);case Eu:return kg(e,"mc_review_request",t.mcReviewRequest);case $u:{var n;const{query:r,data:o}=t,a=(null===(n=e.mc_issues[r.issue_type])||void 0===n?void 0:n.issues.slice())||[];return a.splice((r.page-1)*r.per_page,r.per_page,...o.issues),Cg(e,`mc_issues.${r.issue_type}`).setIn("issues",a).setIn("total",o.total).end()}case Cu:{const{query:n,data:r}=t,o=e.mc_product_feed||{},a=Cg(e,"mc_product_feed");return o.per_page===n.per_page&&o.order===n.order&&o.orderby===n.orderby||a.setIn("pages",{}),a.setIn(["pages",n.page],r.products).setIn("per_page",n.per_page).setIn("order",n.order).setIn("orderby",n.orderby).setIn("total",r.total).end()}case _u:{const{reportKey:n,data:r}=t;return kg(e,["report",n],r)}default:return e}}}),Hc().use(function(e){const t=new RegExp("^/wc/gla/");return function(n,r){if(!t.test(n.path))return r(n);const{parse:o=!0}=n;return r({...n,parse:!1}).catch(e).catch((async e=>Promise.reject(await Sg(e,o)))).then((e=>o&&204===e.status?null:Sg(e,o)))}}((e=>{if(Zl.mcSetupComplete&&401===e.status)return(e.json||e.text).call(e).then((e=>"string"==typeof e?{message:e}:e)).then((e=>{const t=Pc(e.code);return t&&(0,pc.getHistory)().replace(t),e})).then((t=>Promise.reject({...t,statusCode:e.status})));throw e})));const xg=()=>(0,dn.useDispatch)(Lc);var Og=e=>{const t=(0,s.useRef)(e);return(0,ie.isEqual)(t.current,e)||(t.current=e),t.current},Pg=function(e){const{invalidateResolution:t}=xg();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];const a=Og(r),i=(0,s.useCallback)((()=>{t(e,a)}),[t,e,a]);return(0,dn.useSelect)((t=>{const{isResolving:n,hasFinishedResolution:r}=t(Lc),o=t(Lc)[e](...a);return{isResolving:n(e,a),hasFinishedResolution:r(e,a),data:o,invalidateResolution:i}}),[i,e,a])},Ag=()=>Pg("getTargetAudience"),Ng=window.wc.data;function Rg(){return(0,dn.useSelect)((e=>{const{getSetting:t}=e(Ng.SETTINGS_STORE_NAME),n=(0,i.getSetting)("countries"),r=t("general","general"),[o]=r.woocommerce_default_country.split(":");return{code:o,name:n[o]}}),[])}const Tg=()=>(0,s.createElement)(El,{className:"gla-get-started-notice__icon",icon:Dc,size:18}),Mg=()=>{const{data:e}=Ag();return e?(0,s.createElement)(Fc,{className:"gla-get-started-notice",status:"error",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Your site language is <language />. This language is currently not supported by Google Listings & Ads. <settingsLink>You can change your site language here</settingsLink>. <supportedLanguagesLink>Read more about supported languages</supportedLanguagesLink>","google-listings-and-ads"),{language:(0,s.createElement)("strong",null,e.language),settingsLink:(0,s.createElement)(Bl.Link,{className:"gla-get-started-notice__link",type:"wp-admin",href:"/wp-admin/options-general.php"}),supportedLanguagesLink:(0,s.createElement)(zl,{className:"gla-get-started-notice__link",href:"https://support.google.com/merchants/answer/160637",context:"get-started",linkId:"supported-languages"})}),(0,s.createElement)(Tg,null)):null},jg=()=>{const{name:e}=Rg();return e?(0,s.createElement)(Fc,{className:"gla-get-started-notice",status:"warning",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Your store’s country is <country />. This country is currently not supported by Google Listings & Ads. However, you can still choose to list your products in another supported country, if you are able to sell your products to customers there. <settingsLink>Change your store’s country here</settingsLink>. <supportedCountriesLink>Read more about supported countries</supportedCountriesLink>","google-listings-and-ads"),{country:(0,s.createElement)("strong",null,e),settingsLink:(0,s.createElement)(Bl.Link,{className:"gla-get-started-notice__link",type:"wp-admin",href:"/wp-admin/admin.php?page=wc-settings"}),supportedCountriesLink:(0,s.createElement)(zl,{className:"gla-get-started-notice__link",href:"https://support.google.com/merchants/answer/160637",context:"get-started",linkId:"supported-countries"})}),(0,s.createElement)(Tg,null)):null};function Ig(){const{mcSupportedLanguage:e,mcSupportedCountry:t}=Zl;return(0,s.createElement)(s.Fragment,null,!e&&(0,s.createElement)(Mg,null),!t&&(0,s.createElement)(jg,null))}var Fg=()=>(0,s.createElement)("div",{className:"woocommerce-marketing-google-get-started-page"},(0,s.createElement)(Ig,null),(0,s.createElement)(jc,null),(0,s.createElement)(Di,null),(0,s.createElement)(Ql,null),(0,s.createElement)(Vi,null),(0,s.createElement)(Ac,null),(0,s.createElement)(Ul,null));const Dg={"full-page":["woocommerce-admin-full-screen","is-wp-toolbar-disabled","gla-full-page"],"full-content":["gla-full-content"]};function Lg(e){(0,s.useEffect)((()=>{if(!Dg.hasOwnProperty(e))return;const t=document.body.classList,n=Dg[e].filter((e=>!t.contains(e)));return t.add(...n),()=>{t.remove(...n)}}),[e])}var Gg=__webpack_require__(8222),Bg=e=>{let{title:t,backHref:n,helpButton:r,onBackButtonClick:o}=e;return(0,s.createElement)("div",{className:"gla-stepper-top-bar"},(0,s.createElement)(Bl.Link,{className:"back-button",href:n,type:"wc-admin",onClick:o},(0,s.createElement)(Gg.Z,null)),(0,s.createElement)("span",{className:"title"},t),(0,s.createElement)("div",{className:"actions"},r))},qg=__webpack_require__(7719),zg=e=>{const{icon:t,text:n,className:r="",...o}=e;return(0,s.createElement)(gc,l({className:`app-icon-button ${r}`},o),(0,s.createElement)("div",null,t),n)},Hg=e=>{const{eventContext:t,...n}=e;return(0,s.createElement)(zg,l({icon:(0,s.createElement)(qg.Z,null),text:(0,o.__)("Help","google-listings-and-ads"),href:"https://docs.woocommerce.com/document/google-listings-and-ads/",target:"_blank",eventName:"gla_help_click",eventProps:{context:t}},n))},Ug=()=>(0,s.createElement)(Bg,{title:(0,o.__)("Get started with Google Listings & Ads","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"setup-mc"}),backHref:(0,pc.getNewPath)({},"/google/start"),onBackButtonClick:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"back",trigger:"click"})}}),Vg=()=>(0,s.createElement)("div",{className:"app-spinner"},(0,s.createElement)(Bl.Spinner,null)),Wg=()=>(0,dn.useSelect)((e=>({jetpack:e(Lc).getJetpackAccount(),isResolving:e(Lc).isResolving("getJetpackAccount"),hasFinishedResolution:e(Lc).hasFinishedResolution("getJetpackAccount")})),[]);const Yg="https://www.googleapis.com/auth/content",Kg="https://www.googleapis.com/auth/siteverification.verify_only",Qg="https://www.googleapis.com/auth/adwords";function Zg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n={adsRequired:t.includes(Qg)};return n.gmcRequired=t.includes(Yg)&&t.includes(Kg),n.glaRequired=e?n.gmcRequired&&n.adsRequired:n.gmcRequired,n}var Xg=()=>{const{jetpack:e,isResolving:t,hasFinishedResolution:n}=Wg();return(0,dn.useSelect)((r=>{if(!e||"no"===e.active)return{google:void 0,scope:Zg(Zl.adsSetupComplete),isResolving:t,hasFinishedResolution:n};const{getGoogleAccount:o,isResolving:a,hasFinishedResolution:i}=r(Lc),s=o();return{google:s,scope:Zg(Zl.adsSetupComplete,null==s?void 0:s.scope),isResolving:a("getGoogleAccount"),hasFinishedResolution:i("getGoogleAccount")}}),[e,t,n])},Jg=()=>{const{google:e,scope:t,isResolving:n,hasFinishedResolution:r}=Xg();return(0,dn.useSelect)((o=>{if(!e||"no"===e.active||!t.gmcRequired)return{googleMCAccount:void 0,isResolving:n,hasFinishedResolution:r};const{getGoogleMCAccount:a,isResolving:i,hasFinishedResolution:s}=o(Lc);return{googleMCAccount:a(),isResolving:i("getGoogleMCAccount"),hasFinishedResolution:s("getGoogleMCAccount")}}),[e,t.gmcRequired,n,r])},ep=e=>{const{className:t="",children:n,...r}=e;return(0,s.createElement)("div",l({className:`gla-step-content ${t}`},r),(0,s.createElement)("div",{className:"gla-step-content__container"},n))},tp=e=>{const{className:t="",title:n,description:r}=e;return(0,s.createElement)("header",{className:`gla-step-content-header ${t}`},(0,s.createElement)("h1",null,n),(0,s.createElement)("div",{className:"description"},r))},np=e=>{const{className:t="",...n}=e;return(0,s.createElement)("div",l({className:`gla-step-content-footer ${t}`},n))};function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ap={isBorderless:!1,isShady:!1,size:"medium"},ip=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=op(op(op({},ap),p()),e),a=o.isBorderless,i=o.size,u=d()("components-card__footer",a&&"is-borderless",n&&"is-shady",i&&"is-size-".concat(i),t);return(0,s.createElement)(Re,l({},r,{className:u}))};const sp=e=>{const{className:t="",...n}=e;return(0,s.createElement)("div",l({className:`wcdl-subsection ${t}`},n))};sp.Title=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("wcdl-subsection-title",t)},n))},sp.Body=e=>{const{children:t}=e;return(0,s.createElement)("div",{className:"wcdl-subsection-body"},t)},sp.HelperText=e=>{const{className:t,children:n}=e;return(0,s.createElement)("div",{className:d()("wcdl-subsection-helper-text",t)},n)};var lp=sp;const cp=e=>{let{size:t="",...n}=e;return(0,s.createElement)(De,l({},n,{size:t}))};cp.Body=e=>{const{className:t,...n}=e;return(0,s.createElement)(qe,l({className:d()("wcdl-section-card-body",t)},n))},cp.Footer=e=>{const{children:t,...n}=e;return(0,s.createElement)(ip,l({className:"wcdl-section-card-footer"},n),t)},cp.Title=e=>{const{className:t,...n}=e;return(0,s.createElement)(lp.Title,l({className:d()("wcdl-section-card-title",t)},n))};const up=e=>{let{className:t,title:n,description:r,children:o,disabled:a}=e;const i=d()("wcdl-section",!!a&&"wcdl-section--is-disabled",t);return(0,s.createElement)("section",{className:i},(0,s.createElement)("header",null,n&&(0,s.createElement)("h1",null,n),r),(0,s.createElement)("div",{className:"wcdl-section__body"},o))};up.Card=cp;var dp=up;const gp={normal:!1,large:"gla-vertical-gap-layout__large",overlap:"gla-vertical-gap-layout__overlap"};var pp=e=>{const{className:t,size:n="normal",...r}=e;return(0,s.createElement)("div",l({className:d()("gla-vertical-gap-layout",gp[n],t)},r))};function fp(e){return"yes"!==e.active?"":"yes"===e.owner?e.email:(0,o.__)("Successfully connected through Jetpack","google-listings-and-ads")}var mp=__webpack_require__(4886);function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yp=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,o=c(e,["icon","size"]);return(0,s.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))},vp=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),bp=__webpack_require__(8026),_p=__webpack_require__(4515);const wp={EMPTY:"empty",WPCOM:"wpcom",GOOGLE:"google",GOOGLE_MERCHANT_CENTER:"google_merchant_center",GOOGLE_ADS:"google_ads",PHONE:"phone",ADDRESS:"address"},Ep=(0,s.createElement)("img",{src:bp,alt:(0,o.__)("Google Logo","google-listings-and-ads"),width:"40",height:"40"}),$p=(0,s.createElement)("img",{src:_p,alt:(0,o.__)("WordPress.com Logo","google-listings-and-ads"),width:"40",height:"40"}),Cp={[wp.EMPTY]:{},[wp.WPCOM]:{icon:$p,title:"WordPress.com"},[wp.GOOGLE]:{icon:Ep,title:(0,o.__)("Google","google-listings-and-ads")},[wp.GOOGLE_MERCHANT_CENTER]:{icon:Ep,title:(0,o.__)("Google Merchant Center","google-listings-and-ads"),description:(0,o.__)("Required to sync products and list on Google Shopping","google-listings-and-ads")},[wp.GOOGLE_ADS]:{icon:Ep,title:(0,o.__)("Google Ads","google-listings-and-ads"),description:(0,o.__)("Required to create paid campaigns with your product listings","google-listings-and-ads")},[wp.PHONE]:{icon:(0,s.createElement)(mp.Z,{size:32}),title:(0,o.__)("Phone number","google-listings-and-ads")},[wp.ADDRESS]:{icon:(0,s.createElement)(yp,{icon:vp,size:32}),title:(0,o.__)("Store address","google-listings-and-ads")}},kp={center:!1,top:"gla-account-card__styled--align-top"};function Sp(e){let{className:t,disabled:n=!1,appearance:r=wp.EMPTY,icon:o=Cp[r].icon,title:a=Cp[r].title,description:i=Cp[r].description,helper:c,alignIcon:u="center",indicator:g,alignIndicator:p="center",children:f,...m}=e;const h=d()("gla-account-card",!!n&&"gla-account-card--is-disabled",t),y=d()("gla-account-card__icon",kp[u]),v=d()("gla-account-card__indicator",kp[p]);return(0,s.createElement)(dp.Card,l({className:h},m),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(ae,{gap:4},o&&(0,s.createElement)(ze,{className:y},o),(0,s.createElement)(Li,null,a&&(0,s.createElement)(lp.Title,{className:"gla-account-card__title"},a),i&&(0,s.createElement)("div",{className:"gla-account-card__description"},i),c&&(0,s.createElement)("div",{className:"gla-account-card__helper"},c)),g&&(0,s.createElement)(ze,{className:v},g))),f)}var xp=__webpack_require__(3836),Op=e=>{const{className:t}=e;return(0,s.createElement)(ae,{className:d()("gla-connected-icon-label",t),align:"center",gap:1},(0,s.createElement)(ze,null,(0,s.createElement)(xp.Z,null)),(0,s.createElement)(ze,null,(0,o.__)("Connected","google-listings-and-ads")))},Pp=e=>{let{jetpack:t}=e;return(0,s.createElement)(Sp,{appearance:wp.WPCOM,description:fp(t),indicator:(0,s.createElement)(Op,null)})},Ap=()=>(0,dn.useDispatch)("core/notices");const Np="START",Rp="FINISH",Tp="ERROR",Mp="RESET",jp={loading:!1,error:void 0,data:void 0,response:void 0,options:void 0},Ip=(e,t)=>{switch(t.type){case Np:return{...e,loading:!0,options:t.options};case Rp:return{...e,loading:!1,data:t.data,response:t.response,options:t.options};case Tp:return{...e,loading:!1,error:t.error,response:t.response,options:t.options};case Mp:return t.state}},Fp=e=>{const{parse:t=!0}=e;return t};var Dp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jp;const n=Og(e),r={...jp,...t},[o,a]=(0,s.useReducer)(Ip,r),i=(0,s.useCallback)((async e=>{const t={...n,...e};a({type:Np,options:t});try{const e=await Hc()({...t,parse:!1}),n=e.clone(),r=n.json&&await n.json();return a({type:Rp,data:r,response:e,options:t}),Fp(t)?r:e}catch(e){if("fetch_error"===e.code)throw a({type:Tp,error:e,response:void 0,options:t}),e;const n=e,r=n.clone(),o=r.json?await r.json():new Error("No content body in fetch response.");throw a({type:Tp,error:o,response:n,options:t}),Fp(t)?o:n}}),[n]),l=e=>{a({type:Mp,state:{...r,...e}})},c={...o,reset:l};return[i,c]},Lp=()=>{const{createNotice:e}=Ap(),t=Zl.mcSetupComplete?"reconnect":"setup-mc",n={next_page_name:t},r=(0,eg.addQueryArgs)("/wc/gla/jetpack/connect",n),[a,{loading:i,data:l}]=Dp({path:r});return(0,s.createElement)(Sp,{appearance:wp.WPCOM,description:(0,o.__)("Required to connect with Google","google-listings-and-ads"),indicator:(0,s.createElement)(gc,{isSecondary:!0,loading:i||l,eventName:"gla_wordpress_account_connect_button_click",eventProps:{context:t},onClick:async()=>{try{const e=await a();window.location.href=e.url}catch(t){e("error",(0,o.__)("Unable to connect your WordPress.com account. Please try again later.","google-listings-and-ads"))}}},(0,o.__)("Connect","google-listings-and-ads"))})},Gp=e=>{let{jetpack:t}=e;return"yes"===t.active?(0,s.createElement)(Pp,{jetpack:t}):(0,s.createElement)(Lp,null)},Bp=(0,s.createElement)(zl,{context:"setup-mc-accounts",linkId:"required-google-permissions",href:"https://docs.woocommerce.com/document/google-listings-and-ads/#required-google-permissions"});function qp(e,t){const n=(0,s.useMemo)((()=>{const n={next_page_name:e,login_hint:t};return{path:(0,eg.addQueryArgs)("/wc/gla/google/connect",n)}}),[e,t]);return Dp(n)}var zp=(e,t)=>{const{createNotice:n}=Ap(),[r,a]=qp(e,t);return[async()=>{try{const{url:e}=await r();window.location.href=e}catch(e){n("error",(0,o.__)("Unable to connect your Google account. Please try again later.","google-listings-and-ads"))}},a]},Hp=e=>{let{additionalScopeEmail:t}=e;const n=Zl.mcSetupComplete?"reconnect":"setup-mc",[r,{loading:a,data:i}]=zp(n,t);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,alignIcon:"top",description:(0,s.createElement)(s.Fragment,null,t,(0,s.createElement)("p",null,(0,s.createElement)("em",null,(0,s.createInterpolateElement)((0,o.__)("<alert>Uh-oh!</alert> You did not allow WooCommerce sufficient access to your Google account. You must allow all required permissions in the Google authorization page to proceed. <link>Read more</link>","google-listings-and-ads"),{alert:(0,s.createElement)("span",{className:"gla-authorize-google-account-card__error-text"}),link:Bp})))),alignIndicator:"top",indicator:(0,s.createElement)(gc,{isSecondary:!0,isDestructive:!0,loading:a||i,eventName:"gla_google_account_connect_button_click",eventProps:{context:n,action:"scope"},text:(0,o.__)("Allow full access","google-listings-and-ads"),onClick:r})})},Up=e=>{let{googleAccount:t,helper:n,hideAccountSwitch:r=!1}=e;const[a,{loading:i}]=(()=>{const{createNotice:e,removeNotice:t}=Ap(),[n,{loading:r}]=Dp({path:"/wc/gla/mc/connection",method:"DELETE"}),[a,{loading:i}]=Dp({path:"/wc/gla/google/connect",method:"DELETE"}),[s,{loading:l,data:c}]=qp("setup-mc");return[async()=>{const{notice:r}=await e("info",(0,o.__)("Connecting to a different Google account, please wait…","google-listings-and-ads"));try{await n(),await a();const{url:e}=await s();window.location.href=e}catch(n){t(r.id),e("error",(0,o.__)("Unable to connect to a different Google account. Please try again later.","google-listings-and-ads"))}},{loading:r||i||l||c}]})();return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,description:t.email,helper:n,indicator:(0,s.createElement)(Op,null)},!r&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:i,text:(0,o.__)("Or, connect to a different Google account","google-listings-and-ads"),eventName:"gla_google_account_connect_different_account_button_click",onClick:a})))},Vp=e=>{let{disabled:t}=e;const n=Zl.mcSetupComplete?"reconnect":"setup-mc",[r,{loading:a,data:i}]=zp(n);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,disabled:t,alignIcon:"top",description:(0,s.createElement)(s.Fragment,null,(0,o.__)("Required to sync with Google Merchant Center and Google Ads.","google-listings-and-ads"),(0,s.createElement)("p",null,(0,s.createElement)("em",null,(0,s.createInterpolateElement)((0,o.__)("You will be prompted to give WooCommerce access to your Google account. Please check all the checkboxes to give WooCommerce all required permissions. <link>Read more</link>","google-listings-and-ads"),{link:Bp})))),alignIndicator:"top",indicator:(0,s.createElement)(gc,{isSecondary:!0,disabled:t,loading:a||i,eventName:"gla_google_account_connect_button_click",eventProps:{context:n,action:"authorization"},text:(0,o.__)("Connect","google-listings-and-ads"),onClick:r})})};function Wp(e){let{disabled:t=!1}=e;const{google:n,scope:r,hasFinishedResolution:o}=Xg();if(!o)return(0,s.createElement)(Sp,{description:(0,s.createElement)(Vg,null)});const a="yes"===(null==n?void 0:n.active);return a&&r.glaRequired?(0,s.createElement)(Up,{googleAccount:n}):a&&!r.glaRequired?(0,s.createElement)(Hp,{additionalScopeEmail:n.email}):(0,s.createElement)(Vp,{disabled:t})}var Yp=e=>{const{children:t,...n}=e;return(0,s.createElement)(vl,n,(0,s.createElement)("div",{className:"app-tooltip__children-container"},t))},Kp=()=>(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(Vg,null))),Qp=e=>{let{googleMCAccount:t,hideAccountSwitch:n=!1}=e;const{createNotice:r,removeNotice:a}=Ap(),{invalidateResolution:l}=xg(),[c,{loading:u}]=Dp({path:"/wc/gla/mc/connection",method:"DELETE"}),d=new URL((0,i.getSetting)("homeUrl")).host;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: account domain, 2: account ID.
|
3 |
(0,o.__)("%1$s (%2$s)","google-listings-and-ads"),d,t.id),indicator:(0,s.createElement)(Op,null)},!n&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:u,text:(0,o.__)("Or, connect to a different Google Merchant Center account","google-listings-and-ads"),eventName:"gla_mc_account_connect_different_account_button_click",onClick:async()=>{const{notice:e}=await r("info",(0,o.__)("Disconnecting your Google Merchant Center account, please wait…","google-listings-and-ads"));try{await c(),l("getExistingGoogleMCAccounts",[]),l("getGoogleMCAccount",[])}catch(e){r("error",(0,o.__)("Unable to disconnect your Google Merchant Center account. Please try again later.","google-listings-and-ads"))}a(e.id)}})))},Zp=()=>(0,s.createElement)(Sp,{disabled:!0,appearance:wp.GOOGLE_MERCHANT_CENTER,indicator:(0,s.createElement)(xl,{isSecondary:!0,disabled:!0},(0,o.__)("Create Account","google-listings-and-ads"))}),Xp=()=>Pg("getExistingGoogleMCAccounts"),Jp=function(e){var t=e.className,n=c(e,["className"]),r=d()("components-card__divider",t);return(0,s.createElement)(Te,l({},n,{children:null,className:r,role:"separator"}))},ef=new WeakMap;function tf(e){var t=ef.get(e)||0;return ef.set(e,t+1),t}function nf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,s.useMemo)((function(){if(n)return n;var r=tf(e);return t?"".concat(t,"-").concat(r):r}),[e])}var rf={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function of(e){return(0,ie.get)(rf,e,"")}var af=J("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",of("default.fontFamily"),";font-size:",of("default.fontSize"),";"),sf=J("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",Ce(1),";.components-panel__row &{margin-bottom:inherit;}"),lf=J("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",Ce(1),";"),cf=J("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",Ce(1),";font-size:",of("helpText.fontSize"),";font-style:normal;color:",$e("mediumGray.text"),";");function uf(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return(0,s.createElement)(af,{className:d()("components-base-control",a)},(0,s.createElement)(sf,{className:"components-base-control__field"},n&&t&&(r?(0,s.createElement)(Cl,{as:"label",htmlFor:t},n):(0,s.createElement)(lf,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,s.createElement)(Cl,{as:"label"},n):(0,s.createElement)(uf.VisualLabel,null,n)),i),!!o&&(0,s.createElement)(cf,{id:t+"__help",className:"components-base-control__help"},o))}uf.VisualLabel=function(e){var t=e.className,n=e.children;return t=d()("components-base-control__label",t),(0,s.createElement)("span",{className:t},n)};var df=uf,gf=new RegExp(/-left/g),pf=new RegExp(/-right/g),ff=new RegExp(/Left/g),mf=new RegExp(/Right/g);function hf(e){return"left"===e?"right":"right"===e?"left":gf.test(e)?e.replace(gf,"-right"):pf.test(e)?e.replace(pf,"-left"):ff.test(e)?e.replace(ff,"Right"):mf.test(e)?e.replace(mf,"Left"):e}var yf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ie.mapKeys)(e,(function(e,t){return hf(t)}))};function vf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){return t?(0,o.isRTL)()?U(t,""):U(e,""):(0,o.isRTL)()?U(yf(e),""):U(e,"")}}var bf={name:"1dacand",styles:"padding-top:0;"},_f=function(){return bf},wf={name:"r6z5ec",styles:"z-index:1;"},Ef=function(e){return e.isFocused?wf:""},$f={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},Cf={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},kf={name:"x4dmss",styles:"justify-content:space-between;"},Sf=function(e){switch(e.labelPosition){case"top":return $f;case"bottom":return Cf;case"edge":return kf;default:return""}},xf=J(ae,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",_f," ",Ef," ",Sf,""),Of={name:"8atqhb",styles:"width:100%;"},Pf=J("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=$e(e.disabled?"ui.backgroundDisabled":"ui.background");return U({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":U("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):Of}),""),Af={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},Nf=J("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",$e("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=U("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=U("&:active{cursor:",n,";}")),U(r," ",o,"")})," ",(function(e){return e.disabled?U({color:$e("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?U("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return U(n[t]||n.default,"")})," ",(function(){return Af}),"}"),Rf={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Tf=function(){return Rf},Mf=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),U({paddingTop:0,paddingBottom:n},"")},jf=J(Ii,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",Mf," ",Tf,"}"),If=function(e){return(0,s.createElement)(jf,l({},e,{as:"label"}))},Ff=J(ze,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Df=J("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=$e(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat($e("ui.borderFocus")," inset")),t&&(r=$e("ui.borderDisabled")),U({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",vf({paddingLeft:2}),"}"),Lf=J("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Gf=J("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Bf=(0,s.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return(0,s.createElement)(Df,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})})),qf=Bf;function zf(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,o=c(e,["children","hideLabelFromVision","htmlFor"]);return t?n?(0,s.createElement)(Cl,{as:"label",htmlFor:r},t):(0,s.createElement)(If,l({htmlFor:r},o),t):null}var Hf=(0,s.forwardRef)((function e(t,n){var r=t.__unstableInputWidth,o=t.children,a=t.className,i=t.disabled,u=void 0!==i&&i,d=t.hideLabelFromVision,g=void 0!==d&&d,p=t.labelPosition,f=t.id,m=t.isFocused,h=void 0!==m&&m,y=t.label,v=t.prefix,b=t.size,_=void 0===b?"default":b,w=t.suffix,E=c(t,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),$=function(t){var n=nf(e),r="input-base-control-".concat(n);return t||r}(f);return(0,s.createElement)(xf,l({},E,{className:a,isFocused:h,labelPosition:p,ref:n}),(0,s.createElement)(Ff,null,(0,s.createElement)(zf,{className:"components-input-control__label",hideLabelFromVision:g,labelPosition:p,htmlFor:$,size:_},y)),(0,s.createElement)(Pf,{__unstableInputWidth:r,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:p},v&&(0,s.createElement)(Lf,{className:"components-input-control__prefix"},v),o,w&&(0,s.createElement)(Gf,{className:"components-input-control__suffix"},w),(0,s.createElement)(qf,{"aria-hidden":"true",disabled:u,isFocused:h,label:y,size:_})))})),Uf=J("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",$e("black"),";display:block;margin:0;width:100%;",(function(e){return e.disabled?U({color:$e("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?U("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return U(n[t]||n.default,"")}),";",vf({paddingLeft:8,paddingRight:24})(),"}"),Vf=J("div",{target:"e12x0a391",label:"DownArrowWrapper"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",vf({right:0})()," svg{display:block;}");var Wf=(0,s.forwardRef)((function e(t,n){var r=t.className,o=t.disabled,a=void 0!==o&&o,i=t.help,u=t.hideLabelFromVision,g=t.id,p=t.label,f=t.multiple,m=void 0!==f&&f,h=t.onBlur,y=void 0===h?ie.noop:h,v=t.onChange,b=void 0===v?ie.noop:v,_=t.onFocus,w=void 0===_?ie.noop:_,E=t.options,$=void 0===E?[]:E,C=t.size,k=void 0===C?"default":C,S=t.value,x=t.labelPosition,O=void 0===x?"top":x,P=c(t,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),A=Et((0,s.useState)(!1),2),N=A[0],R=A[1],T=function(t){var n=nf(e),r="inspector-select-control-".concat(n);return t||r}(g),M=i?"".concat(T,"__help"):void 0;if((0,ie.isEmpty)($))return null;var j=d()("components-select-control",r);return(0,s.createElement)(df,{help:i},(0,s.createElement)(Hf,{className:j,disabled:a,hideLabelFromVision:u,id:T,isFocused:N,label:p,size:k,suffix:(0,s.createElement)(Vf,null,(0,s.createElement)(yp,{icon:as,size:18})),labelPosition:O},(0,s.createElement)(Uf,l({},P,{"aria-describedby":M,className:"components-select-control__input",disabled:a,id:T,multiple:m,onBlur:function(e){y(e),R(!1)},onChange:function(e){if(m){var t=Ls(e.target.options).filter((function(e){return e.selected})),n=t.map((function(e){return e.value}));b(n)}else b(e.target.value,{event:e})},onFocus:function(e){w(e),R(!0)},ref:n,size:k,value:S}),$.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return(0,s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))})),Yf=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",{className:d()("app-select-control",t)},(0,s.createElement)(Wf,n))},Kf=e=>{const{data:t=[]}=Xp(),n=t.map((e=>({value:e.id,label:(0,o.sprintf)(// translators: 1: account name, 2: account domain, 3: account ID.
|
4 |
(0,o.__)("%1$s ・ %2$s (%3$s)","google-listings-and-ads"),e.name,e.domain,e.id)})));return n.sort(((e,t)=>e.label.localeCompare(t.label))),n.unshift({value:"",label:(0,o.__)("Select one","google-listings-and-ads")}),(0,s.createElement)(Yf,l({options:n},e))},Qf=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("gla-content-button-layout",t)},n))},Zf=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));function Xf(e,t){return e.map((function(e,n){return e+t[n]}))}function Jf(e,t){return e.map((function(e,n){return e-t[n]}))}function em(e){return Math.hypot.apply(Math,e)}function tm(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function nm(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function rm(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-nm(t-e,n-t,r)+t:e>n?+nm(e-n,n-t,r)+n:e}function om(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 am(){return am=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},am.apply(this,arguments)}function im(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(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 cm(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return lm(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)?lm(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}function um(){}function dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?um:1===t.length?t[0]:function(){for(var e,n,r=cm(t);!(n=r()).done;){var o=n.value;e=o.apply(this,arguments)||e}return e}}function gm(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function pm(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function fm(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],s=a[1];switch(typeof s){case"function":n[i]=s.call(n,e[i],i,e);break;case"object":n[i]=fm(e[i],s);break;case"boolean":s&&(n[i]=e[i])}}return n}function mm(){return"undefined"!=typeof window&&"ontouchstart"in window}function hm(e){return"pointerId"in e?null:"touchend"===e.type?e.changedTouches:e.targetTouches}function ym(e){return Array.from(hm(e)).map((function(e){return e.identifier}))}function vm(e){return{buttons:"buttons"in e?e.buttons:0,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}var bm=function(e){return e};function _m(e,t){void 0===t&&(t=bm);var n=hm(e),r=n?n[0]:e;return t([r.clientX,r.clientY])}var wm={threshold:function(e){return void 0===e&&(e=0),gm(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return gm(.15);case!1:return gm(0);default:return gm(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:gm(e)},transform:!0},Em=am({},wm,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return Em.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,a=void 0===o?1/0:o,i=t.top,s=void 0===i?-1/0:i,l=t.bottom;return[[r,a],[s,void 0===l?1/0:l]]}}),$m="undefined"!=typeof window&&window.document&&window.document.createElement,Cm={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(_x){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=$m?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}},transform:!0},km=am({},Em,{useTouch:function(e){void 0===e&&(e=!1);var t=mm(),n="undefined"!=typeof window&&"onpointerdown"in window;return!(!e||!t)||!(!t||n)},experimental_preventWindowScrollY:function(e){return void 0===e&&(e=!1),e},threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,a=n.lockDirection,i=void 0!==a&&a,s=n.axis,l=gm(e,o?3:i||(void 0===s?void 0:s)?1:0);return this.filterTaps=o,l},swipeVelocity:function(e){return void 0===e&&(e=.5),gm(e)},swipeDistance:function(e){return void 0===e&&(e=50),gm(e)},swipeDuration:function(e){return void 0===e&&(e=250),e},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Sm(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),i=function(e){return void 0===e&&(e={}),fm(e,Cm)}({domTarget:t,eventOptions:n,window:r,enabled:o});return i.drag=function(e){return void 0===e&&(e={}),fm(e,km)}(a),i}function xm(e){return am({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:um,canceled:!1,memo:void 0,args:void 0},e)}function Om(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:xm({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:xm({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Pm=new Map,Am=function(e){return e},Nm=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=n.controller.pointerIds.size||n.controller.touchIds.size,a=n.controller.state.shared.buttons>0||o>0,i=am({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),s=n.handler(i);return n.state.memo=void 0!==s?s:n.state.memo,i},this.controller=e,this.args=t}var t,n,r=e.prototype;return r.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},r.updateGestureState=function(e){Object.assign(this.state,e)},r.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},r.getMovement=function(e){var t=this.config.rubberband,n=this.state,r=n._bounds,o=n._initial,a=n._active,i=n._intentional,s=n.lastOffset,l=n.movement,c=n._threshold,u=this.getInternalMovement(e,this.state),d=!1===i[0]?Rm(u[0],c[0]):i[0],g=!1===i[1]?Rm(u[1],c[1]):i[1],p=this.checkIntentionality([d,g],u);if(p._blocked)return am({},p,{_movement:u,delta:[0,0]});var f=p._intentional,m=u,h=[!1!==f[0]?u[0]-f[0]:0,!1!==f[1]?u[1]-f[1]:0],y=Xf(h,s),v=a?t:[0,0];return h=Tm(r,Xf(h,o),v),am({},p,{intentional:!1!==f[0]||!1!==f[1],_initial:o,_movement:m,movement:h,values:e,offset:Tm(r,y,v),delta:Jf(h,l)})},r.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||Am}}])&&om(t.prototype,n),e}();function Rm(e,t){return Math.abs(e)>=t&&tm(e)*t}function Tm(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],s=e[0],l=s[0],c=s[1],u=e[1],d=u[0],g=u[1];return[rm(r,l,c,a),rm(o,d,g,i)]}function Mm(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function jm(e,t,n,r){var o=e.state,a=e.config,i=e.stateKey,s=e.args,l=e.transform,c=o.offset,u=n.timeStamp,d=a.initial,g=a.bounds,p=Jf(l(a.threshold),l([0,0])).map(Math.abs),f=am({},Om()[i],{_active:!0,args:s,values:t,initial:null!=r?r:t,_threshold:p,offset:c,lastOffset:c,startTime:u});return am({},f,{_initial:pm(d,f),_bounds:pm(g,f)})}var Im=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=mm(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o,a={},i=cm(t.classes);!(o=i()).done;){var s=o.value;new s(t,n).addBindings(a)}var l=function(e){Um(a,e,(function(r){return t.nativeRefs[e](am({},t.state.shared,{event:r,args:n}))}))};for(var c in t.nativeRefs)l(c);return t.config.domTarget?Bm(t,a):qm(t,a)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Hm(t.config),n=t.config.eventOptions;e&&Wm(e,zm(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(n){for(var a in o)Wm(n,o[a],r);e.windowListeners={}}}(t)},this.classes=e,this.state=Om(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Fm(e,t){"pointerId"in t?e.pointerIds.add(t.pointerId):e.touchIds=new Set(ym(t))}function Dm(e,t){"pointerId"in t?e.pointerIds.delete(t.pointerId):ym(t).forEach((function(t){return e.touchIds.delete(t)}))}function Lm(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=r.eventOptions),r.window&&(Wm(r.window,o[t],n),delete o[t])}function Gm(e,t,n,r){var o=e.config,a=e.windowListeners;void 0===n&&(n=[]),void 0===r&&(r=o.eventOptions),o.window&&(Wm(o.window,a[t],r),Vm(o.window,a[t]=n,r))}function Bm(e,t){var n=e.config,r=e.domListeners,o=Hm(n);if(!o)throw new Error("domTarget must be defined");var a=n.eventOptions;Wm(o,zm(r),a);for(var i=0,s=Object.entries(t);i<s.length;i++){var l=s[i],c=l[0],u=l[1],d=c.slice(2).toLowerCase();r.push([d,dm.apply(void 0,u)])}Vm(o,r,a)}function qm(e,t){for(var n={},r=e.config.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var i=a[o],s=i[0],l=i[1],c=Array.isArray(l)?l:[l];n[s+r]=dm.apply(void 0,c)}return n}function zm(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Hm(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Um(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Vm(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=cm(t);!(r=o()).done;){var a=r.value,i=a[0],s=a[1];e.addEventListener(i,s,n)}}function Wm(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=cm(t);!(r=o()).done;){var a=r.value,i=a[0],s=a[1];e.removeEventListener(i,s,n)}}function Ym(){}var Km=function(e){function t(){return e.apply(this,arguments)||this}im(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Jf(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],a=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=em(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,s=t.map((function(e){return a*e})),l=t.map((function(e){return o*e}));return{velocities:s,velocity:i,distance:em(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Nm);function Qm(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}var Zm=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.setPointerCapture=function(e){if(!t.config.useTouch&&!document.pointerLockElement){var n=e.target,r=e.pointerId;n&&"setPointerCapture"in n&&n.setPointerCapture(r),t.updateGestureState({_dragTarget:n,_dragPointerId:r})}},t.releasePointerCapture=function(){if(!t.config.useTouch&&!document.pointerLockElement){var e=t.state,n=e._dragTarget,r=e._dragPointerId;if(r&&n&&"releasePointerCapture"in n&&(!("hasPointerCapture"in n)||n.hasPointerCapture(r)))try{n.releasePointerCapture(r)}catch(e){}}},t.preventScroll=function(e){t.state._dragPreventScroll&&e.cancelable&&e.preventDefault()},t.getEventId=function(e){return t.config.useTouch?e.changedTouches[0].identifier:e.pointerId},t.isValidEvent=function(e){return t.state._pointerId===t.getEventId(e)},t.shouldPreventWindowScrollY=t.config.experimental_preventWindowScrollY&&t.controller.supportsTouchEvents,t.setUpWindowScrollDetection=function(e){Qm(e),Gm(t.controller,t.stateKey,[["touchmove",t.preventScroll],["touchend",t.clean.bind(sm(t))],["touchcancel",t.clean.bind(sm(t))]],{passive:!1}),t.setTimeout(t.startDrag.bind(sm(t)),250,e)},t.setUpDelayedDragTrigger=function(e){t.state._dragDelayed=!0,Qm(e),t.setTimeout(t.startDrag.bind(sm(t)),t.config.delay,e)},t.setStartState=function(e){var n=_m(e,t.transform);t.updateSharedState(vm(e)),t.updateGestureState(am({},jm(sm(t),n,e),Mm(sm(t),e,!0),{_pointerId:t.getEventId(e)})),t.updateGestureState(t.getMovement(n))},t.onDragStart=function(e){Fm(t.controller,e),t.enabled&&!t.state._active&&(t.setStartState(e),t.setPointerCapture(e),t.shouldPreventWindowScrollY?t.setUpWindowScrollDetection(e):t.config.delay>0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Xf(t.transform([r,o]),t.state.values)}else n=_m(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=vm(e);t.updateSharedState(i);var s=Mm(sm(t),e),l=em(a._movement),c=t.state._dragIsTap;c&&l>=3&&(c=!1),t.updateGestureState(am({},s,a,{_dragIsTap:c})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(Dm(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,s=i[0],l=i[1],c=t.state._intentional,u=c[0],d=c[1],g=t.config.swipeVelocity,p=g[0],f=g[1],m=t.config.swipeDistance,h=m[0],y=m[1],v=t.config.swipeDuration,b=am({},Mm(sm(t),e),t.getMovement(t.state.values)),_=[0,0];b.elapsedTime<v&&(!1!==u&&Math.abs(o)>p&&Math.abs(s)>h&&(_[0]=tm(o)),!1!==d&&Math.abs(a)>f&&Math.abs(l)>y&&(_[1]=tm(a))),t.updateSharedState({buttons:0}),t.updateGestureState(am({},b,{tap:n,swipe:_})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(sm(t)),t.state._dragStarted=!1,t.releasePointerCapture(),Lm(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}im(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){this.config.useTouch?(Um(e,"onTouchStart",this.onDragStart),Um(e,"onTouchMove",this.onDragChange),Um(e,"onTouchEnd",this.onDragEnd),Um(e,"onTouchCancel",this.onDragEnd)):(Um(e,"onPointerDown",this.onDragStart),Um(e,"onPointerMove",this.onDragChange),Um(e,"onPointerUp",this.onDragEnd),Um(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps&&Um(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Km);function Xm(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Xm(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xm(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||Xm(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Jm(e,t){try{return Xm(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nh=function(e){return e},rh={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},oh="CHANGE",ah="COMMIT",ih="DRAG_END",sh="DRAG_START",lh="DRAG",ch="INVALIDATE",uh="PRESS_DOWN",dh="PRESS_ENTER",gh="PRESS_UP",ph="RESET",fh="UPDATE";function mh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh,t=e.value;return th(th(th({},rh),e),{},{initialValue:t})}function hh(e){return function(t,n){var r=th({},t),o=n.type,a=n.payload;switch(o){case gh:case uh:r.isDirty=!1;break;case sh:r.isDragging=!0;break;case ih:r.isDragging=!1;break;case oh:r.error=null,r.value=a.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case ah:r.value=a.value,r.isDirty=!1;break;case ph:r.error=null,r.isDirty=!1,r.value=a.value||t.initialValue;break;case fh:r.value=a.value,r.isDirty=!1;break;case ch:r.error=a.error}return a.event&&(r._event=a.event),e(r,n)}}var yh=(0,s.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,o=e.dragDirection,a=void 0===o?"n":o,i=e.dragThreshold,u=void 0===i?10:i,d=e.id,g=e.isDragEnabled,p=void 0!==g&&g,f=e.isFocused,y=e.isPressEnterToChange,v=void 0!==y&&y,b=e.onBlur,_=void 0===b?ie.noop:b,w=e.onChange,E=void 0===w?ie.noop:w,$=e.onDrag,C=void 0===$?ie.noop:$,k=e.onDragEnd,S=void 0===k?ie.noop:k,x=e.onDragStart,O=void 0===x?ie.noop:x,P=e.onFocus,A=void 0===P?ie.noop:P,N=e.onKeyDown,R=void 0===N?ie.noop:N,T=e.onValidate,M=void 0===T?ie.noop:T,j=e.size,I=void 0===j?"default":j,F=e.setIsFocused,D=e.stateReducer,L=void 0===D?function(e){return e}:D,G=e.value,B=e.type,q=c(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nh,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rh,n=Et((0,s.useReducer)(hh(e),mh(t)),2),r=n[0],o=n[1],a=function(e){return function(t,n){n&&n.persist&&n.persist(),o({type:e,payload:{value:t,event:n}})}},i=function(e){return function(t){t&&t.persist&&t.persist(),o({type:e,payload:{event:t}})}},l=function(e){return function(t){o({type:e,payload:t})}},c=a(oh),u=a(ch),d=a(ph),g=a(ah),p=a(fh),f=l(sh),m=l(lh),h=l(ih),y=i(gh),v=i(uh),b=i(dh);return{change:c,commit:g,dispatch:o,drag:m,dragEnd:h,dragStart:f,invalidate:u,pressDown:v,pressEnter:b,pressUp:y,reset:d,state:r,update:p}}(L,{isDragEnabled:p,value:G,isPressEnterToChange:v}),H=z.state,U=z.change,V=z.commit,W=z.drag,Y=z.dragEnd,K=z.dragStart,Q=z.invalidate,Z=z.pressDown,X=z.pressEnter,J=z.pressUp,ee=z.reset,te=z.update,ne=H._event,re=H.value,oe=H.isDragging,ae=H.isDirty,se=(0,s.useRef)(!1),le=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,s.useEffect)((function(){document.documentElement.style.cursor=e?n:null}),[e]),n}(oe,a);Tl((function(){G!==re&&(f||se.current?ae||(E(re,{event:ne}),se.current=!1):te(G))}),[re,ae,f,G]);var ce=function(e){var t=e.target.value;try{M(t,e),V(t,e)}catch(t){Q(t,e)}},ue=function(e,t){void 0===t&&(t={}),Pm.set("drag",Zm);var n=(0,m.useRef)();return n.current||(n.current=function(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return a&&n===this&&t(s,o)||(r=e.apply(this,s),a=!0,n=this,o=s),r}}(Sm,Jm)),function(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;return e.drag&&t.add(Pm.get("drag")),e.wheel&&t.add(Pm.get("wheel")),e.scroll&&t.add(Pm.get("scroll")),e.move&&t.add(Pm.get("move")),e.pinch&&t.add(Pm.get("pinch")),e.hover&&t.add(Pm.get("hover")),t}(e),o=h().useMemo((function(){return new Im(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,h().useEffect(o.effect,[]),o.config.domTarget?Ym:o.bind}({drag:function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return S(e),void Y(e);C(e),W(e),oe||(O(e),K(e))}}},n.current(t))}(0,{threshold:u,enabled:p}),de=p?ue():{};return(0,s.createElement)(Nf,l({},q,de,{className:"components-input-control__input",disabled:r,dragCursor:le,isDragging:oe,id:d,onBlur:function(e){_(e),F(!1),v&&ae&&(se.current=!0,function(e){var t=""===e;return!Ol(e)||t}(re)?ee(G):ce(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){A(e),F(!0)},onKeyDown:function(e){var t=e.keyCode;switch(R(e),t){case cs.UP:J(e);break;case cs.DOWN:Z(e);break;case cs.ENTER:X(e),v&&(e.preventDefault(),ce(e))}},ref:t,size:I,value:re,type:B}))})),vh=yh;var bh=(0,s.forwardRef)((function e(t,n){var r=t.__unstableStateReducer,o=void 0===r?function(e){return e}:r,a=t.__unstableInputWidth,i=t.className,u=t.disabled,g=void 0!==u&&u,p=t.hideLabelFromVision,f=void 0!==p&&p,m=t.id,h=t.isPressEnterToChange,y=void 0!==h&&h,v=t.label,b=t.labelPosition,_=void 0===b?"top":b,w=t.onChange,E=void 0===w?ie.noop:w,$=t.onValidate,C=void 0===$?ie.noop:$,k=t.onKeyDown,S=void 0===k?ie.noop:k,x=t.prefix,O=t.size,P=void 0===O?"default":O,A=t.suffix,N=t.value,R=c(t,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),T=Et((0,s.useState)(!1),2),M=T[0],j=T[1],I=function(t){var n=nf(e),r="inspector-input-control-".concat(n);return t||r}(m),F=d()("components-input-control",i);return(0,s.createElement)(Hf,{__unstableInputWidth:a,className:F,disabled:g,gap:3,hideLabelFromVision:f,id:I,isFocused:M,justify:"left",label:v,labelPosition:_,prefix:x,size:P,suffix:A},(0,s.createElement)(vh,l({},R,{className:"components-input-control__input",disabled:g,id:I,isFocused:M,isPressEnterToChange:y,onChange:E,onKeyDown:S,onValidate:C,ref:n,setIsFocused:j,size:P,stateReducer:o,value:N})))}));const _h="app-input-control";var wh=(0,s.forwardRef)(((e,t)=>{const{className:n,noPointerEvents:r,...o}=e,a=d()(_h,r&&`${_h}--no-pointer-events`,n);return(0,s.createElement)("div",{className:a},(0,s.createElement)(bh,l({ref:t},o)))})),Eh=e=>{const{className:t,...n}=e;return(0,s.createElement)(wh,l({className:d()("app-input-link-control",t),prefix:(0,s.createElement)(yp,{icon:Zf,size:24})},n))},$h=e=>{let{id:t,websiteUrl:n,onSwitchAccount:r=ie.noop}=e;const{invalidateResolution:a}=xg(),[l,{loading:c,error:u,reset:d}]=Dp({path:"/wc/gla/mc/accounts/claim-overwrite",method:"POST",data:{id:t}}),g=(0,i.getSetting)("homeUrl");return(0,s.createElement)(Sp,{className:"gla-reclaim-url-card",appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: website URL, 2: account ID.
|
5 |
(0,o.__)("%1$s (%2$s)","google-listings-and-ads"),n,t),indicator:(0,s.createElement)(gc,{isSecondary:!0,disabled:c,eventName:"gla_mc_account_switch_account_button_click",eventProps:{context:"reclaim-url"},onClick:r},(0,o.__)("Switch account","google-listings-and-ads"))},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Reclaim your URL","google-listings-and-ads")),(0,s.createElement)(lp.Body,null,(0,o.__)("Your URL is currently claimed by another Merchant Center account.","google-listings-and-ads")),(0,s.createElement)(Qf,null,(0,s.createElement)(Eh,{disabled:!0,value:g}),(0,s.createElement)(gc,{isSecondary:!0,loading:c,eventName:"gla_mc_account_reclaim_url_button_click",onClick:async()=>{d(),await l({parse:!1}),a("getGoogleMCAccount",[])}},(0,o.__)("Reclaim my URL","google-listings-and-ads"))),(0,s.createElement)(lp.HelperText,null,(0,s.createInterpolateElement)((0,o.__)("If you reclaim this URL, it will cause any existing product listings or ads to stop running, and the other verified account will be notified that they have lost their claim. <link>Learn more</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc",linkId:"claim-url",href:"https://support.google.com/merchants/answer/176793"})})),u&&(0,s.createElement)(Fc,{status:"error",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("<strong>We were unable to reclaim this URL.</strong> You may not have permission to reclaim this URL, or an error might have occurred. Try again later or contact your Google account administrator.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)}))))},Ch=e=>{let{id:t,claimedUrl:n,newUrl:r,onSelectAnotherAccount:a=(()=>{})}=e;const{createNotice:l}=Ap(),{invalidateResolution:c}=xg(),[u,{loading:d,error:g,response:p}]=Dp({path:"/wc/gla/mc/accounts/switch-url",method:"POST",data:{id:t}}),f=(0,i.getSetting)("homeUrl"),m=()=>{a()};return p&&403===p.status?(0,s.createElement)($h,{id:g.id,websiteUrl:g.website_url,onSwitchAccount:m}):(0,s.createElement)(Sp,{className:"gla-switch-url-card",appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: the new URL, 2: account ID.
|
@@ -8,29 +8,29 @@
|
|
8 |
/* translators: 1: new URL. 2: claimed URL. */
|
9 |
(0,o.__)("If you switch your claimed URL to %1$s, you will lose your claim to %2$s. This will cause any existing product listings tied to %2$s to stop running.","google-listings-and-ads"),r,n))))},kh=function(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat((0,ie.upperFirst)((0,ie.camelCase)(t)),"(").concat(a,")"),r}},Sh=kh((function(e){return function(t){var n=nf(e);return(0,s.createElement)(e,l({},t,{instanceId:n}))}}),"withInstanceId"),xh=kh((function(e){return function(t){var n=Et((0,s.useState)(),2),r=n[0],o=n[1],a=(0,s.useCallback)((function(e){return o((function(){return null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0}))}),[]);return(0,s.createElement)("div",Es(r),(0,s.createElement)(e,l({ref:a},t)))}}),"withFocusOutside");function Oh(e){var t=e.overlayClassName,n=e.contentLabel,r=e.aria,o=r.describedby,a=r.labelledby,i=e.children,l=e.className,c=e.role,u=e.style,g=e.focusOnMount,p=e.shouldCloseOnEsc,f=e.onRequestClose,m=_s(g),h=vs(),y=bs();return(0,s.createElement)("div",{className:d()("components-modal__screen-overlay",t),onKeyDown:function(e){p&&e.keyCode===cs.ESCAPE&&(e.stopPropagation(),f&&f(e))}},(0,s.createElement)("div",{className:d()("components-modal__frame",l),style:u,ref:nn([h,y,m]),role:c,"aria-label":n,"aria-labelledby":n?null:a,"aria-describedby":o,tabIndex:"-1"},i))}var Ph=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).handleFocusOutside=e.handleFocusOutside.bind(Rs(e)),e}return As(o,[{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.props.onRequestClose&&this.props.onRequestClose(e)}},{key:"render",value:function(){return(0,s.createElement)(Oh,this.props)}}]),o}(s.Component),Ah=xh(Ph),Nh=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,l=e.isDismissible,c=a||(0,o.__)("Close dialog");return(0,s.createElement)("div",{className:"components-modal__header"},(0,s.createElement)("div",{className:"components-modal__header-heading-container"},t&&(0,s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&(0,s.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),l&&(0,s.createElement)(xl,{onClick:r,icon:$s,label:c}))},Rh=new Set(["alert","status","log","marquee","timer"]),Th=[],Mh=!1;var jh,Ih=0,Fh=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(e){var t;return Os(this,o),(t=r.call(this,e)).prepareDOM(),t}return As(o,[{key:"componentDidMount",value:function(){1==++Ih&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0==--Ih&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){jh||(jh=document.createElement("div"),document.body.appendChild(jh)),this.node=document.createElement("div"),jh.appendChild(this.node)}},{key:"cleanDOM",value:function(){jh.removeChild(this.node)}},{key:"openFirstModal",value:function(){(function(e){if(!Mh){var t=document.body.children;(0,ie.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Rh.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Th.push(t))})),Mh=!0}})(jh),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),Mh&&((0,ie.forEach)(Th,(function(e){e.removeAttribute("aria-hidden")})),Th=[],Mh=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,o=e.closeButtonLabel,a=e.children,i=e.aria,u=e.instanceId,d=e.isDismissible,g=e.isDismissable,p=c(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),f=i.labelledby||"components-modal-header-".concat(u);return g&&ss()("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),(0,s.createPortal)((0,s.createElement)(Ah,l({onRequestClose:t,aria:{labelledby:n?f:null,describedby:i.describedby}},p),(0,s.createElement)("div",{className:"components-modal__content",role:"document"},(0,s.createElement)(Nh,{closeLabel:o,headingId:f,icon:r,isDismissible:d||g,onClose:t,title:n}),a)),this.node)}}]),o}(s.Component);Fh.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};var Dh=Sh(Fh);const Lh={auto:!1,visible:"app-modal__styled--overflow-visible"};var Gh=e=>{let{className:t,overflow:n="auto",buttons:r=[],children:o,...a}=e;const i=d()("app-modal",Lh[n],t);return(0,s.createElement)(Dh,l({className:i},a),o,r.length>=1&&(0,s.createElement)("div",{className:"app-modal__footer"},r))},Bh=__webpack_require__(5683),qh=e=>{let{size:t=18}=e;return(0,s.createElement)(Bh.Z,{className:"gla-warning-icon",size:t})},zh=e=>{let{existingAccount:t,onContinue:n=(()=>{}),onRequestClose:r=(()=>{})}=e;return(0,s.createElement)(Gh,{className:"gla-mc-warning-modal",title:(0,o.__)("Create Google Merchant Center Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"confirm",isSecondary:!0,eventName:"gla_mc_account_warning_modal_confirm_button_click",onClick:()=>{n()}},(0,o.__)("Yes, I want a new account","google-listings-and-ads")),(0,s.createElement)(gc,{key:"cancel",isPrimary:!0,onClick:r},(0,o.__)("Cancel","google-listings-and-ads"))],onRequestClose:r},(0,s.createElement)("p",{className:"gla-mc-warning-modal__warning-text"},(0,s.createElement)(qh,null),(0,s.createElement)("span",null,(0,o.__)("Are you sure you want to create a new Google Merchant Center account?","google-listings-and-ads"))),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You already have another verified account, <storename />, which is connected to this store’s URL, <storeurl />.","google-listings-and-ads"),{storename:(0,s.createElement)("strong",null,t.name),storeurl:(0,s.createElement)("strong",null,t.domain)})),(0,s.createElement)("p",null,(0,o.__)("If you create a new Google Merchant Center account, you will have to reclaim this store’s URL with the new account. This will cause any existing product listings or ads to stop running, and the other verified account will lose its claim.","google-listings-and-ads")))},Hh=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));function Uh(e){var t=e.label,n=e.className,r=e.heading,o=e.checked,a=e.help,i=e.onChange,u=c(e,["label","className","heading","checked","help","onChange"]),d=nf(Uh),g="inspector-checkbox-control-".concat(d);return(0,s.createElement)(df,{label:r,id:g,help:a,className:n},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",l({id:g,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return i(e.target.checked)},checked:o,"aria-describedby":a?g+"__help":void 0},u)),o?(0,s.createElement)(yp,{icon:Hh,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:g},t))}var Vh=e=>{let{onCreateAccount:t=(()=>{}),onRequestClose:n=(()=>{})}=e;const[r,a]=(0,s.useState)(!1);return(0,s.createElement)(Gh,{className:"gla-mc-terms-modal",title:(0,o.__)("Create Google Merchant Center Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"1",isPrimary:!0,disabled:!r,eventName:"gla_mc_account_create_button_click",onClick:()=>{t(),n()}},(0,o.__)("Create account","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",{className:"main"},(0,o.__)("By creating a Google Merchant Center account, you agree to the following terms and conditions:","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You agree to comply with Google’s terms and policies, including <link>Google Merchant Center Terms of Service</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc",linkId:"google-mc-terms-of-service",href:"https://support.google.com/merchants/answer/160173"})})),(0,s.createElement)(Uh,{label:(0,o.__)("I have read and accept these terms","google-listings-and-ads"),checked:r,onChange:a}))};const Wh=Object.freeze({NONE:"NONE",WARNING:"WARNING",TERMS:"TERMS"});var Yh=e=>{const{onCreateAccount:t=ie.noop,onClick:n=ie.noop,...r}=e,[o,a]=(0,s.useState)(Wh.NONE),{data:c}=Xp(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new URL((0,i.getSetting)("homeUrl")).toString();return e.find((e=>{try{return new URL(e.domain).toString()===t}catch(e){return!1}}))}(c),d=()=>{a(Wh.NONE)};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,l({onClick:()=>{a(u?Wh.WARNING:Wh.TERMS),n()}},r)),o===Wh.WARNING&&(0,s.createElement)(zh,{existingAccount:u,onContinue:()=>{a(Wh.TERMS)},onRequestClose:d}),o===Wh.TERMS&&(0,s.createElement)(Vh,{onCreateAccount:t,onRequestClose:d}))},Kh=()=>{const{createNotice:e}=Ap(),{invalidateResolution:t}=xg(),[n,r]=Dp({path:"/wc/gla/mc/accounts",method:"POST"});return[async()=>{try{var a;await n({data:(null===(a=r.error)||void 0===a?void 0:a.id)&&{id:r.error.id},parse:!1}),t("getGoogleMCAccount",[])}catch(t){if(![403,503].includes(t.status)){const n=(await t.json()).message||(0,o.__)("Unable to create Merchant Center account. Please try again later.","google-listings-and-ads");e("error",n)}}},r]},Qh=e=>{const{retryAfter:t,onRetry:n=(()=>{})}=e;return(0,s.useEffect)((()=>{if(!t)return;const e=setInterval((()=>{n()}),1e3*t);return()=>clearInterval(e)}),[t,n]),(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.__)("This may take a few minutes, please wait a moment…","google-listings-and-ads"),indicator:(0,s.createElement)(gc,{loading:!0},(0,o.__)("Creating…","google-listings-and-ads"))})},Zh=()=>{var e,t,n,r;const[a,i]=(0,s.useState)(),[l,c]=(e=>{const{createNotice:t}=Ap(),[n,r]=Dp({path:"/wc/gla/mc/accounts",method:"POST",data:{id:e}}),{invalidateResolution:a}=xg();return[async()=>{if(e)try{await n({parse:!1}),a("getGoogleMCAccount",[])}catch(e){if(![409,403].includes(e.status)){const n=(await e.json()).message||(0,o.__)("Unable to connect Merchant Center account. Please try again later.","google-listings-and-ads");t("error",n)}}},r]})(a),[u,d]=Kh();return 409===(null===(e=c.response)||void 0===e?void 0:e.status)?(0,s.createElement)(Ch,{id:c.error.id,message:c.error.message,claimedUrl:c.error.claimed_url,newUrl:c.error.new_url,onSelectAnotherAccount:c.reset}):403===(null===(t=c.response)||void 0===t?void 0:t.status)||403===(null===(n=d.response)||void 0===n?void 0:n.status)?(0,s.createElement)($h,{id:(null===(g=c.error)||void 0===g?void 0:g.id)||(null===(p=d.error)||void 0===p?void 0:p.id),websiteUrl:(null===(f=c.error)||void 0===f?void 0:f.website_url)||(null===(m=d.error)||void 0===m?void 0:m.website_url),onSwitchAccount:()=>{c.reset(),d.reset()}}):d.loading||503===(null===(r=d.response)||void 0===r?void 0:r.status)?(0,s.createElement)(Qh,{retryAfter:null===(h=d.error)||void 0===h?void 0:h.retry_after,onRetry:u}):(0,s.createElement)(Sp,{className:"gla-connect-mc-card",appearance:wp.GOOGLE_MERCHANT_CENTER},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select an existing account","google-listings-and-ads")),(0,s.createElement)(Qf,null,(0,s.createElement)(Kf,{value:a,onChange:i}),(0,s.createElement)(gc,{isSecondary:!0,loading:c.loading,disabled:!a,eventName:"gla_mc_account_connect_button_click",onClick:l},(0,o.__)("Connect","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(Yh,{isLink:!0,disabled:c.loading,onCreateAccount:u},(0,o.__)("Or, create a new Merchant Center account","google-listings-and-ads"))));var g,p,f,m,h},Xh=e=>{const{onCreateAccount:t}=e;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,indicator:(0,s.createElement)(Yh,{isSecondary:!0,onCreateAccount:t},(0,o.__)("Create Account","google-listings-and-ads"))})},Jh=e=>{const{onSwitchAccount:t}=e,[n,{loading:r,error:o,response:a}]=Kh();return r||a&&503===a.status?(0,s.createElement)(Qh,{retryAfter:o&&o.retry_after,onRetry:n}):a&&403===a.status?(0,s.createElement)($h,{id:o.id,websiteUrl:o.website_url,onSwitchAccount:t}):(0,s.createElement)(Xh,{onCreateAccount:n})},ey=()=>{const{data:e,hasFinishedResolution:t,invalidateResolution:n}=Xp();return t?e.length>0?(0,s.createElement)(Zh,null):(0,s.createElement)(Jh,{onSwitchAccount:n}):(0,s.createElement)(Kp,null)},ty=()=>{const{hasFinishedResolution:e,googleMCAccount:t}=Jg();return e?t?0===t.id||"connected"!==t.status?(0,s.createElement)(ey,null):(0,s.createElement)(Qp,{googleMCAccount:t}):(0,s.createElement)(Zp,null):(0,s.createElement)(Kp,null)},ny=()=>(0,s.createElement)("div",{className:"gla-google-mc-account"},(0,s.createElement)(dp,{description:(0,s.createElement)(Nc,null,(0,s.createInterpolateElement)((0,o.__)("Google’s Shopping tab has an average of <strong>over 50% increase in clicks and over 100% increase in impressions</strong> across free listings and ads. <tooltip>Source</tooltip>","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null),tooltip:(0,s.createElement)(Yp,{text:(0,o.__)("Google Internal Data, July 2020, based on an A/B test comparing performance for users seeing the updated layout on the Shopping property vs a control group not seeing the new experience.","google-listings-and-ads")})}))},(0,s.createElement)(ty,null)));const ry=[{trackId:"why-do-i-need-a-wp-account",question:(0,o.__)("Why do I need a WordPress.com account?","google-listings-and-ads"),answer:(0,o.__)("We use a WordPress.com account to connect your site to the WooCommerce and Google servers. It ensures that requests (e.g. product feed, clicks, sales, etc) from your site are securely and correctly attributed to your store. It enables a connection to your self-hosted site, and provides a common authentication interface across disparate server configurations and architectures.","google-listings-and-ads")},{trackId:"why-do-i-need-a-google-mc-account",question:(0,o.__)("Why do I need a Google Merchant Center account?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Google Merchant Center helps you sync your store and product data with Google and makes the information available for both free listings on the Shopping tab and Google Shopping Ads. That means everything about your stores and products is available to shoppers when they search on a Google property.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("If you create a new Merchant Center account through this application, it will be associated with Google’s Comparison Shopping Service (Google Shopping) by default. You can change the CSS associated with your account at any time. <link>Please find more information here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"find-a-partner",href:"https://comparisonshoppingpartners.withgoogle.com/find_a_partner/"})})))}];var oy=()=>(0,s.createElement)(dp,null,(0,s.createElement)(Gl,{trackName:"gla_faq",context:"setup-mc-accounts",faqItems:ry})),ay=e=>{const{onContinue:t=(()=>{})}=e,{jetpack:n}=Wg(),{google:r,scope:a}=Xg(),{googleMCAccount:i}=Jg(),l=!n,c="yes"===(null==n?void 0:n.active)&&!r,u="yes"===(null==r?void 0:r.active)&&a.gmcRequired&&!i;if(l||c||u)return(0,s.createElement)(Vg,null);const d="yes"!==(null==n?void 0:n.active),g="connected"!==(null==i?void 0:i.status);return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up your accounts","google-listings-and-ads"),description:(0,o.__)("Connect your WordPress.com account, Google account, and Google Merchant Center account to use Google Listings & Ads.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Connect accounts","google-listings-and-ads"),description:(0,o.__)("The following accounts are required to use the Google Listings & Ads plugin.","google-listings-and-ads")},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Gp,{jetpack:n}),(0,s.createElement)(Wp,{disabled:d}))),(0,s.createElement)(ny,null),(0,s.createElement)(oy,null),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:g,onClick:t},(0,o.__)("Continue","google-listings-and-ads"))))},iy=__webpack_require__(8465),sy=()=>(0,s.createElement)("div",{className:"gla-setup-free-listing-hero"},(0,s.createElement)(tp,{className:"hero-text",title:(0,o.__)("Configure your product listings","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",{className:"hero-text__subtitle"},(0,o.__)("Your free product listings will look something like this.","google-listings-and-ads")),(0,s.createElement)("p",{className:"hero-text__body"},(0,o.__)("Your product details, estimated shipping info and tax details will be displayed across Google.","google-listings-and-ads")))}),(0,s.createElement)("div",{className:"hero-image"},(0,s.createElement)("img",{src:iy,alt:(0,o.__)("Google Shopping search results example","google-listings-and-ads"),width:"720",height:"319"}))),ly=()=>(0,dn.useSelect)((e=>({settings:e(Lc).getSettings()})),[]),cy=e=>e.rate>0&&e.method===sc;const uy=new Set(["automatic","flat","manual"]),dy=new Set(["flat","manual"]),gy=new Set(["destination","manual"]);var py=(e,t,n)=>{const r={};return uy.has(e.shipping_rate)||(r.shipping_rate=(0,o.__)("Please select a shipping rate option.","google-listings-and-ads")),"flat"===e.shipping_rate&&(e.shipping_country_rates.length<n.length||e.shipping_country_rates.some((e=>e.rate<0)))&&(r.shipping_rate=(0,o.__)("Please specify shipping rates for all the countries. And the estimated shipping rate cannot be less than 0.","google-listings-and-ads")),"flat"===e.shipping_rate&&(void 0===e.offer_free_shipping&&e.shipping_country_rates.some(cy)&&(r.offer_free_shipping=(0,o.__)("Please select an option for whether to offer free shipping.","google-listings-and-ads")),!0===e.offer_free_shipping&&e.shipping_country_rates.every((e=>void 0===e.options.free_shipping_threshold))&&(r.offer_free_shipping=(0,o.__)("Please enter minimum order for free shipping.","google-listings-and-ads"))),dy.has(e.shipping_time)||(r.shipping_time=(0,o.__)("Please select a shipping time option.","google-listings-and-ads")),"flat"===e.shipping_time&&(t.length<n.length||t.some((e=>e.time<0)))&&(r.shipping_time=(0,o.__)("Please specify shipping times for all the countries. And the estimated shipping time cannot be less than 0.","google-listings-and-ads")),n.includes("US")&&!gy.has(e.tax_rate)&&(r.tax_rate=(0,o.__)("Please specify tax rate option.","google-listings-and-ads")),r},fy=e=>{const{className:t="",...n}=e;return(0,s.createElement)("span",l({className:`wcdl-radio-helper-text ${t}`},n))};function my(e){var t=e.label,n=e.className,r=e.selected,o=e.help,a=e.onChange,i=e.options,l=void 0===i?[]:i,c=nf(my),u="inspector-radio-control-".concat(c),g=function(e){return a(e.target.value)};return!(0,ie.isEmpty)(l)&&(0,s.createElement)(df,{label:t,id:u,help:o,className:d()(n,"components-radio-control")},l.map((function(e,t){return(0,s.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},(0,s.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:g,checked:e.value===r,"aria-describedby":o?"".concat(u,"__help"):void 0}),(0,s.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))}var hy=e=>{const{className:t,label:n,value:r,selected:o,collapsible:a=!1,children:i,...c}=e;return(0,s.createElement)("div",{className:d()("app-radio-content-control",t)},(0,s.createElement)(my,l({selected:o,options:[{label:n,value:r}]},c,{help:""})),(!a||o===r)&&(0,s.createElement)("div",{className:"app-radio-content-control__content"},i))},yy=e=>{const{formProps:{getInputProps:t}}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Tax rate (required for U.S. only)","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("This tax rate will be shown to potential customers, together with the cost of your product.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-tax-rate",linkId:"tax-rate-read-more",href:"https://support.google.com/merchants/answer/160162"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},t("tax_rate"),{label:(0,o.__)("My store uses destination-based tax rates.","google-listings-and-ads"),value:"destination",collapsible:!0}),(0,s.createElement)(fy,null,(0,o.__)("Google’s estimated tax rates will automatically be applied to my product listings.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},t("tax_rate"),{label:(0,o.__)("My store does not use destination-based tax rates.","google-listings-and-ads"),value:"manual",collapsible:!0}),(0,s.createElement)(fy,null,(0,s.createInterpolateElement)((0,o.__)("I’ll set my tax rates up manually in <link>Google Merchant Center</link>. I understand that if I don’t set this up, my products will be disapproved.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-tax-rate",linkId:"tax-rate-manual",href:"https://www.google.com/retail/solutions/merchant-center/"})})))))))};function vy(e,t,n){var r=this,o=(0,m.useRef)(null),a=(0,m.useRef)(0),i=(0,m.useRef)(null),s=(0,m.useRef)([]),l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(e),d=(0,m.useRef)(!0);u.current=e;var g=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,f=!("trailing"in n)||!!n.trailing,h="maxWait"in n,y=h?Math.max(+n.maxWait||0,t):null,v=(0,m.useCallback)((function(e){var t=s.current,n=l.current;return s.current=l.current=null,a.current=e,c.current=u.current.apply(n,t)}),[]),b=(0,m.useCallback)((function(e,t){g&&cancelAnimationFrame(i.current),i.current=g?requestAnimationFrame(e):setTimeout(e,t)}),[g]),_=(0,m.useCallback)((function(e){if(!d.current)return!1;var n=e-o.current,r=e-a.current;return!o.current||n>=t||n<0||h&&r>=y}),[y,h,t]),w=(0,m.useCallback)((function(e){return i.current=null,f&&s.current?v(e):(s.current=l.current=null,c.current)}),[v,f]),E=(0,m.useCallback)((function(){var e=Date.now();if(_(e))return w(e);if(d.current){var n=e-o.current,r=e-a.current,i=t-n,s=h?Math.min(i,y-r):i;b(E,s)}}),[y,h,_,b,w,t]),$=(0,m.useCallback)((function(){i.current&&(g?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null}),[g]),C=(0,m.useCallback)((function(){return i.current?w(Date.now()):c.current}),[w]);(0,m.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var k=(0,m.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var u=Date.now(),g=_(u);if(s.current=e,l.current=r,o.current=u,g){if(!i.current&&d.current)return a.current=o.current,b(E,t),p?v(o.current):c.current;if(h)return b(E,t),v(o.current)}return i.current||b(E,t),c.current}),[v,p,h,_,b,E,t]),S=(0,m.useCallback)((function(){return!!i.current}),[]);return(0,m.useMemo)((function(){return{callback:k,cancel:$,flush:C,pending:S}}),[k,$,C,S])}const by={wait:500,callOnFirstRender:!1};var _y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:by;const{wait:r,callOnFirstRender:o}={...by,...n},a=Og(e),i=vy(t,r),l=(0,s.useRef)(!1);(0,s.useEffect)((()=>{o||l.current?i.callback(a):l.current=!0}),[o,i,a])},wy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{code:t}=Rg();return"US"===t||!(!e||!e.includes("US"))||(!t||null===e)&&null},Ey=()=>{const e=Pg("getMCCountriesAndContinents");return{...e,data:e.data.countries}},$y=()=>{const{data:e,isResolving:t}=Ey();return(0,dn.useSelect)((function(n){const{getTargetAudience:r,isResolving:o}=n(Lc),a=r(),i=o("getTargetAudience")||t,s=e&&Object.keys(e);function l(e){return"all"===(null==e?void 0:e.location)?s:null==e?void 0:e.countries}return{loading:i,data:l(a),targetAudience:a,getFinalCountries:l}}),[e,t])},Cy=e=>{let{show:t,children:n}=e;switch(t){case!0:return n;case!1:return null;default:return(0,s.createElement)(dp,null,(0,s.createElement)(Vg,null))}},ky=__webpack_require__(3115),Sy=e=>{const{button:t,modal:n}=e,{onClick:r=(()=>{})}=t.props,{onRequestClose:o=(()=>{})}=n.props,[a,i]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.cloneElement)(t,{onClick:function(){i(!0),r(...arguments)}}),a&&(0,s.cloneElement)(n,{onRequestClose:function(){i(!1),o(...arguments)}}))};const xy=__webpack_require__(9016);function Oy({precision:e=null,decimalSeparator:t=".",thousandSeparator:n=","},r){if("number"!=typeof r&&(r=parseFloat(r)),isNaN(r))return"";let o=parseInt(e,10);if(isNaN(o)){const[,e]=r.toString().split(".");o=e?e.length:0}return xy(r,o,t,n)}var Py=()=>{const e=(0,i.getSetting)("currency");return(0,s.useMemo)((()=>({...e,formatNumber:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.precision;const r={...e,precision:n};return Oy(r,t)}})),[e])},Ay=(e,t)=>{const{decimalSeparator:n}=t,r=new RegExp("[^0-9-"+n+"]",["g"]),o=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(r,"").replace(n,"."));return isNaN(o)?0:o},Ny=e=>({...Py(),precision:0,...e}),Ry=e=>{const t=Py();return(0,s.useMemo)((()=>{const n={...t,...e};return e=>Oy(n,e)}),[t,e])},Ty=e=>{const{value:t,numberSettings:n,onChange:r=(()=>{}),onBlur:o=(()=>{}),...a}=e,i=Ny(n),c=(e=>{const t=Ny(e);return Ry(t)})(n),u=c(t),d=e=>{const t=Ay(e,i),n=c(t);return Ay(n,i)};return(0,s.createElement)(wh,l({value:u,onChange:e=>{const t=d(e);r(t)},onBlur:e=>{const t=d(e.target.value);o(e,t)}},a))},My=e=>{const t=Py();return(0,s.createElement)(Ty,l({suffix:t.code,numberSettings:t},e))},jy=e=>{const t={};return 0===e.countries.length&&(t.countries=(0,o.__)("Please specify at least one country.","google-listings-and-ads")),Number.isFinite(e.rate)||(t.rate=(0,o.__)("Please enter the estimated shipping rate.","google-listings-and-ads")),e.rate<0&&(t.rate=(0,o.__)("The estimated shipping rate cannot be less than 0.","google-listings-and-ads")),t},Iy=e=>{let{tags:t=[],disabled:n,maxVisibleTags:r=0,onChange:a=(()=>{})}=e;const[i,l]=(0,s.useState)(!1),c=Math.max(0,r),u=i||!c?t:t.slice(0,c);if(!t.length)return null;const d=e=>()=>{n||a(t.filter((t=>t.id!==e)))};return(0,s.createElement)("div",{className:"woocommerce-tree-select-control__tags"},u.map(((e,n)=>{if(!e.label)return null;const r=(0,o.sprintf)(// translators: 1: Tag Label, 2: Current Tag index, 3: Total amount of tags.
|
10 |
(0,o.__)("%1$s (%2$d of %3$d)","woocommerce-admin"),e.label,n+1,t.length);return(0,s.createElement)(Bl.Tag,{key:e.id,id:e.id,label:e.label,screenReaderLabel:r,remove:d})})),c>0&&t.length>c&&(0,s.createElement)(xl,{isTertiary:!0,className:"woocommerce-tree-select-control__show-more",onClick:()=>{l(!i)}},i?(0,o.__)("Show less","google-listing-and-ads"):(0,o.sprintf)(// translators: %d: The number of extra tags to show
|
11 |
-
(0,o.__)("+ %d more","google-listing-and-ads"),t.length-c)))};const Fy="__WC_TREE_SELECT_COMPONENT_ROOT__"
|
12 |
(0,o.__)("Shipping rate for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
13 |
-
(0,o.__)("Shipping rate for <strong>%1$s</strong>","google-listings-and-ads")}))},
|
14 |
(0,o.__)("Minimum order for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
15 |
-
(0,o.__)("Minimum order for <strong>%1$s</strong>","google-listings-and-ads")}))},
|
16 |
(0,o.__)("Shipping time for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
17 |
-
(0,o.__)("Shipping time for <strong>%1$s</strong>","google-listings-and-ads")}))},_v=e=>{const{time:t,onRequestClose:n}=e,{upsertShippingTimes:r,deleteShippingTimes:a}=xg(),[i,c]=(0,s.useState)(!1),u=()=>{a(t.countries),n()};return(0,s.createElement)(Bl.Form,{initialValues:{countries:t.countries,time:t.time},validate:hv,onSubmit:e=>{r({countryCodes:e.countries,time:e.time});const o=new Set(e.countries),i=t.countries.filter((e=>!o.has(e)));i.length&&a(i),n()}},(e=>{const{getInputProps:t,isValidForm:r,handleSubmit:a}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!i,shouldCloseOnClickOutside:!i,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:u},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!r,onClick:a},(0,o.__)("Save","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)(pp,null,(0,s.createElement)(mv,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),onDropdownVisibilityChange:c},t("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},t("time")))))}))},wv=e=>{const{time:t}=e,[n,r]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{className:"gla-edit-time-button",isTertiary:!0,onClick:()=>{r(!0)}},(0,o.__)("Edit","google-listings-and-ads")),n&&(0,s.createElement)(_v,{time:t,onRequestClose:()=>{r(!1)}}))},Ev=e=>{const{value:t,onBlur:n}=e,{countries:r,time:a}=t,{data:i}=$y();return i?(0,s.createElement)("div",{className:"gla-countries-time-input"},(0,s.createElement)(Ty,{label:(0,s.createElement)("div",{className:"label"},(0,s.createElement)(bv,{countries:r}),(0,s.createElement)(wv,{time:t})),suffix:(0,o.__)("days","google-listings-and-ads"),value:a,onBlur:n})):(0,s.createElement)(Vg,null)},$v=e=>{const t=Og(e.savedValue),[n,r]=(0,s.useState)(t),{upsertShippingTimes:o}=xg();return(0,s.useEffect)((()=>{r(t)}),[t]),(0,s.createElement)(Ev,{value:n,onBlur:(e,t)=>{const{countries:a,time:i}=n;i!==t&&(r({countries:a,time:t}),o({countryCodes:a,time:t}))}})},Cv=()=>{const{data:e}=fv(),{data:t}=$y();if(!t)return(0,s.createElement)(Vg,null);const n=t.length,r=e.length,o=n-r,a=(e=>{const t=new Map;return e.forEach((e=>{const{countryCode:n,time:r}=e,o=t.get(r)||{countries:[],time:r};o.countries.push(n),t.set(r,o)})),Array.from(t.values())})(e);return 0===a.length&&a.push({countries:t,time:null}),(0,s.createElement)("div",{className:"gla-shipping-time-setup"},(0,s.createElement)(pp,null,(0,s.createElement)("div",{className:"countries-time"},(0,s.createElement)(pp,null,a.map((e=>(0,s.createElement)("div",{key:e.countries.join("-"),className:"countries-time-input-form"},(0,s.createElement)($v,{savedValue:e})))),r>=1&&o>=1&&(0,s.createElement)("div",{className:"add-time-button"},(0,s.createElement)(vv,null))))))},kv=e=>{let{formProps:t}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Shipping times","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your shipping times will be shown to potential customers on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-read-more",href:"https://support.google.com/merchants/answer/7050921"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Estimated shipping times","google-listings-and-ads")),(0,s.createElement)(Cv,{formProps:t}))))};const Sv=(e,t)=>{const n=["country","method","currency","rate","options.free_shipping_threshold"];return(0,ie.isEqual)((0,ie.at)(e,n),(0,ie.at)(t,n))};var xv=(e,t)=>(0,ie.differenceWith)(e,t,Sv),Ov=(e,t)=>void 0!==e.id&&e.id===t.id||e.country===t.country&&e.method===t.method,Pv=()=>Pg("getShippingRates"),Av=()=>{const{data:e}=Pv(),{deleteShippingRates:t,upsertShippingRates:n}=xg();return{saveShippingRates:(0,s.useCallback)((async r=>{const o=((e,t)=>((e,t)=>(0,ie.differenceWith)(t,e,Ov))(e,t).map((e=>e.id)))(r,e);o.length&&await t(o);const a=xv(r,e);a.length&&await n(a)}),[t,e,n])}},Nv=e=>{const{formProps:t,submitButton:n}=e,{values:r}=t,{shipping_country_rates:o,...a}=r,{data:i}=$y(),l=wy(i),c="flat"===r.shipping_time;return(e=>{const{saveSettings:t}=xg();_y(e,t)})(a),(e=>{const{saveShippingRates:t}=Av(),n=Og(e);_y(n,(async e=>{try{await t(e)}catch(e){}}))})(o),(0,s.createElement)(ep,null,(0,s.createElement)(pv,{formProps:t,audienceCountries:i}),c&&(0,s.createElement)(kv,{formProps:t}),(0,s.createElement)(Cy,{show:l},(0,s.createElement)(yy,{formProps:t})),(0,s.createElement)(np,null,n))};function Rv(){const e=(0,s.useRef)(!1);return(0,s.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),(0,s.useCallback)((()=>e.current),[])}var Tv=e=>{if(e.some(cy))return e.some((e=>e.options.free_shipping_threshold>0))},Mv=e=>{const t=Og(e),[n,r]=Dp(t,{loading:!0});return(0,s.useEffect)((()=>{t&&n()}),[n,t]),r},jv=()=>{const{hasFinishedResolution:e,data:t}=Pv(),{loading:n,data:r}=(()=>{const{loading:e,data:t}=$y(),{loading:n,data:r}=Mv(t&&{path:(0,eg.addQueryArgs)("/wc/gla/mc/shipping/rates/suggestions",{country_codes:t})});return{loading:e||n,data:null==r?void 0:r.filter((e=>e.method===sc))}})(),a=(0,s.useRef)(void 0);e&&void 0===a.current&&(a.current=0===t.length);const i=a.current&&r,[l,c]=(0,s.useState)(!1),u=(()=>{const{createNotice:e}=Ap(),{saveShippingRates:t}=Av();return(0,s.useCallback)((async n=>{try{await t(n)}catch(t){e("error",(0,o.__)("Unable to use your WooCommerce shipping settings as shipping rates in Google. You may have to enter shipping rates manually.","google-listings-and-ads"))}}),[e,t])})();return function(e,t){const n=(0,s.useRef)(!1);for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];const i=Og(o);(0,s.useEffect)((()=>{!0!==n.current&&e&&(n.current=!0,t(...i))}),[i,t,e])}(i,(0,s.useCallback)((async e=>{await u(e),c(!0)}),[u]),r),{loading:n||!e||i&&!l,data:t}},Iv=e=>{const{onContinue:t=(()=>{})}=e,{settings:n}=ly(),{loading:r,data:a}=jv(),{data:i}=fv(),{data:l}=$y(),{saveSettings:c}=xg(),{saveShippingRates:u}=Av(),[d,g]=(0,s.useState)(!1),{createNotice:p}=Ap(),f=Rv();return n&&!r&&i&&l?(0,s.createElement)("div",{className:"gla-setup-free-listings"},(0,s.createElement)(sy,null),(0,s.createElement)(Bl.Form,{initialValues:{shipping_rate:n.shipping_rate||"automatic",shipping_time:n.shipping_time||"flat",tax_rate:n.tax_rate,shipping_country_rates:a,offer_free_shipping:Tv(a)},validate:()=>({}),onSubmit:async e=>{const{shipping_country_rates:n,...r}=e;g(!0);try{await Promise.all([c(r),u(n)]),t()}catch(e){f()&&g(!1),p("error",(0,o.__)("There is a problem in saving your settings and shipping rates. Please try again later.","google-listings-and-ads"))}}},(e=>{const{values:t,handleSubmit:n}=e,r=py(t,i,l),a=Object.keys(r).length>=1;return(0,s.createElement)(Nv,{formProps:e,submitButton:(0,s.createElement)(gc,{isPrimary:!0,disabled:a,loading:d,onClick:n},(0,o.__)("Continue","google-listings-and-ads"))})}))):(0,s.createElement)(Vg,null)},Fv=e=>{const{formProps:t}=e,{values:n,isValidForm:r,getInputProps:a,handleSubmit:i}=t,{locale:c,language:u}=n;return(e=>{const{saveTargetAudience:t}=xg();_y(e,t,{callOnFirstRender:!0})})(n),((e,t)=>{const{data:n}=fv(),{saveShippingRates:r}=Av(),{deleteShippingTimes:a}=xg(),{createNotice:i}=Ap(),l=vy((async()=>{try{if(r([]),n.length){const e=n.map((e=>e.countryCode));a(e)}}catch(e){i("error",(0,o.__)("Something went wrong while trying to clear your shipping data. Please try again later.","google-listings-and-ads"))}}),500),c=(0,s.useRef)(null),u=(0,s.useRef)(null);(0,s.useEffect)((()=>{if(null===c.current&&null===u.current)return c.current=e,void(u.current=t);"all"===c.current&&"all"===e||"selected"===c.current&&"selected"===e&&u.current.length===t.length||(c.current=e,u.current=t,l.callback())}),[l,e,t])})(n.location,n.countries),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Where do you want to sell your products?","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Language","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,s.createInterpolateElement)((0,o.__)("Listings can only be displayed in your site language. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-audience",linkId:"site-language",href:"https://support.google.com/merchants/answer/160637"})})),(0,s.createElement)(my,{selected:c,options:[{label:u,value:c}]})),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Location","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,o.__)("Your store should already have the appropriate shipping and tax rates (if required) for potential customers in your selected location(s).","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},a("location"),{collapsible:!0,label:(0,o.__)("Selected countries only","google-listings-and-ads"),value:"selected"}),(0,s.createElement)("div",{className:"input"},(0,s.createElement)(Uy,l({multiple:!0},a("countries")))),(0,s.createElement)("div",{className:"cannot-find-country"},(0,o.__)("Can’t find a country? Only supported countries can be selected.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},a("location"),{label:(0,o.__)("All countries","google-listings-and-ads"),value:"all"}),(0,s.createElement)(fy,null,(0,o.__)("Your listings will be shown in all supported countries.","google-listings-and-ads")))))))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:!r,onClick:i},(0,o.__)("Continue","google-listings-and-ads"))))},Dv=e=>{const{onContinue:t=(()=>{})}=e,{loading:n,data:r}=(()=>{const{hasFinishedResolution:e}=Ey(),{hasFinishedResolution:t,data:n}=Ag(),{loading:r,data:o}=Mv({path:"/wc/gla/mc/target_audience/suggestions"});return{loading:!e||!t||r,data:t&&null===(null==n?void 0:n.location)&&null===(null==n?void 0:n.countries)?o:n}})();return n?(0,s.createElement)(Vg,null):(0,s.createElement)("div",{className:"gla-choose-audience"},(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Choose your audience","google-listings-and-ads"),description:(0,o.__)("Configure who sees your product listings on Google.","google-listings-and-ads")}),(0,s.createElement)(Bl.Form,{initialValues:{locale:r.locale,language:r.language,location:r.location,countries:r.countries||[]},validate:e=>{const t={};return e.location||(t.location=(0,o.__)("Please select a location option.","google-listings-and-ads")),"selected"===e.location&&0===e.countries.length&&(t.countries=(0,o.__)("Please select at least one country.","google-listings-and-ads")),t},onSubmit:()=>{t()}},(e=>(0,s.createElement)(Fv,{formProps:e})))))},Lv=()=>(0,i.getSetting)("adminUrl");const Gv={address:"",address2:"",city:"",state:"",country:"",postcode:"",isMCAddressDifferent:null,isAddressFilled:null};function Bv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wc";const{data:t,hasFinishedResolution:n,invalidateResolution:r}=Pg("getGoogleMCContactInformation"),o=Qy();let a=Gv;if(n&&t){const{is_mc_address_different:n}=t,r="wc"===e?t.wc_address:t.mc_address,i=(null==r?void 0:r.street_address)||"",s=(null==r?void 0:r.locality)||"",l=(null==r?void 0:r.region)||"",c=(null==r?void 0:r.postal_code)||"",[u,d=""]=i.split("\n");a={address:u,address2:d,city:s,state:l,country:o[null==r?void 0:r.country],postcode:c,isAddressFilled:!t.wc_address_errors.length,isMCAddressDifferent:n}}return{refetch:r,loaded:n,data:a}}var qv={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[25689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","(?:0\\d\\d|222|800)\\d{6}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[47]\\d{6}|76\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0\\d|1[0-5]|6[1267]|7[0-57]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:005|[1-9]\\d\\d)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:005|[1-9]\\d\\d)\\d{5}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"210\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|51[013]0\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function zv(e,t){var n=Array.prototype.slice.call(t);return n.push(qv),e.apply(this,n)}function Hv(e){return Hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hv(e)}function Uv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vv(e){var t,n,r,o,a,i=(o=Array.prototype.slice.call(e),a=4,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=i[0],l=i[1],c=i[2],u=i[3];if("string"!=typeof s)throw new TypeError("A text for parsing must be a string.");if(t=s,l&&"string"!=typeof l){if(!Wv(l))throw new Error("Invalid second argument: ".concat(l));c?(n=l,r=c):r=l}else u?(n=c,r=u):(n=void 0,r=c),l&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Uv(e,t,n[t])}))}return e}({defaultCountry:l},n));return{text:t,options:n,metadata:r}}var Wv=function(e){return"object"===Hv(e)},Yv="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~"),Kv=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=this.constructor.name,this.message=t,this.stack=new Error(t).stack};function Qv(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var a=Number(n[o]),i=Number(r[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function Zv(e){return Zv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zv(e)}function Xv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jv(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 eb(e,t,n){return t&&Jv(e.prototype,t),n&&Jv(e,n),e}(Kv.prototype=Object.create(Error.prototype)).constructor=Kv;var tb=" ext. ",nb=/^\d+$/,rb=function(){function e(t){Xv(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!cb(e)||!cb(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(cb(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ub(e)+": "+e,"."))}(t),this.metadata=t,gb.call(this,t)}return eb(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&nb.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new ob(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new ob(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),ob=function(){function e(t,n){Xv(this,e),this.globalMetadataObject=n,this.metadata=t,gb.call(this,n.metadata)}return eb(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map((function(t){return new ab(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&lb(this.types(),e))return new sb(lb(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?tb:this.metadata[13]||tb}}]),e}(),ab=function(){function e(t,n){Xv(this,e),this._format=t,this.metadata=n}return eb(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||ib.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),ib=/^\(?\$1\)?$/,sb=function(){function e(t,n){Xv(this,e),this.type=t,this.metadata=n}return eb(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function lb(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var cb=function(e){return"object"===Zv(e)},ub=function(e){return Zv(e)};function db(e,t){if((t=new rb(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function gb(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Qv(t,"1.2.0")?this.v2=!0:-1===Qv(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var pb=function(e){return"([".concat("0-90-9٠-٩۰-۹","]{1,").concat(e,"})")};function fb(e){var t="#?";return";ext="+pb("20")+"|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[ \\t,-]*"+pb("20")+"#?|[ \\t,]*(?:[xx##~~]|int|int)[:\\..]?[ \\t,-]*"+pb("9")+"#?|[- ]+"+pb("6")+"#|[ \\t]*(?:,{2}|;)[:\\..]?[ \\t,-]*"+pb("15")+"#?|[ \\t]*(?:,)+[:\\..]?[ \\t,-]*"+pb("9")+t}var mb="[++]{0,1}(?:["+Yv+"]*[0-90-9٠-٩۰-۹]){3,}["+Yv+"0-90-9٠-٩۰-۹]*",hb=new RegExp("^[++]{0,1}(?:["+Yv+"]*[0-90-9٠-٩۰-۹]){1,2}$","i"),yb=mb+"(?:"+fb()+")?",vb=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^"+yb+"$","i");function bb(e){return e.length>=2&&vb.test(e)}var _b=new RegExp("(?:"+fb()+")$","i"),wb={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Eb(e){var t="",n=e.split(""),r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}t+=$b(a,t)||""}return t}function $b(e,t){if("+"===e){if(t)return;return"+"}return function(e){return wb[e]}(e)}function Cb(e,t){return kb(e,void 0,t)}function kb(e,t,n){var r=n.type(t),o=r&&r.possibleLengths()||n.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return kb(e,"MOBILE",n);var a=n.type("MOBILE");a&&(o=function(e,t){var n=e.slice(),r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;e.indexOf(s)<0&&n.push(s)}return n.sort((function(e,t){return e-t}))}(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var i=e.length,s=o[0];return s===i?"IS_POSSIBLE":s>i?"TOO_SHORT":o[o.length-1]<i?"TOO_LONG":o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Sb(e,t){return"IS_POSSIBLE"===Cb(e,t)}function xb(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var Ob=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Pb(e,t,n){if(t=t||{},e.country){(n=new rb(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(xb(r,n.nationalNumberPattern())){if(Ab(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?Ab(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o=0,a=Ob;o<a.length;o++){var i=a[o];if(Ab(r,i,n))return i}}}}function Ab(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&xb(e,t.pattern())}var Nb=/(\$\d)/;var Rb=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Tb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mb={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function jb(e,t,n,r,o){var a=function(e,t){var n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var i=a;if(i.leadingDigitsPatterns().length>0){var s=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(s))continue}if(xb(t,i.pattern()))return i}}(r.formats(),e);return a?function(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix,a=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Nb,t.nationalPrefixFormattingRule()):t.format()));return r?function(e){return e.replace(new RegExp("[".concat(Yv,"]+"),"g")," ").trim()}(a):a}(e,a,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:r}):e}function Ib(e,t,n,r){return t?r(e,t,n):e}function Fb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Db(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)}}var Lb=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var o=new rb(r);Gb(t)&&(this.country=t,o.country(t),t=o.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var t,n;return t=e,n=[{key:"setExt",value:function(e){this.ext=e}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new rb(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Sb(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return function(e,t,n){return t=t||{},n=new rb(n),!!e.country&&(n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Pb(e,t,n.metadata):xb(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern()))}(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new rb(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Pb(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,n,r){if(n=n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tb(e,t,n[t])}))}return e}({},Mb,n):Mb,r=new rb(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Ib(o=jb(i,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return i?(o=jb(i,null,"INTERNATIONAL",r,n),Ib(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,o){if(db(r,o.metadata)===n){var a=jb(e,t,"NATIONAL",o);return"1"===n?n+" "+a:a}var i=function(e,t,n){var r=new rb(n);return r.selectNumberingPlan(e,void 0),r.defaultIDDPrefix()?r.defaultIDDPrefix():Rb.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,0,o.metadata);if(i)return"".concat(i," ").concat(n," ").concat(jb(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,n.fromCountry,r);return Ib(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fb(e,t,n[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],n&&Db(t.prototype,n),e}(),Gb=function(e){return/^[A-Z]{2}$/.test(e)},Bb=new RegExp("([0-90-9٠-٩۰-۹])");function qb(e,t){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,a,i,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var c=r[0];o=e.slice(c.length),l&&(a=r[1])}if(l){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=r[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}(e,t),r=n.nationalNumber,o=n.carrierCode;if(!function(e,t,n){return!(xb(e,n.nationalNumberPattern())&&!xb(t,n.nationalNumberPattern()))}(e,r,t))return{nationalNumber:e};if(e.length!==r.length+(o?o.length:0)&&t.possibleLengths())switch(Cb(r,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:r,carrierCode:o}}var zb=new RegExp("[++0-90-9٠-٩۰-۹]"),Hb=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function Ub(e,t,n){if(t=t||{},n=new rb(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Kv("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){if(e&&0===e.indexOf("tel:"))return function(e){var t,n,r,o,a=(e=e.replace(/^tel:/,"tel=")).split(";"),i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var l;if(i){if(s>=a.length)break;l=a[s++]}else{if((s=a.next()).done)break;l=s.value}var c=(r=l.split("="),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=c[0],d=c[1];switch(u){case"tel":t=d;break;case"ext":n=d;break;case"phone-context":"+"===d[0]&&(t=d+t)}}if(!bb(t))return{};var g={number:t};return n&&(g.ext=n),g}(e);var r=function(e,t,n){if(e)if(e.length>250){if(n)throw new Kv("TOO_LONG")}else{if(!1===t)return e;var r=e.search(zb);if(!(r<0))return e.slice(r).replace(Hb,"")}}(e,n,t);if(!r)return{};if(!bb(r))return function(e){return hb.test(e)}(r)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(_b);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(_b),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}(r);return o.ext?o:{number:r}}(e,t.v2,t.extract),o=r.number,a=r.ext,i=r.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new Kv("TOO_SHORT");throw new Kv("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var o,a=function(e,t,n,r){if(!e)return{};if("+"!==e[0]){var o=function(e,t,n,r){if(t){var o=new rb(r);o.selectNumberingPlan(t,n);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(Bb);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}(e,t,n,r);if(!o||o===e){if(t||n){var a=function(e,t,n,r){var o=t?db(t,r):n;if(0===e.indexOf(o)){(r=new rb(r)).selectNumberingPlan(t,n);var a=e.slice(o.length),i=qb(a,r).nationalNumber,s=qb(e,r).nationalNumber;if(!xb(s,r.nationalNumberPattern())&&xb(i,r.nationalNumberPattern())||"TOO_LONG"===Cb(s,r))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r),i=a.countryCallingCode,s=a.number;if(i)return{countryCallingCode:i,number:s}}return{number:e}}e="+"+o}if("0"===e[1])return{};r=new rb(r);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCode:c,number:e.slice(l)};l++}return{}}(Eb(e),t,n,r.metadata),i=a.countryCallingCode,s=a.number;if(i)r.selectNumberingPlan(i);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(o=t),i=n||db(t,r.metadata)}if(!s)return{countryCallingCode:i};var l=qb(Eb(s),r),c=l.nationalNumber,u=l.carrierCode,d=function(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){n=new rb(n);var r=e,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;if(n.country(s),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return s}else if(Pb({phone:t,country:s},void 0,n.metadata))return s}}(r,t,n.metadata)}(i,c,r);return d&&(o=d,"001"===d||r.country(o)),{country:o,countryCallingCode:i,nationalNumber:c,carrierCode:u}}(o,t.defaultCountry,t.defaultCallingCode,n),l=s.country,c=s.nationalNumber,u=s.countryCallingCode,d=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Kv("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new Kv("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new Kv("TOO_LONG");return{}}if(t.v2){var g=new Lb(u,c,n.metadata);return l&&(g.country=l),d&&(g.carrierCode=d),a&&(g.ext=a),g}var p=!!(t.extended?n.hasSelectedNumberingPlan():l)&&xb(c,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:u,carrierCode:d,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!Sb(c,n)),phone:c,ext:a}:p?function(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}(l,c,a):{}}function Vb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e,t,n){t&&t.defaultCountry&&!function(e,t){return void 0!==t.countries[e]}(t.defaultCountry,n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wb(e,t,n[t])}))}return e}({},t,{defaultCountry:void 0}));try{return function(e,t,n){return Ub(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vb(e,t,n[t])}))}return e}({},t,{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof Kv))throw e}}function Kb(){var e=Vv(arguments),t=e.text,n=e.options,r=e.metadata;return Yb(t,n,r)}function Qb(){return zv(Kb,arguments)}const Zb={country:"",countryCallingCode:"",nationalNumber:"",isValid:!1,display:""};function Xb(){return(0,dn.useSelect)((e=>{const{getGoogleMCPhoneNumber:t}=e(Lc),{data:n,loaded:r}=t();let o=Zb;if(n){const e=Qb(n.phone_number||"");e&&(o={...e,isValid:e.isValid(),display:e.formatInternational()},delete o.metadata)}return{loaded:r,data:o}}),[])}const Jb=Array(6).fill(""),e_=e=>{const t=e.join("");return{code:t,isFilled:6===t.length}};function t_(e){let{onCodeChange:t,resetNeedle:n=""}=e;const r=(0,s.useRef)([]),o=(0,s.useRef)(0),a=(0,s.useRef)(),[i,l]=(0,s.useState)(Jb);a.current=t;const c=e=>{const t=r.current[e];t&&t.focus()},u=e=>{const{dataset:t,selectionStart:n,selectionEnd:r,value:o}=e.target,a=Number(t.idx);switch(e.keyCode){case 37:case 8:0===n&&0===r&&c(a-1);break;case 39:1!==n&&o||c(a+1)}},d=e=>{o.current=e.target.selectionStart},g=e=>{const{value:n,dataset:r}=e.target,a=Number(r.idx),s=n.substr(o.current,1).replace(/\D/,"");if(s!==n&&(e.target.value=s),s&&c(a+1),s!==i[a]){const e=[...i];e[a]=s,l(e),t(e_(e))}};return(0,s.useEffect)((()=>{r.current.forEach((e=>e.value="")),l(Jb),a.current(e_(Jb))}),[n]),(0,s.useEffect)((()=>{i===Jb&&c(0)}),[n,i]),(0,s.createElement)(ae,{className:"gla-verification-code-control",justify:"normal",gap:2},i.map(((e,t)=>(0,s.createElement)(wh,{key:t,ref:e=>r.current[t]=e,"data-idx":t,value:e,onKeyDown:u,onBeforeInput:d,onInput:g,autoComplete:"off"}))))}const n_=Object.freeze({SMS:"SMS",PHONE_CALL:"PHONE_CALL"}),r_={[n_.SMS]:{toInstruction:e=>(0,s.createInterpolateElement)((0,o.__)("A text message with the 6-digit verification code has been sent to <userPhoneNumber />.","google-listings-and-ads"),{userPhoneNumber:(0,s.createElement)("strong",null,e)}),textResend:(0,o.__)("Resend code","google-listings-and-ads"),
|
18 |
// translators: %d: seconds to wait until the next verification code can be requested via SMS.
|
19 |
-
textResendCooldown:(0,o.__)("Resend code (in %ds)","google-listings-and-ads"),textSwitch:(0,o.__)("Or, receive a verification code through a phone call","google-listings-and-ads")},[
|
20 |
// translators: %d: seconds to wait until the next verification code can be requested via phone call.
|
21 |
-
textResendCooldown:(0,o.__)("Call again (in %ds)","google-listings-and-ads"),textSwitch:(0,o.__)("Or, receive a verification code through text message","google-listings-and-ads")}};function o_(e){let{verificationMethod:t,country:n,number:r,display:a,onVerificationStateChange:i}=e;const l=Rv(),[c,u]=(0,s.useState)(t),{second:d,callCount:g,startCountdown:p}=function(e){const t=(0,s.useRef)({}),[n,r]=(0,s.useState)(0);t.current.usingHandle=e,t.current[e]=t.current[e]||{callCount:0};const o=(0,s.useCallback)((n=>{r(n);const o=t.current[e],a=(new Date).getTime()+1e3*n;o.id&&clearInterval(o.id),o.updateSecond=()=>{let n=(a-(new Date).getTime())/1e3;n=Math.max(Math.round(n),0),t.current.usingHandle===e&&r(n),0===n&&clearInterval(o.id)},o.id=setInterval(o.updateSecond,1e3),o.callCount+=1}),[e]);(0,s.useEffect)((()=>{const{updateSecond:n}=t.current[e];n&&n()}),[e]),(0,s.useEffect)((()=>{const e=t.current;return()=>{Object.values(e).forEach((e=>clearInterval(e.id)))}}),[]);const{callCount:a}=t.current[e];return{second:n,callCount:a,startCountdown:o}}(c),[f,m]=(0,s.useState)(null),[h,y]=(0,s.useState)(!1),[v,b]=(0,s.useState)(null),_=(0,s.useRef)({}),{requestPhoneVerificationCode:w,verifyPhoneNumber:E}=xg(),$=c===n_.SMS,C=(0,s.useCallback)((()=>{b(null),p(60),_.current[c]=null,w(n,r,c).then((e=>{let{verificationId:t}=e;_.current[c]=t})).catch((e=>{l()&&(b(e),p(0))}))}),[n,r,c,p,w,l]);(0,s.useEffect)((()=>{0===g&&C()}),[c,g,C]);const{toInstruction:k,textResend:S,textResendCooldown:x,textSwitch:O}=r_[c],P=_.current[c],A=!(null!=f&&f.isFilled&&P);return(0,s.createElement)("form",{onSubmit:e=>{e.preventDefault(),b(null),y(!0),i(!0,!1);const t=_.current[c];E(t,f.code,c).then((()=>{i(!1,!0)})).catch((e=>{l()&&(b(e),y(!1),i(!1,!1))}))}},(0,s.createElement)(dp.Card.Body,null,v&&(0,s.createElement)(lp,null,(0,s.createElement)(Fc,{status:"error",isDismissible:!1},v.display)),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Enter verification code","google-listings-and-ads")),k(a)),(0,s.createElement)(lp,null,(0,s.createElement)(t_,{resetNeedle:c+g,onCodeChange:m})),(0,s.createElement)(lp,null,(0,s.createElement)(ae,{justify:"normal",gap:4},(0,s.createElement)(gc,{isSecondary:!0,disabled:A,loading:h,text:(0,o.__)("Verify phone number","google-listings-and-ads"),type:"submit"}),(0,s.createElement)(gc,{isSecondary:!0,disabled:d>0||h,text:d?(0,o.sprintf)(x,d):S,onClick:C})))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:h,text:O,onClick:()=>{u($?n_.PHONE_CALL:n_.SMS)}})))}function a_(e){return new rb(e).getCountries()}var i_=e=>{const{label:t,helperText:n,className:r,...o}=e;return(0,s.createElement)("div",{className:d()("wcdl-select-control",r)},t&&(0,s.createElement)("div",{className:"wcdl-select-control__label"},t),(0,s.createElement)("div",{className:"wcdl-select-control__input"},(0,s.createElement)(Bl.SelectControl,l({},o,{help:""}))),n&&(0,s.createElement)("div",{className:"wcdl-select-control__helper-text"},n))};const s_=[{label:(0,o.__)("Text message","google-listings-and-ads"),value:n_.SMS},{label:(0,o.__)("Phone call","google-listings-and-ads"),value:n_.PHONE_CALL}];function l_(e){let{initCountry:t,initNationalNumber:n,onSendVerificationCodeClick:r}=e;const a=function(){const e=Qy();return(0,s.useMemo)((()=>function(){return zv(a_,arguments)}().reduce(((t,n)=>{const r=e[n];if(r){const e=function(){return zv(db,arguments)}(n);t.push(((e,t,n)=>({key:e,keywords:[n,t,e],label:`${n} (+${t})`}))(n,e,r))}return t}),[])),[e])}(),[i,l]=(0,s.useState)(t),[c,u]=(0,s.useState)(n),[d,g]=(0,s.useState)(n_.SMS),[p,f]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=Qb(c,i),t=!!e&&e.isValid();f(e?{...e,isValid:t,display:e.formatInternational(),verificationMethod:d}:{isValid:t,country:i,number:"",display:"",verificationMethod:d})}),[c,i,d]),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(ae,{gap:4},(0,s.createElement)(ze,null,(0,s.createElement)(i_,{label:(0,o.__)("Country code","google-listings-and-ads"),isSearchable:!0,excludeSelectedOptions:!1,options:a,selected:i,onChange:l})),(0,s.createElement)(Li,null,(0,s.createElement)(wh,{label:(0,o.__)("Phone number","google-listings-and-ads"),value:c,onChange:u}))),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select verification method","google-listings-and-ads")),(0,s.createElement)(my,{selected:d,options:s_,onChange:g})),(0,s.createElement)(lp,null,(0,s.createElement)(gc,{isSecondary:!0,disabled:!(null!=p&&p.isValid),text:(0,o.__)("Send verification code","google-listings-and-ads"),onClick:()=>r(p)})))}const c_=()=>{},u_={className:"gla-phone-number-card",appearance:wp.PHONE};function d_(e){let{phoneNumber:t,onPhoneNumberVerified:n}=e;const{loaded:r,data:a}=t,[i,c]=(0,s.useState)(!1),[u,d]=(0,s.useState)(null);let g=(0,s.createElement)(Vg,null);r&&(g=u?(0,s.createElement)(o_,l({},u,{onVerificationStateChange:(e,t)=>{c(e),t&&n()}})):(0,s.createElement)(l_,{initCountry:a.country,initNationalNumber:a.nationalNumber,onSendVerificationCodeClick:d}));const p=u?u.display:(0,o.__)("Please enter a phone number to be used for verification.","google-listings-and-ads"),f=u?(0,s.createElement)(gc,{isSecondary:!0,text:(0,o.__)("Edit","google-listings-and-ads"),disabled:i,onClick:()=>d(null)}):null;return(0,s.createElement)(Sp,l({},u_,{description:p,indicator:f}),(0,s.createElement)(Jp,null),g)}var g_=e=>{let{view:t,phoneNumber:n,initEditing:r=null,onEditClick:a,onPhoneNumberVerified:i=c_}=e;const{loaded:c,data:u}=n,[d,g]=(0,s.useState)(r);if((0,s.useEffect)((()=>{c&&null===d&&g(!u.isValid)}),[c,u.isValid,d]),null===d)return(0,s.createElement)(Sp,l({},u_,{indicator:(0,s.createElement)(Bl.Spinner,null)}));if(d){const e=()=>{g(!1),i()};return(0,s.createElement)(d_,{phoneNumber:n,onPhoneNumberVerified:e})}let p=null,f=(0,s.createElement)(Bl.Spinner,null);return c&&(p=u.display,f=(0,s.createElement)(gc,{isSecondary:!0,eventName:"gla_mc_phone_number_edit_button_click",eventProps:{view:t},onClick:()=>{a?a():g(!0)}},(0,o.__)("Edit","google-listings-and-ads"))),(0,s.createElement)(Sp,l({},u_,{description:p,indicator:f}))},p_=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(ns,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}));function f_(e){let{editHref:t,editEventName:n,loading:r,content:a,appearance:i,warning:l}=e;const{subpath:c}=(0,pc.getQuery)(),u=(0,s.createElement)(gc,{isSecondary:!0,href:t,text:(0,o.__)("Edit","google-listings-and-ads"),eventName:n,eventProps:{path:(0,pc.getPath)(),subpath:c}});let d,g;return r?d=(0,s.createElement)("span",{className:"gla-contact-info-preview-card__placeholder","aria-busy":"true",title:(0,o.__)("Loading…","google-listings-and-ads")}):l?(g=(0,s.createElement)(s.Fragment,null,(0,s.createElement)(yp,{icon:p_,size:24,className:"gla-contact-info-preview-card__notice-icon"}),l),d=(0,s.createElement)("span",{className:"gla-contact-info-preview-card__notice-details"},a)):d=a,(0,s.createElement)(Sp,{appearance:i,className:"gla-contact-info-preview-card",icon:null,title:g,description:d,indicator:u})}function m_(e){let{editHref:t,learnMore:n}=e;const{loaded:r,data:a}=Xb();let i,l;return r&&(a.isValid?i=a.display:(l=(0,o.__)("Please add your phone number","google-listings-and-ads"),i=(0,s.createElement)(s.Fragment,null,(0,o.__)("Google requires the phone number for all stores using Google Merchant Center. ","google-listings-and-ads"),n))),(0,s.createElement)(f_,{appearance:wp.PHONE,editHref:t,editEventName:"gla_edit_mc_phone_number",learnMore:n,loading:!r,warning:l,content:i})}var h_=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(ns,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),y_=()=>{const{loaded:e,data:t,refetch:n}=Bv(),{subpath:r}=(0,pc.getQuery)(),a=(0,s.createElement)(gc,{isSecondary:!0,icon:h_,iconSize:20,iconPosition:"right",text:(0,o.__)("Refresh to sync","google-listings-and-ads"),onClick:n,disabled:!e});let i;const l=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Edit your store address in your <link>WooCommerce settings</link>.","google-listings-and-ads"),{link:(0,s.createElement)(ql,{target:"_blank",type:"external",href:"admin.php?page=wc-settings",eventName:"gla_edit_wc_store_address",eventProps:{path:(0,pc.getPath)(),subpath:r}})})),(0,s.createElement)("p",null,(0,o.__)("Once you’ve saved your new address there, refresh to sync your new address with Google.","google-listings-and-ads")));if(e){const{address:e,address2:n,city:r,state:o,country:a,postcode:l}=t,c=[r,o?`${o} - ${a}`:a,l].filter(Boolean).join(", ");i=(0,s.createElement)("div",null,(0,s.createElement)("div",null,e),n&&(0,s.createElement)("div",null,n),(0,s.createElement)("div",null,c))}else i=(0,s.createElement)(Bl.Spinner,null);return(0,s.createElement)(Sp,{className:"gla-store-address-card",appearance:wp.ADDRESS,alignIcon:"top",alignIndicator:"top",description:l,indicator:a},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Store address","google-listings-and-ads")),i))};function v_(e){let{editHref:t,learnMore:n}=e;const{loaded:r,data:a}=Bv("mc");let i,l;if(r){const{isAddressFilled:e,isMCAddressDifferent:t,address:r,address2:c,city:u,state:d,country:g,postcode:p}=a,f=d?`${d} - ${g}`:g;e&&!t?i=[r,c,u,f,p].filter(Boolean).join(", "):(l=(0,o.__)("Please add your store address","google-listings-and-ads"),i=(0,s.createElement)(s.Fragment,null,(0,o.__)("Google requires the store address for all stores using Google Merchant Center. ","google-listings-and-ads"),n))}return(0,s.createElement)(f_,{appearance:wp.ADDRESS,editHref:t,editEventName:"gla_edit_mc_store_address",loading:!r,warning:l,content:i})}var b_=e=>{let{loaded:t,data:{display:n,isValid:r}}=e;const o=!!n,a=(0,pc.getPath)();(0,s.useEffect)((()=>{t&&(0,Dl.recordEvent)("gla_mc_phone_number_check",{path:a,exist:o,isValid:r})}),[o,r,t,a])};const w_="contact-information-read-more",E_="https://docs.woocommerce.com/document/google-listings-and-ads/#contact-information",$_=(0,o.__)("Your contact information is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.","google-listings-and-ads"),C_=(0,o.__)("Enter contact information","google-listings-and-ads"),k_=(0,o.__)("Contact information","google-listings-and-ads");function S_(){return(0,s.createElement)(dp,{title:k_,description:$_},(0,s.createElement)(pp,{size:"overlap"},(0,s.createElement)(m_,{editHref:(0,pc.getNewPath)({subpath:bc},Cc,null),learnMore:(0,s.createElement)(zl,{context:"settings-no-phone-number-notice",linkId:w_,href:E_},(0,o.__)("Learn more","google-listings-and-ads"))}),(0,s.createElement)(v_,{editHref:(0,pc.getNewPath)({subpath:_c},Cc,null),learnMore:(0,s.createElement)(zl,{context:"settings-no-store-address-notice",linkId:w_,href:E_},(0,o.__)("Learn more","google-listings-and-ads"))})))}var x_=e=>{let{onPhoneNumberVerified:t}=e;const n=Xb(),r=C_;return b_(n),(0,s.createElement)(dp,{title:r,description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,$_),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-contact-information",linkId:w_,href:E_},(0,o.__)("Learn more","google-listings-and-ads"))))},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(g_,{view:"setup-mc",phoneNumber:n,initEditing:!0,onPhoneNumberVerified:t}),(0,s.createElement)(y_,null)))},O_=e=>{let{id:t,children:n}=e;const[r,o]=(0,s.useState)(!1);return(0,s.createElement)("span",{className:"help-popover"},(0,s.createElement)("button",{onClick:()=>{o(!0),(0,Dl.recordEvent)("gla_tooltip_viewed",{id:t})}},(0,s.createElement)(qg.Z,{size:16})),r&&(0,s.createElement)(cl,{focusOnMount:"container",onClose:()=>{o(!1)}},n))},P_=e=>{const{formProps:t}=e,{getInputProps:n}=t;return(0,s.createElement)("div",{className:"gla-pre-launch-checklist"},(0,s.createElement)(dp,{title:(0,o.__)("Pre-Launch Checklist","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Ensure you meet Google Merchant Center requirements by reviewing this checklist. Otherwise, your products may be disapproved or your Google Merchant Center account may be suspended by Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"checklist-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy"},(0,o.__)("Read Google Merchant requirements","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)("div",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My store website is live.","google-listings-and-ads")),(0,s.createElement)(O_,{id:"website_live"},(0,s.createInterpolateElement)((0,o.__)("Ensure your store website and products are online and accessible to your customers. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-website-is-live",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#store-is-live"})})))},n("website_live")))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("I have a complete and secure checkout process.","google-listings-and-ads")),(0,s.createElement)(O_,{id:"checkout_process_secure"},(0,s.createElement)("p",null,(0,o.__)("Ensure customers are able to successfully add items to the cart and fully complete the checkout process.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Payment and transaction processing, as well as collection of any sensitive and financial personal information from the user, must be conducted over a secure processing server (SSL-protected, with a valid SSL certificate - https://). <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-checkout-process",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#complete-checkout"})}))))},n("checkout_process_secure"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My payment methods are visible on my website.","google-listings-and-ads")),(0,s.createElement)(O_,{id:"payment_methods_visible"},(0,s.createInterpolateElement)((0,o.__)("Ensure customers have at least one valid payment method, such as credit card, direct bank transfer, or cash on delivery. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-payment-methods",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#payment-methods"})})))},n("payment_methods_visible"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My refund policy and terms of service are visible on my online store.","google-listings-and-ads")),(0,s.createElement)(O_,{id:"refund_tos_visible"},(0,s.createInterpolateElement)((0,o.__)("Your site must provide a clear and conspicuous return policy and billing terms to customers. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-refund-policy",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#refund-and-terms"})})))},n("refund_tos_visible"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My store’s phone number, email and/or address are visible on my website.","google-listings-and-ads")),(0,s.createElement)(O_,{id:"contact_info_visible"},(0,s.createInterpolateElement)((0,o.__)("Your website must display sufficient and accurate contact information to your customers, including a telephone number and/or email. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-phone-numbers",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#contact-info"})})))},n("contact_info_visible"))))))))};function A_(e){const t={};return!0!==e.website_live&&(t.website_live=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.checkout_process_secure&&(t.checkout_process_secure=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.payment_methods_visible&&(t.payment_methods_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.refund_tos_visible&&(t.refund_tos_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.contact_info_visible&&(t.contact_info_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),t}function N_(){const e=Lv(),{updateGoogleMCContactInformation:t,saveSettings:n}=xg(),{createNotice:r}=Ap(),{data:a}=Bv(),{settings:i}=ly(),[l,c]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1);return i?(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Confirm store requirements","google-listings-and-ads"),description:(0,o.__)("Review and confirm that your store meets Google Merchant Center requirements.","google-listings-and-ads")}),(0,s.createElement)(Bl.Form,{initialValues:{website_live:i.website_live,checkout_process_secure:i.checkout_process_secure,payment_methods_visible:i.payment_methods_visible,refund_tos_visible:i.refund_tos_visible,contact_info_visible:i.contact_info_visible},validate:A_,onChange:(e,t)=>{n(t)},onSubmit:async()=>{try{d(!0),await t(),await Hc()({path:"/wc/gla/mc/settings/sync",method:"POST"});const n=(0,pc.getNewPath)({guide:"submission-success"},"/google/product-feed");window.location.href=e+n}catch(e){d(!1),r("error",(0,o.__)("Unable to complete your setup. Please try again later.","google-listings-and-ads"))}}},(e=>{const{handleSubmit:t,isValidForm:n}=e,r=n&&l&&a.isAddressFilled;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(x_,{onPhoneNumberVerified:()=>c(!0)}),(0,s.createElement)(P_,{formProps:e}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,loading:u,disabled:!r,onClick:t},(0,o.__)("Complete setup","google-listings-and-ads"))))}))):(0,s.createElement)(Vg,null)}var R_={accounts:"1",target_audience:"2",shipping_and_taxes:"3",store_requirements:"4"},T_=e=>{let{savedStep:t,onRefetchSavedStep:n=(()=>{})}=e;const[r,a]=(0,s.useState)(t),i=e=>{Number(e)<=Number(t)&&a(e)};return(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:r,steps:[{key:R_.accounts,label:(0,o.__)("Set up your accounts","google-listings-and-ads"),content:(0,s.createElement)(ay,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step1_continue",trigger:"click"}),a(R_.target_audience),n()}}),onClick:i},{key:R_.target_audience,label:(0,o.__)("Choose your audience","google-listings-and-ads"),content:(0,s.createElement)(Dv,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step2_continue",trigger:"click"}),a(R_.shipping_and_taxes),n()}}),onClick:i},{key:R_.shipping_and_taxes,label:(0,o.__)("Configure your product listings","google-listings-and-ads"),content:(0,s.createElement)(Iv,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step3_continue",trigger:"click"}),a(R_.store_requirements),n()}}),onClick:i},{key:R_.store_requirements,label:(0,o.__)("Confirm store requirements","google-listings-and-ads"),content:(0,s.createElement)(N_,null),onClick:i}]})},M_=()=>{const{hasFinishedResolution:e,data:t,invalidateResolution:n}=Pg("getMCSetup");if(!e&&!t)return(0,s.createElement)(Vg,null);if(e&&!t)return null;const{status:r,step:o}=t;return"complete"===r?((0,pc.getHistory)().replace((0,pc.getNewPath)({},"/google/dashboard")),null):(0,s.createElement)(T_,{savedStep:R_[o],onRefetchSavedStep:()=>{n()}})},j_=()=>(Lg("full-page"),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ug,null),(0,s.createElement)(M_,null)));function I_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;(0,s.useEffect)((()=>{const r=t=>{t.preventDefault(),t.returnValue=e};t&&window.addEventListener("beforeunload",r);const o=(0,pc.getHistory)().block((r=>{if(t&&n(r))return e}));return()=>{o(),window.removeEventListener("beforeunload",r)}}),[e,t,n])}const F_="getGoogleAdsAccount";var D_=()=>{const{google:e,isResolving:t}=Xg(),n=xg(),r=(0,s.useCallback)((()=>{n.invalidateResolution(F_,[])}),[n]);return(0,dn.useSelect)((n=>{if(!e||"no"===e.active)return{googleAdsAccount:void 0,isResolving:t};const o=n(Lc);return{googleAdsAccount:o.getGoogleAdsAccount(),isResolving:o.isResolving(F_),refetchGoogleAdsAccount:r,hasFinishedResolution:o.hasFinishedResolution(F_)}}),[e,t,r])};function L_(e){
|
22 |
// translators: %s: user's account ID
|
23 |
-
return(0,o.sprintf)((0,o.__)("Account %s","google-listings-and-ads"),e)}function G_(e){let{googleAdsAccount:t,...n}=e;return(0,s.createElement)(Sp,l({appearance:wp.GOOGLE_ADS,description:L_(t.id),indicator:(0,s.createElement)(Op,null)},n))}var B_=e=>{let{onCreateAccount:t=(()=>{}),onRequestClose:n=(()=>{})}=e;const[r,a]=(0,s.useState)(!1);return(0,s.createElement)(Gh,{className:"gla-ads-terms-modal",title:(0,o.__)("Create Google Ads Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"1",isPrimary:!0,disabled:!r,eventName:"gla_ads_account_create_button_click",onClick:()=>{t(),n()}},(0,o.__)("Create account","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",{className:"main"},(0,o.__)("By creating a Google Ads account, you agree to the following terms and conditions:","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You agree to comply with Google’s terms and policies, including <policylink>Shopping ads policies</policylink> and <termslink>Google Ads Terms and Conditions</termslink>.","google-listings-and-ads"),{policylink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"shopping-ads-policies",href:"https://support.google.com/merchants/answer/6149970"}),termslink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"google-ads-terms-of-service",href:"https://support.google.com/adspolicy/answer/54818"})})),(0,s.createElement)(Uh,{label:(0,o.__)("I have read and accept these terms","google-listings-and-ads"),checked:r,onChange:a}))};function q_(e){let{text:t}=e;return(0,s.createElement)("div",{className:"gla-loading-label"},(0,s.createElement)(Bl.Spinner,null),t)}var z_=e=>{const{onCreateAccount:t,...n}=e,[r,a]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,n.loading?(0,s.createElement)(q_,{text:(0,o.__)("Creating…","google-listings-and-ads")}):(0,s.createElement)(gc,l({isSecondary:!0},n,{text:(0,o.__)("Create account","google-listings-and-ads"),onClick:()=>{a(!0)}})),r&&(0,s.createElement)(B_,{onCreateAccount:t,onRequestClose:()=>{a(!1)}}))};const H_=()=>{const{createNotice:e}=Ap(),{fetchGoogleAdsAccount:t}=xg(),[n,r]=(0,s.useState)(!1),[a,{loading:i}]=Dp({path:"/wc/gla/ads/accounts",method:"POST"});return(0,s.createElement)(z_,{loading:i||n,onCreateAccount:async()=>{try{await a({parse:!1})}catch(t){if(428!==t.status)return void e("error",(0,o.__)("Unable to create Google Ads account. Please try again later.","google-listings-and-ads"))}r(!0),await t(),r(!1)}})};var U_=e=>{const{allowShowExisting:t,onShowExisting:n}=e;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_ADS,indicator:(0,s.createElement)(H_,null)},t&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isLink:!0,onClick:n},(0,o.__)("Or, use your existing Google Ads account","google-listings-and-ads"))))},V_=e=>{const{accounts:t,...n}=e,r=[{value:"",label:(0,o.__)("Select one","google-listings-and-ads")},...t.map((e=>({value:e,label:L_(e)})))];return(0,s.createElement)(Yf,l({options:r},n))},W_=e=>{const{accounts:t,onCreateNew:n=(()=>{})}=e,[r,a]=(0,s.useState)(),[i,l]=(0,s.useState)(!1),[c]=Dp({path:"/wc/gla/ads/accounts",method:"POST",data:{id:r}}),{refetchGoogleAdsAccount:u}=D_(),{createNotice:d}=Ap(),g=t.length>1;return(0,s.createElement)(Sp,{className:"gla-connect-ads",appearance:wp.GOOGLE_ADS},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select an existing account","google-listings-and-ads")),g&&(0,s.createElement)(lp.Body,null,(0,s.createInterpolateElement)((0,o.__)("If you manage multiple sub-accounts in Google Ads, please connect the relevant sub-account, not a manager account. <link>Learn more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-ads-connect-account",linkId:"connect-sub-account",href:"https://support.google.com/google-ads/answer/6139186"})})),(0,s.createElement)(Qf,null,(0,s.createElement)(V_,{accounts:t,value:r,onChange:a}),i?(0,s.createElement)(q_,{text:(0,o.__)("Connecting…","google-listings-and-ads")}):(0,s.createElement)(gc,{isSecondary:!0,disabled:!r,eventName:"gla_ads_account_connect_button_click",onClick:async()=>{if(r){l(!0);try{await c(),await u()}catch(e){l(!1),d("error",(0,o.__)("Unable to connect your Google Ads account. Please try again later.","google-listings-and-ads"))}}}},(0,o.__)("Connect","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isLink:!0,onClick:n},(0,o.__)("Or, create a new Google Ads account","google-listings-and-ads"))))},Y_=()=>{const{existingAccounts:e}=(0,dn.useSelect)((e=>({existingAccounts:e(Lc).getExistingGoogleAdsAccounts(),isResolving:e(Lc).isResolving("getExistingGoogleAdsAccounts")})),[]),[t,n]=(0,s.useState)(!1);if(!e)return(0,s.createElement)(Kp,null);return 0===e.length||t?(0,s.createElement)(U_,{allowShowExisting:t,onShowExisting:()=>{n(!1)}}):(0,s.createElement)(W_,{accounts:e,onCreateNew:()=>{n(!0)}})};const K_="setup-ads";var Q_=e=>{let{additionalScopeEmail:t}=e;const{createNotice:n}=Ap(),[r,{loading:a,data:i}]=qp(K_,t);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_ADS,indicator:(0,s.createElement)(gc,{isSecondary:!0,loading:a||i,onClick:()=>{r().then((e=>{let{url:t}=e;window.location.href=t})).catch((()=>{n("error",(0,o.__)("Unable to get Google authorization page. Please try again later.","google-listings-and-ads"))}))},text:(0,o.__)("Allow full access","google-listings-and-ads"),eventName:"gla_google_account_connect_button_click",eventProps:{context:K_,action:"scope"}})})};function Z_(){const{google:e,scope:t}=Xg(),{googleAdsAccount:n}=D_();return e&&n?t.adsRequired?"disconnected"===n.status?(0,s.createElement)(Y_,null):(0,s.createElement)(G_,{googleAdsAccount:n}):(0,s.createElement)(Q_,{additionalScopeEmail:e.email}):(0,s.createElement)(Kp,null)}var X_=__webpack_require__(3119),J_=[["DZ",250,"USD"],["AR",25e3,"ARS"],["AM",300,"USD"],["AU",600,"AUD"],["AT",400,"EUR"],["AZ",300,"USD"],["BH",300,"USD"],["BY",300,"USD"],["BE",400,"EUR"],["BO",350,"USD"],["BA",350,"EUR"],["BR",1200,"BRL"],["BG",700,"BGN"],["CA",600,"CAD"],["CL",350,"USD"],["CN",3e3,"CNY"],["CO",350,"USD"],["CR",350,"USD"],["HR",2500,"HRK"],["CY",350,"EUR"],["CZ",8500,"CZK"],["DK",3e3,"DKK"],["DO",350,"USD"],["EC",350,"USD"],["EG",3e3,"EGP"],["SV",350,"USD"],["EE",350,"EUR"],["FI",400,"EUR"],["FR",400,"EUR"],["GE",300,"USD"],["DE",400,"EUR"],["GR",350,"EUR"],["GT",350,"USD"],["HN",350,"USD"],["HK",3e3,"HKD"],["HU",12e4,"HUF"],["IS",400,"EUR"],["IN",2e4,"INR"],["ID",3e6,"IDR"],["IE",400,"EUR"],["IL",1500,"ILS"],["IT",400,"EUR"],["JP",6e4,"JPY"],["JO",250,"USD"],["KZ",300,"USD"],["KE",300,"USD"],["KR",6e5,"KRW"],["KW",300,"USD"],["LV",350,"EUR"],["LB",250,"USD"],["LY",250,"USD"],["LT",350,"EUR"],["LU",400,"EUR"],["MK",300,"USD"],["MY",1500,"MYR"],["MT",350,"EUR"],["MX",7e3,"MXN"],["ME",350,"EUR"],["MA",250,"USD"],["NL",400,"EUR"],["NZ",600,"NZD"],["NI",350,"USD"],["NG",300,"USD"],["NO",4e3,"NOK"],["OM",250,"USD"],["PK",400,"USD"],["PS",250,"USD"],["PA",350,"USD"],["PY",350,"USD"],["PE",350,"USD"],["PH",2e4,"PHP"],["PL",1200,"PLN"],["PT",400,"EUR"],["PR",350,"USD"],["QA",300,"USD"],["RO",1500,"RON"],["RU",3e4,"RUB"],["SA",1300,"SAR"],["RS",350,"EUR"],["SG",600,"SGD"],["SK",350,"EUR"],["SI",350,"EUR"],["ZA",6e3,"ZAR"],["ES",400,"EUR"],["LK",400,"USD"],["SE",4e3,"SEK"],["CH",400,"CHF"],["TW",12e3,"TWD"],["TH",12e3,"THB"],["TN",250,"USD"],["TR",2500,"TRY"],["UA",1e4,"UAH"],["AE",1600,"AED"],["GB",400,"GBP"],["US",500,"USD"],["UY",350,"USD"],["VE",350,"USD"],["VN",56e5,"VND"]],ew=e=>{const t=Qy();return(0,s.createElement)(Gh,l({className:"gla-free-ad-credit-country-modal",title:(0,o.__)("Check your maximum free credit","google-listings-and-ads")},e),(0,s.createElement)("p",null,(0,o.__)("Whatever you spend in the next month will be added back to your Google Ads account as free credit, up to a maximum limit depending on your store’s country.","google-listings-and-ads")),(0,s.createElement)("table",null,(0,s.createElement)("tbody",null,J_.map(((e,n)=>{const[r,o,a]=e;return(0,s.createElement)("tr",{key:n},(0,s.createElement)("td",null,t[r]),(0,s.createElement)("td",null,`${o} ${a}`))})))))},tw=()=>{const[e,t]=(0,s.useState)(!1);return(0,s.createElement)("div",{className:"gla-free-ad-credit"},(0,s.createElement)(X_.Z,null),(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"gla-free-ad-credit__title"},(0,o.__)("Spend $500 to get $500 in Google Ads credits!","google-listings-and-ads")),(0,s.createElement)("div",{className:"gla-free-ad-credit__description"},(0,s.createInterpolateElement)((0,o.__)("New to Google Ads? Get $500 in ad credit when you spend $500 within your first 60 days. Check how much credit you can receive in your country <checkLink>here</checkLink>. <termLink>Terms and conditions apply</termLink>.","google-listings-and-ads"),{checkLink:(0,s.createElement)(ql,{eventName:"gla_free_ad_credit_country_click",eventProps:{context:"setup-ads"},href:"#",type:"wp-admin",onClick:()=>{t(!0)}}),termLink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"free-ad-credit-terms",href:"https://www.google.com/ads/coupons/terms/"})})),e&&(0,s.createElement)(ew,{onRequestClose:()=>{t(!1)}})))},nw=e=>{const{onContinue:t=(()=>{})}=e,{google:n}=Xg(),{googleAdsAccount:r}=D_(),a=(()=>{const{googleAdsAccount:e}=D_();return e&&e.sub_account&&(0,wd.getDateDifferenceInDays)(new Date,new Date(1e3*e.created_timestamp))<60})();if(!n||"yes"===n.active&&!r)return(0,s.createElement)(Vg,null);const i=!r.id;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up your accounts","google-listings-and-ads"),description:(0,o.__)("Connect your Google account and your Google Ads account to set up a paid Performance Max campaign.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Connect accounts","google-listings-and-ads"),description:(0,o.__)("Any campaigns created through this app will appear in your Google Ads account. You will be billed directly through Google.","google-listings-and-ads")},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Up,{googleAccount:n,hideAccountSwitch:!0,helper:(0,o.__)("This Google account is connected to your store’s product feed.","google-listings-and-ads")}),(0,s.createElement)(Z_,null),a&&(0,s.createElement)(tw,null))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:i,onClick:t},(0,o.__)("Continue","google-listings-and-ads"))))};function rw(e,t){return e.map((e=>({label:t[e],value:e})))}var ow=e=>{const{formProps:{getInputProps:t},multiple:n=!0,disabled:r=!1,countrySelectHelperText:a}=e,i=Qy(),l=t("countryCodes"),c=n?(0,s.createElement)(mv,{label:(0,o.__)("Select countries","google-listings-and-ads"),help:a,disabled:r,value:l.value,additionalCountryCodes:r?l.value:void 0,onChange:l.onChange}):(0,s.createElement)(Wf,{label:(0,o.__)("Select one country","google-listings-and-ads"),help:a,disabled:r,options:rw(l.value,i),value:l.selected[0],onChange:l.onChange,role:"combobox"});return(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Choose where do you want your product ads to appear.","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,c)))},aw=__webpack_require__(7132),iw=e=>{const{countryCodes:t,dailyAverageCost:n=1/0}=e,{data:r}=(e=>{const t={country_codes:e},n=(0,eg.addQueryArgs)("/wc/gla/ads/campaigns/budget-recommendation",t);return Mv({path:n})})(t),a=Qy();if(!r)return null;const{currency:i,recommendations:l}=r,{daily_budget_low:c,daily_budget_high:u,country:d}=function(e){return e.reduce(((e,t)=>t.daily_budget_high>e.daily_budget_high?t:e))}(l),g=a[d],p=function(e){const t={strong:(0,s.createElement)("strong",null)},n=e?// translators: it's a range of recommended budget amount. 1: the low value of the range, 2: the high value of the range, 3: the currency of amount.
|
24 |
(0,o.__)("Most merchants targeting similar countries set a daily budget of <strong>%1$f to %2$f %3$s</strong> for approximately 10 conversions a week.","google-listings-and-ads"):// translators: it's a range of recommended budget amount. 1: the low value of the range, 2: the high value of the range, 3: the currency of amount, 4: a country name selected by the merchant.
|
25 |
-
(0,o.__)("Most merchants targeting <strong>%4$s</strong> set a daily budget of <strong>%1$f to %2$f %3$s</strong> for approximately 10 conversions a week.","google-listings-and-ads");for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return(0,s.createInterpolateElement)((0,o.sprintf)(n,...a),t)}(l.length>1,c,u,i,g),f=n<c;return(0,s.createElement)("div",{className:"gla-budget-recommendation"},(0,s.createElement)("div",{className:"gla-budget-recommendation__recommendation"},(0,s.createElement)(aw.Z,null),(0,s.createElement)("div",null,p)),f&&(0,s.createElement)("div",{className:"gla-budget-recommendation__low-budget"},(0,s.createElement)(aw.Z,null),(0,s.createElement)("div",null,(0,o.__)("With a budget lower than your competitor range, your campaign may not get noticeable results.","google-listings-and-ads"))))};const sw={noPointerEvents:!0,readOnly:!0,tabIndex:-1};var lw=e=>{const{formProps:{getInputProps:t,setValue:n,values:r},disabled:a=!1}=e,{countryCodes:i,amount:c}=r,{googleAdsAccount:u}=D_(),d=30.4*c,g=null==u?void 0:u.currency,p=(0,s.useRef)(c);return(0,s.useEffect)((()=>{const e=a?void 0:p.current;n("amount",e)}),[a,n]),(0,s.createElement)("div",{className:"gla-budget-section"},(0,s.createElement)(dp,{disabled:a,title:(0,o.__)("Budget","google-listings-and-ads"),description:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Enter a daily average cost that works best for your business and the results that you want. You can change your budget or cancel your ad at any time.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("You will be billed directly by Google Ads.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Google will optimize your ads to maximize performance across your selected country(s).","google-listings-and-ads")))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,{className:"gla-budget-section__card-body"},(0,s.createElement)("div",{className:"gla-budget-section__card-body__cost"},(0,s.createElement)(My,l({label:(0,o.__)("Daily average cost","google-listings-and-ads"),suffix:g},t("amount"),a&&sw)),(0,s.createElement)(My,{disabled:!0,label:(0,o.__)("Monthly max, estimated ","google-listings-and-ads"),suffix:g,value:d})),i.length>0&&(0,s.createElement)(iw,{countryCodes:i,dailyAverageCost:c})))))},cw=()=>{const e=e=>t=>{(0,Dl.recordEvent)("gla_setup_ads_faq",{id:e,action:t?"expand":"collapse"})};return(0,s.createElement)(dp,null,(0,s.createElement)(Yi,{header:(0,o.__)("Frequently asked questions","google-listings-and-ads")},(0,s.createElement)(Il,{initialOpen:!1,title:(0,o.__)("What do I pay for?","google-listings-and-ads"),onToggle:e("what-do-i-pay-for")},(0,s.createElement)(Fl,null,(0,o.__)("You only pay when someone clicks on your product ads to your store.","google-listings-and-ads"))),(0,s.createElement)(Il,{initialOpen:!1,title:(0,o.__)("What does daily average or monthly max mean?","google-listings-and-ads"),onToggle:e("what-does-daily-average-monthly-max-mean")},(0,s.createElement)(Fl,null,(0,o.__)("Some days you might spend less than your daily average, and on others you might spend up to 4 times as much. But over a month, your total spend across the month will be approximately as calculated above.","google-listings-and-ads")))))},uw=e=>{const{formProps:t}=e,n=!t.values.countryCodes.length;return(0,s.createElement)("div",{className:"gla-campaign-form-content"},(0,s.createElement)(ow,{formProps:t}),(0,s.createElement)(lw,{formProps:t,disabled:n}),(0,s.createElement)(cw,null))},dw=e=>{const{formProps:t,onContinue:n=(()=>{})}=e,{isValidForm:r}=t;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),description:(0,s.createInterpolateElement)((0,o.__)("Paid Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"})})}),(0,s.createElement)(uw,{formProps:t}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!r,onClick:n},(0,o.__)("Continue","google-listings-and-ads"))))},gw=e=>{const{title:t,button:n}=e;return(0,s.createElement)(Qf,{className:"gla-title-button-layout"},(0,s.createElement)(lp.Title,{className:"title"},t),n)},pw=(e,t)=>{const n=(()=>{const[e,t]=(0,s.useState)(document.hasFocus());return(0,s.useEffect)((()=>{const e=()=>{t(!0)},n=()=>{t(!1)};return window.addEventListener("focus",e),window.addEventListener("blur",n),()=>{window.removeEventListener("focus",e),window.removeEventListener("blur",n)}}),[]),e})();(0,s.useEffect)((()=>{if(!n)return;e();const r=setInterval(e,1e3*t);return()=>clearInterval(r)}),[e,t,n])};const fw=()=>Hc()({path:"/wc/gla/ads/accounts",method:"POST"});var mw=e=>{let{billingUrl:t,onSetupComplete:n}=e;const{googleAdsAccount:r}=D_();return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const{createNotice:t}=Ap(),{receiveGoogleAdsAccountBillingStatus:n}=xg(),r=(0,s.useCallback)((async()=>{const r=await Hc()({path:"/wc/gla/ads/billing-status"});if("approved"===r.status)try{await fw(),await e(),n(r)}catch(e){t("error",(0,o.__)("Unable to complete your Google Ads account setup. Please try again later.","google-listings-and-ads"))}}),[t,e,n]);pw(r,30)}(n),r?(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card"},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__account-number"},(0,s.createElement)(gw,{title:L_(r.id)})),(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__description"},(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__description__text"},(0,o.__)("You do not have billing information set up in your Google Ads account. Once you have completed your billing setup, your campaign will launch automatically.","google-listings-and-ads")),(0,s.createElement)(gc,{isSecondary:!0,href:t,target:"_blank",eventName:"gla_ads_set_up_billing_click",eventProps:{context:"setup-ads",link_id:"set-up-billing",href:t}},(0,o.__)("Set up billing","google-listings-and-ads")))))):(0,s.createElement)(Vg,null)},hw=__webpack_require__(7188),yw=()=>{const{googleAdsAccount:e}=D_();return e?(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card"},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card__account-number"},(0,s.createElement)(gw,{title:L_(e.id)})),(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card__description"},(0,s.createElement)(hw.Z,null),(0,s.createElement)("div",null,(0,s.createInterpolateElement)((0,o.__)("Great! You already have billing information saved for this <link>Google Ads account</link>.","google-listings-and-ads"),{link:(0,s.createElement)(ql,{eventName:"gla_google_ads_account_link_click",eventProps:{context:"setup-ads",link_id:"google-ads-account",href:"https://ads.google.com/aw/overview "},type:"external",target:"_blank",href:"https://ads.google.com/aw/overview"})})))))):(0,s.createElement)(Vg,null)},vw=e=>{const{formProps:{isSubmitting:t,handleSubmit:n}}=e,{billingStatus:r}=(0,dn.useSelect)((e=>({billingStatus:e(Lc).getGoogleAdsAccountBillingStatus()})),[]);return r?(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up billing","google-listings-and-ads"),description:"approved"===r.status?(0,o.__)("You will be billed directly by Google Ads, and you only pay when you get results.","google-listings-and-ads"):(0,o.__)("In order to launch your paid campaign, your billing information is required. You will be billed directly by Google and only pay when someone clicks on your ad.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Payment info through Google Ads","google-listings-and-ads")},"approved"===r.status?(0,s.createElement)(yw,null):(0,s.createElement)(mw,{billingUrl:r.billing_url||"https://support.google.com/google-ads/answer/2375375",onSetupComplete:n})),"approved"===r.status&&(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,loading:t,onClick:n},(0,o.__)("Launch paid campaign","google-listings-and-ads")))):(0,s.createElement)(Vg,null)},bw=e=>{const{formProps:t}=e,[n,r]=(0,s.useState)("1"),a=e=>{e<n&&r(e)};return(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:n,steps:[{key:"1",label:(0,o.__)("Set up your accounts","google-listings-and-ads"),content:(0,s.createElement)(nw,{onContinue:()=>{r("2")}}),onClick:a},{key:"2",label:(0,o.__)("Create your paid campaign","google-listings-and-ads"),content:(0,s.createElement)(dw,{formProps:t,onContinue:()=>{r("3")}}),onClick:a},{key:"3",label:(0,o.__)("Set up billing","google-listings-and-ads"),content:(0,s.createElement)(vw,{formProps:t}),onClick:a}]})},_w=()=>(0,s.createElement)(Bg,{title:(0,o.__)("Set up paid campaign","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"setup-ads"}),backHref:(0,pc.getNewPath)({},"/google/dashboard"),onBackButtonClick:()=>{(0,Dl.recordEvent)("gla_setup_ads",{target:"back",trigger:"click"})}}),ww=e=>{const{formProps:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_w,null),(0,s.createElement)(bw,{formProps:t}))},Ew=e=>{const t={};return 0===e.countryCodes.length&&(t.countryCodes=(0,o.__)("Please select at least one country for your ads campaign.","google-listings-and-ads")),e.amount<=0&&(t.amount=(0,o.__)("Please make sure daily average cost is greater than 0.","google-listings-and-ads")),t},$w=()=>{const[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[a,i]=function(){const{createAdsCampaign:e}=xg(),{createNotice:t}=Ap(),[n,r]=(0,s.useState)(!1),a=(0,s.useCallback)((()=>Hc()({path:"/wc/gla/ads/setup/complete",method:"POST"}).catch((()=>(t("error",(0,o.__)("Unable to complete your ads setup. Please try again later.","google-listings-and-ads")),Promise.reject())))),[t]);return[(0,s.useCallback)(((t,n,o)=>{r(!0),e(t,n).then(a).then(o).catch((()=>r(!1)))}),[e,a]),n]}(),l=Lv(),{data:c}=$y(),u={amount:0,countryCodes:c};(0,s.useEffect)((()=>{if(n){const e=(0,pc.getNewPath)({guide:"campaign-creation-success"},"/google/dashboard");window.location.href=l+e}}),[n,l]);const d=e&&!n;return I_((0,o.__)("You have unsaved campaign data. Are you sure you want to leave?","google-listings-and-ads"),d),c?(0,s.createElement)(Bl.Form,{initialValues:u,validate:Ew,onChange:(e,n)=>{t(!(0,ie.isEqual)(u,n))},onSubmit:e=>{const{amount:t,countryCodes:n}=e;(0,Dl.recordEvent)("gla_launch_paid_campaign_button_click",{audiences:n.join(","),budget:t}),a(t,n,(()=>{r(!0)}))}},(e=>{const t={...e,isSubmitting:i};return(0,s.createElement)(ww,{formProps:t})})):null},Cw=()=>(Lg("full-page"),(0,s.createElement)($w,null)),kw=e=>{let{context:t}=e;const{googleAdsAccount:n}=D_(),{code:r}=Py();return n&&"connected"===n.status&&n.currency!==r?(0,s.createElement)(Fc,{className:"gla-different-currency-notice",status:"warning",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Note: The currency set in your Google Ads account is <adsCurrency />, which is different from your store currency, <storeCurrency />. <readMoreLink>Read more</readMoreLink>","google-listings-and-ads"),{adsCurrency:(0,s.createElement)("strong",null,n.currency),storeCurrency:(0,s.createElement)("strong",null,r),readMoreLink:(0,s.createElement)(zl,{className:"gla-different-currency-notice__link",href:"https://support.google.com/google-ads/answer/9841530",context:t,linkId:"setting-up-currency"})})):null};var Sw=["menuitem","menuitemradio","menuitemcheckbox"],xw=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Rs(e)),e.bindContainer=e.bindContainer.bind(Rs(e)),e.getFocusableContext=e.getFocusableContext.bind(Rs(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Rs(e)),e}return As(o,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,(0,ie.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?ls.focus.tabbable:ls.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?ie.noop:i,l=n.stopNavigationEvents,c=a(e);if(void 0!==c&&l){e.stopImmediatePropagation();var u=e.target.getAttribute("role");Sw.includes(u)&&e.preventDefault()}if(c){var d=t(e.target.ownerDocument.activeElement);if(d){var g=d.index,p=d.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(g,p.length,c):g+c;f>=0&&f<p.length&&(p[f].focus(),s(f,p[f]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=c(e,["children"]);return(0,s.createElement)("div",l({ref:this.bindContainer},(0,ie.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),o}(s.Component),Ow=function(e,t){return(0,s.createElement)(xw,l({},e,{forwardedRef:t}))};Ow.displayName="NavigableContainer";var Pw=(0,s.forwardRef)(Ow),Aw=(0,s.forwardRef)((function(e,t){var n=e.role,r=void 0===n?"menu":n,o=e.orientation,a=void 0===o?"vertical":o,i=c(e,["role","orientation"]);return(0,s.createElement)(Pw,l({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:r,"aria-orientation":"presentation"===r?null:a,eventToOffset:function(e){var t=e.keyCode,n=[cs.DOWN],r=[cs.UP];return"horizontal"===a&&(n=[cs.RIGHT],r=[cs.LEFT]),"both"===a&&(n=[cs.RIGHT,cs.DOWN],r=[cs.LEFT,cs.UP]),(0,ie.includes)(n,t)?1:(0,ie.includes)(r,t)?-1:(0,ie.includes)([cs.DOWN,cs.UP,cs.LEFT,cs.RIGHT],t)?0:void 0}},i))}));const Nw=e=>{let{tabId:t,href:n,children:r,selected:o,...a}=e;return(0,s.createElement)(Bl.Link,l({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,href:n},a),r)};var Rw=e=>{const{selectedKey:t,tabs:n}=e;return(0,s.createElement)("div",{className:"app-tab-nav"},(0,s.createElement)(Aw,{role:"tablist",orientation:"horizontal",className:"app-tab-nav__tabs"},n.map((e=>(0,s.createElement)(Nw,{className:d()("components-button","app-tab-nav__tabs-item",{"is-active":e.key===t}),tabId:`${e.key}`,"aria-controls":`${e.key}-view`,selected:e.key===t,key:e.key,href:e.href},e.title)))))},Tw=()=>{var e;return!(null===(e=window.wcAdminFeatures)||void 0===e||!e.navigation)};const Mw={match:{url:"/google/dashboard"},wpOpenMenu:"toplevel_page_woocommerce-marketing"};function jw(){const e=Tw();return(0,s.useEffect)((()=>{e||window.wpNavMenuClassChange(Mw,Mw.match.url)}),[e])}let Iw=[{key:"dashboard",title:(0,o.__)("Dashboard","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/dashboard",{})},{key:"reports",title:(0,o.__)("Reports","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/reports",{})},{key:"product-feed",title:(0,o.__)("Product Feed","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/product-feed",{})},{key:"settings",title:(0,o.__)("Settings","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/settings",{})}];Zl.enableReports||(Iw=Iw.filter((e=>{let{key:t}=e;return"reports"!==t})));var Fw=()=>{jw();const e=(()=>{var e;const t=(0,pc.getPath)();return null===(e=Iw.find((e=>t.includes(e.key))))||void 0===e?void 0:e.key})();return(0,s.createElement)(Rw,{tabs:Iw,selectedKey:e})},Dw=()=>Tw()?null:(0,s.createElement)(Fw,null),Lw=window.wc.customerEffortScore,Gw=__webpack_require__.n(Lw);const Bw="undefined"!=typeof window&&"localStorage"in window,qw={get:e=>Bw?window.localStorage.getItem(e):null,set:(e,t)=>Bw?window.localStorage.setItem(e,t):null,remove:e=>Bw?window.localStorage.removeItem(e):null};var zw=qw,Hw=e=>{let{eventContext:t,label:n}=e;return(0,s.createElement)(Gw(),{label:n,recordScoreCallback:(e,n)=>{(0,Dl.recordEvent)("gla_ces_feedback",{context:t,score:e,comments:n||""})},onNoticeShownCallback:()=>{zw.remove(ac),(0,Dl.recordEvent)("gla_ces_snackbar_open",{context:t})},onNoticeDismissedCallback:()=>{(0,Dl.recordEvent)("gla_ces_snackbar_closed",{context:t})},onModalShownCallback:()=>{(0,Dl.recordEvent)("gla_ces_modal_open",{context:t})},icon:(0,s.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":(0,o.__)("Pencil icon","google-listings-and-ads")},"✏️")})},Uw=e=>{const{trackEventReportId:t}=e,n=(()=>{const e=(0,pc.getQuery)(),{period:t,compare:n,before:r,after:o}=(0,wd.getDateParamsFromQuery)(e),{primary:a,secondary:i}=(0,wd.getCurrentDates)(e);return{period:t,compare:n,before:r,after:o,primaryDate:a,secondaryDate:i}})();return(0,s.createElement)(Bl.DateRangeFilterPicker,{dateQuery:n,onRangeSelect:e=>{t&&(0,Dl.recordEvent)("gla_datepicker_update",{report:t,...e}),(0,pc.updateQueryString)(e)},isoDateFormat:"YYYY-MM-DD"})},Vw=function(e){let t;function n(e){const n={code:"USD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2,...e};t={code:n.code.toString(),symbol:n.symbol.toString(),symbolPosition:n.symbolPosition.toString(),decimalSeparator:n.decimalSeparator.toString(),priceFormat:a(n),thousandSeparator:n.thousandSeparator.toString(),precision:parseInt(n.precision,10)}}function r(e,n=!1){const r=Oy(t,e);if(""===r)return r;const{priceFormat:a,symbol:i,code:s}=t;return(0,o.sprintf)(a,n?s:i,r)}function a(e){if(e.priceFormat)return function(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}(e.priceFormat.toString());switch(e.symbolPosition){case"left":return"%1$s%2$s";case"right":return"%2$s%1$s";case"left_space":return"%1$s %2$s";case"right_space":return"%2$s %1$s"}return"%1$s%2$s"}return n(e),{getCurrencyConfig:()=>({...t}),getDataForCountry:function(e,t={},n={}){const r=t[e]||{},o=n[r.currency_code];return o?{code:r.currency_code,symbol:(0,Ky.decodeEntities)(o),symbolPosition:r.currency_pos,thousandSeparator:r.thousand_sep,decimalSeparator:r.decimal_sep,precision:r.num_decimals}:{}},setCurrency:n,formatAmount:r,formatCurrency:function(e){return ss()("Currency().formatCurrency",{version:"5.0.0",alternative:"Currency().formatAmount",plugin:"WooCommerce",hint:"`formatAmount` accepts the same arguments as formatCurrency"}),r(e)},getPriceFormat:a,formatDecimal(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return 0;const{precision:n}=t;return Math.round(e*Math.pow(10,n))/Math.pow(10,n)},formatDecimalString(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return"";const{precision:n}=t;return e.toFixed(n)},render:e=>("number"!=typeof e&&(e=parseFloat(e)),e<0?(0,s.createElement)("span",{className:"is-negative"},r(e)):r(e))}};function Ww(){const e=Py(),{googleAdsAccount:t}=D_(),n=(null==t?void 0:t.currency)||"",r=(null==t?void 0:t.symbol)||"",o=(0,s.useMemo)((()=>({...e,code:n,symbol:r})),[e,n,r]),a=(0,s.useMemo)((()=>Vw(o).formatAmount),[o]);return{adsCurrencyConfig:o,formatAmount:a}}function Yw(){const e=(0,pc.getQuery)();return Og(e)}function Kw(e){const t=Yw();return(0,dn.useSelect)((n=>{const{getDashboardPerformance:r}=n(Lc),o=r(e,t,"primary"),a=r(e,t,"secondary");let i=null;const s=o.loaded&&a.loaded;return s&&o.data&&a.data&&(i=xd(o.data,a.data)),{loaded:s,data:i}}),[e,t])}var Qw=e=>{let t,{loaded:n,data:r,children:o,noDataMessage:a}=e;return t=n?r?(0,s.createElement)(Bl.SummaryList,null,(()=>o(r))):(0,s.createElement)("div",{className:"gla-summary-card__body"},(0,s.createElement)("p",null,a.body),(0,s.createElement)(gc,{eventName:a.eventName,eventProps:{context:"dashboard",href:a.link},href:a.link,target:"_blank",isSmall:!0,isSecondary:!0},a.buttonLabel)):(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:2}),t},Zw=e=>{let{title:t,children:n}=e;return(0,s.createElement)(De,{className:"gla-summary-card"},(0,s.createElement)(zi,{size:"medium"},(0,s.createElement)(Ii,{variant:"title.small"},t)),n)},Xw=e=>{const{eventName:t="gla_add_paid_campaign_clicked",eventProps:n,children:r,onClick:a=(()=>{}),...i}=e,{adsSetupComplete:c}=Zl,u=c?kc():(0,pc.getNewPath)({},"/google/setup-ads",{}),d={context:"",href:u};return(0,s.createElement)(gc,l({isSmall:!0,isSecondary:!0,onClick:function(){(0,Dl.recordEvent)(t,{...d,...n}),(0,pc.getHistory)().push(u),a(...arguments)}},i),r||(0,o.__)("Add paid campaign","google-listings-and-ads"))};const Jw=e=>{let{adsAccount:t}=e;const n=t.sub_account||"disconnected"===t.status;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,n?(0,o.__)("Create your first campaign and get $500 in ad credit*","google-listings-and-ads"):(0,o.__)("Create your first campaign","google-listings-and-ads")),(0,s.createElement)(Xw,{eventProps:{context:"add-paid-campaign-promotion"}}))};var eE=function(){const{googleAdsAccount:e}=D_();return(0,s.createElement)("div",{className:"gla-summary-card__body"},e?(0,s.createElement)(Jw,{adsAccount:e}):(0,s.createElement)(Bl.Spinner,null))};const tE={precision:0},nE=()=>{const e=Ry(tE),{data:t,loaded:n}=Kw(ec);return(0,s.createElement)(Qw,{loaded:n,data:t,noDataMessage:{body:(0,o.__)("We're having trouble loading this data. Try again later, or track your performance in Google Merchant Center.","google-listings-and-ads"),link:"https://merchants.google.com/mc/reporting/dashboard",eventName:"gla_google_mc_link_click",buttonLabel:(0,o.__)("Open Google Merchant Center","google-listings-and-ads")}},(t=>[(0,s.createElement)(Bl.SummaryNumber,{key:"1",label:(0,o.__)("Clicks","google-listings-and-ads"),value:e(t.clicks.value),prevValue:e(t.clicks.prevValue),delta:t.clicks.delta}),(0,s.createElement)(Bl.SummaryNumber,{key:"2",label:(0,o.__)("Total Spend","google-listings-and-ads"),value:(0,o.__)("Free","google-listings-and-ads"),delta:null})]))},rE=()=>{const{formatAmount:e}=Ww(),{data:t,loaded:n}=Kw(Jl);return(0,s.createElement)(Qw,{loaded:n,data:t,noDataMessage:{body:(0,o.__)("We're having trouble loading this data. Try again later, or track your performance in Google Ads.","google-listings-and-ads"),link:"https://ads.google.com/",eventName:"gla_google_ads_link_click",buttonLabel:(0,o.__)("Open Google Ads","google-listings-and-ads")}},(t=>[(0,s.createElement)(Bl.SummaryNumber,{key:"1",label:(0,o.__)("Total Sales","google-listings-and-ads"),value:e(t.sales.value,!0),prevValue:e(t.sales.prevValue,!0),delta:t.sales.delta}),(0,s.createElement)(Bl.SummaryNumber,{key:"2",label:(0,o.__)("Total Spend","google-listings-and-ads"),value:e(t.spend.value,!0),prevValue:e(t.spend.prevValue,!0),delta:t.spend.delta})]))};function oE(){const{adsSetupComplete:e}=Zl;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Zw,{title:(0,o.__)("Performance (Free Listing)","google-listings-and-ads")},(0,s.createElement)(nE,null)),(0,s.createElement)(Zw,{title:(0,o.__)("Performance (Paid Campaigns)","google-listings-and-ads")},e?(0,s.createElement)(rE,null):(0,s.createElement)(eE,null)))}function aE(e){let{title:t,children:n}=e;return(0,s.createElement)("div",{className:"gla-guide__page-content"},(0,s.createElement)("h2",{className:"gla-guide__page-content__header"},t),(0,s.createElement)("div",{className:"gla-guide__page-content__body"},n))}function iE(e){const{context:t,href:n,className:r,...o}=e;return(0,s.createElement)(ql,l({className:d()("gla-guide__page-content__link",r),eventName:"gla_modal_content_link_click",eventProps:{context:t,href:n},type:"external",target:"_blank",href:n},o))}var sE=__webpack_require__(221);const lE="create-another-campaign",cE="confirm";function uE(e){let{onGuideRequestClose:t=(()=>{})}=e;(0,s.useEffect)((()=>{(0,Dl.recordEvent)("gla_modal_open",{context:oc})}),[]);const n=(0,s.useCallback)((e=>t(e,"dismiss")),[t]);return(0,s.createElement)(Gh,{className:"gla-campaign-creation-success-guide",onRequestClose:n,buttons:[(0,s.createElement)(xl,{key:"0",isTertiary:!0,"data-action":lE,onClick:t},(0,o.__)("Create another campaign","google-listings-and-ads")),(0,s.createElement)(xl,{key:"1",isPrimary:!0,"data-action":cE,onClick:t},(0,o.__)("Got it","google-listings-and-ads"))]},(0,s.createElement)("div",{className:"gla-campaign-creation-success-guide__header-image"},(0,s.createElement)("img",{src:sE,alt:(0,o.__)("Drawing of a person who successfuly launched a campaign","google-listings-and-ads"),width:"413",height:"160"})),(0,s.createElement)(aE,{title:(0,o.__)("You've set up a paid Performance Max Campaign!","google-listings-and-ads")},(0,s.createInterpolateElement)((0,o.__)("You can pause or edit your campaign at any time. For best results, we recommend allowing your campaign to run for at least 14 days without pausing or editing. <link>Learn more about Performance Max technology.</link>","google-listings-and-ads"),{link:(0,s.createElement)(iE,{href:"https://support.google.com/google-ads/answer/10724817",context:"campaign-creation-performance-max"})})))}var dE=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("app-table-card-div",t)},n))};const gE=(e,t,n)=>{const r=t.includes(n)?"on":"off";(0,Dl.recordEvent)("gla_table_header_toggle",{report:e,column:n,status:r})},pE=(e,t,n)=>{(0,Dl.recordEvent)("gla_table_sort",{report:e,column:t,direction:n})};var fE=e=>{const{trackEventReportId:t,...n}=e;function r(e,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t&&e(t,...o),n&&n(...o)}}return(0,s.createElement)(dE,null,(0,s.createElement)(Bl.TableCard,l({},n,{onColumnsChange:r(gE,e.onColumnsChange),onSort:r(pE,e.onSort)})))},mE=e=>{const{programId:t,onRequestClose:n}=e,[r,a]=(0,s.useState)(!1),i=xg(),l=()=>{r||n()};return(0,s.createElement)(Gh,{className:"gla-remove-program-modal",title:(0,o.__)("Permanently Remove?","google-listings-and-ads"),isDismissible:!r,buttons:[(0,s.createElement)(xl,{key:"keep",isSecondary:!0,disabled:r,onClick:l},(0,o.__)("Keep Campaign","google-listings-and-ads")),(0,s.createElement)(gc,{key:"remove",isPrimary:!0,isDestructive:!0,loading:r,onClick:()=>{a(!0),i.deleteAdsCampaign(t).then((()=>n())).catch((()=>a(!1)))}},(0,o.__)("Remove Campaign","google-listings-and-ads"))],onRequestClose:l},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s paid ad campaigns. Removing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Once a campaign is removed, it cannot be re-enabled.","google-listings-and-ads")))},hE=e=>{const{programId:t}=e,[n,r]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{isDestructive:!0,isLink:!0,onClick:()=>{r(!0)}},(0,o.__)("Remove","google-listings-and-ads")),n&&(0,s.createElement)(mE,{programId:t,onRequestClose:()=>{r(!1)}}))},yE=e=>{let{programId:t,onRequestClose:n}=e;return(0,s.createElement)(Gh,{className:"gla-edit-program-prompt-modal",title:(0,o.__)("Before you edit…","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"no",isSecondary:!0,onClick:()=>{n()}},(0,o.__)("Don't edit","google-listings-and-ads")),(0,s.createElement)(xl,{key:"yes",isPrimary:!0,onClick:()=>{const e=0===t?(0,pc.getNewPath)({subpath:hc},$c):(e=>(0,pc.getNewPath)({subpath:yc,programId:e},$c))(t);(0,pc.getHistory)().push(e),(0,Dl.recordEvent)("gla_dashboard_edit_program_click",{programId:t,url:e})}},(0,o.__)("Continue to edit","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s Free Listing and paid ad campaigns.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Editing will result in the loss of any optimisations learned over time.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("We recommend allowing your programs to run for at least 14 days after set up, without pausing or editing, for optimal performance.","google-listings-and-ads")))},vE=e=>{const{programId:t}=e;return(0,s.createElement)(Sy,{button:(0,s.createElement)(xl,{isLink:!0},(0,o.__)("Edit","google-listings-and-ads")),modal:(0,s.createElement)(yE,{programId:t})})};const bE="getAdsCampaigns";var _E=()=>(0,dn.useSelect)((e=>{const{adsSetupComplete:t}=Zl;if(!t)return{loading:!1,loaded:!0,data:[]};const n=e(Lc),r=n[bE]();return{loading:n.isResolving(bE),loaded:n.hasFinishedResolution(bE),data:r}}),[]),wE=e=>{const{onPauseCampaign:t=(()=>{}),onRequestClose:n}=e;return(0,s.createElement)(Gh,{className:"gla-pause-program-modal",title:(0,o.__)("Before you pause…","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"1",isSecondary:!0,onClick:()=>{n()}},(0,o.__)("Keep Active","google-listings-and-ads")),(0,s.createElement)(xl,{key:"2",isPrimary:!0,onClick:()=>{t()}},(0,o.__)("Pause Campaign","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s paid ad campaigns. If you pause, your products won’t be shown to people looking for what you offer.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Pausing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.","google-listings-and-ads")))},EE=function(e){var t=e.className,n=e.checked,r=e.id,o=e.disabled,a=e.onChange,i=void 0===a?ie.noop:a,u=c(e,["className","checked","id","disabled","onChange"]),g=d()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,s.createElement)("span",{className:g},(0,s.createElement)("input",l({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o},u)),(0,s.createElement)("span",{className:"components-form-toggle__track"}),(0,s.createElement)("span",{className:"components-form-toggle__thumb"}))};function $E(e){var t,n,r=e.label,o=e.checked,a=e.help,i=e.className,l=e.onChange,c=e.disabled,u=nf($E),g="inspector-toggle-control-".concat(u);return a&&(t=g+"__help",n=(0,ie.isFunction)(a)?a(o):a),(0,s.createElement)(df,{id:g,help:n,className:d()("components-toggle-control",i)},(0,s.createElement)(EE,{id:g,checked:o,onChange:function(e){l(e.target.checked)},"aria-describedby":t,disabled:c}),(0,s.createElement)("label",{htmlFor:g,className:"components-toggle-control__label"},r))}var CE=e=>(0,s.createElement)("div",{className:"app-standalone-toggle-control"},(0,s.createElement)($E,e)),kE=e=>{const{program:t}=e,[n,r]=(0,s.useState)(t.active),[o,a]=(0,s.useState)(!1),{updateAdsCampaign:i}=xg();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(CE,{checked:n,onChange:e=>{!1!==e?(r(e),i(t.id,{status:"enabled"})):a(!0)}}),o&&(0,s.createElement)(wE,{programId:t.id,onPauseCampaign:()=>{a(!1),r(!1),i(t.id,{status:"paused"})},onRequestClose:()=>{a(!1)}}))},SE=()=>(0,s.createElement)(Yp,{text:(0,o.__)("Free listings cannot be paused through WooCommerce. Go to Google Merchant Center for advanced settings.","google-listings-and-ads")},(0,s.createElement)(CE,{checked:!0,disabled:!0}));const xE=[{key:"title",label:(0,o.__)("Program","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"country",label:(0,o.__)("Country","google-listings-and-ads"),isLeftAligned:!0},{key:"dailyBudget",label:(0,o.__)("Daily budget","google-listings-and-ads")},{key:"enabled",label:(0,o.__)("Enabled","google-listings-and-ads")},{key:"actions",label:"",required:!0}];function OE(e){let{countryCodes:t,countryNameMap:n}=e;const[r]=t;return(0,s.createElement)("span",null,n[r],t.length>=2&&(0,o.sprintf)(// translators: %d: number of countries, with minimum value of 1.
|
26 |
-
(0,o.__)(" + %d more","google-listings-and-ads"),t.length-1))}var PE=e=>{const t=(0,pc.getQuery)(),{formatAmount:n}=Ww(),{data:r}=$y(),{data:a}=_E(),i=Qy();if(!r||!a)return(0,s.createElement)(Vg,null);const c=[{id:0,title:(0,o.__)("Free listings","google-listings-and-ads"),dailyBudget:(0,o.__)("Free","google-listings-and-ads"),country:(0,s.createElement)(OE,{countryCodes:r,countryNameMap:i}),active:!0},...a.map((e=>({id:e.id,title:e.name,dailyBudget:n(e.amount,!0),country:(0,s.createElement)(OE,{countryCodes:e.displayCountries,countryNameMap:i}),active:"enabled"===e.status})))];return(0,s.createElement)(fE,l({className:"gla-all-programs-table-card",title:(0,o.__)("Programs","google-listings-and-ads"),actions:(0,s.createElement)(Xw,{eventProps:{context:"programs-table-card"}}),headers:xE,rows:c.map((e=>[{display:e.title},{display:e.country},{display:e.dailyBudget},{display:0===e.id?(0,s.createElement)(SE,null):(0,s.createElement)(kE,{key:e.id,program:e})},{display:(0,s.createElement)("div",{className:"program-actions",key:e.id},(0,s.createElement)(vE,{programId:e.id}),0!==e.id&&(0,s.createElement)(hE,{programId:e.id}))}])),totalRows:c.length,rowsPerPage:c.length,query:t,onQueryChange:pc.onQueryChange},e))},AE=()=>{var e;return!(null===(e=window.wcTracks)||void 0===e||!e.isEnabled)},NE=e=>{const{formProps:t}=e,{values:n,isValidForm:r,getInputProps:a,handleSubmit:i}=t,{locale:c,language:u}=n;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Where do you want to sell your products?","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Language","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,s.createInterpolateElement)((0,o.__)("Listings can only be displayed in your site language. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-audience",linkId:"site-language",href:"https://support.google.com/merchants/answer/160637"})})),(0,s.createElement)(my,{selected:c,options:[{label:u,value:c}]})),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Location","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,o.__)("Your store should already have the appropriate shipping and tax rates (if required) for potential customers in your selected location(s).","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},a("location"),{collapsible:!0,label:(0,o.__)("Selected countries only","google-listings-and-ads"),value:"selected"}),(0,s.createElement)("div",{className:"input"},(0,s.createElement)(Uy,l({multiple:!0},a("countries")))),(0,s.createElement)("div",{className:"cannot-find-country"},(0,o.__)("Can’t find a country? Only supported countries can be selected.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},a("location"),{label:(0,o.__)("All countries","google-listings-and-ads"),value:"all"}),(0,s.createElement)(fy,null,(0,o.__)("Your listings will be shown in all supported countries.","google-listings-and-ads")))))))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:!r,onClick:i},(0,o.__)("Continue","google-listings-and-ads"))))};function RE(e){let{initialData:t,onChange:n=(()=>{}),onContinue:r=(()=>{})}=e;return t?(0,s.createElement)("div",{className:"gla-choose-audience"},(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Choose your audience","google-listings-and-ads"),description:(0,o.__)("Configure who sees your product listings on Google.","google-listings-and-ads")}),t&&(0,s.createElement)(Bl.Form,{initialValues:{locale:t.locale,language:t.language,location:t.location,countries:t.countries||[]},validate:e=>{const t={};return e.location||(t.location=(0,o.__)("Please select a location option.","google-listings-and-ads")),"selected"===e.location&&0===e.countries.length&&(t.countries=(0,o.__)("Please select at least one country.","google-listings-and-ads")),t},onSubmit:r,onChange:n},(e=>(0,s.createElement)(NE,{formProps:e}))))):(0,s.createElement)(Vg,null)}var TE=e=>{let{countries:t,onRequestClose:n,onSubmit:r}=e;const[a,i]=(0,s.useState)(!1);return(0,s.createElement)(Bl.Form,{initialValues:{countries:t,time:0},validate:hv,onSubmit:e=>{r(e),n()}},(e=>{const{getInputProps:r,isValidForm:c,handleSubmit:u}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!a,shouldCloseOnClickOutside:!a,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!c,onClick:u},(0,o.__)("Add shipping time","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)(pp,null,(0,s.createElement)(Uy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:t,onDropdownVisibilityChange:i},r("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},r("time")))))}))},ME=e=>{const[t,n]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{isSecondary:!0,icon:(0,s.createElement)(ky.Z,null),onClick:()=>{n(!0)}},(0,o.__)("Add another time","google-listings-and-ads")),t&&(0,s.createElement)(TE,l({onRequestClose:()=>{n(!1)}},e)))},jE=e=>{let{audienceCountries:t,time:n,onDelete:r,onSubmit:a,onRequestClose:i}=e;const[c,u]=(0,s.useState)(!1),d=Array.from(new Set([...n.countries,...t])),g=()=>{r(n.countries)};return(0,s.createElement)(Bl.Form,{initialValues:{countries:n.countries,time:n.time},validate:hv,onSubmit:e=>{const t=new Set(e.countries),r=n.countries.filter((e=>!t.has(e)));a(e,r)}},(e=>{const{getInputProps:t,isValidForm:n,handleSubmit:r}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!c,shouldCloseOnClickOutside:!c,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:g},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!n,onClick:r},(0,o.__)("Update shipping time","google-listings-and-ads"))],onRequestClose:i},(0,s.createElement)(pp,null,(0,s.createElement)(Uy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:d,onDropdownVisibilityChange:u},t("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},t("time")))))}))},IE=e=>{let{audienceCountries:t,time:n,onChange:r,onDelete:a}=e;const[i,l]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{className:"gla-edit-time-button",isTertiary:!0,onClick:()=>{l(!0)}},(0,o.__)("Edit","google-listings-and-ads")),i&&(0,s.createElement)(jE,{audienceCountries:t,time:n,onSubmit:function(){r(...arguments),l(!1)},onDelete:e=>{a(e),l(!1)},onRequestClose:()=>{l(!1)}}))},FE=e=>{let{value:t,audienceCountries:n,onChange:r,onDelete:a}=e;const{countries:i,time:l}=t;return n?(0,s.createElement)("div",{className:"gla-countries-time-input"},(0,s.createElement)(Ty,{label:(0,s.createElement)("div",{className:"label"},(0,s.createElement)(bv,{countries:i}),(0,s.createElement)(IE,{audienceCountries:n,onChange:r,onDelete:a,time:t})),suffix:(0,o.__)("days","google-listings-and-ads"),value:l,onBlur:(e,t)=>{l!==t&&r({countries:i,time:t})}})):(0,s.createElement)(Vg,null)};function DE(e){let{value:t,selectedCountryCodes:n,onChange:r}=e;const o=t.length,a=new Map(t.map((e=>[e.countryCode,e]))),i=n.filter((e=>!a.has(e))),l=i.length,c=(e=>{const t=new Map;return e.forEach((e=>{const{countryCode:n,time:r}=e,o=t.get(r)||{countries:[],time:r};o.countries.push(n),t.set(r,o)})),Array.from(t.values())})(t);function u(e){r(t.filter((t=>!e.includes(t.countryCode))))}function d(e){let{countries:t,time:n}=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o.forEach((e=>a.delete(e))),t.forEach((e=>{a.set(e,{countryCode:e,time:n})})),r(Array.from(a.values()))}return 0===c.length&&c.push({countries:n,time:null}),(0,s.createElement)("div",{className:"countries-time"},(0,s.createElement)(pp,null,c.map((e=>(0,s.createElement)("div",{key:e.countries.join("-"),className:"countries-time-input-form"},(0,s.createElement)(FE,{value:e,audienceCountries:n,onChange:d,onDelete:u})))),o>=1&&l>=1&&(0,s.createElement)("div",{className:"add-time-button"},(0,s.createElement)(ME,{countries:i,onSubmit:function(e){let{countries:n,time:o}=e;const a=n.map((e=>({countryCode:e,time:o})));r(t.concat(a))}}))))}var LE=e=>{let{formProps:t,selectedCountryCodes:n}=e;const{getInputProps:r}=t;return n?(0,s.createElement)("div",{className:"gla-shipping-time-setup"},(0,s.createElement)(pp,null,(0,s.createElement)(DE,l({},r("shipping_country_times"),{selectedCountryCodes:n})))):(0,s.createElement)(Vg,null)},GE=e=>{let{formProps:t,countries:n}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Shipping times","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your shipping times will be shown to potential customers on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-read-more",href:"https://support.google.com/merchants/answer/7050921"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Estimated shipping times","google-listings-and-ads")),(0,s.createElement)(LE,{selectedCountryCodes:n,formProps:t}))))},BE=e=>{let{countries:t,formProps:n,saving:r=!1,submitLabel:a=(0,o.__)("Complete setup","google-listings-and-ads")}=e;const{values:i,isValidForm:l,handleSubmit:c}=n,u=wy(t),d="flat"===i.shipping_time,g=null===u||!l;return(0,s.createElement)(ep,null,(0,s.createElement)(pv,{formProps:n,audienceCountries:t}),d&&(0,s.createElement)(GE,{formProps:n,countries:t}),(0,s.createElement)(Cy,{show:u},(0,s.createElement)(yy,{formProps:n})),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:g,loading:r,onClick:c},a)))};const qE=["shipping_rate","shipping_time","tax_rate","website_live","checkout_process_secure","payment_methods_visible","refund_tos_visible","contact_info_visible"];var zE=e=>{let{countries:t,settings:n,onSettingsChange:r=(()=>{}),shippingRates:o,onShippingRatesChange:a=(()=>{}),shippingTimes:i,onShippingTimesChange:l=(()=>{}),onContinue:c=(()=>{}),submitLabel:u}=e;const[d,g]=(0,s.useState)(!1);return n&&o&&i&&t?(0,s.createElement)("div",{className:"gla-setup-free-listings"},(0,s.createElement)(sy,null),(0,s.createElement)(Bl.Form,{initialValues:{shipping_rate:n.shipping_rate,shipping_time:n.shipping_time,tax_rate:n.tax_rate,website_live:n.website_live,checkout_process_secure:n.checkout_process_secure,payment_methods_visible:n.payment_methods_visible,refund_tos_visible:n.refund_tos_visible,contact_info_visible:n.contact_info_visible,offer_free_shipping:Tv(o),shipping_country_rates:o,shipping_country_times:i},onChange:(e,t)=>{"shipping_country_rates"===e.name?a(t.shipping_country_rates):"shipping_country_times"===e.name?l(t.shipping_country_times):qE.includes(e.name)&&r(e,(e=>(0,ie.pick)(e,qE))(t))},validate:e=>{const{shipping_country_times:n}=e;return py(e,n,t)},onSubmit:async()=>{g(!0),await c(),g(!1)}},(e=>(0,s.createElement)(BE,{formProps:e,countries:t,submitLabel:u,saving:d})))):(0,s.createElement)(Vg,null)},HE=()=>{const{data:e}=fv(),{deleteShippingTimes:t,upsertShippingTimes:n}=xg(),r=(0,s.useCallback)((async r=>{const o=((e,t)=>((e,t)=>(0,ie.differenceBy)(t,e,"countryCode"))(e,t).map((e=>e.countryCode)))(r,e);o.length&&await t(o);const a=(i=r,s=e,(0,ie.differenceWith)(i,s,ie.isEqual));var i,s;if(a.length){const e=(e=>{const t=new Map;return e.forEach((e=>{let{countryCode:n,time:r}=e;const o=t.get(r)||{countryCodes:[],time:r};o.countryCodes.push(n),t.set(r,o)})),Array.from(t.values())})(a).map((e=>n(e)));await Promise.all(e)}}),[t,e,n]);return{saveShippingTimes:r}};function UE(e){const t=new Set(["/"+(0,pc.getNewPath)({pageStep:void 0}),"/"+(0,pc.getNewPath)({pageStep:1}),"/"+(0,pc.getNewPath)({pageStep:2})]),n=e.pathname+e.search;return!t.has(n)}var VE=()=>{Lg("full-content");const{targetAudience:e,getFinalCountries:t}=$y(),{settings:n}=ly(),{saveTargetAudience:r,saveSettings:a}=xg(),{saveShippingRates:i}=Av(),{saveShippingTimes:l}=HE(),[c,u]=(0,s.useState)(e),[d,g]=(0,s.useState)(n),{hasFinishedResolution:p,data:f}=Pv(),[m,h]=(0,s.useState)(f),y=p?m:null,{hasFinishedResolution:v,data:b}=fv(),[_,w]=(0,s.useState)(b),E=v?_:null;(0,s.useEffect)((()=>g(n)),[n]),(0,s.useEffect)((()=>u(e)),[e]),(0,s.useEffect)((()=>h(f)),[f]),(0,s.useEffect)((()=>w(b)),[b]);const[$]=Dp({path:"/wc/gla/mc/settings/sync",method:"POST"}),{createNotice:C}=Ap(),k=!(0,ie.isEqual)(...[c,e].map((e=>({...e,countries:new Set(null==e?void 0:e.countries)})))),S=!(0,ie.isEqual)(d,n),x=(P=f,(O=m).length!==P.length||xv(O,P).length>0);var O,P;const A=!(0,ie.isEqual)(new Set(_),new Set(b)),N=k||S||x||A;I_((0,o.__)("You have unsaved campaign data. Are you sure you want to leave?","google-listings-and-ads"),N,UE);const{pageStep:R="1"}=(0,pc.getQuery)(),T=(0,pc.getNewPath)({pageStep:void 0,subpath:void 0},"/google/dashboard"),M=()=>{const e=t(c),n=y.filter((t=>e.includes(t.country)));h(n);const r=E.filter((t=>e.includes(t.countryCode)));w(r)},j=e=>{"2"===e&&M(),(0,pc.getHistory)().push((0,pc.getNewPath)({pageStep:e}))};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit free listings","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"edit-free-listings"}),backHref:T}),(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:R,steps:[{key:"1",label:(0,o.__)("Choose your audience","google-listings-and-ads"),content:(0,s.createElement)(RE,{initialData:c,onChange:(e,t)=>{u(t)},onContinue:()=>{M(),(0,pc.getHistory)().push((0,pc.getNewPath)({pageStep:"2"}))}}),onClick:j},{key:"2",label:(0,o.__)("Configure your product listings","google-listings-and-ads"),content:(0,s.createElement)(zE,{countries:t(c),settings:d,onSettingsChange:(e,t)=>{g(t)},shippingRates:y,onShippingRatesChange:h,shippingTimes:E,onShippingTimesChange:w,onContinue:async()=>{try{await Promise.allSettled([r(c),a(d),i(m),l(_)]),await $(),C("success",(0,o.__)("Your changes to your Free Listings have been saved and will be synced to your Google Merchant Center account.","google-listings-and-ads")),(0,Dl.recordEvent)("gla_free_campaign_edited")}catch(e){C("error",(0,o.__)("Something went wrong while saving your changes. Please try again later.","google-listings-and-ads"))}},submitLabel:(0,o.__)("Save changes","google-listings-and-ads")}),onClick:j}]}))},WE=e=>{let{formProps:t,allowMultiple:n=!0}=e;const r=n?(0,o.__)("Once a campaign has been created, you cannot change the target country(s).","google-listings-and-ads"):(0,o.__)("Once a campaign has been created, you cannot change the target country.","google-listings-and-ads");return(0,s.createElement)("div",{className:"gla-campaign-form-content"},(0,s.createElement)(ow,{disabled:!0,multiple:n,countrySelectHelperText:r,formProps:t}),(0,s.createElement)(lw,{formProps:t}),(0,s.createElement)(cw,null))},YE=e=>{const{campaign:t}=e,{amount:n,allowMultiple:r,displayCountries:a}=t,[i,l]=(0,s.useState)(!1),{updateAdsCampaign:c}=xg();return(0,s.createElement)(Bl.Form,{initialValues:{amount:n,countryCodes:a},validate:e=>Ew(e),onSubmit:async e=>{l(!0);try{await c(t.id,{amount:e.amount})}catch(e){return void l(!1)}(0,pc.getHistory)().push(xc())}},(e=>{const{isValidForm:t,handleSubmit:n}=e;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Edit your paid campaign","google-listings-and-ads"),description:(0,s.createElement)(s.Fragment,null,(0,o.__)("Paid ad campaigns are automatically optimized for you by Google.","google-listings-and-ads"),(0,s.createElement)("br",null),(0,s.createElement)(zl,{context:"edit-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"},(0,o.__)("See what your ads will look like.","google-listings-and-ads")))}),(0,s.createElement)(WE,{formProps:e,allowMultiple:r}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!t,loading:i,onClick:n},(0,o.__)("Save changes","google-listings-and-ads"))))}))};const KE=(0,pc.getNewPath)({},"/google/dashboard",{}),QE=(0,s.createElement)(Hg,{eventContext:"edit-ads"});var ZE=()=>{Lg("full-content");const e=Number((0,pc.getQuery)().programId),{loaded:t,data:n}=_E(),r=null==n?void 0:n.find((t=>t.id===e));return t?r?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.sprintf)(// translators: %s: campaign's name.
|
27 |
-
(0,o.__)("Edit %s","google-listings-and-ads"),r.name),helpButton:QE,backHref:KE}),(0,s.createElement)(YE,{campaign:r})):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit Campaign","google-listings-and-ads"),helpButton:QE,backHref:KE}),(0,s.createElement)("div",null,(0,o.__)("Error in loading your paid ads campaign. Please try again later.","google-listings-and-ads"))):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Loading…","google-listings-and-ads"),helpButton:QE,backHref:KE}),(0,s.createElement)(Vg,null))},XE=()=>{const[e,t]=(0,s.useState)(!1),{createAdsCampaign:n}=xg(),{createNotice:r}=Ap(),{data:a}=$y();return a?(0,s.createElement)(Bl.Form,{initialValues:{amount:0,countryCodes:a},validate:e=>Ew(e),onSubmit:async e=>{t(!0);try{const{amount:t,countryCodes:a}=e;(0,Dl.recordEvent)("gla_launch_paid_campaign_button_click",{audiences:a.join(","),budget:t}),await n(t,a),r("success",(0,o.__)("You’ve successfully created a paid campaign!","google-listings-and-ads"))}catch(e){return void t(!1)}(0,pc.getHistory)().push(xc())}},(t=>{const{isValidForm:n,handleSubmit:r}=t;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),description:(0,s.createInterpolateElement)((0,o.__)("Paid Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"create-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"})})}),(0,s.createElement)(uw,{formProps:t}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!n,loading:e,onClick:r},(0,o.__)("Launch paid campaign","google-listings-and-ads"))))})):null};const JE=(0,pc.getNewPath)({},"/google/dashboard",{});var e$=()=>(Lg("full-content"),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"create-ads"}),backHref:JE}),(0,s.createElement)(XE,null))),t$=()=>{const[e,t]=(0,s.useState)(!1),n=(0,s.useCallback)(((e,n)=>{const r=n||e.currentTarget.dataset.action,o={...(0,pc.getQuery)(),guide:void 0};(0,pc.getHistory)().replace((0,pc.getNewPath)(o)),r===lE?(0,pc.getHistory)().push(kc()):r===cE&&t(!0),(0,Dl.recordEvent)("gla_modal_closed",{context:oc,action:r})}),[t]),r=(0,pc.getQuery)();switch(r.subpath){case hc:return(0,s.createElement)(VE,null);case yc:return(0,s.createElement)(ZE,null);case vc:return(0,s.createElement)(e$,null)}const a="dashboard",{enableReports:i}=Zl,l=(null==r?void 0:r.guide)===oc,c=AE();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"gla-dashboard"},(0,s.createElement)(kw,{context:"dashboard"}),(0,s.createElement)(Dw,null),(0,s.createElement)("div",{className:"gla-dashboard__filter"},(0,s.createElement)(Uw,{trackEventReportId:a}),i&&(0,s.createElement)((()=>(0,s.createElement)(Bl.Link,{href:(0,pc.getNewPath)(null,"/google/reports")},(0,s.createElement)(xl,{isPrimary:!0},"View Reports"))),null)),(0,s.createElement)("div",{className:"gla-dashboard__performance"},(0,s.createElement)(oE,null)),(0,s.createElement)("div",{className:"gla-dashboard__programs"},(0,s.createElement)(PE,{trackEventReportId:a}))),l&&(0,s.createElement)(uE,{onGuideRequestClose:n}),e&&c&&(0,s.createElement)(Hw,{label:(0,o.__)("How easy was it to create a Google Ad campaign?","google-listings-and-ads"),eventContext:oc}))};function n$(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[...new Set(e.split(",").map((e=>parseInt(e,10))).filter((e=>!isNaN(e))))]}function r$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(((e,r)=>(e[r]=(t[r]||0)+(n[r]||0),e)),{})}function o$(e,t){if(!t)return e||null;if(!e)return t;const n=new Map(e.map((e=>[e.interval,e.subtotals]))),r=new Map(t.map((e=>[e.interval,e.subtotals])));return[...new Set([...n.keys(),...r.keys()])].sort().map((e=>({interval:e,subtotals:r$($d,n.get(e),r.get(e))})))}function a$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=e?Object.keys(e):n;return e=e||{},r.reduce(((r,o)=>{let a=Cd.NONE,i=e[o];return n&&(n.includes(o)?void 0===t[o]?a=Cd.FOR_REQUEST:i=(e[o]||0)+t[o]:a=Cd.FOR_METRIC),{...r,[o]:Od(i,void 0,a)}}),{})}const i$="programs",s$={free_listings:[],campaigns:[],intervals:[],totals:{}},l$={loaded:!0,data:{},reportQuery:null};function c$(e,t,n){const r=n$(t.programs),o=0===r.length||r.includes(0),a=(0===r.length||r.some((e=>0!==e)))&&Zl.adsSetupComplete;return{free:o&&e(i$,"free",t,n)||l$,paid:a&&e(i$,"paid",t,n)||l$}}const u$=(0,o.__)("Unavailable","google-listings-and-ads");function d$(e){const{formatNumber:t}=Py(),{formatAmount:n}=Ww();return(0,s.useMemo)((()=>{function r(e){return void 0===e?u$:this.isCurrency?n(e,!0):t(e,0)}return e.map((e=>({...e,formatFn:r})))}),[e,t,n])}const g$=[{id:0,name:(0,o.__)("Free Listings","google-listings-and-ads")}],p$=new Set(g$.map((e=>e.id)));var f$=__webpack_require__(5697),m$=__webpack_require__.n(f$);class h$ extends s.Component{constructor(e){let{getLabels:t,param:n,query:r}=e;super(...arguments),this.state={selected:[]},this.clearQuery=this.clearQuery.bind(this),this.updateQuery=this.updateQuery.bind(this),this.updateLabels=this.updateLabels.bind(this),this.onButtonClicked=this.onButtonClicked.bind(this),r[n]&&t(r[n],r).then(this.updateLabels)}componentDidUpdate(e,t){let{param:n,query:r}=e,{selected:o}=t;const{getLabels:a,param:i,query:s}=this.props,{selected:l}=this.state;if(n!==i||o.length>0&&0===l.length)return void this.clearQuery();const c=(0,pc.getIdsFromQuery)(r[i]),u=(0,pc.getIdsFromQuery)(s[i]);(0,ie.isEqual)(c.sort(),u.sort())||a(s[i],s).then(this.updateLabels)}clearQuery(){const{param:e,path:t,query:n}=this.props;this.setState({selected:[]}),(0,pc.updateQueryString)({[e]:void 0},t,n)}updateLabels(e){this.setState({selected:e})}updateQuery(){const{param:e,path:t,query:n}=this.props,{selected:r}=this.state,o=r.map((e=>e.key));(0,pc.updateQueryString)({[e]:o.join(",")},t,n)}onButtonClicked(e){this.updateQuery(e),(0,ie.isFunction)(this.props.onClick)&&this.props.onClick(e)}render(){const{labels:e,type:t,autocompleter:n}=this.props,{selected:r}=this.state;return(0,s.createElement)(De,{className:"woocommerce-filters__compare"},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{variant:"subtitle.small"},e.title)),(0,s.createElement)(qe,null,(0,s.createElement)(Bl.Search,{autocompleter:n,type:t,selected:r,placeholder:e.placeholder,onChange:e=>{this.setState({selected:e})}})),(0,s.createElement)(ip,{justify:"flex-start"},(0,s.createElement)(Bl.CompareButton,{count:r.length,helpText:e.helpText,onClick:this.onButtonClicked},e.update),r.length>0&&(0,s.createElement)(xl,{isLink:!0,onClick:this.clearQuery},(0,o.__)("Clear all","woocommerce-admin"))))}}function y$(e){var t,n,r,o,a,i=e.renderContent,c=e.renderToggle,u=e.position,g=void 0===u?"bottom right":u,p=e.className,f=e.contentClassName,m=e.expandOnMobile,h=e.headerTitle,y=e.focusOnMount,v=e.popoverProps,b=e.onClose,_=e.onToggle,w=(0,s.useRef)(),E=(!1,n=_,o=(r=Et((0,s.useState)(false),2))[0],a=r[1],[o,function(e){a(e),n&&n(e)}]),$=Et(E,2),C=$[0],k=$[1];function S(){b&&b(),k(!1)}(0,s.useEffect)((function(){return function(){_&&_(!1)}}),[]);var x={isOpen:C,onToggle:function(){k(!C)},onClose:S};return(0,s.createElement)("div",{className:d()("components-dropdown",p),ref:w},c(x),C&&(0,s.createElement)(cl,l({position:g,onClose:S,onFocusOutside:function(){var e=w.current.ownerDocument;w.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||S()},expandOnMobile:m,headerTitle:h,focusOnMount:y},v,{anchorRef:null!==(t=null==v?void 0:v.anchorRef)&&void 0!==t?t:w.current,className:d()("components-dropdown__content",v?v.className:void 0,f)}),i(x)))}h$.propTypes={getLabels:m$().func.isRequired,labels:m$().shape({placeholder:m$().string,title:m$().string,update:m$().string}),param:m$().string.isRequired,path:m$().string.isRequired,query:m$().object,type:m$().string.isRequired,autocompleter:m$().object},h$.defaultProps={labels:{},query:{}};var v$=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const b$="all";class _$ extends s.Component{constructor(e){super(e);const t=this.getFilter();if(this.state={nav:t.path||[],animate:null,selectedTag:null},this.selectSubFilter=this.selectSubFilter.bind(this),this.getVisibleFilters=this.getVisibleFilters.bind(this),this.updateSelectedTag=this.updateSelectedTag.bind(this),this.onTagChange=this.onTagChange.bind(this),this.onContentMount=this.onContentMount.bind(this),this.goBack=this.goBack.bind(this),t.settings&&t.settings.getLabels){const{query:e}=this.props,{param:n,getLabels:r}=t.settings;r(e[n],e).then(this.updateSelectedTag)}}componentDidUpdate(e){let{query:t}=e;const{query:n,config:r}=this.props;if(t[r.param]!==n[[r.param]]){const e=this.getFilter();if(e&&"Search"===e.component){this.setState({nav:e.path||[]});const{param:t,getLabels:r}=e.settings;r(n[t],n).then(this.updateSelectedTag)}}}updateSelectedTag(e){this.setState({selectedTag:e[0]})}getFilter(e){const{config:t,query:n}=this.props,r=(0,pc.flattenFilters)(t.filters);return e=e||n[t.param]||t.defaultValue||b$,(0,ie.find)(r,{value:e})||{}}getButtonLabel(e){if("Search"===e.component){const{selectedTag:t}=this.state;return[t&&t.label,(0,ie.get)(e,"settings.labels.button")]}return e?[e.label]:[]}getVisibleFilters(e,t){if(0===t.length)return e;const n=t[0],r=(0,ie.find)(e,{value:n});return this.getVisibleFilters(r&&r.subFilters,t.slice(1))}selectSubFilter(e){this.setState((t=>({nav:[...t.nav,e],animate:"left"})))}goBack(){this.setState((e=>({nav:e.nav.slice(0,-1),animate:"right"})))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{path:n,query:r,config:o,onFilterSelect:a}=this.props,i=(0,pc.getPersistedQuery)(r),s={[o.param]:(o.defaultValue||b$)===e?void 0:e,...t};o.staticParams.forEach((e=>{s[e]=r[e]})),(0,pc.updateQueryString)(s,n,i),a(s)}onTagChange(e,t,n,r){const o=(0,ie.last)(r),{value:a,settings:i}=e,{param:s}=i;o?(this.update(a,{[s]:o.key}),t()):this.update(n.defaultValue||b$),this.updateSelectedTag([o])}renderButton(e,t,n){if(e.component){const{type:r,labels:o,autocompleter:a}=e.settings,i=this.getFilter().value===e.value?this.state.selectedTag:null;return(0,s.createElement)(Bl.Search,{autocompleter:a,className:"woocommerce-filters-filter__search",type:r,placeholder:o.placeholder,selected:i?[i]:[],onChange:(0,ie.partial)(this.onTagChange,e,t,n),inlineTags:!0,staticResults:!0})}const r=n=>{t(n),this.update(e.value,e.query||{}),this.setState({selectedTag:null})},o=(0,ie.partial)(this.selectSubFilter,e.value),a=this.getFilter(),i=a.value===e.value||a.path&&(0,ie.includes)(a.path,e.value);return(0,s.createElement)(xl,{className:"woocommerce-filters-filter__button",onClick:n=>{i?t(n):e.subFilters?o(n):r(n)}},e.label)}onContentMount(e){const{nav:t}=this.state,n=t.length&&this.getFilter(t[t.length-1])?1:0,r=ls.focus.tabbable.find(e)[n];setTimeout((()=>{r.focus()}),0)}render(){const{config:e}=this.props,{nav:t,animate:n}=this.state,r=this.getVisibleFilters(e.filters,t),a=!!t.length&&this.getFilter(t[t.length-1]),i=this.getFilter();return(0,s.createElement)("div",{className:"woocommerce-filters-filter"},e.label&&(0,s.createElement)("span",{className:"woocommerce-filters-label"},e.label,":"),(0,s.createElement)(y$,{contentClassName:"woocommerce-filters-filter__content",position:"bottom",expandOnMobile:!0,headerTitle:(0,o.__)("filter report to show:","woocommerce-admin"),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(Bl.DropdownButton,{onClick:n,isOpen:t,labels:this.getButtonLabel(i)})},renderContent:o=>{let{onClose:l}=o;return(0,s.createElement)(Bl.AnimationSlider,{animationKey:t,animate:n,onExited:this.onContentMount},(()=>(0,s.createElement)("ul",{className:"woocommerce-filters-filter__content-list"},a&&(0,s.createElement)("li",{className:"woocommerce-filters-filter__content-list-item"},(0,s.createElement)(xl,{className:"woocommerce-filters-filter__button",onClick:this.goBack},(0,s.createElement)(yp,{icon:v$}),a.label)),r.map((t=>(0,s.createElement)("li",{key:t.value,className:d()("woocommerce-filters-filter__content-list-item",{"is-selected":i.value===t.value||i.path&&(0,ie.includes)(i.path,t.value)})},this.renderButton(t,l,e)))))))}}))}}_$.propTypes={config:m$().shape({label:m$().string,staticParams:m$().array.isRequired,param:m$().string.isRequired,defaultValue:m$().string,showFilters:m$().func.isRequired,filters:m$().arrayOf(m$().shape({chartMode:m$().oneOf(["item-comparison","time-comparison"]),component:m$().string,label:m$().string,path:m$().string,subFilters:m$().array,value:m$().string.isRequired}))}).isRequired,path:m$().string.isRequired,query:m$().object,onFilterSelect:m$().func},_$.defaultProps={query:{},onFilterSelect:()=>{}};var w$=_$;class E$ extends s.Component{constructor(){super(),this.renderCard=this.renderCard.bind(this),this.onRangeSelect=this.onRangeSelect.bind(this)}renderCard(e){const{siteLocale:t,advancedFilters:n,query:r,path:o,onAdvancedFilterAction:a,currency:i}=this.props,{filters:c,param:u}=e;if(!r[u])return null;if(0===r[u].indexOf("compare")){const e=(0,ie.find)(c,{value:r[u]});if(!e)return null;const{settings:t={}}=e;return(0,s.createElement)("div",{key:u,className:"woocommerce-filters__advanced-filters"},(0,s.createElement)(h$,l({path:o,query:r},t)))}return"advanced"===r[u]?(0,s.createElement)("div",{key:u,className:"woocommerce-filters__advanced-filters"},(0,s.createElement)(Bl.AdvancedFilters,{siteLocale:t,currency:i,config:n,path:o,query:r,onAdvancedFilterAction:a})):void 0}onRangeSelect(e){const{query:t,path:n,onDateSelect:r}=this.props;(0,pc.updateQueryString)(e,n,t),r(e)}getDateQuery(e){const{period:t,compare:n,before:r,after:o}=(0,wd.getDateParamsFromQuery)(e),{primary:a,secondary:i}=(0,wd.getCurrentDates)(e);return{period:t,compare:n,before:r,after:o,primaryDate:a,secondaryDate:i}}render(){const{dateQuery:e,filters:t,query:n,path:r,showDatePicker:a,onFilterSelect:i,isoDateFormat:l}=this.props;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bl.H,{className:"screen-reader-text"},(0,o.__)("Filters","woocommerce-admin")),(0,s.createElement)(Bl.Section,{component:"div",className:"woocommerce-filters"},(0,s.createElement)("div",{className:"woocommerce-filters__basic-filters"},a&&(0,s.createElement)(Bl.DateRangeFilterPicker,{key:JSON.stringify(n),dateQuery:e||this.getDateQuery(n),onRangeSelect:this.onRangeSelect,isoDateFormat:l}),t.map((e=>e.showFilters(n)?(0,s.createElement)(w$,{key:e.param,config:e,query:n,path:r,onFilterSelect:i}):null))),t.map(this.renderCard)))}}E$.propTypes={siteLocale:m$().string,advancedFilters:m$().object,filters:m$().array,path:m$().string.isRequired,query:m$().object,showDatePicker:m$().bool,onDateSelect:m$().func,onFilterSelect:m$().func,onAdvancedFilterAction:m$().func,currency:m$().object,dateQuery:m$().shape({period:m$().string.isRequired,compare:m$().string.isRequired,before:m$().object,after:m$().object,primaryDate:m$().shape({label:m$().string.isRequired,range:m$().string.isRequired}).isRequired,secondaryDate:m$().shape({label:m$().string.isRequired,range:m$().string.isRequired})}),isoDateFormat:m$().string},E$.defaultProps={siteLocale:"en_US",advancedFilters:{},filters:[],query:{},showDatePicker:!0,onDateSelect:()=>{},currency:Vw().getCurrencyConfig()};var $$=E$;const C$=(0,i.getSetting)("locale").siteLocale,k$=(()=>{let e,t,n;function r(){e=null,n=new Promise((e=>{t=e})).then((()=>g$.concat(e)))}r();const a={name:"programs",options:()=>n,getOptionIdentifier:e=>e.id,getOptionLabel:e=>e.name,getOptionKeywords:e=>[e.name],getOptionCompletion:e=>({key:e.id,label:e.name})};async function i(e){const t=new Set(n$(e));let r;return r=function(e,t){if(e.size>t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(t,p$)?g$:(await n).filter((e=>t.has(e.id))),r.map((e=>({key:e.id,label:e.name})))}const s={label:(0,o.__)("Show","google-listings-and-ads"),staticParams:["period","chartType","paged","per_page","selectedMetric","reportKey","orderby","order"],param:"filter",showFilters:()=>!0,filters:[{label:(0,o.__)("All Google programs","google-listings-and-ads"),value:"all"},{label:(0,o.__)("Single program","google-listings-and-ads"),value:"select_program",subFilters:[{component:"Search",value:"single_program",path:["select_program"],settings:{type:"custom",param:nc,getLabels:i,labels:{placeholder:(0,o.__)("Type to search for a program","google-listings-and-ads"),button:(0,o.__)("Single Program","google-listings-and-ads")},autocompleter:a}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),chartMode:"item-comparison",value:"compare-programs",settings:{type:"custom",param:nc,getLabels:i,labels:{helpText:(0,o.__)("Check at least two programs below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for programs to compare","google-listings-and-ads"),title:(0,o.__)("Compare Programs","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")},autocompleter:a}}]};return n=>{let{data:o,loaded:a}=n;return a?(e&&e!==o&&r(),e=o,t()):e&&r(),s}})();var S$=e=>{const{query:t,trackEventId:n}=e,r=[k$(_E())],{period:o,compare:a,before:i,after:l}=(0,wd.getDateParamsFromQuery)(t),{primary:c,secondary:u}=(0,wd.getCurrentDates)(t),d={period:o,compare:a,before:i,after:l,primaryDate:c,secondaryDate:u},g=Py(),p={...t};return(0,s.createElement)($$,{query:p,siteLocale:C$,currency:g,filters:r,onDateSelect:e=>(0,Dl.recordEvent)("gla_datepicker_update",{report:n,...(0,ie.omitBy)(e,ie.isUndefined)}),onFilterSelect:e=>(0,Dl.recordEvent)("gla_filter",{report:n,filter:e.filter||"all"}),path:t.path,dateQuery:d,isoDateFormat:wd.isoDateFormat})};const x$="https://merchants.google.com/mc/reporting/dashboard";var O$=e=>{let{href:t,selected:n,onLinkClickCallback:r,metric:a,data:{value:i,prevValue:c,delta:u,missingFreeListingsData:d}}=e;const g=(0,s.useMemo)((()=>({value:a.formatFn(i),prevValue:a.formatFn(c)})),[a,i,c]);let p=a.label;const f=[],m=[];if(d!==Cd.NONE){const e=(0,o.__)("This data is currently available for paid campaigns only.","google-listings-and-ads");f.push(e),m.push(e)}if(d===Cd.FOR_REQUEST){const e=(0,o.__)("Please try again later, or go to <googleMerchantCenterLink /> to track your performance for Google Free Listings.","google-listings-and-ads");f.push((0,s.createInterpolateElement)(e,{googleMerchantCenterLink:(0,s.createElement)(ql,{eventName:"gla_google_mc_link_click",eventProps:{context:"reports",href:x$},type:"external",target:"_blank",href:x$,onClick:e=>e.stopPropagation()},(0,o.__)("Google Merchant Center","google-listings-and-ads"))}));const t=(0,s.createInterpolateElement)(e,{googleMerchantCenterLink:(0,s.createElement)(s.Fragment,null,(0,o.sprintf)(// translators: %s: link to Google Merchant Center.
|
28 |
-
(0,o.__)("Google Merchant Center (%s)","google-listings-and-ads"),x$))});m.push((0,s.renderToString)(t))}if(f.length>0){const e=f.map(((e,t)=>(0,s.createElement)("div",{className:"gla-reports__metric-info",key:t},e)));p=(0,s.createElement)("div",{className:"gla-reports__metric-label"},a.label,(0,s.createElement)(Yp,{text:e},(0,s.createElement)(aw.Z,{className:"gla-reports__metric-infoicon",role:"img","aria-label":m.join(" "),size:16})))}return(0,s.createElement)(Bl.SummaryNumber,l({label:p,href:t,selected:n,delta:u,onLinkClickCallback:r},g))};const P$={value:null,preValue:null,delta:null};var A$=e=>{let{loaded:t,metrics:n,expectedLength:r=n.length,totals:o,trackEventId:a}=e;const i=Yw();if(!t)return(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:r});const{selectedMetric:l=n[0].key}=i;return(0,s.createElement)(Bl.SummaryList,null,(()=>n.map((e=>{const{key:t}=e,n=l===t,r=(0,pc.getNewPath)({selectedMetric:t});return(0,s.createElement)(O$,{key:t,metric:e,href:r,selected:n,data:o[t]||P$,onLinkClickCallback:()=>{return e=t,void(0,Dl.recordEvent)("gla_chart_tab_click",{report:a,context:e});var e}})}))))};const N$=(0,o.__)("No data for the selected date range","google-listings-and-ads");function R$(e){let{metrics:t,loaded:n,intervals:r}=e;const o=Yw(),a=Py(),{selectedMetric:i}=o;let l={};t.length&&(l=i&&t.find((e=>e.key===i))||t[0]);const{key:c,label:u,isCurrency:d=!1,formatFn:g}=l,p={...a,symbol:""},f=(0,wd.getChartTypeForQuery)(o),m=d?"currency":"number",h=g.bind(l),y=(0,s.useMemo)((()=>n?r.map((e=>{let{interval:t,subtotals:n}=e;return{date:t,[u]:{value:n[c],label:u}}})):[]),[c,u,n,r]);return(0,s.createElement)(Bl.Chart,{data:y,title:u,query:o,currency:p,chartType:f,valueType:m,tooltipValueFormat:h,isRequesting:!n,emptyMessage:N$,layout:"time-comparison",legendPosition:"hidden"})}var T$=e=>{let{compareBy:t,compareParam:n,metrics:r,isLoading:a,compareButonTitle:i,data:c,nameHeader:u,nameCell:d,...g}=e;const p=Yw(),[f,m]=(0,s.useState)((()=>new Set(n$(p[t])))),h=c.length||5,y=(0,s.useMemo)((()=>{if(!r.length)return[];const e=r.map((e=>({...e,isSortable:!0,isNumeric:!0})));return e[0].defaultSort=!0,e[0].defaultOrder="desc",e}),[r]),v=e=>r.map((t=>{const n=e.subtotals[t.key];return{display:t.formatFn(n)}})),b=(e,t)=>{t?m(new Set([...f,e])):(f.delete(e),m(new Set(f)))};return(0,s.createElement)(fE,l({actions:(0,s.createElement)(xl,{isSecondary:!0,disabled:a||f.size<=1,title:i,onClick:()=>{const e=Array.from(f).join(",");(0,pc.onQueryChange)("compare")(t,n,e)}},(0,o.__)("Compare","google-listings-and-ads")),isLoading:a,headers:(_=c,[{key:"compare",label:(0,s.createElement)(Uh,{disabled:a,checked:!a&&_.length&&f.size===_.length,onChange:e=>{if(e){const e=c.map((e=>e.id));m(new Set(e))}else m(new Set)}}),required:!0},{key:"title",label:u,isLeftAligned:!0,required:!0},...y]),rows:(e=>e.map((e=>[{display:(0,s.createElement)(Uh,{checked:f.has(e.id),onChange:b.bind(null,e.id)})},{display:d(e)},...v(e)])))(c),totalRows:c.length,rowsPerPage:h,query:p,compareBy:t,compareParam:n,onQueryChange:pc.onQueryChange,onSort:(0,pc.onQueryChange)("sort")},g));var _},M$=e=>{let{isLoading:t,orderby:n,order:r,metrics:a,freeListings:i,campaigns:c,...u}=e;const d=(0,s.useMemo)((()=>{if(t)return[];if(!i||0===i.length)return c;const e=[{...i[0],name:(0,o.__)("Free Listings","google-listings-and-ads"),id:0},...c];return c.length&&(e.sort(((e,t)=>(e.subtotals[n]||Number.NEGATIVE_INFINITY)-(t.subtotals[n]||Number.NEGATIVE_INFINITY))),"desc"===r&&e.reverse()),e}),[t,i,c,n,r]);return(0,s.createElement)(T$,l({title:(0,o.__)("Programs","google-listings-and-ads"),compareButonTitle:(0,o.__)("Select one or more programs to compare","google-listings-and-ads"),nameHeader:(0,o.__)("Program","google-listings-and-ads"),nameCell:e=>e.name,compareBy:"programs",compareParam:"filter",metrics:a,isLoading:t,data:d},u))},j$=e=>{const{selectedKey:t,tabs:n}=e;return(0,s.createElement)(Aw,{role:"tablist",orientation:"horizontal",className:"subsubsub gla-sub-nav"},n.map(((e,r)=>{const o=e.key===t;return(0,s.createElement)(s.Fragment,{key:e.key},(0,s.createElement)(Bl.Link,{className:d()({current:o}),tabIndex:o?null:-1,id:`${e.key}`,href:e.href,role:"tab","aria-selected":o,"aria-controls":`${e.key}-view`,"aria-current":!!o&&"page"},e.title+" "),r<n.length-1?" | ":" ")})))},I$=()=>{const e=(0,pc.getQuery)();return"products"===(null==e?void 0:e.reportKey)?"products":"programs"};const F$=[{key:"programs",title:(0,o.__)("Programs","google-listings-and-ads"),href:(0,pc.getNewPath)({reportKey:"programs"},"/google/reports",{})},{key:"products",title:(0,o.__)("Products","google-listings-and-ads"),href:(0,pc.getNewPath)({reportKey:"products"},"/google/reports",{})}];var D$=()=>{const e=Tw(),t=I$();return e?(0,s.createElement)(Rw,{tabs:F$,selectedKey:t}):(0,s.createElement)(j$,{tabs:F$,selectedKey:t})};const L$=[{key:"sales",label:(0,o.__)("Total Sales","google-listings-and-ads"),isCurrency:!0},{key:"conversions",label:(0,o.__)("Conversions","google-listings-and-ads")},{key:"clicks",label:(0,o.__)("Clicks","google-listings-and-ads")},{key:"impressions",label:(0,o.__)("Impressions","google-listings-and-ads")}],G$=[...L$,{key:"spend",label:(0,o.__)("Total Spend","google-listings-and-ads"),isCurrency:!0}],B$=[...L$,{key:"spend",label:(0,o.__)("Spend","google-listings-and-ads"),isCurrency:!0}];var q$=()=>{const e="reports-programs",{loaded:t,data:{totals:n,intervals:r,freeListings:o,campaigns:a},reportQuery:{fields:i,orderby:l,order:c}}=function(){var e;const t=Yw(),{paid:n,free:r}=(0,dn.useSelect)((e=>{const{getReport:n}=e(Lc);return c$(n,t,"primary")}),[t]),o=n.loaded&&r.loaded,a=n.reportQuery||r.reportQuery,i=null===(e=r.reportQuery)||void 0===e?void 0:e.fields,l=(0,s.useMemo)((()=>{const e=r.data,t=n.data;return o&&t&&e?{freeListings:e.free_listings||s$.free_listings,campaigns:t.campaigns||s$.campaigns,intervals:o$(t.intervals,e.intervals)||s$.intervals,totals:a$(t.totals,e.totals,i)}:s$}),[o,n.data,r.data,i]);return{loaded:o,reportQuery:a,data:l}}(),u=(0,s.useMemo)((()=>{const e=t&&Object.keys(n).length>0,r=e?G$.filter((e=>{let{key:t}=e;return n.hasOwnProperty(t)})):G$.filter((e=>{let{key:t}=e;return i.includes(t)})),o=e?B$.filter((e=>{let{key:t}=e;return n.hasOwnProperty(t)})):B$.filter((e=>{let{key:t}=e;return i.includes(t)}));return{available:r,expected:o}}),[t,n,i]),d=d$(u.available),g=d$(u.expected),{loaded:p,data:f}=function(e){const t=Yw(),{loaded:n,data:r}=function(e){var t;const{paid:n,free:r}=(0,dn.useSelect)((t=>{const{getReport:n}=t(Lc);return c$(n,e,"secondary")}),[e]),o=n.loaded&&r.loaded,a=null===(t=r.reportQuery)||void 0===t?void 0:t.fields,i=(0,s.useMemo)((()=>{const e=r.data,t=n.data;return o&&t&&e?a$(t.totals,e.totals,a):s$.totals}),[o,n.data,r.data,a]);return{loaded:o,data:i}}(t),o=(0,s.useMemo)((()=>n?function(e,t){return Object.keys(e).reduce(((n,r)=>{var o;return{...n,[r]:Od(e[r].value,null===(o=t[r])||void 0===o?void 0:o.value,e[r].missingFreeListingsData)}}),{})}(e,r):e),[n,r,e]);return{loaded:n,data:o}}(n),m=p?f:n;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(kw,{context:e}),(0,s.createElement)(Dw,null),(0,s.createElement)(D$,null),(0,s.createElement)(S$,{query:(0,pc.getQuery)(),trackEventId:e}),(0,s.createElement)(A$,{loaded:t,metrics:d,expectedLength:G$.length,totals:m,trackEventId:e}),(0,s.createElement)(R$,{metrics:d,loaded:t,intervals:r}),(0,s.createElement)(M$,{trackEventReportId:e,isLoading:!t,orderby:l,order:c,metrics:g,freeListings:o,campaigns:a}))};const z$="products",H$={products:[],intervals:[],totals:{}};function U$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie.identity;return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;const o="function"==typeof e?e(r):e,a=(0,pc.getIdsFromQuery)(n);if(a.length<1)return Promise.resolve([]);const i={include:a.join(","),per_page:a.length};return Hc()({path:(0,eg.addQueryArgs)(o,i)}).then((e=>e.map(t)))}}const V$=U$(Ng.NAMESPACE+"/products",(e=>({key:e.id,label:e.name,type:e.type})));function W$(e){var t;let{attributes:n,name:r}=e;const o=(null===(t=(0,i.getSetting)("admin"))||void 0===t?void 0:t.variationTitleAttributesSeparator)||" - ";if(r.indexOf(o)>-1)return r;const a=n.map((e=>{let{option:t}=e;return t})).join(", ");return a?r+o+a:r}const Y$=U$((e=>{let{products:t}=e;return t?Ng.NAMESPACE+`/products/${t}/variations`:Ng.NAMESPACE+"/variations"}),(e=>({key:e.id,label:W$(e)}))),K$={label:(0,o.__)("Show","google-listings-and-ads"),staticParams:[Xl,"chartType","orderby","order","paged","per_page","selectedMetric","reportKey"],param:"filter",showFilters:()=>!0,filters:[{label:(0,o.__)("All Products","google-listings-and-ads"),value:"all"},{label:(0,o.__)("Single Product","google-listings-and-ads"),value:"select_product",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single-product",chartMode:"item-comparison",path:["select_product"],settings:{type:"products",param:"products",getLabels:V$,labels:{placeholder:(0,o.__)("Type to search for a product","google-listings-and-ads"),button:(0,o.__)("Single Product","google-listings-and-ads")}}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),value:"compare-products",chartMode:"item-comparison",settings:{type:"products",param:"products",getLabels:V$,labels:{helpText:(0,o.__)("Check at least two products below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for products to compare","google-listings-and-ads"),title:(0,o.__)("Compare Products","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")}}}]},Q$={showFilters:e=>"single-product"===e.filter&&!!e.products&&e["is-variable"],staticParams:["filter","products","chartType","orderby","order","paged","per_page","selectedMetric","reportKey"],param:"filter-variations",filters:[{label:(0,o.__)("All Variations","google-listings-and-ads"),chartMode:"item-comparison",value:"all"},{label:(0,o.__)("Single Variation","google-listings-and-ads"),value:"select_variation",subFilters:[{component:"Search",value:"single-variation",path:["select_variation"],settings:{type:"variations",param:"variations",getLabels:Y$,labels:{placeholder:(0,o.__)("Type to search for a variation","google-listings-and-ads"),button:(0,o.__)("Single Variation","google-listings-and-ads")}}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),chartMode:"item-comparison",value:"compare-variations",settings:{type:"variations",param:"variations",getLabels:Y$,labels:{helpText:(0,o.__)("Check at least two variations below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for variations to compare","google-listings-and-ads"),title:(0,o.__)("Compare Variations","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")}}}]},Z$={label:(0,o.__)("Show data from","google-listings-and-ads"),param:Xl,staticParams:["filter","products","orderby","order","chartType","selectedMetric","reportKey"],defaultValue:tc,filters:[{value:Jl,label:(0,o.__)("Paid campaigns","google-listings-and-ads")},{value:ec,label:(0,o.__)("Free listings","google-listings-and-ads")}],showFilters:e=>{let{hasPaidSource:t}=e;return t}},X$=(0,a.applyFilters)("gla_products_report_filters",[K$,Q$,Z$]),J$=(0,a.applyFilters)("gla_products_report_advanced_filters",{}),eC=(0,i.getSetting)("currency"),tC=(0,i.getSetting)("locale").siteLocale;var nC=e=>{const{hasPaidSource:t,query:n,trackEventId:r}=e,{period:o,compare:a,before:i,after:l}=(0,wd.getDateParamsFromQuery)(n),{primary:c,secondary:u}=(0,wd.getCurrentDates)(n),d={period:o,compare:a,before:i,after:l,primaryDate:c,secondaryDate:u},g=(0,dn.useSelect)((e=>{if(n.search||!n.products||1!==n.products.split(",").length)return!1;const t=parseInt(n.products,10),r={include:t},{getItems:o}=e(Ng.ITEMS_STORE_NAME),a=o("products",r);return a&&a.get(t)&&"variable"===a.get(t).type}),[n.search,n.products]),p={...n,"is-variable":g,hasPaidSource:t};return(0,s.createElement)(Bl.ReportFilters,{query:p,siteLocale:tC,currency:eC,filters:X$,advancedFilters:J$,onDateSelect:e=>(0,Dl.recordEvent)("gla_datepicker_update",{report:r,...(0,ie.omitBy)(e,ie.isUndefined)}),onFilterSelect:e=>(0,Dl.recordEvent)("gla_filter",{report:r,filter:e.filter||"all",filterVariations:e["filter-variations"]}),dateQuery:d,isoDateFormat:wd.isoDateFormat})},rC=e=>{let{metrics:t,isLoading:n,products:r,...a}=e;return(0,s.createElement)(T$,l({title:(0,o.__)("Products","google-listings-and-ads"),compareButonTitle:(0,o.__)("Select one or more products to compare","google-listings-and-ads"),nameHeader:(0,o.__)("Product title","google-listings-and-ads"),nameCell:e=>e.name,compareBy:"products",compareParam:"filter",metrics:t,isLoading:n,data:r},a))};const oC=[{key:"clicks",label:(0,o.__)("Clicks","google-listings-and-ads")},{key:"impressions",label:(0,o.__)("Impressions","google-listings-and-ads")}],aC=[{key:"sales",label:(0,o.__)("Total Sales","google-listings-and-ads"),isCurrency:!0},{key:"conversions",label:(0,o.__)("Conversions","google-listings-and-ads")},...oC,{key:"spend",label:(0,o.__)("Spend","google-listings-and-ads"),isCurrency:!0}],iC=e=>{let{hasPaidSource:t}=e;const n="reports-products",r=(0,pc.getQuery)(),o=t?r["report-source"]||tc:ec,a=d$(o===Jl?aC:oC),{loaded:i,data:{totals:l,intervals:c,products:u}}=function(e){const t=Yw();return(0,dn.useSelect)((n=>{const{getReport:r}=n(Lc),o=r(z$,e,t,"primary"),a=r(z$,e,t,"secondary"),i=o.loaded&&a.loaded;let s=H$;return i&&o.data&&a.data&&(s={products:o.data.products||H$.products,intervals:o.data.intervals||H$.intervals,totals:xd(o.data.totals,a.data.totals,o.reportQuery.fields)}),{data:s,loaded:i}}),[e,t])}(o);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(nC,{hasPaidSource:t,query:r,trackEventId:n}),(0,s.createElement)(A$,{metrics:a,loaded:i,totals:l,trackEventId:n}),(0,s.createElement)(R$,{metrics:a,loaded:i,intervals:c}),(0,s.createElement)(rC,{trackEventReportId:n,metrics:a,isLoading:!i,products:u}))};var sC=()=>{const{loaded:e,data:t}=_E(),n=e&&t.some((e=>{let{status:t}=e;return"enabled"===t}));return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(kw,{context:"reports-products"}),(0,s.createElement)(Dw,null),(0,s.createElement)(D$,null),e?(0,s.createElement)(iC,{hasPaidSource:n}):(0,s.createElement)(Vg,null))},lC=()=>"products"===I$()?(0,s.createElement)(sC,null):(0,s.createElement)(q$,null),cC=[{key:"type",label:(0,o.__)("Type","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"affectedProduct",label:(0,o.__)("Affected product","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"issue",label:(0,o.__)("Issue","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"suggestedAction",label:(0,o.__)("Suggested action","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"action",label:"",required:!0}];const uC=(e,t,n)=>{const r={context:e};let o;"goto"===n?(o="gla_table_go_to_page",r.page=t):(o="gla_table_page_click",r.direction=n),(0,Dl.recordEvent)(o,r)};var dC=__webpack_require__(7489),gC=e=>{let{size:t=18}=e;return(0,s.createElement)(dC.Z,{className:"gla-error-icon",size:t})};const pC=()=>{};var fC=e=>{let{productId:t,eventName:n,eventProps:r}=e;const a=`post.php?action=edit&post=${t}`,i=n?()=>(0,Dl.queueRecordEvent)(n,r):pC;return(0,s.createElement)(Bl.Link,{href:a,onClick:i,type:"wp-admin"},(0,o.__)("Edit","google-listings-and-ads"))};var mC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cc,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return Pg("getMCIssues",{page:t,issue_type:e,per_page:n})};const hC=e=>{const t=Object.values(e).reduce(((e,t)=>e+t),0);return Number.isInteger(t)?t:void 0};var yC=()=>{var e,t,n,r;const o={[cc]:null===(e=mC(cc))||void 0===e||null===(t=e.data)||void 0===t?void 0:t.total,[lc]:null===(n=mC(lc))||void 0===n||null===(r=n.data)||void 0===r?void 0:r.total};return{...o,total:hC(o)}},vC=()=>{var e;const t=yC().account?cc:lc;return(null===(e=(0,pc.getQuery)())||void 0===e?void 0:e.issueType)||t},bC=()=>{const e=vC(),t={[cc]:(0,o.__)("All account issues resolved","google-listings-and-ads"),[lc]:(0,o.__)("All product issues resolved","google-listings-and-ads")},n={[cc]:(0,s.createInterpolateElement)((0,o.__)("However, there are issues affecting your products that needs to be resolved. Head over to the <strong>Product Issues</strong> tab to view them.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)}),[lc]:(0,s.createInterpolateElement)((0,o.__)("However, there are issues affecting your account that needs to be resolved. Head over to the <strong>Account Issues</strong> tab to view them.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)})};return(0,s.createElement)("div",{className:"gla-issues-solved"},(0,s.createElement)(bl,{icon:"yes-alt",className:"gla-issues-solved__icon"}),(0,s.createElement)(Ii,{variant:"subtitle"},t[e]),(0,s.createElement)(Ii,{variant:"body",className:"gla-issues-solved__body"},n[e]))},_C=__webpack_require__(8359),wC=e=>{let{issue:t,onRequestClose:n=(()=>{})}=e;return(0,s.createElement)(Gh,{className:"gla-issues-table-data-modal",title:t.issue,onRequestClose:n,buttons:[(0,s.createElement)(gc,{key:"learn-more",isPrimary:!0,target:"_blank",href:t.action_url,text:(0,o.__)("Learn more","google-listings-and-ads"),eventName:"gla_documentation_link_click",eventProps:{context:"issues-data-table-modal",linkId:t.code,href:t.action_url},icon:(0,s.createElement)(_C.Z,null)})]},(0,s.createElement)("p",null,(0,s.createElement)("strong",null,(0,o.__)("What to do?","google-listings-and-ads"))),(0,s.createElement)("p",null,t.action))},EC=e=>{var t;let{data:n}=e;const r=(0,o.__)("Read more about this issue","google-listings-and-ads");return n?null!==(t=n.issues)&&void 0!==t&&t.length?(0,s.createElement)(Bl.Table,{caption:(0,o.__)("Issues to resolve","google-listings-and-ads"),headers:cC,rows:n.issues.map((e=>[{display:"warning"===e.severity?(0,s.createElement)(qh,null):(0,s.createElement)(gC,null)},{display:e.product},{display:e.issue},{display:e.action?(0,s.createElement)(Sy,{button:(0,s.createElement)(gc,{isLink:!0,eventName:"gla_click_read_more_about_issue",eventProps:{context:"issues-to-resolve",issue:e.code}},r),modal:(0,s.createElement)(wC,{issue:e})}):(0,s.createElement)(zl,{context:"issues-to-resolve",linkId:e.code,href:e.action_url},r)},{display:e.type===lc&&(0,s.createElement)(fC,{productId:e.product_id,eventName:"gla_edit_product_issue_click",eventProps:{code:e.code,issue:e.issue}})}]))}):(0,s.createElement)(bC,null):(0,s.createElement)(Bl.EmptyTable,{headers:cC,numberOfRows:1},(0,o.__)("An error occurred while retrieving issues. Please try again later.","google-listings-and-ads"))},$C=()=>{const e=vC(),{page:t,setPage:n}=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[r,o]=(0,s.useState)({}),a=(0,s.useCallback)((t=>{o((n=>({...n,[e]:t})))}),[e]);return{page:null!==(t=r[e])&&void 0!==t?t:n,setPage:a}}(e),{data:r,hasFinishedResolution:a}=mC(e,t);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qe,{size:null},a?(0,s.createElement)(EC,{data:r}):(0,s.createElement)(Bl.TablePlaceholder,{headers:cC,caption:(0,o.__)("Loading Issues To Resolve","google-listings-and-ads")})),(null==r?void 0:r.total)>0&&(0,s.createElement)(ip,{justify:"center"},(0,s.createElement)(Bl.Pagination,{page:t,perPage:5,total:r.total,showPagePicker:!1,showPerPagePicker:!1,onPageChange:(t,r)=>{n(t),uC(`${e}-issues-to-resolve`,t,r)}})))},CC=()=>{const e=yC(),t=vC(),n=t=>{const n=e[t];return n>=0?`(${n})`:""},r=[{key:cc,title:`${(0,o.__)("Account Issues","google-listings-and-ads")} ${n(cc)}`,href:(0,pc.getNewPath)({issueType:cc},"/google/product-feed",{})},{key:lc,title:`${(0,o.__)("Product Issues","google-listings-and-ads")} ${n(lc)}`,href:(0,pc.getNewPath)({issueType:lc},"/google/product-feed",{})}];return(0,s.createElement)(Rw,{tabs:r,selectedKey:t})},kC=e=>{let{issues:t=[]}=e;const[n,r]=(0,s.useState)(!1);if(!t.length)return null;const a=n?t:t.slice(0,5);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ii,{variant:"subtitle"},(0,o.__)("Request a review on the following issue(s):","google-listings-and-ads")),(0,s.createElement)("ul",{className:"gla-review-request-modal__issue-list"},a.map((e=>(0,s.createElement)("li",{key:e.code},e.issue)))),t.length>5&&(0,s.createElement)(xl,{isTertiary:!0,onClick:()=>{(0,Dl.recordEvent)("gla_request_review_issue_list_toggle_click",{action:n?"collapse":"expand"}),r(!n)}},n?(0,o.__)("Show less","google-listing-and-ads"):(0,o.sprintf)(// translators: %d: The number of extra issues issues
|
29 |
-
(0,o.__)("+ %d more issue(s)","google-listing-and-ads"),t.length-5)))},
|
30 |
-
(0,o.__)("Your account is under cool down period. You can request a new review on %s.","google-listings-and-ads"),(0,_d.format)(`${Zl.dateFormat}, ${Zl.timeFormat}`,new Date(t.cooldown)));return(0,s.createElement)(ae,{"data-testid":"gla-review-request-notice",className:"gla-review-request-notice"},(0,s.createElement)(ze,null,(0,s.createElement)(ae,null,(0,s.createElement)(ze,{className:"gla-review-request-notice__icon"},r.icon),(0,s.createElement)(ze,{className:"gla-review-request-notice__text"},(0,s.createElement)(Ii,{variant:"subtitle"},r.title),(0,s.createElement)(Ii,{className:"gla-review-request-notice__text-body",variant:"body"},a||r.body)))),(0,s.createElement)(ze,{className:"gla-review-request-notice__button"},r.requestButton&&(t.cooldown||t.reviewEligibleRegions.length>0)&&(0,s.createElement)(gc,{isPrimary:!0,onClick:n,disabled:!!t.cooldown,text:(0,o.__)("Request review","google-listings-and-ads")})))},
|
31 |
-
(0,o.__)("Apply to %d selected","google-listings-and-ads"),t))))}var
|
32 |
-
(0,o._n)("You successfully changed the channel visibility of %d product","You successfully changed the channel visibility of %d products",r,"google-listings-and-ads"),r);g("success",e)})),(0,Dl.recordEvent)("gla_bulk_edit_click",{context:
|
33 |
/* translators: 1: current page number 2: total number of pages */
|
34 |
-
(0,o.__)("Page %1$d of %2$d"),e+1,n),onClick:()=>r(e)})))))}function
|
35 |
-
(0,o._n)("Last updated: %1$s, containing %2$d product","Last updated: %1$s, containing %2$d products",a,"google-listings-and-ads"),(0,_d.format)(Zl.dateFormat+(Zl.dateFormat.trim()&&Zl.timeFormat.trim()?", ":"")+Zl.timeFormat,new Date(1e3*r)),a)}}(e);return(0,s.createElement)(
|
36 |
-
(0,o._n)("%d issue to resolve","%d issues to resolve",n,"google-listings-and-ads"),n):"");var n;return(0,s.createElement)(gk,{title:(0,o.__)("Feed setup:","google-listings-and-ads"),icon:(0,s.createElement)(xC,{size:24}),label:(0,s.createElement)("span",{className:"gla-success"},(0,o.__)("Standard free listings setup completed","google-listings-and-ads")),description:t})},mk=()=>{var e;const t=Pg("getMCReviewRequest");if(!t.hasFinishedResolution||null===(e=t.data)||void 0===e||!e.status)return null;const n=TC[t.data.status];return n?(0,s.createElement)(gk,{className:"gla-account-status",title:(0,o.__)("Account status:","google-listings-and-ads"),icon:n.icon,label:n.status,description:n.statusDescription}):null},hk=()=>{const{hasFinishedResolution:e,data:t}=uk();return(0,s.createElement)(De,{className:"gla-product-statistics"},(0,s.createElement)(zi,{justify:"normal"},(0,s.createElement)(ze,null,(0,s.createElement)(Ii,{variant:"title.small",as:"h2"},(0,o.__)("Overview","google-listings-and-ads"))),(0,s.createElement)(dk,null)),(0,s.createElement)(qe,{className:"gla-product-statistics__summaries",size:null},!e&&(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:5}),e&&t&&(0,s.createElement)(Bl.SummaryList,null,(()=>[(0,s.createElement)(Bl.SummaryNumber,{key:"active",label:(0,o.__)("Active / Partially Active","google-listings-and-ads"),value:t.statistics.active}),(0,s.createElement)(Bl.SummaryNumber,{key:"expiring",label:(0,o.__)("Expiring","google-listings-and-ads"),value:t.statistics.expiring}),(0,s.createElement)(Bl.SummaryNumber,{key:"pending",label:(0,o.__)("Pending","google-listings-and-ads"),value:t.statistics.pending}),(0,s.createElement)(Bl.SummaryNumber,{key:"disapproved",label:(0,o.__)("Disapproved","google-listings-and-ads"),value:t.statistics.disapproved}),(0,s.createElement)(Bl.SummaryNumber,{key:"not_synced",label:(0,o.__)("Not Synced","google-listings-and-ads"),value:t.statistics.not_synced})]))),(0,s.createElement)(ip,{gap:0},(0,s.createElement)(fk,null),(0,s.createElement)(pk,null),(0,s.createElement)(mk,null)))},yk=()=>{var e;const{hasFinishedResolution:t,data:n}=uk(),[r,a]=(0,s.useState)(!1),i=(null===(e=(0,pc.getQuery)())||void 0===e?void 0:e.guide)===rc,l=AE();return(0,s.useEffect)((()=>{if(!r){const e=zw.get(ac);a(!i&&e&&l)}}),[i,r,l]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Dw,null),i&&(0,s.createElement)(ck,null),r&&(0,s.createElement)(Hw,{label:(0,o.__)("How easy was it to set up Google Listings & Ads?","google-listings-and-ads"),eventContext:rc}),(0,s.createElement)("div",{className:"gla-product-feed"},!t&&(0,s.createElement)(Vg,null),t&&!n&&(0,o.__)("An error occurred while retrieving your product feed. Please try again later.","google-listings-and-ads"),t&&n&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(hk,null),(0,s.createElement)(FC,null),(0,s.createElement)(VC,{trackEventReportId:"product-feed"}))))};function vk(e){return(0,s.createElement)(dp,l({title:(0,o.__)("Linked accounts","google-listings-and-ads"),description:(0,o.__)("A WordPress.com account, Google account, and Google Merchant Center account are required to use this extension in WooCommerce.","google-listings-and-ads")},e))}const bk="all-accounts",_k="ads-account",wk={[bk]:{title:(0,o.__)("Disconnect all accounts","google-listings-and-ads"),confirmButton:(0,o.__)("Disconnect all accounts","google-listings-and-ads"),confirmation:(0,o.__)("Yes, I want to disconnect all my accounts.","google-listings-and-ads"),contents:[(0,o.__)("I understand that I am disconnecting any WordPress.com account, Google account, Google Merchant Center account and Google Ads account connected to this extension.","google-listings-and-ads"),(0,o.__)("Any active product listings will continue to show on Google. They can be managed, edited, or deleted manually from Google Merchant Center (merchants.google.com).","google-listings-and-ads"),(0,o.__)("Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).","google-listings-and-ads")]},[_k]:{title:(0,o.__)("Disconnect Google Ads account","google-listings-and-ads"),confirmButton:(0,o.__)("Disconnect Google Ads Account","google-listings-and-ads"),confirmation:(0,o.__)("Yes, I want to disconnect my Google Ads account.","google-listings-and-ads"),contents:[(0,o.__)("I understand that I am disconnecting my Google Ads account from this WooCommerce extension.","google-listings-and-ads"),(0,o.__)("Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).","google-listings-and-ads"),(0,o.__)("Some configurations for Google Ads created through WooCommerce may be lost. This cannot be undone.","google-listings-and-ads")]}};function Ek(e){let{disconnectTarget:t,onRequestClose:n,onDisconnected:r}=e;const[a,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1),u=xg(),{title:d,confirmButton:g,confirmation:p,contents:f}=wk[t],m=()=>{l||n()};return(0,s.createElement)(Gh,{className:"gla-disconnect-accounts-modal",title:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qh,{size:20}),d),isDismissible:!l,buttons:[(0,s.createElement)(xl,{key:"1",isSecondary:!0,disabled:l,onClick:m},(0,o.__)("Never mind","google-listings-and-ads")),(0,s.createElement)(gc,{key:"2",isPrimary:!0,isDestructive:!0,loading:l,disabled:!a,onClick:()=>{const e=t===bk?u.disconnectAllAccounts:u.disconnectGoogleAdsAccount;c(!0),e().then((()=>{r(),n()})).catch((()=>{c(!1)}))}},g)],onRequestClose:m},f.map(((e,t)=>(0,s.createElement)("p",{key:t},e))),(0,s.createElement)(Uh,{label:p,checked:a,disabled:l,onChange:i}))}function $k(e){return(0,s.createElement)(Ek,e)}function Ck(){const e=Lv(),{jetpack:t}=Wg(),{google:n}=Xg(),{googleMCAccount:r}=Jg(),{googleAdsAccount:a}=D_(),i=!(t&&n&&r&&a),l=["connected","incomplete"].includes(null==a?void 0:a.status),[c,u]=(0,s.useState)(null);return(0,s.createElement)(vk,null,c&&(0,s.createElement)($k,{onRequestClose:()=>u(null),onDisconnected:()=>{(0,Dl.queueRecordEvent)("gla_disconnected_accounts",{context:c});const t=c===bk?e+(0,pc.getNewPath)(null,"/google/start",null):window.location.href;window.location.href=t},disconnectTarget:c}),i?(0,s.createElement)(Kp,null):(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Pp,{jetpack:t}),(0,s.createElement)(Up,{googleAccount:n,hideAccountSwitch:!0}),(0,s.createElement)(Qp,{googleMCAccount:r,hideAccountSwitch:!0}),l&&(0,s.createElement)(G_,{googleAdsAccount:a},(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isDestructive:!0,isLink:!0,onClick:()=>u(_k)},(0,o.__)("Disconnect Google Ads account only","google-listings-and-ads")))),(0,s.createElement)(ae,{justify:"flex-end"},(0,s.createElement)(xl,{isPrimary:!0,isDestructive:!0,onClick:()=>u(bk)},(0,o.__)("Disconnect from all accounts","google-listings-and-ads")))))}var kk=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));let Sk=null;function xk(){if(Sk)return;const e=(0,eg.getQueryArgs)(document.location.search),t=t=>{const{target:n}=t;if("A"!==n.tagName)return;const r=[fc,"/google/reports","/google/product-feed",mc],o=(0,eg.getQueryArgs)(n.getAttribute("href"));if(r.includes(o.path)){t.stopPropagation(),t.preventDefault();const n=!Tw()||o.path===mc,r=(0,eg.getQueryArgs)(document.location.search);if(n&&!(0,ie.isEqual)(e,r)){const{path:t,...n}=e;(0,pc.getHistory)().push((0,pc.getNewPath)(n,t,null))}}};document.defaultView.addEventListener("click",t,!0),document.body.classList.add("gla-reconnection-lock"),Sk=()=>{document.defaultView.removeEventListener("click",t,!0),document.body.classList.remove("gla-reconnection-lock")}}function Ok(){Sk&&(Sk(),Sk=null)}function Pk(){const{jetpack:e}=Wg(),t="yes"===(null==e?void 0:e.active);return(0,s.useEffect)((()=>{t?((0,pc.getHistory)().replace(Oc()),Ok()):xk()}),[t]),e?(0,s.createElement)(vk,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Sp,{className:"gla-wpcom-connection-lost-card",isBorderless:!0,size:"small",icon:(0,s.createElement)(yp,{icon:kk,size:24}),title:(0,o.__)("Your WordPress.com account has been disconnected.","google-listings-and-ads"),helper:(0,o.__)("Connect your WordPress.com account to ensure your products stay listed on Google. If you do not re-connect, your products can’t be automatically synced to Google, and any existing listings may be removed from Google.","google-listings-and-ads")}),(0,s.createElement)(Lp,null))):(0,s.createElement)(Vg,null)}function Ak(e){let{email:t}=e;const n=Lv(),[r,a]=(0,s.useState)(null),{disconnectGoogleAccount:i}=xg(),[l,c]=(0,s.useState)(!1);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,description:t},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(Fc,{status:"error",isDismissible:!1},(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("This Google account, <accountEmail />, was not the Google account previously connected to this integration.","google-listings-and-ads"),{accountEmail:(0,s.createElement)("strong",null,t)})),(0,s.createElement)("p",null,(0,o.__)("Thus, it doesn‘t have access to the Google Merchant Center and/or Google Ads account currently connected to this WooCommerce store.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Try connecting with a different Google account, or completely disconnect all your connected accounts.","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,{justify:"flex-end"},r&&(0,s.createElement)($k,{onRequestClose:()=>a(null),onDisconnected:()=>{const e=(0,pc.getNewPath)(null,"/google/start",null);window.location.href=n+e},disconnectTarget:r}),(0,s.createElement)(gc,{isSecondary:!0,isDestructive:!0,disabled:l,onClick:()=>a(bk)},(0,o.__)("Disconnect all accounts","google-listings-and-ads")),(0,s.createElement)(gc,{isPrimary:!0,loading:l,onClick:()=>{c(!0),i().catch((()=>{c(!1)}))}},(0,o.__)("Try another Google account","google-listings-and-ads"))))}function Nk(){const{data:e}=Pg("getGoogleAccountAccess"),t=Zg(Zl.adsSetupComplete,null==e?void 0:e.scope),n="yes"===(null==e?void 0:e.active),r=n?"no"===(null==e?void 0:e.merchant_access)||"no"===(null==e?void 0:e.ads_access):void 0,a=n&&!r&&t.glaRequired;if((0,s.useEffect)((()=>{a?((0,pc.getHistory)().replace(xc()),Ok()):xk()}),[a]),!e)return(0,s.createElement)(Vg,null);if(!a){const t=r?(0,s.createElement)(Ak,{email:e.email}):(0,s.createElement)(Wp,null);return(0,s.createElement)(dp,{title:(0,o.__)("Connect account","google-listings-and-ads")},t)}return null}var Rk=()=>{Lg("full-content");const{updateGoogleMCContactInformation:e}=xg(),{data:t}=Bv(),[n,r]=(0,s.useState)(!1),a=t.isAddressFilled&&t.isMCAddressDifferent;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit store address","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"edit-store-address"}),backHref:Oc()}),(0,s.createElement)("div",{className:"gla-settings"},(0,s.createElement)(dp,{title:(0,o.__)("Store address","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your store address is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"settings-store-address",linkId:"contact-information-read-more",href:"https://docs.woocommerce.com/document/google-listings-and-ads/#contact-information"},(0,o.__)("Learn more","google-listings-and-ads"))))},(0,s.createElement)(y_,null)),(0,s.createElement)(dp,null,(0,s.createElement)(ae,{justify:"flex-end"},(0,s.createElement)(gc,{isPrimary:!0,loading:n,disabled:!a,eventName:"gla_contact_information_save_button_click",onClick:()=>{r(!0),e().then((()=>(0,pc.getHistory)().push(Oc()))).catch((()=>r(!1)))}},(0,o.__)("Save details","google-listings-and-ads"))))))},Tk=()=>{const e=Xb();return b_(e),Lg("full-content"),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit phone number","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"edit-phone-number"}),backHref:Oc()}),(0,s.createElement)("div",{className:"gla-settings"},(0,s.createElement)(dp,{title:(0,o.__)("Phone number","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your phone number is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"settings-phone-number",linkId:"contact-information-read-more",href:"https://docs.woocommerce.com/document/google-listings-and-ads/#contact-information"},(0,o.__)("Learn more","google-listings-and-ads"))))},(0,s.createElement)(g_,{view:"settings",phoneNumber:e,initEditing:!0}))))};const Mk="gla-settings";var jk,Ik=()=>{const{subpath:e}=(0,pc.getQuery)();jw();const{google:t}=Xg(),n=e===Ec;switch((0,s.useEffect)((()=>{n||"no"!==(null==t?void 0:t.active)||(0,pc.getHistory)().replace(Pc(ic))}),[n,t]),e){case wc:return(0,s.createElement)("div",{className:Mk},(0,s.createElement)(Pk,null));case Ec:return(0,s.createElement)(Nk,null);case bc:return(0,s.createElement)(Tk,null);case _c:return(0,s.createElement)(Rk,null)}return(0,s.createElement)("div",{className:Mk},(0,s.createElement)(Dw,null),(0,s.createElement)(S_,null),(0,s.createElement)(Ck,null))};const Fk=(null===(jk=(0,i.getSetting)("admin"))||void 0===jk?void 0:jk.woocommerceTranslation)||(0,o.__)("WooCommerce","google-listings-and-ads");(0,a.addFilter)("woocommerce_admin_pages_list","woocommerce-marketing",(e=>{const t=Tw(),n=[["",Fk]];return t||n.push(["/marketing",(0,o.__)("Marketing","google-listings-and-ads")]),n.push((0,o.__)("Google Listings & Ads","google-listings-and-ads")),[...e,{breadcrumbs:[...n],container:Fg,path:"/google/start",wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"google-start"}},{breadcrumbs:[...n,(0,o.__)("Setup Merchant Center","google-listings-and-ads")],container:j_,path:"/google/setup-mc"},{breadcrumbs:[...n,(0,o.__)("Setup Google Ads","google-listings-and-ads")],container:Cw,path:"/google/setup-ads"},{breadcrumbs:[...n,(0,o.__)("Dashboard","google-listings-and-ads")],container:t$,path:"/google/dashboard",wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"google-dashboard"}},{breadcrumbs:[...n,(0,o.__)("Reports","google-listings-and-ads")],container:lC,path:"/google/reports",wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"google-reports"}},{breadcrumbs:[...n,(0,o.__)("Product Feed","google-listings-and-ads")],container:yk,path:"/google/product-feed",wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"google-product-feed"}},{breadcrumbs:[...n,(0,o.__)("Settings","google-listings-and-ads")],container:Ik,path:"/google/settings",wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"google-settings"}}]}))}()})();
|
1 |
(function(){var __webpack_modules__={9171:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateDateInputForRange=t.dateValidationMessages=t.loadLocaleData=t.getDateFormatsForInterval=t.defaultTableDateFormat=t.weekTicksThreshold=t.dayTicksThreshold=t.getChartTypeForQuery=t.getIntervalForQuery=t.getAllowedIntervalsForQuery=t.getPreviousDate=t.getDateDifferenceInDays=t.getCurrentDates=t.getDateParamsFromQuery=t.getCurrentPeriod=t.getLastPeriod=t.getStoreTimeZoneMoment=t.getRangeLabel=t.toMoment=t.appendTimestamp=t.periods=t.presetValues=t.defaultDateTimeFormat=t.isoDateFormat=void 0;const o=r(n(6292)),a=n(2819),i=n(5736),s=n(129);function l(e,n){if(o.default.isMoment(n))return n.isValid()?n:null;if("string"==typeof n){const r=o.default(n,[t.isoDateFormat,e],!0);return r.isValid()?r:null}throw new Error("toMoment requires a string to be passed as an argument")}function c(e,t){const n=e.year()===t.year(),r=n&&e.month()===t.month(),o=n&&r&&e.isSame(t,"day"),a=i.__("MMM D, YYYY","woocommerce-admin");if(o)return e.format(a);if(r){const n=e.date();return e.format(a).replace(n,`${n} - ${t.date()}`)}if(n){const n=i.__("MMM D","woocommerce-admin");return`${e.format(n)} - ${t.format(a)}`}return`${e.format(a)} - ${t.format(a)}`}function u(){return window.wcSettings&&window.wcSettings.timeZone?["+","-"].includes(window.wcSettings.timeZone.charAt(0))?o.default().utcOffset(window.wcSettings.timeZone):o.default().tz(window.wcSettings.timeZone):o.default()}function d(e,t){const n=u().startOf(e).subtract(1,e),r=n.clone().endOf(e);let a,i;if("previous_period"===t)if("year"===e)a=o.default().startOf(e).subtract(2,e),i=a.clone().endOf(e);else{const e=r.diff(n,"days");i=n.clone().subtract(1,"days"),a=i.clone().subtract(e,"days")}else a=n.clone().subtract(1,"years"),i=r.clone().subtract(1,"years");return"month"===e&&(i=i.clone().endOf("month")),{primaryStart:n,primaryEnd:r,secondaryStart:a,secondaryEnd:i}}function g(e,t){const n=u().startOf(e),r=u(),o=r.diff(n,"days");let a,i;return"previous_period"===t?(a=n.clone().subtract(1,e),i=r.clone().subtract(1,e)):(a=n.clone().subtract(1,"years"),i=a.clone().add(o+1,"days").subtract(1,"seconds")),{primaryStart:n,primaryEnd:r,secondaryStart:a,secondaryEnd:i}}t.isoDateFormat="YYYY-MM-DD",t.defaultDateTimeFormat="YYYY-MM-DDTHH:mm:ss",t.presetValues=[{value:"today",label:i.__("Today","woocommerce-admin")},{value:"yesterday",label:i.__("Yesterday","woocommerce-admin")},{value:"week",label:i.__("Week to Date","woocommerce-admin")},{value:"last_week",label:i.__("Last Week","woocommerce-admin")},{value:"month",label:i.__("Month to Date","woocommerce-admin")},{value:"last_month",label:i.__("Last Month","woocommerce-admin")},{value:"quarter",label:i.__("Quarter to Date","woocommerce-admin")},{value:"last_quarter",label:i.__("Last Quarter","woocommerce-admin")},{value:"year",label:i.__("Year to Date","woocommerce-admin")},{value:"last_year",label:i.__("Last Year","woocommerce-admin")},{value:"custom",label:i.__("Custom","woocommerce-admin")}],t.periods=[{value:"previous_period",label:i.__("Previous Period","woocommerce-admin")},{value:"previous_year",label:i.__("Previous Year","woocommerce-admin")}],t.appendTimestamp=(e,n)=>{if("start"===n)return e.startOf("day").format(t.defaultDateTimeFormat);if("now"===n)return e.format(t.defaultDateTimeFormat);if("end"===n)return e.endOf("day").format(t.defaultDateTimeFormat);throw new Error("appendTimestamp requires second parameter to be either `start`, `now` or `end`")},t.toMoment=l,t.getRangeLabel=c,t.getStoreTimeZoneMoment=u,t.getLastPeriod=d,t.getCurrentPeriod=g;const p=a.memoize(((e,t,n,r)=>{switch(e){case"today":return g("day",t);case"yesterday":return d("day",t);case"week":return g("week",t);case"last_week":return d("week",t);case"month":return g("month",t);case"last_month":return d("month",t);case"quarter":return g("quarter",t);case"last_quarter":return d("quarter",t);case"year":return g("year",t);case"last_year":return d("year",t);case"custom":const e=r.diff(n,"days");if("previous_period"===t){const t=n.clone().subtract(1,"days");return{primaryStart:n,primaryEnd:r,secondaryStart:t.clone().subtract(e,"days"),secondaryEnd:t}}return{primaryStart:n,primaryEnd:r,secondaryStart:n.clone().subtract(1,"years"),secondaryEnd:r.clone().subtract(1,"years")}}}),((e,t,n,r)=>[e,t,n&&n.format(),r&&r.format()].join(":"))),f=a.memoize(((e,t,n,r,a)=>{if(e&&t)return{period:e,compare:t,after:n?o.default(n):null,before:r?o.default(r):null};const i=s.parse(a.replace(/&/g,"&"));return{period:i.period,compare:i.compare,after:i.after?o.default(i.after):null,before:i.before?o.default(i.before):null}}),((e,t,n,r,o)=>[e,t,n,r,o].join(":")));t.getDateParamsFromQuery=(e,t="period=month&compare=previous_year")=>{const{period:n,compare:r,after:o,before:a}=e;return f(n,r,o,a,t)};const m=a.memoize(((e,n,r,o,i,s)=>({primary:{label:a.find(t.presetValues,(t=>t.value===e)).label,range:c(r,o),after:r,before:o},secondary:{label:a.find(t.periods,(e=>e.value===n)).label,range:c(i,s),after:i,before:s}})),((e,t,n,r,o,a)=>[e,t,n&&n.format(),r&&r.format(),o&&o.format(),a&&a.format()].join(":")));function h(e){let n=[];if("custom"===e.period){const{primary:r}=t.getCurrentDates(e),o=t.getDateDifferenceInDays(r.before,r.after);n=o>=365?["day","week","month","quarter","year"]:o>=90?["day","week","month","quarter"]:o>=28?["day","week","month"]:o>=7?["day","week"]:o>1&&o<7?["day"]:["hour","day"]}else switch(e.period){case"today":case"yesterday":n=["hour","day"];break;case"week":case"last_week":default:n=["day"];break;case"month":case"last_month":n=["day","week"];break;case"quarter":case"last_quarter":n=["day","week","month"];break;case"year":case"last_year":n=["day","week","month","quarter"]}return n}t.getCurrentDates=(e,n="period=month&compare=previous_year")=>{const{period:r,compare:o,after:a,before:i}=t.getDateParamsFromQuery(e,n),{primaryStart:s,primaryEnd:l,secondaryStart:c,secondaryEnd:u}=p(r,o,a,i);return m(r,o,s,l,c,u)},t.getDateDifferenceInDays=(e,t)=>{const n=o.default(e),r=o.default(t);return n.diff(r,"days")},t.getPreviousDate=(e,t,n,r,a)=>{const i=o.default(e);if("previous_year"===r)return i.clone().subtract(1,"years");const s=o.default(t),l=o.default(n),c=s.diff(l,a);return i.clone().subtract(c,a)},t.getAllowedIntervalsForQuery=h,t.getIntervalForQuery=function(e){const t=h(e),n=t[0];let r=e.interval||n;return e.interval&&!t.includes(e.interval)&&(r=n),r},t.getChartTypeForQuery=function({chartType:e}){return["line","bar"].includes(e)?e:"line"},t.dayTicksThreshold=63,t.weekTicksThreshold=9,t.defaultTableDateFormat="m/d/Y",t.getDateFormatsForInterval=function(e,n=0){let r="%B %-d, %Y",o="%B %-d, %Y",a="%Y-%m-%d",s="%b %Y",l=t.defaultTableDateFormat;switch(e){case"hour":r="%_I%p %B %-d, %Y",o="%_I%p %b %-d, %Y",a="%_I%p",s="%b %-d, %Y",l="h A";break;case"day":n<t.dayTicksThreshold?a="%-d":(a="%b",s="%Y");break;case"week":n<t.weekTicksThreshold?(a="%-d",s="%b %Y"):(a="%b",s="%Y"),r=i.__("Week of %B %-d, %Y","woocommerce-admin"),o=i.__("Week of %B %-d, %Y","woocommerce-admin");break;case"quarter":case"month":r="%B %Y",o="%B %Y",a="%b",s="%Y";break;case"year":r="%Y",o="%Y",a="%Y"}return{screenReaderFormat:r,tooltipLabelFormat:o,xFormat:a,x2Format:s,tableFormat:l}},t.loadLocaleData=function({userLocale:e,weekdaysShort:t}){"en"!==o.default.locale()&&o.default.updateLocale(e,{longDateFormat:{L:i.__("MM/DD/YYYY","woocommerce-admin"),LL:i.__("MMMM D, YYYY","woocommerce-admin"),LLL:i.__("D MMMM YYYY LT","woocommerce-admin"),LLLL:i.__("dddd, D MMMM YYYY LT","woocommerce-admin"),LT:i.__("HH:mm","woocommerce-admin")},weekdaysMin:t})},t.dateValidationMessages={invalid:i.__("Invalid date","woocommerce-admin"),future:i.__("Select a date in the past","woocommerce-admin"),startAfterEnd:i.__("Start date must be before end date","woocommerce-admin"),endBeforeStart:i.__("Start date must be before end date","woocommerce-admin")},t.validateDateInputForRange=function(e,n,r,a,i){const s=l(i,n);return s?o.default().isBefore(s,"day")?{date:null,error:t.dateValidationMessages.future}:"after"===e&&r&&s.isAfter(r,"day")?{date:null,error:t.dateValidationMessages.startAfterEnd}:"before"===e&&a&&s.isBefore(a,"day")?{date:null,error:t.dateValidationMessages.endBeforeStart}:{date:s}:{date:null,error:t.dateValidationMessages.invalid}}},4940:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.recordPageView=t.queueRecordEvent=t.recordEvent=void 0;const o=r(n(1227)).default("wc-admin:tracks");function a(e,t){if(o("recordevent %s %o","wcadmin_"+e,t,{_tqk:window._tkq,shouldRecord:!!window._tkq&&!!window.wcTracks&&!!window.wcTracks.isEnabled}),!window.wcTracks||"function"!=typeof window.wcTracks.recordEvent)return!1;window.wcTracks.recordEvent(e,t)}t.recordEvent=a;const i={localStorageKey:()=>"tracksQueue",clear(){window.localStorage&&window.localStorage.removeItem(i.localStorageKey())},get(){if(!window.localStorage)return[];let e=window.localStorage.getItem(i.localStorageKey());return e=e?JSON.parse(e):[],e=Array.isArray(e)?e:[],e},add(...e){if(!window.localStorage)return o("Unable to queue, running now",{args:e}),void a.apply(null,e||void 0);let t=i.get();const n={args:e};t.push(n),t=t.slice(-100),o("Adding new item to queue.",n),window.localStorage.setItem(i.localStorageKey(),JSON.stringify(t))},process(){if(!window.localStorage)return;const e=i.get();i.clear(),o("Processing items in queue.",e),e.forEach((e=>{"object"==typeof e&&(o("Processing item in queue.",e),a.apply(null,e.args||void 0))}))}};t.queueRecordEvent=function(e,t){i.add(e,t)},t.recordPageView=function(e,t){e&&(a("page_view",Object.assign({path:e},t)),i.process())}},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1227:function(e,t,n){var r=n(4155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:function(e,t,n){e.exports=function(e){function t(e){let n,o=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const a=t.formatters[o];if("function"==typeof a){const t=e[s];n=a.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3836:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-checkmark-circle",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658A9.98 9.98 0 0012 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10a9.94 9.94 0 00-.966-4.266L11 17.768z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8222:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-chevron-left",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7188:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-credit-card",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8359:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-external",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},3119:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-gift",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7719:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-help-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2v-1.141A3.991 3.991 0 0016 10zm-3 6h-2v2h2v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7132:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},5683:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7489:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-notice",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},4886:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-phone",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 2H8a2 2 0 00-2 2v16a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},3115:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-plus-small",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8249:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=["gridicon","gridicons-sync",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4a8 8 0 018 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12a8 8 0 008 8v-2c-3.308 0-6-2.692-6-6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},6928:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:i,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?a:r,i=e.searchWords,s=e.textToHighlight;return s=o(s),i.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(r,n?"g":"gi"),i=void 0;i=a.exec(s);){var l=i.index,c=a.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,n,!1)}return r};function a(e){return e}}])},8679:function(e,t,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),h=0;h<i.length;++h){var y=i[h];if(!(a[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=g(n,y);try{c(t,y,v)}catch(e){}}}}return t}},9016:function(e){"use strict";e.exports=function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,s=void 0===n?".":n,l="";return l=(a?function(e,t){if(-1===(""+e).indexOf("e"))return+(Math.round(e+"e+"+t)+"e-"+t);var n=(""+e).split("e"),r="";return+n[1]+t>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+t))+"e-"+t)).toFixed(t)}(o,a).toString():""+Math.round(o)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(l[1]||"").length<a&&(l[1]=l[1]||"",l[1]+=new Array(a-l[1].length+1).join("0")),l.join(s)}},9588:function(e){e.exports=function(e,t){var n,r,o=0;function a(){var a,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},a.clear=function(){n=null,r=null,o=0},a}},2441:function(e,t,n){var r;!function(o,a,i){if(o){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},g=1;g<20;++g)l[111+g]="f"+g;for(g=0;g<=9;++g)l[g+96]=g.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},b.init=function(){var e=b(a);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,o,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],d[r]&&(r=d[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],a.push("shift")),m(r)&&a.push(r);return{key:r,modifiers:a,action:t=h(r,a,t)}}function v(e,t){return null!==e&&e!==a&&(e===t||v(e.parentNode,t))}function b(e){var t=this;if(e=e||a,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,i=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function c(e,n,o,a,i,s){var l,c,u,d,g=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(a||!c.seq||r[c.seq]==c.level)&&p==c.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(u=n,d=c.modifiers,u.sort().join(",")===d.sort().join(",")))){var f=!a&&c.combo==i,h=a&&c.seq==a&&c.level==s;(f||h)&&t._callbacks[e].splice(l,1),g.push(c)}return g}function u(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function g(e,a,i,d,p){t._directMap[e+":"+i]=a;var m,h=(e=e.replace(/\s+/g," ")).split(" ");h.length>1?function(e,t,a,i){function c(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){u(a,t,e),"keyup"!==i&&(o=f(t)),setTimeout(l,10)}r[e]=0;for(var p=0;p<t.length;++p){var m=p+1===t.length?d:c(i||y(t[p+1]).action);g(t[p],m,i,e,p)}}(e,h,a,i):(m=y(e,i),t._callbacks[m.key]=t._callbacks[m.key]||[],c(m.key,m.modifiers,{type:m.action},d,e,p),t._callbacks[m.key][d?"unshift":"push"]({callback:a,modifiers:m.modifiers,action:m.action,seq:d,level:p,combo:e}))}t._handleKey=function(e,t,n){var r,o=c(e,t,n),a={},d=0,g=!1;for(r=0;r<o.length;++r)o[r].seq&&(d=Math.max(d,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=d)continue;g=!0,a[o[r].seq]=1,u(o[r].callback,n,o[r].combo,o[r].seq)}else g||u(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&i;n.type!=s||m(e)||p||l(a),i=g&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)g(e[r],t,n)},p(e,"keypress",d),p(e,"keydown",d),p(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},3956:function(){!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,a){return!!this.paused||!t[o]&&!t[a]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},7824:function(e){var t=1e3,n=60*t,r=60*n,o=24*r;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,i){i=i||{};var s,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"weeks":case"week":case"w":return 6048e5*i;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===c&&isFinite(e))return i.long?(s=e,(l=Math.abs(s))>=o?a(s,l,o,"day"):l>=r?a(s,l,r,"hour"):l>=n?a(s,l,n,"minute"):l>=t?a(s,l,t,"second"):s+" ms"):function(e){var a=Math.abs(e);return a>=o?Math.round(e/o)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6470:function(e,t,n){"use strict";var r=n(4155);function o(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var n,r="",o=0,a=-1,i=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===i);else if(a!==s-1&&2===i){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,a=s,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),o=s-a-1;a=s,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var i={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=r.cwd()),s=e),o(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return o(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];o(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(o(e),o(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,a=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var l=t.length-s,c=a<l?a:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else a>c&&(47===e.charCodeAt(n+d)?u=d:0===d&&(u=0));break}var g=e.charCodeAt(n+d);if(g!==t.charCodeAt(s+d))break;47===g&&(u=d)}var p="";for(d=n+u+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(o(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!a){r=i;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');o(e);var n,r=0,a=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!i){r=n+1;break}}else-1===l&&(i=!1,l=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(a=n):(s=-1,a=l))}return r===a?a=l:-1===a&&(a=e.length),e.slice(r,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(r,a)},extname:function(e){o(e);for(var t=-1,n=0,r=-1,a=!0,i=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===r&&(a=!1,r=s+1),46===l?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),a=47===r;a?(t.root="/",n=1):n=0;for(var i=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===r?-1===i?i=u:1!==d&&(d=1):-1!==i&&(d=-1);else if(!c){s=u+1;break}return-1===i||-1===l||0===d||1===d&&i===l-1&&i===s+1?-1!==l&&(t.base=t.name=0===s&&a?e.slice(1,l):e.slice(s,l)):(0===s&&a?(t.name=e.slice(1,i),t.base=e.slice(1,l)):(t.name=e.slice(s,i),t.base=e.slice(s,l)),t.ext=e.slice(i,l)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},4155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&g())}function g(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||i(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},129:function(e,t,n){"use strict";var r=n(8261),o=n(5235),a=n(5798);e.exports={formats:a,parse:o,stringify:r}},5235:function(e,t,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,g=u.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<g.length;++n)0===g[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===g[n]?f="utf-8":"utf8=%26%2310003%3B"===g[n]&&(f="iso-8859-1"),p=n,n=g.length);for(n=0;n<g.length;++n)if(n!==p){var m,h,y=g[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,i.decoder,f,"key"),h=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),i.decoder,f,"key"),h=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,f,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===f&&(h=s(h)),y.indexOf("[]=")>-1&&(h=a(h)?[h]:h),o.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},g=Object.keys(u),p=0;p<g.length;++p){var f=g[p],m=c(f,u[f],n,"string"==typeof e);d=r.merge(d,m,n)}return r.compact(d)}},8261:function(e,t,n){"use strict";var r=n(2769),o=n(5798),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,a,i,l,u,d,p,f,m,h,y,v){var b,_=t;if("function"==typeof u?_=u(n,_):_ instanceof Date?_=f(_):"comma"===o&&s(_)&&(_=r.maybeMap(_,(function(e){return e instanceof Date?f(e):e}))),null===_){if(a)return l&&!y?l(n,g.encoder,v,"key",m):n;_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(_))return l?[h(y?n:l(n,g.encoder,v,"key",m))+"="+h(l(_,g.encoder,v,"value",m))]:[h(n)+"="+h(String(_))];var w,E=[];if(void 0===_)return E;if("comma"===o&&s(_))w=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(u))w=u;else{var $=Object.keys(_);w=d?$.sort(d):$}for(var C=0;C<w.length;++C){var k=w[C],S="object"==typeof k&&void 0!==k.value?k.value:_[k];if(!i||null!==S){var x=s(_)?"function"==typeof o?o(n,k):n:n+(p?"."+k:"["+k+"]");c(E,e(S,x,o,a,i,l,u,d,p,f,m,h,y,v))}}return E};e.exports=function(e,t){var n,r=e,l=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=g.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}}(t);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var h=n[m];l.skipNulls&&null===r[h]||c(d,p(r[h],h,f,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var y=d.join(l.delimiter),v=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),y.length>0?v+y:""}},2769:function(e,t,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t}),i)}}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,g=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case g:case h:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=g,t.Fragment=a,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===g},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},9864:function(e,t,n){"use strict";e.exports=n(9921)},5464:function(e,t,n){var r=n(9196),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},a=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},i=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=i);var t=r.useState(e(null)),n=t[0],o=t[1],s=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(a,{onResize:s})}),[s]),n]}},3272:function(e,t,n){"use strict";var r,o={},a=n(9670);function i(e,t){o[e]=function(e,t){return e in r?r[e]:t}(e,t)}e.exports.configure=function(e,t,n){if(r=e||{},n=n||{},i("autoRename",!1),i("autoRenameStrict",!1),i("blacklist",{}),i("clean",!0),i("greedy",!1),i("processUrls",!1),i("stringMap",[]),i("useCalc",!1),Array.isArray(o.stringMap)){for(var s,l,c=0;c<o.stringMap.length;c++){var u=o.stringMap[c];if(s&&l)break;"left-right"===u.name?s=!0:"ltr-rtl"===u.name&&(l=!0)}s||o.stringMap.push({name:"left-right",priority:100,exclusive:!1,search:["left","Left","LEFT"],replace:["right","Right","RIGHT"],options:{scope:"*",ignoreCase:!1}}),l||o.stringMap.push({name:"ltr-rtl",priority:100,exclusive:!1,search:["ltr","Ltr","LTR"],replace:["rtl","Rtl","RTL"],options:{scope:"*",ignoreCase:!1}}),o.stringMap.sort((function(e,t){return e.priority-t.priority}))}return o.plugins=[],Array.isArray(t)?(t.some((function(e){return"rtlcss"===e.name}))||o.plugins.push(a),o.plugins=o.plugins.concat(t)):t&&"rtlcss"===t.name||o.plugins.push(a),o.plugins.sort((function(e,t){return e.priority-t.priority})),o.hooks={pre:function(){},post:function(){}},"function"==typeof n.pre&&(o.hooks.pre=n.pre),"function"==typeof n.post&&(o.hooks.post=n.post),o}},5915:function(e){e.exports=function(e){var t,n=0,r=e.text,o=r.match(/^\s*!?\s*rtl:/);return o&&(t={source:e,name:"",param:"",begin:!0,end:!0,blacklist:!1,preserve:!1},(n=(r=r.slice(o[0].length)).indexOf(":"))>-1?(t.name=r.slice(0,n),t.begin="end"!==t.name,t.end="begin"!==t.name,"begin"===t.name||"end"===t.name?(n=(r=r.slice(t.name.length+1)).indexOf(":"))>-1?(t.name=r.slice(0,n),r=r.slice(n),t.param=r.slice(1)):t.name=r:t.param=r.slice(n+1)):t.name=r),t}},9670:function(module,__unused_webpack_exports,__webpack_require__){"use strict";var config=__webpack_require__(3272),util=__webpack_require__(8805);module.exports={name:"rtlcss",priority:100,directives:{control:{ignore:{expect:{atrule:!0,comment:!0,decl:!0,rule:!0},endNode:null,begin:function(e,t,n){if(!this.endNode&&t.begin&&t.end){for(var r=e;r&&r.nodes;)r=r.nodes[r.nodes.length-1];this.endNode=r}var o=!0;return"comment"===e.type&&e.text.match(/^\s*!?\s*rtl:end:ignore/)&&(o=!1),o},end:function(e,t,n){return!!(t.begin!==t.end&&"comment"===e.type||t.begin&&t.end&&e===this.endNode)&&(this.endNode=null,!0)}},rename:{expect:{rule:!0},begin:function(e,t,n){return e.selector=n.util.applyStringMap(e.selector,!1),!1},end:function(e,t){return!0}},raw:{expect:{self:!0},begin:function(e,t,n){var r=n.postcss.parse(t.param,{from:e.source.input.from});return e.parent.insertBefore(e,r),!0},end:function(e,t){return!0}},remove:{expect:{atrule:!0,rule:!0,decl:!0},begin:function(e,t,n){var r=!1;switch(e.type){case"atrule":case"rule":case"decl":r=!0,e.remove()}return r},end:function(e,t,n){return!0}},options:{expect:{self:!0},stack:[],begin:function(e,t,n){var r;this.stack.push(util.extend({},n.config));try{r=JSON.parse(t.param)}catch(t){throw e.error("Invlaid options object",{details:t})}return n.config=config.configure(r,n.config.plugins),n.util=util.configure(n.config),!0},end:function(e,t,n){var r=this.stack.pop();return r&&!t.begin&&(n.config=r,n.util=util.configure(n.config)),!0}},config:{expect:{self:!0},expr:{fn:/function([^\(]*)\(([^\(\)]*?)\)[^\{]*\{([^]*)\}/gi,rx:/\/([^\/]*)\/(.*)/gi},stack:[],begin:function(node,metadata,context){var configuration;this.stack.push(util.extend({},context.config));try{configuration=eval("("+metadata.param+")")}catch(e){throw node.error("Invlaid config object",{details:e})}return context.config=config.configure(configuration.options,configuration.plugins),context.util=util.configure(context.config),!0},end:function(e,t,n){var r=this.stack.pop();return r&&!t.begin&&(n.config=r,n.util=util.configure(n.config)),!0}}},value:[{name:"ignore",action:function(e,t,n){return!0}},{name:"prepend",action:function(e,t,n){var r="";return e.raws.value.raw.replace(t,(function(e,t){r+=t})),e.value=e.raws.value.raw=r+e.raws.value.raw,!0}},{name:"append",action:function(e,t,n){return e.value=e.raws.value.raw=e.raws.value.raw.replace(t,(function(e,t){return e+t})),!0}},{name:"insert",action:function(e,t,n){return e.value=e.raws.value.raw=e.raws.value.raw.replace(t,(function(e,t){return t+e})),!0}},{name:"",action:function(e,t,n){return e.raws.value.raw.replace(t,(function(t,n){e.value=e.raws.value.raw=n+t})),!0}}]},processors:[{name:"variable",expr:/^--/im,action:function(e,t){return{prop:e,value:t}}},{name:"direction",expr:/direction/im,action:function(e,t,n){return{prop:e,value:n.util.swapLtrRtl(t)}}},{name:"left",expr:/left/im,action:function(e,t,n){return{prop:e.replace(this.expr,(function(){return"right"})),value:t}}},{name:"right",expr:/right/im,action:function(e,t,n){return{prop:e.replace(this.expr,(function(){return"left"})),value:t}}},{name:"four-value syntax",expr:/^(margin|padding|border-(color|style|width))$/gi,cache:null,action:function(e,t,n){null===this.cache&&(this.cache={match:/[^\s\uFFFD]+/g});var r=n.util.guardFunctions(t),o=r.value.match(this.cache.match);if(o&&4===o.length&&(r.store.length>0||o[1]!==o[3])){var a=0;r.value=r.value.replace(this.cache.match,(function(){return o[(4-a++)%4]}))}return{prop:e,value:n.util.unguardFunctions(r)}}},{name:"border radius",expr:/border-radius/gi,cache:null,flip:function(e){var t,n=e.match(this.cache.match);if(n)switch(n.length){case 2:t=1,n[0]!==n[1]&&(e=e.replace(this.cache.match,(function(){return n[t--]})));break;case 3:e=e.replace(this.cache.white,(function(e){return e+n[1]+" "}));break;case 4:t=0,n[0]===n[1]&&n[2]===n[3]||(e=e.replace(this.cache.match,(function(){return n[(5-t++)%4]})))}return e},action:function(e,t,n){null===this.cache&&(this.cache={match:/[^\s\uFFFD]+/g,slash:/[^\/]+/g,white:/(^\s*)/});var r=n.util.guardFunctions(t);return r.value=r.value.replace(this.cache.slash,function(e){return this.flip(e)}.bind(this)),{prop:e,value:n.util.unguardFunctions(r)}}},{name:"shadow",expr:/shadow/gi,cache:null,action:function(e,t,n){null===this.cache&&(this.cache={replace:/[^,]+/g});var r=n.util.guardHexColors(t),o=n.util.guardFunctions(r.value);return o.value=o.value.replace(this.cache.replace,(function(e){return n.util.negate(e)})),r.value=n.util.unguardFunctions(o),{prop:e,value:n.util.unguardHexColors(r)}}},{name:"transform and perspective origin",expr:/(?:transform|perspective)-origin/gi,cache:null,flip:function(e,t){return"0"===e?e="100%":e.match(this.cache.percent)?e=t.util.complement(e):e.match(this.cache.length)&&(e=t.util.flipLength(e)),e},action:function(e,t,n){if(null===this.cache&&(this.cache={match:n.util.regex(["calc","percent","length"],"g"),percent:n.util.regex(["calc","percent"],"i"),length:n.util.regex(["length"],"gi"),xKeyword:/(left|right)/i}),t.match(this.cache.xKeyword))t=n.util.swapLeftRight(t);else{var r=n.util.guardFunctions(t),o=r.value.match(this.cache.match);o&&o.length>0&&(o[0]=this.flip(o[0],n),r.value=r.value.replace(this.cache.match,(function(){return o.shift()})),t=n.util.unguardFunctions(r))}return{prop:e,value:t}}},{name:"transform",expr:/^(?!text\-).*?transform$/gi,cache:null,flip:function(e,t,n){var r=0;return e.replace(this.cache.unit,(function(e){return t(++r,e)}))},flipMatrix:function(e,t){return this.flip(e,(function(e,n){return 2===e||3===e||5===e?t.util.negate(n):n}),t)},flipMatrix3D:function(e,t){return this.flip(e,(function(e,n){return 2===e||4===e||5===e||13===e?t.util.negate(n):n}),t)},flipRotate3D:function(e,t){return this.flip(e,(function(e,n){return 1===e||4===e?t.util.negate(n):n}),t)},action:function(e,t,n){null===this.cache&&(this.cache={negatable:/((translate)(x|3d)?|rotate(z|y)?)$/gi,unit:n.util.regex(["calc","number"],"g"),matrix:/matrix$/i,matrix3D:/matrix3d$/i,skewXY:/skew(x|y)?$/i,rotate3D:/rotate3d$/i});var r=n.util.guardFunctions(t);return{prop:e,value:n.util.unguardFunctions(r,function(e,t){return t.length&&(t.match(this.cache.matrix3D)?e=this.flipMatrix3D(e,n):t.match(this.cache.matrix)?e=this.flipMatrix(e,n):t.match(this.cache.rotate3D)?e=this.flipRotate3D(e,n):t.match(this.cache.skewXY)?e=n.util.negateAll(e):t.match(this.cache.negatable)&&(e=n.util.negate(e))),e}.bind(this))}}},{name:"transition",expr:/transition(-property)?$/i,action:function(e,t,n){return{prop:e,value:n.util.swapLeftRight(t)}}},{name:"background",expr:/background(-position(-x)?|-image)?$/i,cache:null,flip:function(e,t){var n=util.saveTokens(e,!0),r=n.value.match(this.cache.match);if(r&&r.length>0){var o=(n.value.match(this.cache.position)||"").length;r.length>=3||2===o?n.value=util.swapLeftRight(n.value):(r[0]="0"===r[0]?"100%":r[0].match(this.cache.percent)?t.util.complement(r[0]):r[0].match(this.cache.length)?t.util.flipLength(r[0]):t.util.swapLeftRight(r[0]),n.value=n.value.replace(this.cache.match,(function(){return r.shift()})))}return util.restoreTokens(n)},update:function(e,t,n){return n.match(this.cache.gradient)?(t=e.util.swapLeftRight(t)).match(this.cache.angle)&&(t=e.util.negate(t)):(!0===e.config.processUrls||!0===e.config.processUrls.decl&&n.match(this.cache.url))&&(t=e.util.applyStringMap(t,!0)),t},action:function(e,t,n){null===this.cache&&(this.cache={match:n.util.regex(["position","percent","length","calc"],"ig"),percent:n.util.regex(["calc","percent"],"i"),position:n.util.regex(["position"],"g"),length:n.util.regex(["length"],"gi"),gradient:/gradient$/i,angle:/\d+(deg|g?rad|turn)/i,url:/^url/i});var r=n.util.guardHexColors(t),o=n.util.guardFunctions(r.value),a=o.value.split(",");if("background-image"!==e.toLowerCase())for(var i=0;i<a.length;i++)a[i]=this.flip(a[i],n);return o.value=a.join(","),r.value=n.util.unguardFunctions(o,this.update.bind(this,n)),{prop:e,value:n.util.unguardHexColors(r)}}},{name:"keyword",expr:/float|clear|text-align/i,action:function(e,t,n){return{prop:e,value:n.util.swapLeftRight(t)}}},{name:"cursor",expr:/cursor/i,cache:null,update:function(e,t,n){return(!0===e.config.processUrls||!0===e.config.processUrls.decl&&n.match(this.cache.url))&&(t=e.util.applyStringMap(t,!0)),t},flip:function(e){return e.replace(this.cache.replace,function(e,t){return e.replace(t,t.replace(this.cache.e,"*").replace(this.cache.w,"e").replace(this.cache.star,"w"))}.bind(this))},action:function(e,t,n){null===this.cache&&(this.cache={replace:/\b(ne|nw|se|sw|nesw|nwse)-resize/gi,url:/^url/i,e:/e/i,w:/w/i,star:/\*/i});for(var r=n.util.guardFunctions(t),o=r.value.split(","),a=0;a<o.length;a++)o[a]=this.flip(o[a]);return r.value=o.join(","),{prop:e,value:n.util.unguardFunctions(r,this.update.bind(this,n))}}}]}},8314:function(e,t,n){"use strict";var r=n(5344),o=n(3028),a=n(3272),i=n(8805);e.exports=r.plugin("rtlcss",(function(e,t,n){var s=a.configure(e,t,n),l={postcss:r,config:s,util:i.configure(s)};return function(e,t){var n=0,a={};l.config.hooks.pre(e,r),e.walk((function(e){var r=!1;if(o.walk((function(t){!t.metadata.blacklist&&t.directive.expect[e.type]&&(t.directive.begin(e,t.metadata,l)&&(r=!0),t.metadata.end&&t.directive.end(e,t.metadata,l)&&o.pop(t))})),!1===r)switch(e.type){case"atrule":if(!0===l.config.processUrls||!0===l.config.processUrls.atrule){var i=l.util.applyStringMap(e.params,!0);e.params=i}break;case"comment":o.parse(e,t,(function(n){var r=!0;return null===n.directive&&(n.preserve=!l.config.clean,l.util.each(l.config.plugins,(function(e){var o=l.config.blacklist[e.name];return o&&!0===o[n.metadata.name]?(n.metadata.blacklist=!0,n.metadata.end&&(r=!1),n.metadata.begin&&t.warn('directive "'+e.name+"."+n.metadata.name+'" is blacklisted.',{node:n.source}),!1):(n.directive=e.directives.control[n.metadata.name],!n.directive&&void 0)}))),n.directive?!n.metadata.begin&&n.metadata.end?(n.directive.end(e,n.metadata,l)&&o.pop(n),r=!1):n.directive.expect.self&&n.directive.begin(e,n.metadata,l)&&n.metadata.end&&n.directive.end(e,n.metadata,l)&&(r=!1):n.metadata.blacklist||(r=!1,t.warn('unsupported directive "'+n.metadata.name+'".',{node:n.source})),r}));break;case"decl":if(!l.util.each(l.config.plugins,(function(t){return l.util.each(t.directives.value,(function(t){if(e.raws.value&&e.raws.value.raw){var r=l.util.regexDirective(t.name);if(r.test(e.raws.value.raw)&&(r.lastIndex=0,t.action(e,r,l)))return l.config.clean&&(e.value=e.raws.value.raw=l.util.trimDirective(e.raws.value.raw)),n++,!1}}))})))break;if(l.util.each(l.config.plugins,(function(t){return l.util.each(t.processors,(function(t){if(e.prop.match(t.expr)){var r=e.raws.value&&e.raws.value.raw?e.raws.value.raw:e.value,o=l.util.saveComments(r),a=t.action(e.prop,o.value,l);return o.value=a.value,a.value=l.util.restoreComments(o),a.prop===e.prop&&a.value===r||(n++,e.prop=a.prop,e.value=a.value),!1}}))})),l.config.autoRename&&!n&&"rule"===e.parent.type&&l.util.isLastOfType(e)){var s=l.util.applyStringMap(e.parent.selector);if(!0===l.config.autoRenameStrict){var c=a[s];c?(c.selector=e.parent.selector,e.parent.selector=s):a[e.parent.selector]=e.parent}else e.parent.selector=s}break;case"rule":n=0}})),o.walk((function(e){t.warn('unclosed directive "'+e.metadata.name+'".',{node:e.source})})),Object.keys(a).forEach((function(e){t.warn("renaming skipped due to lack of a matching pair.",{node:a[e]})})),l.config.hooks.post(e,r)}})),e.exports.process=function(e,t,n,o){return r([this(t,n,o)]).process(e).css},e.exports.configure=function(e){return r([this((e=e||{}).options,e.plugins,e.hooks)])}},3028:function(e,t,n){"use strict";var r=n(5915);e.exports={stack:[],pop:function(e){var t=this.stack.indexOf(e);-1!==t&&this.stack.splice(t,1),e.preserve||e.source.remove()},parse:function(e,t,n){var o,a=r(e);a&&(!a.begin&&a.end?this.walk(function(t){if(a.name===t.metadata.name)return this.pop(t),o={metadata:a,directive:t.directive,source:e,preserve:t.preserve},!1}.bind(this)):o={metadata:a,directive:null,source:e,preserve:null},void 0===o?t.warn('found end "'+a.name+'" without a matching begin.',{node:e}):n(o)?this.stack.push(o):o.preserve||o.source.remove())},walk:function(e){for(var t=this.stack.length;--t>-1&&e(this.stack[t]););}}},8805:function(e){"use strict";var t,n="»",r=new RegExp("�","ig"),o=new RegExp("¤","ig"),a="(calc¤)|(\\-?(\\d*?\\.\\d+|\\d+))(?!d\\()",i=/\/\*[^]*?\*\//gim,s=/\/\*\s*(?:!)?\s*rtl:[^]*?\*\//gim,l=/[.*+?^${}()|[\]\\]/g,c=/\([^\(\)]+\)/i,u=/#[a-f0-9]{3,6}/gi,d=/calc/,g=new RegExp("«\\d+:\\d+»","ig"),p=new RegExp("\\w*?«\\d+:\\d+»","ig"),f=new RegExp(a,"i"),m=new RegExp(a,"ig"),h=new RegExp(a,"i"),y={scope:"*",ignoreCase:!0},v=0;function b(e){return e.replace(l,"\\$&")}e.exports={extend:function(e,t){for(var n in void 0!==e&&"object"==typeof e||(e={}),t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},swap:function(e,n,r,o){var a=b(n)+"|"+b(r);((o=o||y).hasOwnProperty("greedy")?o.greedy:t.greedy)||(a="\\b("+a+")\\b");var i=o.ignoreCase?"img":"mg";return e.replace(new RegExp(a,i),(function(e){return t=e,a=n,(o.ignoreCase?t.toLowerCase()===a.toLowerCase():t===a)?r:n;var t,a}))},swapLeftRight:function(e){return this.swap(e,"left","right")},swapLtrRtl:function(e){return this.swap(e,"ltr","rtl")},applyStringMap:function(e,n){for(var r=e,o=0;o<t.stringMap.length;o++){var a=t.stringMap[o],i=this.extend(a.options,y);if("*"===i.scope||n&&"url"===i.scope||!n&&"selector"===i.scope){if(Array.isArray(a.search)&&Array.isArray(a.replace))for(var s=0;s<a.search.length;s++)r=this.swap(r,a.search[s],a.replace[s%a.search.length],i);else r=this.swap(r,a.search,a.replace,i);if(!0===a.exclusive)break}}return r},negate:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(h,(function(e){return o.test(e)?e.replace(o,(function(e){return"(-1*"+e+")"})):-1*parseFloat(e,10)})),this.restoreTokens(t)},negateAll:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(m,(function(e){return o.test(e)?e.replace(o,(function(e){return"(-1*"+e+")"})):-1*parseFloat(e,10)})),this.restoreTokens(t)},complement:function(e){var t=this.saveTokens(e);return t.value=t.value.replace(f,(function(e){return o.test(e)?e.replace(o,(function(e){return"(100% - "+e+")"})):100-parseFloat(e,10)})),this.restoreTokens(t)},flipLength:function(e){return t.useCalc?"calc(100% - "+e+")":e},save:function(e,t,n,r,o){var a={value:t,store:[],replacement:n,restorer:r};return a.value=a.value.replace(e,(function(e){return o&&e.match(o)?e:(a.store.push(e),a.replacement)})),a},restore:function(e){var t=0,n=e.value.replace(e.restorer,(function(){return e.store[t++]}));return e.store.length=0,n},saveComments:function(e){return this.save(i,e,"�",r)},restoreComments:function(e){return this.restore(e)},saveTokens:function(e,t){return!0===t?this.save(p,e,"¤",o,d):this.save(g,e,"¤",o)},restoreTokens:function(e){return this.restore(e)},guard:function(e,t,r){var o={value:t,store:[],offset:v++,token:"«"+v,indexed:!0===r};if(!0===o.indexed)for(;e.test(o.value);)o.value=o.value.replace(e,(function(e){return o.store.push(e),o.token+":"+o.store.length+n}));else o.value=o.value.replace(e,(function(e){return o.store.push(e),o.token+n}));return o},unguard:function(e,t){if(!0===e.indexed){for(var r=new RegExp("(\\w*?)"+e.token+":(\\d+)"+n,"i");r.test(e.value);)e.value=e.value.replace(r,(function(n,r,o){var a=e.store[o-1];return"function"==typeof t?r+t(a,r):r+a}));return e.value}return e.value.replace(new RegExp("(\\w*?)"+e.token+n,"i"),(function(n,r){var o=e.store.shift();return"function"==typeof t?r+t(o,r):r+o}))},guardHexColors:function(e){return this.guard(u,e,!0)},unguardHexColors:function(e,t){return this.unguard(e,t)},guardFunctions:function(e){return this.guard(c,e,!0)},unguardFunctions:function(e,t){return this.unguard(e,t)},trimDirective:function(e){return e.replace(s,"")},regexCache:{},regexDirective:function(e){return this.regexCache[e]=this.regexCache[e]||new RegExp("(?:\\/\\*\\s*(?:!)?\\s*rtl:"+(e?b(e)+"(?::)?":"")+")([^]*?)(?:\\*\\/)","img"),this.regexCache[e]},regex:function(e,t){e=e||[];for(var n="",r=0;r<e.length;r++)switch(e[r]){case"percent":n+="|(\\-?(\\d*?\\.\\d+|\\d+)%)";break;case"length":n+="|(\\-?(\\d*?\\.\\d+|\\d+))(?:ex|ch|r?em|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc)?";break;case"number":n+="|(\\-?(\\d*?\\.\\d+|\\d+))";break;case"position":n+="|(left|center|right|top|bottom)";break;case"calc":n+="|(calc«\\d+:\\d+»)"}return new RegExp(n.slice(1),t)},isLastOfType:function(e){for(var t=!0,n=e.next();n;){if(n&&n.type===e.type){t=!1;break}n=n.next()}return t},each:function(e,t){for(var n=0;n<e.length;n++)if(!1===t(e[n]))return!1;return!0}},e.exports.configure=function(e){return t=e,this}},8090:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="atrule",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},t.prototype.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},t}(((r=n(2146))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},2282:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="comment",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(3200))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},2146:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(3118)),a=i(n(2282));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e){return e.map((function(e){return e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e}))}var u=function(e){function t(){return s(this,t),l(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.push=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},t.prototype.walk=function(e){return this.each((function(t,n){var r=e(t,n);return!1!==r&&t.walk&&(r=t.walk(e)),r}))},t.prototype.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("decl"===e.type)return t(e,n)})))},t.prototype.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("rule"===e.type)return t(e,n)})))},t.prototype.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("atrule"===e.type)return t(e,n)})))},t.prototype.walkComments=function(e){return this.walk((function(t,n){if("comment"===t.type)return e(t,n)}))},t.prototype.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i,l=this.normalize(s,this.last),c=l,u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var g;if(u){if(d>=c.length)break;g=c[d++]}else{if((d=c.next()).done)break;g=d.value}var p=g;this.nodes.push(p)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i,l=this.normalize(s,this.first,"prepend").reverse(),c=l,u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var g;if(u){if(d>=c.length)break;g=c[d++]}else{if((d=c.next()).done)break;g=d.value}var p=g;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+l.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}a.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),o=r,a=Array.isArray(o),i=0;for(o=a?o:o[Symbol.iterator]();;){var s;if(a){if(i>=o.length)break;s=o[i++]}else{if((i=o.next()).done)break;s=i.value}var l=s;this.nodes.splice(e,0,l)}var c=void 0;for(var u in this.indexes)e<=(c=this.indexes[u])&&(this.indexes[u]=c+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;this.nodes.splice(e+1,0,s)}var l=void 0;for(var c in this.indexes)e<(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=c(n(1647)(e).nodes);else if(Array.isArray(e)){var i=e=e.slice(0),s=Array.isArray(i),l=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(l>=i.length)break;u=i[l++]}else{if((l=i.next()).done)break;u=l.value}var d=u;d.parent&&d.parent.removeChild(d,"ignore")}}else if("root"===e.type){var g=e=e.nodes.slice(0),p=Array.isArray(g),f=0;for(g=p?g:g[Symbol.iterator]();;){var m;if(p){if(f>=g.length)break;m=g[f++]}else{if((f=g.next()).done)break;m=f.value}var h=m;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new o.default(e)]}else if(e.selector)e=[new(n(806))(e)];else if(e.name)e=[new(n(8090))(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new a.default(e)]}var y=e.map((function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e}));return y},t.prototype.rebuild=function(e,t){var r=this,i=void 0;if("root"===e.type){var s=n(573);i=new s}else if("atrule"===e.type){var l=n(8090);i=new l}else if("rule"===e.type){var c=n(806);i=new c}else"decl"===e.type?i=new o.default:"comment"===e.type&&(i=new a.default);for(var u in e)"nodes"===u?i.nodes=e.nodes.map((function(e){return r.rebuild(e,i)})):"parent"===u&&t?i.parent=t:e.hasOwnProperty(u)&&(i[u]=e[u]);return i},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(i(n(3200)).default);t.default=u,e.exports=t.default},4639:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(5580)),o=i(n(683)),a=i(n(8818));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r,o,a,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),void 0!==n&&void 0!==r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,a.default)(n));var i=n.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,i.length),c=String(l).length;function u(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return i.slice(s,l).map((function(e,n){var r=s+1+n,o=" "+(" "+r).slice(-c)+" | ";if(r===t.line){var a=d(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return u(">")+d(o)+e+"\n "+a+u("^")}return" "+d(o)+e})).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=s,e.exports=t.default},3118:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="decl",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(3200))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},1810:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(4639)),i=l(n(8389)),s=l(n(6470));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0,d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c(this,e),null===t||"object"===(void 0===t?"undefined":r(t))&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=s.default.resolve(n.from));var o=new i.default(this.css,n);if(o.text){this.map=o;var a=o.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}this.file||(u+=1,this.id="<input css "+u+">"),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,i=this.origin(t,n);return(o=i?new a.default(e,i.line,i.column,i.source,i.file,r.plugin):new a.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},a=n.sourceContentFor(r.source);return a&&(o.source=a),o},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:s.default.resolve(this.map.consumer().sourceRoot||".",e)},o(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=d,e.exports=t.default},1799:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=u(n(2455)),i=u(n(4594)),s=u(n(6094)),l=u(n(4974)),c=u(n(1647));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return"object"===(void 0===e?"undefined":o(e))&&"function"==typeof e.then}var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringified=!1,this.processed=!1;var a=void 0;if("object"===(void 0===n?"undefined":o(n))&&null!==n&&"root"===n.type)a=n;else if(n instanceof e||n instanceof l.default)a=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var i=c.default;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{a=i(n,r)}catch(e){this.error=e}}this.result=new l.default(t,a,r)}return e.prototype.warnings=function(){return this.sync().warnings()},e.prototype.toString=function(){return this.css},e.prototype.then=function(e,t){return"from"in this.opts||(0,s.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)},e.prototype.catch=function(e){return this.async().catch(e)},e.prototype.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion){var n=t.postcssPlugin,r=t.postcssVersion,o=this.result.processor.version,a=r.split("."),i=o.split(".");(a[0]!==i[0]||parseInt(a[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,d(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(d(this.run(o)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=i.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new a.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=g,e.exports=t.default},1841:function(e,t){"use strict";t.__esModule=!0;var n={split:function(e,t,n){for(var r=[],o="",a=!1,i=0,s=!1,l=!1,c=0;c<e.length;c++){var u=e[c];s?l?l=!1:"\\"===u?l=!0:u===s&&(s=!1):'"'===u||"'"===u?s=u:"("===u?i+=1:")"===u?i>0&&(i-=1):0===i&&-1!==t.indexOf(u)&&(a=!0),a?(""!==o&&r.push(o.trim()),o="",a=!1):o+=u}return(n||""!==o)&&r.push(o.trim()),r},space:function(e){return n.split(e,[" ","\n","\t"])},comma:function(e){return n.split(e,[","],!0)}};t.default=n,e.exports=t.default},2455:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(4014)),o=a(n(6470));function a(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var a;if(t){if(n>=e.length)break;a=e[n++]}else{if((n=e.next()).done)break;a=n.value}var i=a,s=this.relative(i.file),l=i.root||o.default.dirname(i.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new r.default.SourceMapConsumer(i.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=i.consumer(),this.map.applySourceMap(c,s,this.relative(l))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},e.prototype.toBase64=function(e){return Buffer?Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new r.default.SourceMapGenerator({file:this.outputFile()});var t=1,n=1,o=void 0,a=void 0;this.stringify(this.root,(function(r,i,s){e.css+=r,i&&"end"!==s&&(i.source&&i.source.start?e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:n-1},original:{line:i.source.start.line,column:i.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}})),(o=r.match(/\n/g))?(t+=o.length,a=r.lastIndexOf("\n"),n=r.length-a):n+=r.length,i&&"start"!==s&&(i.source&&i.source.end?e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:n-1},original:{line:i.source.end.line,column:i.source.end.column}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}}))}))},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=i,e.exports=t.default},3200:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=l(n(4639)),a=l(n(3255)),i=l(n(4594)),s=l(n(6094));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function e(t,n){var o=new t.constructor;for(var a in t)if(t.hasOwnProperty(a)){var i=t[a],s=void 0===i?"undefined":r(i);"parent"===a&&"object"===s?n&&(o[a]=n):"source"===a?o[a]=i:i instanceof Array?o[a]=i.map((function(t){return e(t,o)})):("object"===s&&null!==i&&(i=e(i)),o[a]=i)}return o},d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.default;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=u(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;this.parent.insertBefore(this,s)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,s.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,s.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,s.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},e.prototype.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e})):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new a.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},e.prototype.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=d,e.exports=t.default},1647:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new o.default(e,t),a=new r.default(n);try{a.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return a.root};var r=a(n(9890)),o=a(n(1810));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9890:function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(3118)),o=c(n(7272)),a=c(n(2282)),i=c(n(8090)),s=c(n(573)),l=c(n(806));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},e.prototype.parse=function(){for(var e=void 0;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},e.prototype.comment=function(e){var t=new a.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},e.prototype.emptyRule=function(e){var t=new l.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},e.prototype.other=function(e){for(var t=!1,n=null,r=!1,o=null,a=[],i=[],s=e;s;){if(n=s[0],i.push(s),"("===n||"["===n)o||(o=s),a.push("("===n?")":"]");else if(0===a.length){if(";"===n){if(r)return void this.decl(i);break}if("{"===n)return void this.rule(i);if("}"===n){this.tokenizer.back(i.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(o=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(o),t&&r){for(;i.length&&("space"===(s=i[i.length-1][0])||"comment"===s);)this.tokenizer.back(i.pop());this.decl(i)}else this.unknownWord(i)},e.prototype.rule=function(e){e.pop();var t=new l.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new r.default;this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;t.prop+=e.shift()[1]}t.raws.between="";for(var a=void 0;e.length;){if(":"===(a=e.shift())[0]){t.raws.between+=a[1];break}t.raws.between+=a[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){if("!important"===(a=e[i])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,i);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===a[1].toLowerCase()){for(var l=e.slice(0),c="",u=i;u>0;u--){var d=l[u][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(t.important=!0,t.raws.important=c,e=l)}if("space"!==a[0]&&"comment"!==a[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new i.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var n=void 0,r=void 0,o=!1,a=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){a=!0;break}if("}"===e[0]){if(s.length>0){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(t.source.end={line:n[4],column:n[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,"params",s),o&&(e=s[s.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,n){for(var r=void 0,o=void 0,a=n.length,i="",s=!0,l=void 0,c=void 0,u=/^([.|#])?([\w])+/i,d=0;d<a;d+=1)"comment"!==(o=(r=n[d])[0])||"rule"!==e.type?"comment"===o||"space"===o&&d===a-1?s=!1:i+=r[1]:(c=n[d-1],l=n[d+1],"space"!==c[0]&&"space"!==l[0]&&u.test(c[1])&&u.test(l[1])?i+=r[1]:s=!1);if(!s){var g=n.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={value:i,raw:g}}e[t]=i},e.prototype.spacesAndCommentsFromEnd=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},e.prototype.spacesAndCommentsFromStart=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},e.prototype.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},e.prototype.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},e.prototype.colon=function(e){for(var t=0,n=void 0,r=void 0,o=void 0,a=0;a<e.length;a++){if("("===(r=(n=e[a])[0]))t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(o){if("word"===o[0]&&"progid"===o[1])continue;return a}this.doubleColon(n)}o=n}return!1},e.prototype.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},e.prototype.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},e.prototype.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},e.prototype.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},e.prototype.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},e.prototype.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},e.prototype.precheckMissedSemicolon=function(e){},e.prototype.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n=0,r=void 0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon",r[2],r[3])}},e}();t.default=u,e.exports=t.default},5344:function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(3118)),o=p(n(9432)),a=p(n(4594)),i=p(n(2282)),s=p(n(8090)),l=p(n(3e3)),c=p(n(1647)),u=p(n(1841)),d=p(n(806)),g=p(n(573));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){var n=function(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n},r=void 0;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=a.default,f.parse=c.default,f.vendor=l.default,f.list=u.default,f.comment=function(e){return new i.default(e)},f.atRule=function(e){return new s.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new g.default(e)},t.default=f,e.exports=t.default},8389:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(n(4014)),a=s(n(6470)),i=s(n(1285));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=n.map?n.map.prev:void 0,o=this.loadMap(n.from,r);o&&(this.text=o)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from(n,"base64").toString():new Buffer(n,"base64").toString():window.atob(n);var n,r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&i.default.existsSync&&i.default.existsSync(n))return i.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=a.default.join(a.default.dirname(e),r)),this.root=a.default.dirname(r),!(!i.default.existsSync||!i.default.existsSync(r))&&i.default.readFileSync(r,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":r(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();t.default=l,e.exports=t.default},9432:function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(r=n(1799))&&r.__esModule?r:{default:r};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.version="6.0.23",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var s=i;if(s.postcss&&(s=s.postcss),"object"===(void 0===s?"undefined":o(s))&&Array.isArray(s.plugins))t=t.concat(s.plugins);else{if("function"!=typeof s)throw"object"===(void 0===s?"undefined":o(s))&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}}return t},e}();t.default=s,e.exports=t.default},4974:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(9936))&&r.__esModule?r:{default:r},i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}return e.prototype.toString=function(){return this.css},e.prototype.warn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new a.default(e,t);return this.messages.push(n),n},e.prototype.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},o(e,[{key:"content",get:function(){return this.css}}]),e}();t.default=i,e.exports=t.default},573:function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var a=o,i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var l;if(i){if(s>=a.length)break;l=a[s++]}else{if((s=a.next()).done)break;l=s.value}l.raws.before=n.raws.before}}return o},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(1799),r=n(9432),o=new t(new r,this,e);return o.stringify()},t}(((r=n(2146))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},806:function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(2146)),a=i(n(1841));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="rule",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectors",get:function(){return a.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(o.default);t.default=s,e.exports=t.default},3255:function(e,t){"use strict";t.__esModule=!0;var n={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "},r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.builder=t}return e.prototype.stringify=function(e,t){this[e.type](e,t)},e.prototype.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},e.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},e.prototype.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},e.prototype.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},e.prototype.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},e.prototype.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],a=this.raw(o,"before");a&&this.builder(a),this.stringify(o,t!==r||n)}},e.prototype.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},e.prototype.raw=function(e,t,r){var o=void 0;if(r||(r=t),t&&void 0!==(o=e.raws[t]))return o;var a=e.parent;if("before"===r&&(!a||"root"===a.type&&a.first===e))return"";if(!a)return n[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,l="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[l]?o=this[l](i,e):i.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=n[r]),i.rawCache[r]=o,o},e.prototype.rawSemicolon=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},e.prototype.rawEmptyBody=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},e.prototype.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/[^\s]/g,""),!1}})),t},e.prototype.rawBeforeComment=function(e,t){var n=void 0;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeDecl=function(e,t){var n=void 0;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeRule=function(e){var t=void 0;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeClose=function(e){var t=void 0;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var i=0;i<o;i++)n+=a}return n},e.prototype.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=r,e.exports=t.default},4594:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new o.default(t).stringify(e)};var r,o=(r=n(3255))&&r.__esModule?r:{default:r};e.exports=t.default},8818:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(683)),o=i(n(7272)),a=i(n(1810));function i(e){return e&&e.__esModule?e:{default:e}}var s={brackets:r.default.cyan,"at-word":r.default.cyan,call:r.default.cyan,comment:r.default.gray,string:r.default.green,class:r.default.yellow,hash:r.default.magenta,"(":r.default.cyan,")":r.default.cyan,"{":r.default.yellow,"}":r.default.yellow,"[":r.default.yellow,"]":r.default.yellow,":":r.default.yellow,";":r.default.yellow};t.default=function(e){for(var t=(0,o.default)(new a.default(e),{ignoreErrors:!0}),n="",r=function(){var e=t.nextToken(),r=s[function(e,t){var n=e[0],r=e[1];if("word"===n){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!t.endOfFile()){var o=t.nextToken();if(t.back(o),"brackets"===o[0]||"("===o[0])return"call"}return n}(e,t)];n+=r?e[1].split(/\r?\n/).map((function(e){return r(e)})).join("\n"):e[1]};!t.endOfFile();)r();return n},e.exports=t.default},7272:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=e.css.valueOf(),p=t.ignoreErrors,f=void 0,m=void 0,h=void 0,y=void 0,v=void 0,b=void 0,_=void 0,w=void 0,E=void 0,$=void 0,C=void 0,k=void 0,S=void 0,x=void 0,O=g.length,P=-1,A=1,N=0,R=[],T=[];function M(t){throw e.error("Unclosed "+t,A,N-P)}function j(){return 0===T.length&&N>=O}function I(){if(T.length)return T.pop();if(!(N>=O)){switch(((f=g.charCodeAt(N))===o||f===i||f===s&&g.charCodeAt(N+1)!==o)&&(P=N,A+=1),f){case o:case a:case 9:case s:case i:m=N;do{m+=1,(f=g.charCodeAt(m))===o&&(P=m,A+=1)}while(f===a||f===o||9===f||f===s||f===i);x=["space",g.slice(N,m)],N=m-1;break;case 91:x=["[","[",A,N-P];break;case 93:x=["]","]",A,N-P];break;case 123:x=["{","{",A,N-P];break;case 125:x=["}","}",A,N-P];break;case 58:x=[":",":",A,N-P];break;case 59:x=[";",";",A,N-P];break;case 40:if(k=R.length?R.pop()[1]:"",S=g.charCodeAt(N+1),"url"===k&&S!==n&&34!==S&&S!==a&&S!==o&&9!==S&&S!==i&&S!==s){m=N;do{if($=!1,-1===(m=g.indexOf(")",m+1))){if(p){m=N;break}M("bracket")}for(C=m;g.charCodeAt(C-1)===r;)C-=1,$=!$}while($);x=["brackets",g.slice(N,m+1),A,N-P,A,m-P],N=m}else m=g.indexOf(")",N+1),b=g.slice(N,m+1),-1===m||u.test(b)?x=["(","(",A,N-P]:(x=["brackets",b,A,N-P,A,m-P],N=m);break;case 41:x=[")",")",A,N-P];break;case n:case 34:h=f===n?"'":'"',m=N;do{if($=!1,-1===(m=g.indexOf(h,m+1))){if(p){m=N+1;break}M("string")}for(C=m;g.charCodeAt(C-1)===r;)C-=1,$=!$}while($);b=g.slice(N,m+1),y=b.split("\n"),(v=y.length-1)>0?(w=A+v,E=m-y[v].length):(w=A,E=P),x=["string",g.slice(N,m+1),A,N-P,w,m-E],P=E,A=w,N=m;break;case 64:l.lastIndex=N+1,l.test(g),m=0===l.lastIndex?g.length-1:l.lastIndex-2,x=["at-word",g.slice(N,m+1),A,N-P,A,m-P],N=m;break;case r:for(m=N,_=!0;g.charCodeAt(m+1)===r;)m+=1,_=!_;if(f=g.charCodeAt(m+1),_&&47!==f&&f!==a&&f!==o&&9!==f&&f!==s&&f!==i&&(m+=1,d.test(g.charAt(m)))){for(;d.test(g.charAt(m+1));)m+=1;g.charCodeAt(m+1)===a&&(m+=1)}x=["word",g.slice(N,m+1),A,N-P,A,m-P],N=m;break;default:47===f&&42===g.charCodeAt(N+1)?(0===(m=g.indexOf("*/",N+2)+1)&&(p?m=g.length:M("comment")),b=g.slice(N,m+1),y=b.split("\n"),(v=y.length-1)>0?(w=A+v,E=m-y[v].length):(w=A,E=P),x=["comment",b,A,N-P,w,m-E],P=E,A=w,N=m):(c.lastIndex=N+1,c.test(g),m=0===c.lastIndex?g.length-1:c.lastIndex-2,x=["word",g.slice(N,m+1),A,N-P,A,m-P],R.push(x),N=m)}return N++,x}}function F(e){T.push(e)}return{back:F,nextToken:I,endOfFile:j}};var n=39,r=92,o=10,a=32,i=12,s=13,l=/[ \n\t\r\f\{\}\(\)'"\\;/\[\]#]/g,c=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,u=/.[\\\/\("'\n]/,d=/[a-f0-9]/i;e.exports=t.default},3e3:function(e,t){"use strict";t.__esModule=!0,t.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},e.exports=t.default},6094:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){n[e]||(n[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};var n={};e.exports=t.default},9936:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var o=r.node.positionBy(r);this.line=o.line,this.column=o.column}for(var a in r)this[a]=r[a]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t.default=r,e.exports=t.default},40:function(e,t,n){var r=n(5037),o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function i(){this._array=[],this._set=a?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},i.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,t){var n=a?e:r.toSetString(e),i=a?this.has(e):o.call(this._set,n),s=this._array.length;i&&!t||this._array.push(e),i||(a?this._set.set(e,s):this._set[n]=s)},i.prototype.has=function(e){if(a)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},i.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},i.prototype.toArray=function(){return this._array.slice()},t.I=i},3858:function(e,t,n){var r=n(2629);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,a,i,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&a),c+=(a&=31)<<u,u+=5}while(o);n.value=(s=(i=c)>>1,1==(1&i)?-s:s),n.rest=t}},2629:function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},115:function(e,t){function n(e,r,o,a,i,s){var l=Math.floor((r-e)/2)+e,c=i(o,a[l],!0);return 0===c?l:c>0?r-l>1?n(l,r,o,a,i,s):s==t.LEAST_UPPER_BOUND?r<a.length?r:-1:l:l-e>1?n(e,l,o,a,i,s):s==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,o,a){if(0===r.length)return-1;var i=n(-1,r.length,e,r,o,a||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(r[i],r[i-1],!0);)--i;return i}},212:function(e,t,n){var r=n(5037);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,a,i,s;n=e,o=(t=this._last).generatedLine,a=n.generatedLine,i=t.generatedColumn,s=n.generatedColumn,a>o||a==o&&s>=i||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=o},8251:function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,a){if(o<a){var i=o-1;n(e,(u=o,d=a,Math.round(u+Math.random()*(d-u))),a);for(var s=e[a],l=o;l<a;l++)t(e[l],s)<=0&&n(e,i+=1,l);n(e,i+1,l);var c=i+1;r(e,t,o,c-1),r(e,t,c+1,a)}var u,d}t.U=function(e,t){r(e,t,0,e.length-1)}},5177:function(e,t,n){var r=n(5037),o=n(115),a=n(40).I,i=n(3858),s=n(8251).U;function l(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);l&&(l=r.normalize(l)),i=i.map(String).map(r.normalize).map((function(e){return l&&r.isAbsolute(l)&&r.isAbsolute(e)?r.relative(l,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(l,e,t)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),a=r.getArg(n,"column");if(o<s.line||o===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:a+1},consumer:new l(r.getArg(e,"map"),t)}}))}l.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var o,a=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(i,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,a)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var a=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(void 0===e.column)for(var l=s.originalLine;s&&s.originalLine===l;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var c=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==c;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return a},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=a.fromArray(e._names.toArray(),!0),i=n._sources=a.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var l=e._mappings.toArray().slice(),d=n.__generatedMappings=[],g=n.__originalMappings=[],p=0,f=l.length;p<f;p++){var m=l[p],h=new u;h.generatedLine=m.generatedLine,h.generatedColumn=m.generatedColumn,m.source&&(h.source=i.indexOf(m.source),h.originalLine=m.originalLine,h.originalColumn=m.originalColumn,m.name&&(h.name=o.indexOf(m.name)),g.push(h)),d.push(h)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,a,l,c,d=1,g=0,p=0,f=0,m=0,h=0,y=e.length,v=0,b={},_={},w=[],E=[];v<y;)if(";"===e.charAt(v))d++,v++,g=0;else if(","===e.charAt(v))v++;else{for((n=new u).generatedLine=d,l=v;l<y&&!this._charIsMappingSeparator(e,l);l++);if(a=b[o=e.slice(v,l)])v+=o.length;else{for(a=[];v<l;)i.decode(e,v,_),c=_.value,v=_.rest,a.push(c);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");b[o]=a}n.generatedColumn=g+a[0],g=n.generatedColumn,a.length>1&&(n.source=m+a[1],m+=a[1],n.originalLine=p+a[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+a[3],f=n.originalColumn,a.length>4&&(n.name=h+a[4],h+=a[4])),E.push(n),"number"==typeof n.originalLine&&w.push(n)}s(E,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,s(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,a,i){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,a,i)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var a=r.getArg(o,"source",null);null!==a&&(a=this._sources.at(a),a=r.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var i=r.getArg(o,"name",null);return null!==i&&(i=this._names.at(i)),{source:a,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,a=e;if(null!=this.sourceRoot&&(a=r.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var i=a.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!o.path||"/"==o.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(o>=0){var a=this._originalMappings[o];if(a.source===n.source)return{line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[n];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],a=o.consumer._generatedMappings,i=0;i<a.length;i++){var l=a[i],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)}},8530:function(e,t,n){var r=n(3858),o=n(5037),a=n(40).I,i=n(212).H;function s(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new i,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var a=r;null!==t&&(a=o.relative(t,r)),n._sources.has(a)||n._sources.add(a);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},s.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),a=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:a})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=o.relative(i,r));var s=new a,l=new a;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=o.join(n,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,a,i=0,s=1,l=0,c=0,u=0,d=0,g="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==s)for(i=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-d),d=a,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),g+=e}return g},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},8570:function(e,t,n){var r=n(8530).SourceMapGenerator,o=n(5037),a=/(\r?\n)/,i="$$$isSourceNode$$$";function s(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,i=e.split(a),l=0,c=function(){return e()+(e()||"");function e(){return l<i.length?i[l++]:void 0}},u=1,d=0,g=null;return t.eachMapping((function(e){if(null!==g){if(!(u<e.generatedLine)){var t=(n=i[l]||"").substr(0,e.generatedColumn-d);return i[l]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(g,t),void(g=e)}p(g,c()),u++,d=0}for(;u<e.generatedLine;)r.add(c()),u++;if(d<e.generatedColumn){var n=i[l]||"";r.add(n.substr(0,e.generatedColumn)),i[l]=n.substr(e.generatedColumn),d=e.generatedColumn}g=e}),this),l<i.length&&(g&&p(g,c()),r.add(i.splice(l).join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,a))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var a=n?o.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[i]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][i]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,a=null,i=null,s=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(a===r.source&&i===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),a=r.source,i=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),a=null,o=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(a=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=s},5037:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var i,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(i=l[u])?l.splice(u,1):".."===i?c++:c>0&&(""===i?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),r?(r.path=n,a(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),s=o(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l}t.urlParse=o,t.urlGenerate=a,t.normalize=i,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=s(a(r),t)}return i(t)}},4014:function(e,t,n){t.SourceMapGenerator=n(8530).SourceMapGenerator,t.SourceMapConsumer=n(5177).SourceMapConsumer,t.SourceNode=n(8570).SourceNode},4624:function(e,t,n){"use strict";e.exports=n(5627)},5627:function(e,t){"use strict";var n=function(e){if(!e.includes("grid"))return e;if("display:grid"===e)return"\n display: -ms-grid;\n display: grid;\n ";if("display:inline-grid"===e)return"\n display: -ms-inline-grid;\n display: inline-grid;\n ";var t=e.match(/^grid-([a-z-]+): *(.+)/);if(!t)return e;var n=t[1],r=t[2];return"template"===n?function(e,t){var n=t.split(/\s*\/\s*/),r=n[0],o=n[1],a=/repeat\((\d+), *(.+)\)/;return r&&o?"\n -ms-grid-rows: "+r.replace(a,"($2)[$1]")+";\n -ms-grid-columns: "+o.replace(a,"($2)[$1]")+";\n grid-"+e+": "+t+";\n ":e+": "+t+";"}(n,r):"template-rows"===n||"template-columns"===n?function(e,t){return"\n -ms-grid-"+e.split("-")[1]+": "+t.replace(/repeat\((\d+), *(.+)\)/,"($2)[$1]")+";\n grid-"+e+": "+t+";\n "}(n,r):"row"===n||"column"===n?function(e,t){var n=t.split(/\s*\/\s*/),r=n[0],o=n[1],a=null==o?void 0:o.match("span ");if(!r)return"\n -ms-grid-"+e+": "+t+";\n grid-"+e+": "+t+";\n ";if(r&&a)return"\n -ms-grid-"+e+": "+r+";\n -ms-grid-"+e+"-span: "+o.replace("span ","")+";\n grid-"+e+": "+t+";\n ";if(r&&!a){var i=parseInt(r);return"\n -ms-grid-"+e+": "+r+";\n -ms-grid-"+e+"-span: "+(parseInt(o)-i)+";\n grid-"+e+": "+t+";\n "}return"\n grid-"+e+": "+t+";\n "}(n,r):e},r=function(e,t){if(1===e||2===e)return Array.isArray(t)?t.forEach((function(e){return n(e)})):n(t)};Object.defineProperty(r,"name",{value:"griddie"}),t.default=r},7621:function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,l=o.round,c=o.min,u=o.max,d=o.random;function g(e,t){if(t=t||{},(e=e||"")instanceof g)return e;if(!(this instanceof g))return new g(e,t);var n=function(e){var t,n,r,s={r:0,g:0,b:0},l=1,d=null,g=null,p=null,f=!1,m=!1;return"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=z.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=z.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=z.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=z.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=z.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=z.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=z.hex8.exec(e))?{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:L(t[4]),format:n?"name":"hex8"}:(t=z.hex6.exec(e))?{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"}:(t=z.hex4.exec(e))?{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=z.hex3.exec(e))&&{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(t=e.r,n=e.g,r=e.b,s={r:255*T(t,255),g:255*T(n,255),b:255*T(r,255)},f=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(d=F(e.s),g=F(e.v),s=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),c=r%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c]}}(e.h,d,g),f=!0,m="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(d=F(e.s),p=F(e.l),s=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=i(l,s,e+1/3),o=i(l,s,e),a=i(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,d,p),f=!0,m="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=R(l),{ok:f,format:e.format||m,r:c(255,u(s.r,0)),g:c(255,u(s.g,0)),b:c(255,u(s.b,0)),a:l}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function f(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),s=a,l=a-i;if(o=0===a?0:l/a,a==i)r=0;else{switch(a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function m(e,t,n,r){var o=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(e,t,n,r){return[I(D(r)),I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.s-=t/100,n.s=M(n.s),g(n)}function v(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.s+=t/100,n.s=M(n.s),g(n)}function b(e){return g(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.l+=t/100,n.l=M(n.l),g(n)}function w(e,t){t=0===t?0:t||10;var n=g(e).toRgb();return n.r=u(0,c(255,n.r-l(-t/100*255))),n.g=u(0,c(255,n.g-l(-t/100*255))),n.b=u(0,c(255,n.b-l(-t/100*255))),g(n)}function E(e,t){t=0===t?0:t||10;var n=g(e).toHsl();return n.l-=t/100,n.l=M(n.l),g(n)}function $(e,t){var n=g(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,g(n)}function C(e){var t=g(e).toHsl();return t.h=(t.h+180)%360,g(t)}function k(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+120)%360,s:t.s,l:t.l}),g({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+90)%360,s:t.s,l:t.l}),g({h:(n+180)%360,s:t.s,l:t.l}),g({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=g(e).toHsl(),n=t.h;return[g(e),g({h:(n+72)%360,s:t.s,l:t.l}),g({h:(n+216)%360,s:t.s,l:t.l})]}function O(e,t,n){t=t||6,n=n||30;var r=g(e).toHsl(),o=360/n,a=[g(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(g(r));return a}function P(e,t){t=t||6;for(var n=g(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(g({h:r,s:o,v:a})),a=(a+s)%1;return i}g.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16)),I(D(r))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=g(e);n="#"+h(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return g(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification($,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},g.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return g(e,t)},g.equals=function(e,t){return!(!e||!t)&&g(e).toRgbString()==g(t).toRgbString()},g.random=function(){return g.fromRatio({r:d(),g:d(),b:d()})},g.mix=function(e,t,n){n=0===n?0:n||50;var r=g(e).toRgb(),o=g(t).toRgb(),a=n/100;return g({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},g.readability=function(e,t){var n=g(e),r=g(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},g.isReadable=function(e,t,n){var r,o,a,i,s,l=g.readability(e,t);switch(o=!1,(a=n,"AA"!==(i=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),r={level:i,size:s}).level+r.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},g.mostReadable=function(e,t,n){var r,o,a,i,s=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=g.readability(e,t[c]))>l&&(l=r,s=g(t[c]));return g.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,g.mostReadable(e,["#fff","#000"],n))};var A=g.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=g.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return c(1,u(0,e))}function j(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return j(e)/255}var G,B,q,z=(B="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",q="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=g:void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}(Math)},8026:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/account-card//5585d65b9d8c575e5a1f.gogole-g-logo.svg"},4515:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/account-card//25a37606f64ef10ff60e.wp-logo.svg"},8465:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/components/free-listings/configure-product-listings/hero//0cab27878b485c59ab37.google-free-listing.svg"},221:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/dashboard/campaign-creation-success-guide//c4325f35cdc65f85a7c1.header.svg"},4802:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/benefits-card//ff593be89bcb7ad1ab7e.image.png"},1704:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/customer-quotes-card//1ad852c48821e91bfd6e.img-quote.svg"},434:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//3905a197de7922d5b82a.img-dashboard.svg"},2454:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//563fd40c029bebb36783.img-free-listings.svg"},9648:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/features-card//c94ebde75361208ddf3a.img-product-promotion.svg"},4682:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/get-started-page/get-started-card//d7e2d04ea7d6535fecf8.image.svg"},5314:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/images//64742f6405be8486218c.google-logo.svg"},1393:function(e,t,n){"use strict";e.exports=n.p+"images/js/src/product-feed/submission-success-guide//9a968634c60ce598aae3.woocommerce-logo.svg"},9196:function(e){"use strict";e.exports=window.React},2819:function(e){"use strict";e.exports=window.lodash},6292:function(e){"use strict";e.exports=window.moment},5736:function(e){"use strict";e.exports=window.wp.i18n},683:function(){},1285:function(){},5580:function(){}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e}();var __webpack_exports__={};!function(){"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{Text:function(){return bi},block:function(){return _i},destructive:function(){return Ei},highlighterText:function(){return Ci},muted:function(){return $i},positive:function(){return wi},upperCase:function(){return ki}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{createAdsCampaign:function(){return rd},deleteAdsCampaign:function(){return ad},deleteShippingRates:function(){return Au},deleteShippingTimes:function(){return Tu},disconnectAllAccounts:function(){return Hu},disconnectGoogleAccount:function(){return qu},disconnectGoogleAdsAccount:function(){return zu},fetchAdsCampaigns:function(){return nd},fetchExistingGoogleAdsAccounts:function(){return Vu},fetchExistingGoogleMCAccounts:function(){return Gu},fetchGoogleAccount:function(){return Fu},fetchGoogleAdsAccount:function(){return Bu},fetchGoogleAdsAccountBillingStatus:function(){return Uu},fetchGoogleMCAccount:function(){return Lu},fetchJetpackAccount:function(){return Iu},fetchMCSetup:function(){return sd},fetchSettings:function(){return Mu},fetchShippingRates:function(){return Ou},fetchShippingTimes:function(){return Nu},fetchTargetAudience:function(){return Zu},handleFetchError:function(){return xu},receiveAdsAccount:function(){return Ju},receiveGoogleAccountAccess:function(){return Du},receiveGoogleAdsAccountBillingStatus:function(){return ed},receiveGoogleMCContactInformation:function(){return Wu},receiveMCAccount:function(){return Xu},receiveMCIssues:function(){return dd},receiveMCProductFeed:function(){return gd},receiveMCProductStatistics:function(){return cd},receiveMCReviewRequest:function(){return ud},receiveMCSetup:function(){return ld},receiveReport:function(){return id},requestPhoneVerificationCode:function(){return Ku},saveSettings:function(){return ju},saveTargetAudience:function(){return td},sendMCReviewRequest:function(){return fd},updateAdsCampaign:function(){return od},updateGoogleMCContactInformation:function(){return Yu},updateMCProductVisibility:function(){return pd},upsertShippingRates:function(){return Pu},upsertShippingTimes:function(){return Ru},verifyPhoneNumber:function(){return Qu}});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{getAdsCampaigns:function(){return Ud},getDashboardPerformance:function(){return Jd},getExistingGoogleAdsAccounts:function(){return Gd},getExistingGoogleMCAccounts:function(){return Fd},getGoogleAccount:function(){return Md},getGoogleAccountAccess:function(){return jd},getGoogleAdsAccount:function(){return Dd},getGoogleAdsAccountBillingStatus:function(){return Ld},getGoogleMCAccount:function(){return Id},getGoogleMCContactInformation:function(){return Bd},getGoogleMCPhoneNumber:function(){return qd},getJetpackAccount:function(){return Td},getMCCountriesAndContinents:function(){return zd},getMCIssues:function(){return Kd},getMCProductFeed:function(){return Qd},getMCProductStatistics:function(){return Wd},getMCReviewRequest:function(){return Yd},getMCSetup:function(){return Vd},getReport:function(){return Xd},getReportByApiQuery:function(){return Zd},getSettings:function(){return Rd},getShippingRates:function(){return Ad},getShippingTimes:function(){return Nd},getTargetAudience:function(){return Hd}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{getAdsCampaigns:function(){return mg},getExistingGoogleAdsAccounts:function(){return dg},getExistingGoogleMCAccounts:function(){return lg},getGoogleAccount:function(){return ag},getGoogleAccountAccess:function(){return ig},getGoogleAdsAccount:function(){return cg},getGoogleAdsAccountBillingStatus:function(){return ug},getGoogleMCAccount:function(){return sg},getGoogleMCContactInformation:function(){return gg},getJetpackAccount:function(){return og},getMCCountriesAndContinents:function(){return pg},getMCIssues:function(){return bg},getMCProductFeed:function(){return _g},getMCProductStatistics:function(){return yg},getMCReviewRequest:function(){return vg},getMCSetup:function(){return hg},getReportByApiQuery:function(){return Eg},getSettings:function(){return rg},getShippingRates:function(){return tg},getShippingTimes:function(){return ng},getTargetAudience:function(){return fg}});var o=__webpack_require__(5736),a=window.wp.hooks,i=window.wc.wcSettings,s=window.wp.element;function l(){return l=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},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=__webpack_require__(4184),d=__webpack_require__.n(u),g=(0,s.createContext)({}),p=function(){return(0,s.useContext)(g)};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=__webpack_require__(9196),h=__webpack_require__.n(m),y=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,b=y((function(e){return v.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}var w=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),E=function(e){function t(e,r,l,c,g){for(var p,f,m,h,_,E=0,$=0,C=0,k=0,S=0,R=0,M=m=p=0,I=0,F=0,D=0,L=0,G=l.length,B=G-1,q="",z="",H="",U="";I<G;){if(f=l.charCodeAt(I),I===B&&0!==$+k+C+E&&(0!==$&&(f=47===$?10:47),k=C=E=0,G++,B++),0===$+k+C+E){if(I===B&&(0<F&&(q=q.replace(d,"")),0<q.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(I)}f=59}switch(f){case 123:for(p=(q=q.trim()).charCodeAt(0),m=1,L=++I;I<G;){switch(f=l.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(I+1)){case 42:case 47:e:{for(M=I+1;M<B;++M)switch(l.charCodeAt(M)){case 47:if(42===f&&42===l.charCodeAt(M-1)&&I+2!==M){I=M+1;break e}break;case 10:if(47===f){I=M+1;break e}}I=M}}break;case 91:f++;case 40:f++;case 34:case 39:for(;I++<B&&l.charCodeAt(I)!==f;);}if(0===m)break;I++}if(m=l.substring(L,I),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(q=q.replace(d,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=N}if(L=(m=t(r,F,m,f,g+1)).length,0<T&&(_=s(3,m,F=n(N,q,D),r,O,x,L,f,g,c),q=F.join(""),void 0!==_&&0===(L=(m=_.trim()).length)&&(f=0,m="")),0<L)switch(f){case 115:q=q.replace(w,i);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(y,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,q,D),m,c,g+1);H+=m,m=D=F=M=p=0,q="",f=l.charCodeAt(++I);break;case 125:case 59:if(1<(L=(q=(0<F?q.replace(d,""):q).trim()).length))switch(0===M&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(q=q.replace(" ",":")).length),0<T&&void 0!==(_=s(1,q,r,e,O,x,z.length,c,g,c))&&0===(L=(q=_.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),f=q.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=q+l.charAt(I);break}default:58!==q.charCodeAt(L-1)&&(z+=o(q,p,f,q.charCodeAt(2)))}D=F=M=p=0,q="",f=l.charCodeAt(++I)}}switch(f){case 13:case 10:47===$?$=0:0===1+p&&107!==c&&0<q.length&&(F=1,q+="\0"),0<T*j&&s(0,q,r,e,O,x,z.length,c,g,c),x=1,O++;break;case 59:case 125:if(0===$+k+C+E){x++;break}default:switch(x++,h=l.charAt(I),f){case 9:case 32:if(0===k+E+$)switch(S){case 44:case 58:case 9:case 32:h="";break;default:32!==f&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===k+$+E&&(F=D=1,h="\f"+h);break;case 108:if(0===k+$+E+P&&0<M)switch(I-M){case 2:112===S&&58===l.charCodeAt(I-3)&&(P=S);case 8:111===R&&(P=R)}break;case 58:0===k+$+E&&(M=I);break;case 44:0===$+C+k+E&&(F=1,h+="\r");break;case 34:case 39:0===$&&(k=k===f?0:0===k?f:k);break;case 91:0===k+$+C&&E++;break;case 93:0===k+$+C&&E--;break;case 41:0===k+$+E&&C--;break;case 40:0===k+$+E&&(0===p&&(2*S+3*R==533||(p=1)),C++);break;case 64:0===$+C+k+E+M+m&&(m=1);break;case 42:case 47:if(!(0<k+E+C))switch($){case 0:switch(2*f+3*l.charCodeAt(I+1)){case 235:$=47;break;case 220:L=I,$=42}break;case 42:47===f&&42===S&&L+2!==I&&(33===l.charCodeAt(L+2)&&(z+=l.substring(L,I+1)),h="",$=0)}}0===$&&(q+=h)}R=S,S=f,I++}if(0<(L=z.length)){if(F=r,0<T&&void 0!==(_=s(2,z,F,e,O,x,L,c,g,c))&&0===(z=_).length)return U+z+H;if(z=F.join(",")+"{"+z+"}",0!=A*P){switch(2!==A||a(z,2)||(P=0),P){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(v,"::-webkit-input-$1")+z.replace(v,"::-moz-$1")+z.replace(v,":-ms-input-$1")+z}P=0}}return U+z+H}function n(e,t,n){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===A||2===A&&a(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(g,":-webkit-")+i.replace(g,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(_,"tb");break;case 232:l=i.replace(_,"tb-rl");break;case 220:l=i.replace(_,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace($,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace($,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),M(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,s,l,u){for(var d,g=0,p=t;g<T;++g)switch(d=R[g].call(c,e,p,n,r,o,a,i,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!=typeof e?A=1:(A=2,M=e):A=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var o=s(-1,n,r,r,O,x,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(N,r,n,0,0);return 0<T&&void 0!==(o=s(-2,a,r,r,O,x,a.length,0,0,0))&&(a=o),P=0,x=O=1,a}var u=/^\0+/g,d=/[\0\r\f]/g,g=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,$=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,O=1,P=0,A=1,N=[],R=[],T=0,M=null,j=0;return c.use=function e(t){switch(t){case void 0:case null:T=R.length=0;break;default:if("function"==typeof t)R[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},$="/*|*/";function C(e){e&&k.current.insert(e+"}")}var k={current:null},S=function(e,t,n,r,o,a,i,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return k.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+$;break;case 3:switch(s){case 102:case 112:return k.current.insert(n[0]+t),"";default:return t+(0===c?$:"")}case-2:t.split("/*|*/}").forEach(C)}},x=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new E(t),a={};r=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(S),i=function(e,t,n,r){var a=t.name;k.current=n,o(e,t.styles),r&&(l.inserted[a]=!0)};var l={key:n,sheet:new w({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return l},O=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},P={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,N=/_EMO_([^_]+?)_([^]*?)_EMO_/g,R=function(e){return 45===e.charCodeAt(1)},T=function(e){return null!=e&&"boolean"!=typeof e},M=y((function(e){return R(e)?e:e.replace(A,"-$&").toLowerCase()})),j=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(N,(function(e,t,n){return F={name:t,styles:n,next:F},t}))}return 1===P[e]||R(e)||"number"!=typeof t||0===t?t:t+"px"};function I(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)F={name:o.name,styles:o.styles,next:F},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=I(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":T(i)&&(r+=M(a)+":"+j(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=I(e,t,i,!1);switch(a){case"animation":case"animationName":r+=M(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)T(i[l])&&(r+=M(a)+":"+j(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=F,i=n(e);return F=a,I(e,t,i,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var F,D=/label:\s*([^\s;\n{]+)\s*;/g,L=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";F=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=I(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=I(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);D.lastIndex=0;for(var s,l="";null!==(s=D.exec(o));)l+="-"+s[1];return{name:O(o)+l,styles:o,next:F}},G=(Object.prototype.hasOwnProperty,(0,m.createContext)("undefined"!=typeof HTMLElement?x():null)),B=(0,m.createContext)({}),q=(G.Provider,function(e){var t=function(t,n){return(0,m.createElement)(G.Consumer,null,(function(r){return e(t,r,n)}))};return(0,m.forwardRef)(t)});function z(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var H=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}},U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(t)},V=(m.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o});function W(e,t,n){var r=[],o=z(e,r,n);return r.length<2?n:o+t(r)}q((function(e,t){return(0,m.createElement)(B.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered);return H(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return W(t.registered,r,V(n))},theme:n};return e.children(o)}))}));var Y=b,K=function(e){return"theme"!==e&&"innerRef"!==e},Q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Y:K};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var i=t.__emotion_real===t,s=i&&t.__emotion_base||t;"function"!=typeof o&&i&&(o=t.__emotion_forwardProp);var l=o||Q(s),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var g=u.length,p=1;p<g;p++)d.push(u[p],u[0][p])}var f=q((function(e,t,n){return(0,m.createElement)(B.Consumer,null,(function(r){var i=c&&e.as||s,u="",g=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=r}"string"==typeof e.className?u=z(t.registered,g,e.className):null!=e.className&&(u=e.className+" ");var h=L(d.concat(g),t.registered,p);H(t,h,"string"==typeof i),u+=t.key+"-"+h.name,void 0!==a&&(u+=" "+a);var y=c&&void 0===o?Q(i):l,v={};for(var b in e)c&&"as"===b||y(b)&&(v[b]=e[b]);return v.className=u,v.ref=n||e.innerRef,(0,m.createElement)(i,v)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(t,r){return e(t,void 0!==r?X({},n||{},{},r):n).apply(void 0,d)},f}},ee={name:"8kj89b",styles:"flex-direction:row-reverse;"},te=J("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return U({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),U({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return U("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?ee:""}),""),ne=J("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),re=J(ne,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"}),oe=(0,s.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,o=e.className,a=e.gap,i=void 0===a?2:a,u=e.justify,g=void 0===u?"space-between":u,p=e.isReversed,f=void 0!==p&&p,m=c(e,["align","className","gap","justify","isReversed"]),h=d()("components-flex",o);return(0,s.createElement)(te,l({},m,{align:r,className:h,ref:t,gap:i,justify:g,isReversed:f}))})),ae=oe,ie=__webpack_require__(2819),se=__webpack_require__(7621),le=__webpack_require__.n(se);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de={black:"#000",white:"#fff"},ge={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},pe={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Ee(ge.gray[900],.62)},fe={900:Ee("#000510",.9),800:Ee("#00000a",.85),700:Ee("#06060b",.8),600:Ee("#000913",.75),500:Ee("#0a1829",.7),400:Ee("#0a1829",.65),300:Ee("#0e1c2e",.62),200:Ee("#162435",.55),100:Ee("#223443",.5),backgroundFill:Ee(pe[700],.7)},me={900:Ee("#304455",.45),800:Ee("#425863",.4),700:Ee("#667886",.35),600:Ee("#7b86a2",.3),500:Ee("#9197a2",.25),400:Ee("#95959c",.2),300:Ee("#829493",.15),200:Ee("#8b8b96",.1),100:Ee("#747474",.05)},he={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Ee(de.white,.65)},ye={900:Ee(de.white,.5),800:Ee(de.white,.45),700:Ee(de.white,.4),600:Ee(de.white,.35),500:Ee(de.white,.3),400:Ee(de.white,.25),300:Ee(de.white,.2),200:Ee(de.white,.15),100:Ee(de.white,.1),backgroundFill:Ee(he[300],.8)},ve={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},be={theme:"var( --wp-admin-theme-color, ".concat(ve.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(ve.medium.focus,")")},_e={theme:be.theme,background:de.white,backgroundDisabled:he[200],border:ge.gray[700],borderFocus:be.themeDark10,borderDisabled:ge.gray[400],borderLight:ge.gray[200],label:pe[500],textDisabled:pe[150],textDark:de.white,textLight:de.black},we=ue(ue({},de),{},{darkGray:(0,ie.merge)({},pe,ge.darkGray),darkOpacity:fe,darkOpacityLight:me,mediumGray:ge.mediumGray,gray:ge.gray,lightGray:(0,ie.merge)({},he,ge.lightGray),lightGrayLight:ye,blue:(0,ie.merge)({},ve,ge.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:be,ui:_e});function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=le()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function $e(e){return(0,ie.get)(we,e,"#000")}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var ke={borderColor:$e("lightGray.500"),borderRadius:"3px",backgroundShady:$e("lightGray.200")},Se=ke.borderColor,xe=ke.borderRadius,Oe=ke.backgroundShady,Pe=J("div",{target:"e1q7k77g0",label:"CardUI"})("background:",$e("white"),";box-sizing:border-box;border-radius:",xe,";border:1px solid ",Se,";",je,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Ae=J(ae,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Se,";border-top-left-radius:",xe,";border-top-right-radius:",xe,";box-sizing:border-box;&:last-child{border-bottom:none;}",Me,";",je,";",Ie,";"),Ne=(J("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",xe,";border-top-right-radius:",xe,";}&:last-of-type{border-bottom-left-radius:",xe,";border-bottom-right-radius:",xe,";}"),J("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Ce(3)," ").concat(Ce(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Ce(2)," ").concat(Ce(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Ce(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Ce(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ie,";")),Re=J(ae,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Se,";border-bottom-left-radius:",xe,";border-bottom-right-radius:",xe,";box-sizing:border-box;&:first-of-type{border-top:none;}",Me,";",je,";",Ie,";"),Te=J("hr",{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Se,";box-sizing:border-box;display:block;height:0;width:100%;");function Me(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Ce(3)," ").concat(Ce(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Ce(2)," ").concat(Ce(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Ce(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Ce(1),";\n\t\t\t}\n\t\t}\n\t")}function je(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ie(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(Oe,";\n\t\t}\n\t")}function Fe(e){var t=e.className,n=e.isBorderless,r=e.isElevated,o=e.size,a=c(e,["className","isBorderless","isElevated","size"]),i=g.Provider,u={isBorderless:n,isElevated:r,size:o},p=d()("components-card",n&&"is-borderless",r&&"is-elevated",o&&"is-size-".concat(o),t);return(0,s.createElement)(i,{value:u},(0,s.createElement)(Pe,l({},a,{className:p})))}Fe.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var De=Fe;function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be={isShady:!1,size:"medium"},qe=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=Ge(Ge(Ge({},Be),p()),e).size,a=d()("components-card__body",n&&"is-shady",o&&"is-size-".concat(o),t);return(0,s.createElement)(Ne,l({},r,{className:a}))},ze=(0,s.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),o=d()("components-flex__item",n);return(0,s.createElement)(ne,l({},r,{className:o,ref:t}))}));function He(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ue=U;function Ve(){var e=He(["\n\t","\n\t","\n"]);return Ve=function(){return e},e}function We(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return We=function(){return e},e}function Ye(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ye=function(){return e},e}function Ke(){var e=He(["\n\t\t\t\t","\n\t\t\t"]);return Ke=function(){return e},e}function Qe(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Qe=function(){return e},e}function Ze(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ze=function(){return e},e}function Xe(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Xe=function(){return e},e}function Je(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Je=function(){return e},e}function et(){var e=He(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return et=function(){return e},e}var tt="font-weight: 400;",nt="font-weight: 600;",rt="\n ".concat(tt,"\n"),ot="\n\tfont-size: 32px;\n\tline-height: 40px;\n",at="\n\tfont-size: 24px;\n\tline-height: 32px;\n",it="\n\tfont-size: 20px;\n\tline-height: 28px;\n",st="\n\t".concat(nt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n"),lt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",ct="\n\tfont-size: 14px;\n\tline-height: 20px;\n",ut="\n\t".concat(tt,"\n"),dt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",gt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",pt="\n ".concat(nt,"\n font-size: 14px;\n line-height: 20px;\n"),ft="\n\t".concat(tt,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),mt="\n\t".concat(nt,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),ht="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(ge.gray[700],"\n"),yt=function(e){return Ue(Ve(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body"){case"title.large":return Ue(et(),rt,ot);case"title.medium":return Ue(Je(),rt,at);case"title.small":return Ue(Xe(),rt,it);case"subtitle":return Ue(Ze(),st,lt);case"subtitle.small":return Ue(Qe(),st,ct);case"body":return Ue(Ke(),ut);case"body.large":return Ue(Ye(),ut,dt);case"body.small":return Ue(We(),ut,gt);case"button":return pt;case"caption":return ft;case"label":return mt;case"sectionheading":return ht}}(e.variant))};function vt(e){if(Array.isArray(e))return e}function bt(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 _t(e,t){if(e){if("string"==typeof e)return bt(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)?bt(e,t):void 0}}function wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,t){return vt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(e){i=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||_t(e,t)||wt()}var $t=ie.isArray,Ct=ie.isBoolean,kt=ie.isDate,St=ie.isEmpty,xt=ie.isFunction,Ot=ie.isMap,Pt=ie.isNaN,At=ie.isNil,Nt=ie.isNull,Rt=ie.isNumber,Tt=ie.isObject,Mt=ie.isObjectLike,jt=ie.isPlainObject,It=ie.isRegExp,Ft=ie.isSet,Dt=ie.isString,Lt=ie.isSymbol,Gt=ie.isUndefined,Bt=ie.isWeakMap,qt=ie.isWeakSet,zt={blob:function(e){return e instanceof Blob},defined:function(e){return!At(e)},file:function(e){return e instanceof File},numeric:function(e){var t="string"==typeof e?e.replace(/,/g,""):e;return!Pt(parseFloat(t))&&!Pt(Number(t))&&isFinite(t)&&"[object array]"!==Object.prototype.toString.call(t).toLowerCase()},numericZero:function(e){return 0===e||"0"===e},valueEmpty:function(e){return!zt.defined(e)||""===e},objectInterpolation:function(e){return jt(e)},array:$t,boolean:Ct,date:kt,empty:St,function:xt,map:Ot,nan:Pt,nil:At,number:Rt,null:Nt,object:Tt,objectLike:Mt,plainObject:jt,regExp:It,set:Ft,string:Dt,symbol:Lt,undefined:Gt,weakSet:qt,weakMap:Bt},Ht="data-system-ui-color-blind-mode",Ut='[data-system-ui-mode="dark"]',Vt='[data-system-ui-contrast-mode="high"]',Wt="["+Ht+'="true"]',Yt=""+Ut+Vt,Kt={baseStyles:{},config:{},darkModeConfig:{},highContrastModeConfig:{},darkHighContrastModeConfig:{},compilerOptions:void 0};function Qt(e){return"--wp-g2-"+(0,ie.kebabCase)(e)}function Zt(e){return"var("+Qt(e.toString())+")"}function Xt(e){void 0===e&&(e={});for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=Et(r[n],2),a=o[0],i=o[1];t[""+Qt(a)]=null==i?void 0:i.toString()}return t}function Jt(e,t,n){void 0===e&&(e=":root"),void 0===t&&(t={}),void 0===n&&(n=!0);var r=Xt(t),o=[],a=!1;n?(o.push(e+" {"),a=!0):":root"!==e&&(o.push("&"+e+" {"),a=!0);for(var i=0,s=Object.entries(r);i<s.length;i++){var l=Et(s[i],2),c=l[0],u=l[1];zt.defined(u)&&!zt.boolean(u)&&o.push(c+": "+u+";")}return a&&o.push("}"),o.join("")}function en(e,t){return e.map((function(e){return"function"==typeof e?e(t):e}))}function tn(e,t){return t||(t=e.slice(0)),e.raw=t,e}var nn=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}};function rn(){var e=tn(["\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t\t",";\n\t\t"]);return rn=function(){return e},e}var on={didInjectGlobal:!1};function an(e){var t=e.globalStyles,n=e.injectGlobal;if(!on.didInjectGlobal){var r=t.darkHighContrastModeCSSVariables,o=t.darkModeCSSVariables,a=t.globalCSSVariables,i=t.highContrastModeCSSVariables;n&&(n(rn(),a,o,i,r),on.didInjectGlobal=!0)}}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ln=(0,m.createContext)({isDark:null,isColorBlind:null,isReducedMotion:null,isHighContrast:null});var cn=window.wp.isShallowEqual,un=m.useLayoutEffect,dn=window.wp.data;function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fn="g2/is-reduced-motion",mn={isReducedMotion:!1};(0,dn.registerStore)(fn,{reducer:function(e,t){return void 0===e&&(e=mn),"SET_IS_REDUCED_MOTION"===t.type?pn(pn({},e),{},{isReducedMotion:t.isReducedMotion}):e},actions:{setIsReducedMotion:function(e){return{type:"SET_IS_REDUCED_MOTION",isReducedMotion:e}}},selectors:{getIsReducedMotion:function(e){return e.isReducedMotion}}});var hn=fn;function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bn=function(e,t){return"SET_THEME"===t.type?vn(vn({},e),{},{theme:t.theme}):e};function wn(){var e=tn(["",""]);return wn=function(){return e},e}function En(e){var t,n=e.injectGlobal,r=e.isGlobal,o=void 0===r||r,a=e.theme,i=void 0===a?{}:a,s=e.selector,l=void 0===s?":root":s,c=Et((void 0===t&&(t=""),(0,m.useReducer)(bn,{theme:t})),2),u=c[0].theme,d=c[1],g=(0,m.useRef)(),p=(0,m.useRef)(!1);if(!p.current&&o&&i){if("function"==typeof n)try{var f=Jt(l,i,o);n(wn(),f)}catch(e){}p.current=!0}return un((function(){if(!(g.current&&i&&(0,cn.isShallowEqualObjects)(g.current,i))){g.current=i;var e=function(){var e="StyleSystemThemeProviderStyleNode",t=document.getElementById(e);if(t)return t;(t=document.createElement("style")).id=e,t.setAttribute("data-g2-theme-provider","theme");var n=document.querySelector("head");return n&&n.appendChild(t),t}(),t=Jt(l,i,o);o?e&&(e.innerHTML=t):d(function(e){return{type:"SET_THEME",theme:e}}(t))}}),[n,o,d,i]),u}function $n(){var e=tn(["\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t"]);return $n=function(){return e},e}function Cn(e,t){var n=e.children,r=e.compiler,o=e.className,a=e.isGlobal,i=void 0!==a&&a,s=e.globalStyles,l=e.isDark,u=e.isColorBlind,d=e.isReducedMotion,g=e.isHighContrast,p=e.theme,y=void 0===p?{}:p,v=e.darkTheme,b=void 0===v?{}:v,_=e.highContrastTheme,w=void 0===_?{}:_,E=e.darkHighContrastTheme,$=void 0===E?{}:E,C=c(e,["children","compiler","className","isGlobal","globalStyles","isDark","isColorBlind","isReducedMotion","isHighContrast","theme","darkTheme","highContrastTheme","darkHighContrastTheme"]),k=r.css,S=r.cx,x=r.injectGlobal;an({injectGlobal:x,globalStyles:s});var O=(0,m.useRef)(),P=En({injectGlobal:x,isGlobal:i,theme:y,selector:":root"}),A=En({injectGlobal:x,isGlobal:i,theme:b,selector:(0,ie.repeat)(Ut,3)}),N=En({injectGlobal:x,isGlobal:i,theme:w,selector:(0,ie.repeat)(Vt,3)}),R=En({injectGlobal:x,isGlobal:i,theme:$,selector:(0,ie.repeat)(Yt,3)});!function(e){var t=e.isColorBlind,n=e.isGlobal,r=void 0===n||n,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(t)){var e=document.documentElement;!r&&o.current&&(e=o.current),t?e.setAttribute("data-system-ui-color-blind-mode","true"):e.setAttribute("data-system-ui-color-blind-mode","false")}}),[r,t,o])}({isColorBlind:u,isGlobal:i,ref:O}),function(e){var t=e.isDark,n=e.isGlobal,r=void 0===n||n,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(t)){var e=document.documentElement;!r&&o.current&&(e=o.current),t?e.setAttribute("data-system-ui-mode","dark"):e.setAttribute("data-system-ui-mode","light")}}),[r,t,o])}({isDark:l,isGlobal:i,ref:O}),function(e){var t=e.isGlobal,n=void 0===t||t,r=e.isHighContrast,o=e.ref;(0,m.useEffect)((function(){if(zt.defined(r)){var e=document.documentElement;!n&&o.current&&(e=o.current),r?e.setAttribute("data-system-ui-contrast-mode","high"):e.setAttribute("data-system-ui-contrast-mode","normal")}}),[n,r,o])}({isGlobal:i,isHighContrast:g,ref:O}),function(e){var t=e.isGlobal,n=void 0===t||t,r=e.isReducedMotion,o=e.ref,a=Et([(0,dn.useSelect)((function(e){return e(hn).getIsReducedMotion()})),(0,dn.useDispatch)(hn).setIsReducedMotion],2)[1];(0,m.useEffect)((function(){n&&a(!!r)}),[n,r,a]),(0,m.useEffect)((function(){if(zt.defined(r)){var e=document.documentElement;!n&&o.current&&(e=o.current),r?e.setAttribute("data-system-ui-reduced-motion-mode","true"):e.setAttribute("data-system-ui-reduced-motion-mode","false")}}),[n,r,o])}({isGlobal:i,isReducedMotion:d,ref:O});var T=function(e){void 0===e&&(e={});for(var t=(0,m.useContext)(ln),n=(0,m.useRef)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)).current,r=0,o=Object.entries(e);r<o.length;r++){var a=Et(o[r],2),i=a[0],s=a[1];zt.defined(s)&&(n[i]=s)}return n}({isDark:l,isReducedMotion:d,isColorBlind:u,isHighContrast:g}),M=function(e){void 0===e&&(e={});var t=e,n=t.isColorBlind,r=t.isDark,o=t.isHighContrast,a=t.isReducedMotion,i={};return r&&(i["data-system-ui-mode"]="dark"),o&&(i["data-system-ui-contrast-mode"]=!0),n&&(i[Ht]=!0),a&&(i["data-system-ui-reduced-motion-mode"]=!0),i}(T),j=S(o,k($n(),P,A,N,R));return h().createElement("div",Object.assign({},C,M,{className:j,"data-system-theme-provider":!0,ref:nn([t,O])}),h().createElement(ln.Provider,{value:T},n))}var kn=h().memo(h().forwardRef(Cn));function Sn(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function xn(e,t,n){var r=[],o=z(e,r,n);return r.length<2?n:o+t(r)}var On=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n};function Pn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var An=new RegExp(/var\(.*?\)[ ) ]*/,"g");function Nn(e){return null==e||null==e.includes?void 0:e.includes("var(")}function Rn(e){var t,n,r,o,a=(null==(t=e.match(/\(/g))?void 0:t.length)||0,i=(null==(n=e.match(/\)/g))?void 0:n.length)||0;if(a>i)o=""+e+(0,ie.repeat)(")",a-i);else{var s=new RegExp("((\\)){"+(i-a)+"})$","gi");o=e.replace(s,"")}return null==(r=o)?void 0:r.trim()}function Tn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mn(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)?Mn(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Mn(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 jn(e,t){var n,r,o=!1,a=Et(e.split(/:/),2);n=a[0],r=a[1],n=n.trim();for(var i,s,l=Tn(r.match(An)||[]);!(i=l()).done;)for(var c,u=i.value,d=Tn((u=u.trim()).replace(/ /g,"").split("var(").filter(Boolean));!(c=d()).done;){var g=vt(s=Rn(c.value).split(","))||Pn(s)||_t(s)||wt(),p=g[0],f=g.slice(1).join(","),m=t&&t.get(p)||f;m&&(o=!0,r=r.replace(u,m))}return[n,r=o?Rn(r):void 0]}function In(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 Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ln=function(e){var t=this;void 0===e&&(e={}),this.state={},this.get=function(e){return t.state[e]},this.getState=function(){return t.state},this.setState=function(e){return void 0===e&&(e={}),t._updateState(e),t._resolveVariablesInStateValue(),t.state},this._updateState=function(e){void 0===e&&(e={}),t.state=Object.freeze(Dn(Dn({},t.state),e))},this._resolveVariablesInStateValue=function(){for(var e,n={},r=Object.entries(t.state).filter((function(e){var t=Et(e,2);return t[0],Nn(t[1])})),o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return In(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)?In(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}(r);!(e=o()).done;){var a=Et(e.value,2),i=a[0],s=Et(jn("resolve: "+a[1],t),2)[1];s&&(n[i]=s)}t._updateState(n),r.length&&t._resolveVariablesInStateValue()},this.setState(e)};function Gn(e){return void 0===e&&(e={}),new Ln(e)}var Bn,qn,zn=["40em","52em","64em"],Hn=function(e,t){void 0===e&&(e={}),void 0===t&&(t=function(e,t){return t});var n={},r=[null].concat(zn.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var o in e){var a=o,i=e[a];if(null!==i)if(Array.isArray(i))for(var s=0;s<i.slice(0,r.length).length;s++){var l=r[s];l?(n[l]=n[l]||{},null!==i[s]&&(n[l][a]=t(a,i[s]))):n[a]=t(a,i[s])}else n[a]=i}return n},Un=__webpack_require__(4624),Vn=__webpack_require__(9588),Wn=__webpack_require__.n(Vn),Yn=Wn()((function(e,t){var n=e.split(";").filter(Boolean),r=!1,o=n.reduce((function(e,n){if(!Nn(n))return[].concat(e,[n]);var o=function(e,t){if(Nn(e)||function(e){return 0===e.indexOf("--")}(e)){var n=Et(jn(e,t),2),r=n[0],o=n[1];return o?[r,o].join(":"):void 0}}(n,t);return o?(r=!0,[].concat(e,[o,n])):[].concat(e,[n])}),[]),a=o.join(";").concat(";");return r?a:void 0}));function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn="undefined"!=typeof window&&(null==(Bn=window)||null==(qn=Bn.CSS)||null==qn.supports?void 0:qn.supports("(--a: 0)")),Xn={rootStore:Gn(),skipSupportedBrowsers:!0},Jn=function(e){void 0===e&&(e={});var t=Qn(Qn({},Xn),e),n=t.rootStore,r=t.skipSupportedBrowsers;return function(e,t,o,__,a,i,s,l){if((!r||!Zn)&&2===e&&107!==l&&Nn(t))return Yn(t,n)}};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr,rr,or,ar=new WeakSet,ir=new Set,sr={key:"wp-css",level:7},lr=function(e){void 0===e&&(e=sr);var t=tr(tr({},sr),e),n=t.key,r=t.level,o=(0,ie.clamp)(r,0,20);return function(e,__,t){if(!ar.has(t)){ar.add(t);for(var r=new RegExp("."+n+"-[\\w|\\d]*","g"),a=0;a<t.length;a++){var i=t[a],s=Et(i.match(r)||[],1)[0];if(s){if(ir.has(s))return;ir.add(s),i=i.replace(new RegExp(s,"g"),s).replace(s,(0,ie.repeat)(s,o)),t[a]=i}}}}},cr=__webpack_require__(8314),ur=__webpack_require__.n(cr),dr=!1;"undefined"!=typeof window&&(dr="rtl"===(null==(nr=window)||null==(rr=nr.document)||null==(or=rr.documentElement)?void 0:or.dir));var gr=function(e,t){if(-1===e)return dr?ur().process(t,void 0,void 0,void 0):void 0};function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mr={key:"css",specificityLevel:7,rootStore:new Ln};function hr(e){var t=fr(fr({},mr),e),n=t.key,r=t.rootStore,o=function(e){var t=e.specificityLevel,n=void 0===t?7:t,r=e.key,o=void 0===r?"css":r,a=e.skipSupportedBrowsers;return[gr,Jn({skipSupportedBrowsers:void 0===a||a,rootStore:e.rootStore}),lr({level:n,key:o}),Un.default]}({key:n,specificityLevel:t.specificityLevel,rootStore:r});e.stylisPlugins?Array.isArray(e.stylisPlugins)?t.stylisPlugins=[].concat(o,e.stylisPlugins):zt.defined(e.stylisPlugins)?t.stylisPlugins=[].concat(o,[e.stylisPlugins]):t.stylisPlugins=o:t.stylisPlugins=o;var a,i=fr(fr({},function(e){var t=x(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered,void 0);return H(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return xn(t.registered,n,On(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered);Sn(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L(n,t.registered),a="animation-"+o.name;return Sn(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:z.bind(null,t.registered),merge:xn.bind(null,t.registered,n)}}(t)),{},{breakpoints:zn,__events:{all:a=a||new Map,on:function(e,t){var n=a.get(e);n&&n.push(t)||a.set(e,[t])},off:function(e,t){var n=a.get(e);n&&n.splice(n.indexOf(t)>>>0,1)},emit:function(e,t){(a.get(e)||[]).slice().map((function(e){e(t)})),(a.get("*")||[]).slice().map((function(n){n(e,t)}))}}}),s=i.css;i.css=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],a=n.slice(1);if(zt.objectInterpolation(o))return e(Hn(o));if(Array.isArray(o)){for(var i=0,s=o.length;i<s;i++){var l=o[i];zt.objectInterpolation(l)&&(o[i]=Hn(l))}return e.apply(void 0,[o].concat(a))}return e.apply(void 0,n)}}(s);var l=i.sheet.insert;return i.sheet.insert=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];l.apply(i.sheet,[].concat(n)),(e=i.__events).emit.apply(e,["sheet.insert"].concat(n))},i}function yr(){var e=tn(["\n\t\t\t@media (prefers-reduced-motion) {\n\t\t\t\ttransition: none !important;\n\t\t\t}\n\t\t\t"," & {\n\t\t\t\ttransition: none !important;\n\t\t\t}\n\t\t"]);return yr=function(){return e},e}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=b,wr=Kt,Er=function(e,t){var n=br(br({},wr),t),r=n.baseStyles,o=n.compiler,a=n.globalStyles,i=o.css,s=o.cx,l=o.injectGlobal,u={Base:i({boxSizing:"border-box"}),reduceMotion:i(yr(),'[data-system-ui-reduced-motion-mode="true"]')},d=i(r),g=(0,m.forwardRef)((function(t,n){var r=t.css,o=t.as,g=t.children,p=t.className,f=t.forwardedRef,m=c(t,["css","as","children","className","forwardedRef"]);an({globalStyles:a,injectGlobal:l});var y=o||e,v="string"!=typeof p?s(p):p,b=s(u.Base,u.reduceMotion,d,v,r&&i(r)),_={};for(var w in m)"string"==typeof y?_r(w)&&(_[w]=m[w]):_[w]=m[w];var E=h().useMemo((function(){return f?nn([f,n]):n}),[f,n]);return h().createElement(y,br({className:b,ref:E},_),g)}));return g},$r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];function Cr(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}var kr=__webpack_require__(8679),Sr=__webpack_require__.n(kr);function xr(e){return"string"==typeof e?e:e.displayName||e.name||"Component"}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr=Kt;function Tr(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,a=n;o<a.length;o++){var i=a[o];"number"!=typeof i&&"string"!=typeof i||e.push(i),Array.isArray(i)&&e.push(Tr.apply(void 0,i),",")}return e.join(" ").trim().replace(/,$/,"")}var Mr=Tr;function jr(e){return"number"==typeof e?"calc("+Zt("gridBase")+" * "+e+")":e}function Ir(e){for(var t={},n=Object.entries(e),r=n[0][1],o=le()(r).lighten(15).toHexString(),a=n[n.length-1][1],i=le()(a).darken(15).toHexString(),s=0,l=n;s<l.length;s++){var c=Et(l[s],2),u=c[0],d=c[1];t[u+"Text"]=le().mostReadable(d,[o,r,a,i]).toHexString()}return t}function Fr(e,t){void 0===t&&(t=!1);var n={},r=Et(Object.entries(e)[2],2),o=r[0],a=r[1],i=Et(o.split(/\d+/),1)[0],s=t?"#000":"#fff",l=t?"#fff":"#000",c=t?"darken":"lighten";return[10,20,30,40,50,60,70,80,90].forEach((function(e,t){var r=a;r=le()(r).setAlpha(e/100).toRgbString();var o=le().mix(a,s,t).toRgbString();le().isReadable(o,l,{})||(r=le()(r)[c](20).toRgbString()),n[i+"Rgba"+e]=r})),n}function Dr(e,t){var n,r=((n={})[e]=t,n);return[10,20,30,40,50,60,70,80,90].forEach((function(n){r[e+"Rgba"+n]=le()(t).setAlpha(n/100).toRgbString()})),r}function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Mr.calc=function(){return"calc("+Tr.apply(void 0,arguments)+")"};var Br={purple100:"#f3f1f8",purple300:"#B4A8D2",purple500:"#826eb4",purple700:"#4e426c",purple900:"#342c48"},qr={darkGray100:"#8F98A1",darkGray300:"#6C7781",darkGray500:"#555D66",darkGray700:"#32373C",darkGray900:"#191E23"},zr={lightGray100:"#fbfbfc",lightGray300:"#edeff0",lightGray500:"#e2e4e7",lightGray700:"#ccd0d4",lightGray900:"#a2aab2"},Hr={red100:"#fcebeb",red300:"#ea8484",red500:"#dc3232",red700:"#b02828",red900:"#841e1e"},Ur={orange100:"#fef1ea",orange300:"#f9a87e",orange500:"#F56E28",orange700:"#ca4a1f",orange900:"#aa3e1a"},Vr={yellow100:"#fff8e6",yellow300:"#ffd566",yellow500:"#ffb900",yellow700:"#ee8e0d",yellow900:"#dd631a"},Wr={green100:"#edf8ee",green300:"#90d296",green500:"#46b450",green700:"#328540",green900:"#25612f"},Yr={blue100:"#e6f6fb",blue300:"#66c6e4",blue500:"#00a0d2",blue700:"#0085ba",blue900:"#0072A8"},Kr=Gr(Gr(Gr({},qr),Ir(qr)),Fr(qr)),Qr=Gr(Gr(Gr({},zr),Ir(zr)),Fr(zr)),Zr=Gr(Gr(Gr({},Hr),Ir(Hr)),Fr(Hr)),Xr=Gr(Gr(Gr({},Ur),Ir(Ur)),Fr(Ur)),Jr=Gr(Gr(Gr({},Vr),Ir(Vr)),Fr(Vr)),eo=Gr(Gr(Gr({},Wr),Ir(Wr)),Fr(Wr)),to=Gr(Gr(Gr({},Br),Ir(Br)),Fr(Br)),no=Gr(Gr(Gr({},Yr),Ir(Yr)),Fr(Yr)),ro=Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},Kr),Qr),Zr),Xr),Jr),eo),to),no),oo={black:"#000000",blueberry:"#3858E9",blueberryDark:"#1D35B4",greens:"#33F078",grey:"#40464D",greyBlack:"#1E1E1E",lightBlue:"#33F078",lightGrey:"#40464D",lighterGrey:"#dddddd",pomegrade:"#E26F56",wordpressBlue:"#007cba",white:"#ffffff"},ao={colorBackgroundBlue:Zt("blueRgba10"),colorBackgroundBlueText:Zt("blue900"),colorBackgroundDarkGray:Zt("darkGrayRgba10"),colorBackgroundDarkGrayText:Zt("darkGray900"),colorBackgroundGreen:Zt("greenRgba10"),colorBackgroundGreenText:Zt("green900"),colorBackgroundLightGray:Zt("lightGrayRgba10"),colorBackgroundLightGrayText:Zt("lightGray900"),colorBackgroundOrange:Zt("orangeRgba10"),colorBackgroundOrangeText:Zt("orange900"),colorBackgroundPurple:Zt("purpleRgba10"),colorBackgroundPurpleText:Zt("purple900"),colorBackgroundRed:Zt("redRgba10"),colorBackgroundRedText:Zt("red900"),colorBackgroundYellow:Zt("yellowRgba10"),colorBackgroundYellowText:Zt("yellow900")},io={colorBackgroundBlue:Zt("blueRgba20"),colorBackgroundBlueText:Zt("blue300"),colorBackgroundDarkGray:Zt("darkGrayRgba20"),colorBackgroundDarkGrayText:Zt("white"),colorBackgroundGreen:Zt("greenRgba20"),colorBackgroundGreenText:Zt("green300"),colorBackgroundLightGray:Zt("lightGrayRgba20"),colorBackgroundLightGrayText:Zt("white"),colorBackgroundOrange:Zt("orangeRgba20"),colorBackgroundOrangeText:Zt("orange300"),colorBackgroundPurple:Zt("purpleRgba20"),colorBackgroundPurpleText:Zt("purple300"),colorBackgroundRed:Zt("redRgba20"),colorBackgroundRedText:Zt("red300"),colorBackgroundYellow:Zt("yellowRgba20"),colorBackgroundYellowText:Zt("yellow300")},so=Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},Fr(Yr,!0)),Fr(Wr,!0)),Fr(Ur,!0)),Fr(Br,!0)),Fr(Hr,!0)),Fr(Vr,!0)),Fr(qr,!0)),Fr(zr,!0));function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uo=co(co(co(co({},ro),ao),{},{colorAdmin:"#007cba",colorDestructive:"#D94F4F",colorBodyBackground:Zt("white"),colorDivider:"rgba(0, 0, 0, 0.1)",colorPositive:Zt("greens"),colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",colorText:"#1e1e1e",colorTextInverted:Zt("white"),colorTextHeading:"#050505",colorTextMuted:"#8a8b8c"},Dr("colorAdmin","#007cba")),Dr("colorDestructive","#D94F4F")),go={fontFamily:'Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif',fontFamilyMono:"SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace",fontSize:"13px",fontSizeH1:"calc(2.44 * "+Zt("fontSize")+")",fontSizeH2:"calc(1.95 * "+Zt("fontSize")+")",fontSizeH3:"calc(1.56 * "+Zt("fontSize")+")",fontSizeH4:"calc(1.25 * "+Zt("fontSize")+")",fontSizeH5:"calc(1 * "+Zt("fontSize")+")",fontSizeH6:"calc(0.8 * "+Zt("fontSize")+")",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * "+Zt("fontSize")+")",fontSizeXSmall:"calc(0.75 * "+Zt("fontSize")+")",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600"},po={surfaceBackgroundColor:Zt("surfaceColor"),surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:"#ffffff",surfaceColor:Zt("white")},fo={controlBackgroundColor:Zt("white"),controlBackgroundColorHover:"rgba(0, 0, 0, 0.05)",controlBackgroundColorActive:"rgba(0, 0, 0, 0.05)",controlBackgroundDimColor:"rgba(0, 0, 0, 0.1)",controlBackgroundBrightColor:"rgba(0, 0, 0, 0.03)",controlBorderColor:"#757575",controlBorderColorHover:Zt("controlBorderColor"),controlBorderColorSubtle:"transparent",controlBorderRadius:"2px",controlBorderSubtleColor:"rgba(0, 0, 0, 0.2)",controlBoxShadowFocusSize:"0.5px",controlBoxShadow:"transparent",controlBoxShadowFocus:Mr("0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorAdmin")),controlPseudoBoxShadowFocusWidth:"2px",controlPseudoBoxShadowFocusRingSize:Mr.calc(Zt("controlPseudoBoxShadowFocusWidth"),"+ 1px +",Zt("controlBoxShadowFocusSize")),controlPseudoBoxShadowFocusRingSizeSmall:Mr.calc(Zt("controlPseudoBoxShadowFocusWidth"),"+ 1px"),controlPseudoBoxShadowFocus:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSize"),Zt("colorAdmin")]),controlPseudoBoxShadowFocusSmall:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSizeSmall"),Zt("colorAdmin")]),controlDestructivePseudoBoxShadowFocus:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSize"),Zt("colorDestructive")]),controlDestructivePseudoBoxShadowFocusSmall:Mr(["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("surfaceBackgroundColor")],["0 0 0",Zt("controlPseudoBoxShadowFocusRingSizeSmall"),Zt("colorDestructive")]),controlDestructiveBorderColor:Zt("colorDestructive"),controlDestructiveBorderColorFocus:Zt("controlDestructiveBorderColor"),controlDestructiveBoxShadowFocus:Mr("0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorDestructive")),controlHeight:"30px",controlHeightLarge:"calc("+Zt("controlHeight")+" * 1.2)",controlHeightSmall:"calc("+Zt("controlHeight")+" * 0.8)",controlHeightXLarge:"calc("+Zt("controlHeight")+" * 1.4)",controlHeightXSmall:"calc("+Zt("controlHeight")+" * 0.67)",controlHeightXXSmall:"calc("+Zt("controlHeight")+" * 0.4)",controlPaddingX:"12px",controlPaddingXLarge:"calc("+Zt("controlPaddingX")+" * 1.3334)",controlPaddingXSmall:"calc("+Zt("controlPaddingX")+" / 1.3334)",controlPrimaryTextColorActive:Zt("white"),controlPrimaryTextColor:Zt("white"),controlSurfaceBoxShadow:Mr(["0 1px 1px rgba(0, 0, 0, 0.2)"],["0 1px 2px rgba(0, 0, 0, 0.2)"]),controlSurfaceColor:Zt("white"),controlTextActiveColor:Zt("colorAdmin"),controlInnerControltextColor:Zt("colorAdmin")},mo={buttonPaddingXRatio:"calc(4/3)",buttonPaddingX:Mr.calc(Zt("controlPaddingX"),"*",Zt("buttonPaddingXRatio")),buttonTextColor:Zt("colorAdmin"),buttonTextColorActive:Zt("buttonTextColor"),buttonPrimaryColor:Zt("colorAdmin"),buttonPrimaryColorHover:Zt("buttonPrimaryColor"),buttonPrimaryColorActive:Zt("colorText"),buttonPrimaryColorFocus:Zt("buttonPrimaryColor"),buttonPrimaryBorderColor:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorHover:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonPrimaryBorderColorActive:Zt("buttonPrimaryColor"),buttonPrimaryTextColor:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorHover:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorActive:Zt("controlPrimaryTextColor"),buttonPrimaryTextColorFocus:Zt("controlPrimaryTextColor"),buttonSecondaryColor:"transparent",buttonSecondaryColorHover:Zt("buttonSecondaryColor"),buttonSecondaryColorActive:"rgba(0, 0, 0, 0.05)",buttonSecondaryColorFocus:Zt("buttonSecondaryColor"),buttonSecondaryBorderColor:Zt("buttonPrimaryColor"),buttonSecondaryTextColor:Zt("buttonPrimaryColor"),buttonSecondaryTextColorFocus:Zt("buttonPrimaryColor"),buttonSecondaryTextColorActive:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorHover:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorActive:Zt("buttonPrimaryColor"),buttonSecondaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonTertiaryColor:"transparent",buttonTertiaryColorHover:Zt("buttonTertiaryColor"),buttonTertiaryColorActive:"rgba(0, 0, 0, 0.05)",buttonTertiaryColorFocus:Zt("buttonTertiaryColor"),buttonTertiaryBorderColor:"transparent",buttonTertiaryTextColor:Zt("buttonPrimaryColor"),buttonTertiaryTextColorFocus:Zt("buttonPrimaryColor"),buttonTertiaryTextColorActive:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorHover:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorActive:Zt("buttonPrimaryColor"),buttonTertiaryBorderColorFocus:Zt("buttonPrimaryColor"),buttonControlActiveStateColor:Zt("colorText"),buttonControlActiveStateColorHover:Zt("buttonControlActiveStateColor"),buttonControlActiveStateColorActive:Zt("buttonControlActiveStateColor"),buttonControlActiveStateColorFocus:Zt("buttonControlActiveStateColor"),buttonControlActiveStateTextColor:Zt("buttonPrimaryTextColor"),buttonControlActiveStateBorderColorFocus:Zt("buttonPrimaryColor"),buttonControlActiveStateBoxShadowFocus:Mr(["0 0 0",Zt("controlBoxShadowFocusSize"),Zt("colorAdmin")],["0 0 0",Zt("controlPseudoBoxShadowFocusWidth"),Zt("buttonControlActiveStateTextColor"),"inset"])},ho={cardBorderRadius:"2px",cardPaddingX:jr(3),cardPaddingY:jr(3),cardPadding:Mr(Zt("cardPaddingX"),Zt("cardPaddingY")),cardHeaderFooterPaddingY:jr(1),cardHeaderHeight:"44px"},yo={flexGap:jr(2),flexItemMarginRight:Zt("flexGap")},vo={linkColor:Zt("colorAdmin"),linkColorHover:Zt("colorAdmin"),linkColorActive:Zt("colorAdmin"),linkColorFocus:Zt("colorAdmin")},bo={menuItemBorderWidth:"1px",menuItemFocusBackgroundColor:"transparent",menuItemFocusBorderColor:Zt("colorAdmin"),menuItemFocusTextColor:Zt("menuItemFocusBorderColor"),menuItemFocusBoxShadow:Zt("controlBorderSubtleColor"),menuItemActiveBackgroundColor:Zt("controlBackgroundColor"),menuItemActiveBorderColor:Zt("menuItemFocusBorderColor"),menuItemActiveTextColor:Zt("colorText"),menuItemActiveBoxShadow:Zt("controlBorderSubtleColor"),menuItemHeight:"30px",menuItemHeightLarge:"calc("+Zt("menuItemHeight")+" * 1.2)",menuItemHeightSmall:"calc("+Zt("menuItemHeight")+" * 0.8)",menuItemHeightXLarge:"calc("+Zt("menuItemHeight")+" * 1.4)",menuItemHeightXSmall:"calc("+Zt("menuItemHeight")+" * 0.67)",menuItemHeightXXSmall:"calc("+Zt("menuItemHeight")+" * 0.4)"},_o={panelHeaderPadding:jr(3)+" "+jr(4),panelBodyPadding:jr(2)+" "+jr(4)+" "+jr(3)},wo={radioBoxShadow:Zt("checkboxBoxShadow"),radioSize:Zt("checkboxSize"),radioDotSize:"10px"},Eo={segmentedControlFontSize:"12px",segmentedControlBackgroundColor:Zt("controlBackgroundColor"),segmentedControlBorderColor:Zt("controlBorderColor"),segmentedControlBackdropBackgroundColor:Zt("controlSurfaceColor"),segmentedControlBackdropBorderColor:Zt("controlBorderColor"),segmentedControlBackdropBoxShadow:"transparent",segmentedControlButtonColorActive:Zt("controlBackgroundColor")},$o={sliderThumbBorderColor:"transparent",sliderThumbBoxShadow:"none",sliderThumbBoxShadowSizeFocus:"3px",sliderThumbBoxShadowColorFocus:Zt("colorAdminRgba20"),sliderThumbBackgroundColor:Zt("colorAdmin")},Co={switchBackdropBackgroundColor:Zt("lightGray900"),switchBackdropBackgroundColorActive:Zt("colorAdmin"),switchBackdropBorderColor:Zt("lightGray900"),switchBackdropBorderColorActive:Zt("colorAdmin"),switchBackdropBorderColorFocus:Zt("white"),switchToggleBackgroundColor:Zt("colorTextInverted"),switchToggleBackgroundColorActive:Zt("colorTextInverted"),switchToggleBoxShadow:"none",switchPaddingOffset:"6px"},ko=co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co(co({},oo),uo),ho),fo),{elevationIntensity:1}),yo),go),po),{transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),mo),{checkboxBoxShadow:"none",checkboxSize:"16px"}),{gridBase:"4px"}),vo),bo),_o),wo),Eo),$o),Co);function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oo=xo(xo(xo({},io),so),{},{buttonPrimaryTextColorActive:Zt("controlPrimaryTextColorActive"),buttonControlActiveStateTextColor:Zt("colorTextInverted"),colorBodyBackground:"#18191A",colorDivider:"rgba(255, 255, 255, 0.1)",colorScrollbarThumb:"rgba(255, 255, 255, 0.2)",colorScrollbarThumbHover:"rgba(255, 255, 255, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",colorText:"#E4E6EB",colorTextInverted:"#050505",colorTextHeading:"#ffffff",controlBackgroundColor:Zt("colorBodyBackground"),controlBackgroundColorHover:"rgba(255, 255, 255, 0.3)",controlBackgroundBrightColor:"rgba(255, 255, 255, 0.08)",controlBackgroundDimColor:"rgba(255, 255, 255, 0.2)",controlBorderSubtleColor:"rgba(255, 255, 255, 0.5)",controlPrimaryTextColorActive:Zt("black"),controlPrimaryTextColor:Zt("white"),controlSurfaceColor:"rgba(255, 255, 255, 0.3)",controlTextActiveColor:Zt("white"),surfaceBackgroundColor:Zt("colorBodyBackground"),surfaceBackgroundSubtleColor:"#151515",surfaceBackgroundTintColor:"#252525",surfaceBackgroundTertiaryColor:"#000",surfaceBorderColor:"rgba(255, 255, 255, 0.1)",surfaceBorderBoldColor:"rgba(255, 255, 255, 0.15)",surfaceBorderSubtleColor:"rgba(255, 255, 255, 0.05)",surfaceColor:"#292929"}),Po=xo({},Oo),Ao=function(e){void 0===e&&(e=Rr);var t=Nr(Nr({},Rr),e),n=t.baseStyles,r=t.compilerOptions,o=function(e){var t=e.config,n=void 0===t?{}:t,r=e.darkModeConfig,o=void 0===r?{}:r,a=e.highContrastModeConfig,i=void 0===a?{}:a,s=e.darkHighContrastModeConfig,l=void 0===s?{}:s,c=function(e){void 0===e&&(e={});for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=Et(r[n],2),a=o[0],i=o[1],s="var("+Qt(a)+", "+i+")";t[a]=s}return t}(n);return{theme:c,globalVariables:Xt(n),globalCSSVariables:Jt(":root",n),darkModeCSSVariables:Jt((0,ie.repeat)(Ut,3),o),highContrastModeCSSVariables:Jt((0,ie.repeat)(Vt,3),i),darkHighContrastModeCSSVariables:Jt((0,ie.repeat)(Yt,3),l)}}({config:t.config,darkHighContrastModeConfig:t.darkHighContrastModeConfig,darkModeConfig:t.darkModeConfig,highContrastModeConfig:t.highContrastModeConfig}),a=Gn(o.globalVariables);a.setState(o.globalVariables);var i=hr(Nr(Nr({},r),{},{rootStore:a})),s=i.css,l=i.cx,u=function(e){for(var t,n=e.baseStyles,r=e.compiler,o=e.globalStyles,a={},i=function(e){return Er(e,{baseStyles:n,compiler:r,globalStyles:o})},s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cr(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)?Cr(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}($r);!(t=s()).done;){var l=t.value;a[l]=i(l)}return a}({baseStyles:n,compiler:i,globalStyles:o}),d=function(e){var t=e.compiler,n=e.core,r=t.css,o=t.cx,a=n.div;function i(e,t){void 0===t&&(t={});var n=t.props;return function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var d=h().forwardRef((function(t,i){var s=t.as,u=t.className,d=c(t,["as","className"]),g=Pr(Pr(Pr({},n),d),{},{ref:i}),p=en(l,d),f=o(r.apply(void 0,p),u);return h().createElement(a,Object.assign({as:s||e},g,{className:f}))}));return d.displayName="string"==typeof e?"Styled("+xr(e)+")":zt.defined(null==e?void 0:e.displayName)?e.displayName:"Styled("+xr(e)+")",d.withComponent=function(e,n){return i(e,void 0!==n?Pr(Pr({},t||{}),n):t).apply(void 0,l)},"string"!=typeof e?Sr()(d,e):d}}var s=i.bind(void 0);return $r.forEach((function(e){s[e]=i(e)})),s}({compiler:i,core:u}),g=u.div;return{compiler:i,core:u,createCoreElement:function(e){return Er(e,{baseStyles:n,compiler:i,globalStyles:o})},createToken:Qt,css:s,cx:l,get:function(e){return"var("+Qt(e.toString())+")"},styled:d,View:g,ThemeProvider:function(e){return h().createElement(kn,Object.assign({},e,{compiler:i,globalStyles:o}))},rootStore:a}}({baseStyles:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontFamily:Zt("fontFamily"),fontSize:Zt("fontSize"),fontWeight:Zt("fontWeight"),margin:0},config:ko,darkModeConfig:Po,highContrastModeConfig:{colorDivider:"#444",controlBorderColor:"#444",controlBorderColorHover:"#444",controlBorderColorSubtle:"#444",surfaceBorderColor:"#444"},darkHighContrastModeConfig:{colorDivider:"#eee",controlBorderColor:"#eee",controlBorderColorHover:"#eee",controlBorderColorSubtle:"#eee",surfaceBorderColor:"#eee"}}),No=(Ao.ThemeProvider,Ao.compiler),Ro=Ao.core,To=(Ao.createCoreElement,Ao.createToken),Mo=Ao.get,jo=(Ao.styled,No.breakpoints,No.cache,No.cx);function Io(e){return"number"==typeof e?"calc("+Mo("gridBase")+" * "+e+")":e}No.flush,No.getRegisteredStyles,No.hydrate,No.injectGlobal,No.keyframes,No.merge,No.sheet;var Fo=No.css,Do={gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space"},Lo={space:Io};function Go(e,t){var n=Do[e],r=t;return n&&Lo&&(r=(0,Lo[n])(t)),r}function Bo(e){void 0===e&&(e={});var t={};for(var n in e)t[n]=Go(n,e[n]);return t}function qo(e){if(zt.objectInterpolation(e))return Fo(Bo(Hn(e,Go)));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e)){for(var o=0,a=e.length;o<a;o++){var i=e[o];zt.objectInterpolation(i)&&(e[o]=Bo(Hn(i,Go)))}return Fo.apply(void 0,[e].concat(n))}return Fo.apply(void 0,[e].concat(n))}var zo=(0,m.createContext)({}),Ho="data-g2-component";function Uo(e,t){var n,r=(0,m.useContext)(zo),o=Array.isArray(t)?t[0]:t,a=(null==r?void 0:r[o])||{},i=((n={})["data-g2-c16t"]=!0,n),s=function(e){var t;return(t={})[Ho]=e,t}(o);for(var l in s)"string"==typeof s[l]&&(i[l]=s[l]);var u=a._overrides,d=a.css,g=c(a,["_overrides","css"]),p=Object.entries(g).length?Object.assign({},g,e):e,f=jo(d&&qo(d),p.css&&qo(p.css),Wo(o),e.className),h="function"==typeof p.renderChildren?p.renderChildren(p):p.children;for(var y in p)"css"!==y&&(i[y]=p[y]);for(var v in u)i[v]=u[v];return i.children=h,i.className=f,i}function Vo(e){if(!e||"string"!=typeof e)return"";var t=(0,ie.kebabCase)(e);return"components-"+t+" wp-components-"+t}var Wo=Wn()((function(e){return e?Array.isArray(e)?jo((0,ie.uniq)(e).map(Vo)):"string"==typeof e?Vo(e):"":""}));function Yo(e,t,n){void 0===n&&(n={});var r=n.memo,o=void 0===r||r,a=(0,m.forwardRef)(e);o&&(a=h().memo(a));var i=Array.isArray(t)?t[0]:t||a.name,s=a.__contextSystemKey__||[i];return Array.isArray(t)&&(s=[].concat(s,t)),"string"==typeof t&&(s=[].concat(s,[t])),a.displayName=i,a.__contextSystemKey__=(0,ie.uniq)(s),a}function Ko(e){if(!e)return[];var t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}var Qo=__webpack_require__(4155),Zo=Ro.div;Zo.displayName="View";var Xo=Zo,Jo={bottom:qo({alignItems:"flex-end",display:"flex",justifyContent:"center"}),center:qo({alignItems:"center",display:"flex",justifyContent:"center"}),left:qo({alignItems:"center",display:"flex",justifyContent:"flex-start"}),right:qo({alignItems:"center",display:"flex",justifyContent:"flex-end"}),top:qo({alignItems:"flex-start",display:"flex",justifyContent:"center"})},ea={center:qo({margin:"auto"}),content:Jo,left:qo({marginRight:"auto"}),right:qo({marginLeft:"auto"})};function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ra={transitionDuration:Mo("transitionDuration"),transitionProperty:"all",transitionTimingFunction:"ease-in-out"},oa=function(e){return qo({transition:e})};oa.default=qo(na(na({},ra),{},{transitionTimingFunction:"ease"})),oa.bounce=qo(na(na({},ra),{},{transitionTimingFunction:"cubic-bezier(.8, .5, .2, 1.4)"})),oa.delay=function(e){return qo({transitionDelay:e+"s"})},oa.duration=function(e){return qo({transitionDuration:e+"s"})},oa.ease=qo(na(na({},ra),{},{transitionTimingFunction:"ease"})),oa.easeIn=qo(na(na({},ra),{},{transitionTimingFunction:"ease-in"})),oa.easeInOut=qo(na(na({},ra),{},{transitionTimingFunction:"ease-in-out"})),oa.easeOut=qo(na(na({},ra),{},{transitionTimingFunction:"ease-out"})),oa.easing=function(e){return qo(na(na({},ra),{},{transitionTimingFunction:e}))},oa.linear=qo(na(na({},ra),{},{transitionTimingFunction:"linear"}));var aa=["blue","red","purple","green","yellow","orange","darkGray","lightGray"];function ia(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return ia=function(){return e},e}function sa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ia(),Wt,o)}function la(){var e=tn(["",""]);return la=function(){return e},e}function ca(){var e=tn(["\n\t\t",";\n\t\t",";\n\t"]);return ca=function(){return e},e}function ua(e,t){if(void 0===t&&(t={}),!aa.includes(e))return"";var n,r=t,o=r.isBold,a=r.isSubtle,i=o?"Rgba20":"Rgba10",s=qo({background:Mo(o?e+"Rgba70":a?e+"Rgba10":e+"Rgba20")});return"green"===e&&(n=qo({backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 10px, "+Mo("colorBackgroundGreen")+" 10px, "+Mo("colorBackgroundGreen")+" 20px)"})),"red"===e&&(n=qo({backgroundImage:"linear-gradient(45deg, "+Mo("red"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("red"+i)+" 75%, "+Mo("red"+i)+"),\n linear-gradient(-45deg, "+Mo("red"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("red"+i)+" 75%, "+Mo("red"+i)+")",backgroundSize:"10px 10px"})),"yellow"===e&&(n=qo({backgroundImage:"linear-gradient(45deg, "+Mo("yellow"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("yellow"+i)+" 75%, "+Mo("yellow"+i)+"),\n linear-gradient(-45deg, "+Mo("yellow"+i)+" 25%, transparent 25%, transparent 75%, "+Mo("yellow"+i)+" 75%, "+Mo("yellow"+i)+")",backgroundSize:"10px 10px"})),qo(ca(),s,sa(la(),n))}function da(e){return qo({background:e})}da.black=da(Mo("black")),da.white=da(Mo("white")),da.admin=da(Mo("colorAdmin")),da.blue=ua("blue"),da.darkGray=ua("darkGray"),da.green=ua("green"),da.lightGray=ua("lightGray"),da.orange=ua("orange"),da.purple=ua("purple"),da.red=ua("red"),da.yellow=ua("yellow"),da.control=da(Mo("controlBackgroundColor")),da.surface=da(Mo("surfaceBackgroundColor")),da.secondary=da(Mo("surfaceBackgroundSubtleColor"));var ga={default:qo({border:"1px solid "+Mo("controlBorderColor")}),focus:qo({border:"1px solid "+Mo("colorAdmin"),boxShadow:Mo("controlBoxShadowFocus")}),subtle:qo({border:"1px solid "+Mo("controlBorderSubtleColor")})},pa={all:qo({border:"1px solid "+Mo("surfaceBorderColor")}),bottom:qo({borderBottom:"1px solid "+Mo("surfaceBorderColor")}),control:ga,left:qo({borderLeft:"1px solid "+Mo("surfaceBorderColor")}),right:qo({borderRight:"1px solid "+Mo("surfaceBorderColor")}),top:qo({borderTop:"1px solid "+Mo("surfaceBorderColor")})};function fa(e){return qo({borderRadius:e})}function ma(){var e=tn(["\n\t\t@media not all and (min-resolution: 0.001dpcm) {\n\t\t\t@supports (-webkit-appearance: none) {\n\t\t\t\t","\n\t\t\t}\n\t\t}\n\t"]);return ma=function(){return e},e}function ha(){var e=tn(["\n\t\t@-moz-document url-prefix() {\n\t\t\t",";\n\t\t}\n\t"]);return ha=function(){return e},e}function ya(){var e=tn(["\n\t\t@media screen and (-ms-high-contrast: active),\n\t\t\t(-ms-high-contrast: none) {\n\t\t\t",";\n\t\t}\n\t"]);return ya=function(){return e},e}fa.none=fa(0),fa.round=fa(Mo("controlBorderRadius")),fa.circle=fa(99999);var va={ie:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ya(),o)},firefox:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ha(),o)},safari:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(ma(),o)}},ba=function(e){return le()(e)};ba.admin=Mo("colorAdmin"),ba.text=Mo("colorText"),ba.textInverted=Mo("colorTextInverted"),ba.border=Mo("surfaceBorderColor"),ba.positive=Mo("colorPositive"),ba.destructive=Mo("colorDestructive"),["blue","red","purple","green","yellow","orange","darkGray","lightGray"].forEach((function(e){[null,100,300,500,700,900].forEach((function(t){t?ba[""+e+t]=Mo(""+e+t):ba[e]=Mo(e+"500")}))})),Object.keys(oo).forEach((function(e){ba[e]=Mo(e)}));var _a=function(e){var t=e.height,n=e.width,r=[];return zt.defined(n)&&r.push([qo({maxWidth:"100%",width:n})]),zt.defined(t)&&r.push([qo({height:t,maxHeight:"100%"})]),qo(r)};_a.width=function(e){return qo({maxWidth:"100%",width:e})},_a.height=function(e){return qo({height:e,maxHeight:"100%"})};var wa={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function Ea(e){return void 0===e&&(e=13),wa[e]?Ea(wa[e]):"number"!=typeof e?e:"calc("+e/13+" * "+Mo("fontSize")+")"}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ka(e){return qo({color:e})}ka.black=ka(Mo("black")),ka.white=ka(Mo("white")),ka.admin=ka(Mo("colorAdmin")),ka.purple=ka(Mo("purple500")),ka.green=ka(Mo("green500")),ka.yellow=ka(Mo("yellow500")),ka.orange=ka(Mo("orange500")),ka.darkGray=ka(Mo("darkGray500")),ka.lightGray=ka(Mo("lightGray500")),ka.text=ka(Mo("colorText")),ka.textInverted=ka(Mo("colorTextInverted"));var Sa={default:qo({color:Mo("colorText"),fontFamily:Mo("fontFamily"),fontWeight:400}),monospace:qo({fontFamily:Mo("fontFamilyMono")})},xa={bold:qo({fontWeight:600}),italic:qo({fontStyle:"italic"}),smallCaps:qo({fontSize:Ea(10),fontWeight:600,textTransform:"uppercase"}),caption:qo({fontSize:Ea(10),fontWeight:600,textTransform:"uppercase",opacity:.5})},Oa={body:qo({fontSize:Ea(13)}),caption:qo({fontSize:Ea(10)}),footnote:qo({fontSize:Ea(11)}),headline:jo(xa.bold,qo({fontSize:Ea(13)})),largeTitle:qo({fontSize:Ea(28)}),subheadline:qo({fontSize:Ea(12)}),title:qo({fontSize:Ea(20)})},Pa={color:ka,size:function(e){return qo({fontSize:Ea(e)})}},Aa={alignment:{left:qo({textAlign:"left"}),center:qo({textAlign:"center"}),right:qo({textAlign:"right"})}},Na=Ca(Ca(Ca(Ca(Ca({},Sa),Oa),xa),Pa),Aa);function Ra(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return Ra=function(){return e},e}function Ta(){var e=tn(["\n\t\t"," & {\n\t\t\t","\n\t\t}\n\t"]);return Ta=function(){return e},e}var Ma={};function ja(e){return qo({opacity:e})}Ma.colorBlind=sa,Ma.dark=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(Ra(),Ut,o)},Ma.highContrast=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=qo.apply(void 0,[e].concat(n));return qo(Ta(),Vt,o)},ja.subtle=ja(.7),ja.muted=ja(.5),ja.hidden=ja(0);var Ia={absolute:qo({position:"absolute"}),fixed:qo({position:"fixed"}),bottom:qo({bottom:0,position:"absolute"}),bottomLeft:qo({bottom:0,left:0,position:"absolute"}),bottomRight:qo({bottom:0,position:"absolute",right:0}),full:qo({bottom:0,left:0,position:"absolute",right:0,top:0}),left:qo({left:0,position:"absolute"}),relative:qo({position:"relative"}),right:qo({position:"absolute",right:0}),sticky:qo({position:"sticky",top:0}),top:qo({position:"absolute",top:0}),topLeft:qo({left:0,position:"absolute",top:0}),topRight:qo({position:"absolute",right:0,top:0})};function Fa(e){return zt.numeric(e)?e+"px":e}function Da(e){return"0 "+Fa(e)+" "+Fa(2*e)+" 0\n\trgba(0 ,0, 0, "+e/20+")"}function La(e){return qo({margin:Io(e)})}function Ga(e){return qo({padding:Io(e)})}function Ba(){var e=tn(["\n\t\t"," {\n\t\t\t",";\n\t\t}\n\t"]);return Ba=function(){return e},e}La.x=function(e){return qo({marginLeft:Io(e),marginRight:Io(e)})},La.y=function(e){return qo({marginBottom:Io(e),marginTop:Io(e)})},La.top=function(e){return qo({marginTop:Io(e)})},La.bottom=function(e){return qo({marginBottom:Io(e)})},La.left=function(e){return qo({marginLeft:Io(e)})},La.right=function(e){return qo({marginRight:Io(e)})},Ga.x=function(e){return qo({paddingLeft:Io(e),paddingRight:Io(e)})},Ga.y=function(e){return qo({paddingBottom:Io(e),paddingTop:Io(e)})},Ga.top=function(e){return qo({paddingTop:Io(e)})},Ga.bottom=function(e){return qo({paddingBottom:Io(e)})},Ga.left=function(e){return qo({paddingLeft:Io(e)})},Ga.right=function(e){return qo({paddingRight:Io(e)})};var qa=function(e){return this[Ho]=e,this};qa.prototype.getSelector=function(){return'[data-g2-component="'+this[Ho]+'"]'},qa.prototype.css=function(){var e=qo.apply(void 0,arguments);return qo(Ba(),this.getSelector(),e)};function za(e){return"number"==typeof e||"string"==typeof e}function Ha(e,t){if(void 0===t&&(t=0),za(e)){var n=za(t)?t:0;return qo({transform:"translate("+Fa(e)+", "+Fa(n)+")"})}if(zt.plainObject(e)){var r=e.x,o=void 0===r?0:r,a=e.y,i=void 0===a?0:a;return qo({transform:"translate("+Fa(o)+", "+Fa(i)+")"})}return""}Ha.x=function(e){return qo({transform:"translateX("+Fa(e)+")"})},Ha.y=function(e){return qo({transform:"translateY("+Fa(e)+")"})};var Ua={};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Ua.clamp=function(e,t,n){return"max("+t+", min("+n+", "+e+"))"},Ua.color=ba,Ua.space=Io,Ua.px=Fa;var Wa={Tooltip:999999,Popover:9999,Dropdown:9998,Modal:999,ControlFocus:1};function Ya(e,t){return"number"==typeof e?e:"string"!=typeof e?t:(Wa[e]||"number"!=typeof t||(Wa[e]=t),Wa[e])}function Ka(e,t){return qo({zIndex:Ya(e,t)})}Ka.get=function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wa)};var Qa={$:function(e){return new qa(e)},active:function(){return qo({"&:active":qo.apply(void 0,arguments)})},alignment:ea,animation:oa,background:da,border:pa,borderRadius:fa,browsers:va,color:ba,createToken:To,css:qo,flow:Mr,focus:function(){return qo({"&:focus":qo.apply(void 0,arguments)})},font:Na,frame:_a,get:Mo,getTokenValue:function(e){var t=Mo(e).replace("var(","").replace(/\)$/g,"");return window.getComputedStyle(document.documentElement).getPropertyValue(t)},hover:function(){return qo({"&:hover":qo.apply(void 0,arguments)})},margin:La,mode:Ma,offset:Ha,opacity:ja,padding:Ga,position:Ia,rotate:function(e){return qo({transform:"rotate("+e+"deg)"})},scale:function(e){return qo({transform:"scale("+e+")"})},scaleX:function(e){return qo({transform:"scaleX("+e+")"})},scaleY:function(e){return qo({transform:"scaleY("+e+")"})},shadow:function(e){if("number"==typeof e)return qo({boxShadow:Da(e)});if(!zt.plainObject(e))return"";var t=e.color,n=void 0===t?"black":t,r=e.radius,o=void 0===r?10:r,a=e.x,i=void 0===a?0:a,s=e.y,l=void 0===s?5:s,c=le()(n).setAlpha(.3).toRgbString()||"rgba(0, 0, 0, 0.3)";return qo({boxShadow:Fa(i)+" "+Fa(l)+" "+Fa(o)+" "+c})},space:Io,value:Ua,zIndex:Ka};function Za(){var e=He(["\n\tdisplay: block;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n"]);return Za=function(){return e},e}var Xa=qo(Za());function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti,ni="auto",ri="head",oi="middle",ai="none",ii={ellipsis:"…",ellipsizeMode:ni,limit:0,numberOfLines:0};function si(e,t,n,r){if("string"!=typeof e)return"";var o=e.length,a=~~t,i=~~n,s=(0,ie.isNil)(r)?"…":r;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(o-i)}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(){var e=He(["\n\t\t\t-webkit-box-orient: vertical;\n\t\t\t-webkit-line-clamp: ",";\n\t\t\tdisplay: -webkit-box;\n\t\t\toverflow: hidden;\n\t\t"]);return ui=function(){return e},e}var di=Wn()((function(e){var t;if("string"!=typeof e)return"";if(function(e){return"string"==typeof e&&le()(e).isValid()}(e))return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";var n=function(){if("undefined"!=typeof document){if(!ti){var e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),ti=e}return ti}}();if(!n)return"";n.style.background=e;var r=null===(t=window)||void 0===t?void 0:t.getComputedStyle(n).background;return n.style.background="",r||""}));function gi(){var e=He(["\n\ttext-transform: uppercase;\n"]);return gi=function(){return e},e}function pi(){var e=He(["\n\tmark {\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tbox-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,\n\t\t\t0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;\n\t}\n"]);return pi=function(){return e},e}function fi(){var e=He(["\n\tcolor: ",";\n"]);return fi=function(){return e},e}function mi(){var e=He(["\n\tcolor: ",";\n"]);return mi=function(){return e},e}function hi(){var e=He(["\n\tcolor: ",";\n"]);return hi=function(){return e},e}function yi(){var e=He(["\n\tdisplay: block;\n"]);return yi=function(){return e},e}function vi(){var e=He(["\n\tcolor: ",";\n\tline-height: ",";\n"]);return vi=function(){return e},e}var bi=qo(vi(),Qa.color.text,Qa.get("fontLineHeightBase")),_i=qo(yi()),wi=qo(hi(),Qa.color.positive),Ei=qo(mi(),Qa.color.destructive),$i=qo(fi(),Qa.get("colorTextMuted")),Ci=qo(pi(),Qa.get("yellowRgba70")),ki=qo(gi());function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}var xi=__webpack_require__(6928);function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=Wn()((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ti=function(e){var t=e.as,n=e.name,r=void 0===n?"Component":n,o=e.useHook,a=void 0===o?ie.identity:o,i=e.memo,c=void 0===i||i;function u(e,n){var r=a(e);return(0,s.createElement)(Xo,l({as:t||"div"},r,{ref:n}))}return u.displayName=r,Yo(u,r,{memo:c})}({as:"span",useHook:function(t){var n=Uo(t,"Text"),r=n.adjustLineHeightForInnerControls,o=n.align,a=n.children,i=n.className,l=n.color,u=n.ellipsizeMode,d=n.isDestructive,g=void 0!==d&&d,p=n.display,f=n.highlightEscape,m=void 0!==f&&f,h=n.highlightCaseSensitive,y=void 0!==h&&h,v=n.highlightWords,b=n.highlightSanitize,_=n.isBlock,w=void 0!==_&&_,E=n.letterSpacing,$=n.lineHeight,C=n.optimizeReadabilityFor,k=n.size,S=n.truncate,x=void 0!==S&&S,O=n.upperCase,P=void 0!==O&&O,A=n.variant,N=n.weight,R=void 0===N?Qa.get("fontWeight"):N,T=c(n,["adjustLineHeightForInnerControls","align","children","className","color","ellipsizeMode","isDestructive","display","highlightEscape","highlightCaseSensitive","highlightWords","highlightSanitize","isBlock","letterSpacing","lineHeight","optimizeReadabilityFor","size","truncate","upperCase","variant","weight"]),M=a,j=Array.isArray(v),I="caption"===k;j&&(M=function(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,o=void 0===r?-1:r,a=e.activeStyle,i=e.autoEscape,l=e.caseSensitive,c=void 0!==l&&l,u=e.children,d=e.findChunks,g=e.highlightClassName,p=void 0===g?"":g,f=e.highlightStyle,m=void 0===f?{}:f,h=e.highlightTag,y=void 0===h?"mark":h,v=e.sanitize,b=e.searchWords,_=void 0===b?[]:b,w=e.unhighlightClassName,E=void 0===w?"":w,$=e.unhighlightStyle;if(!u)return null;if("string"!=typeof u)return u;var C,k=u,S=(0,xi.findAll)({autoEscape:i,caseSensitive:c,findChunks:d,sanitize:v,searchWords:_,textToHighlight:k}),x=y,O=-1,P="",A=S.map((function(e,t){var r=k.substr(e.start,e.end-e.start);if(e.highlight){var i;O++,i="object"===Si(p)?c?p[r]:(p=Ai(p))[r.toLowerCase()]:p;var l=O===+o;P="".concat(i," ").concat(l?n:""),C=!0===l&&null!==a?Object.assign({},m,a):m;var u=Pi(Pi({},Qa.$("TextHighlight")),{},{children:r,className:P,key:t,style:C});return"string"!=typeof x&&(u.highlightIndex=O),(0,s.createElement)(x,u)}return(0,s.createElement)("span",Pi(Pi({},Qa.$("Text")),{},{children:r,className:E,key:t,style:$}))}));return A}({autoEscape:m,children:a,caseSensitive:y,searchWords:v,sanitize:b}));var F,D=(0,s.useMemo)((function(){var t,n={},a=function(e){var t=e.adjustLineHeightForInnerControls,n=e.lineHeight;if(!(0,ie.isNil)(n))return n;if(t){var r="calc(".concat(Qa.get("controlHeight")," + ").concat(Qa.space(2),")");switch(t){case"large":r="calc(".concat(Qa.get("controlHeightLarge")," + ").concat(Qa.space(2),")");break;case"small":r="calc(".concat(Qa.get("controlHeightSmall")," + ").concat(Qa.space(2),")");break;case"xSmall":r="calc(".concat(Qa.get("controlHeightXSmall")," + ").concat(Qa.space(2),")")}return r}}({lineHeight:$,adjustLineHeightForInnerControls:r});if(n.Base=qo({color:l,display:p,fontSize:Ea(k),fontWeight:R,lineHeight:a,letterSpacing:E,textAlign:o}),n.upperCase=qo({textTransform:"uppercase"}),n.optimalTextColor=null,C){var s="dark"==(t=function(e){var t=di(e);return le().isReadable(t,"#000000")?"#000000":"#ffffff"}(C),"#000000"===t?"dark":"light");n.optimalTextColor=qo(s?{color:Qa.get("black")}:{color:Qa.get("white")})}return jo(bi,n.Base,n.optimalTextColor,g&&Ei,!!j&&Ci,w&&_i,I&&$i,A&&e[A],P&&n.upperCase,i)}),[r,o,i,l,p,w,I,g,j,E,$,C,k,P,A,R]);!0===x&&(F="auto"),!1===x&&(F="none");var L=function(e){var t=Uo(e,"Truncate"),n=t.className,r=t.children,o=t.ellipsis,a=void 0===o?"…":o,i=t.ellipsizeMode,l=void 0===i?ni:i,u=t.limit,d=void 0===u?0:u,g=t.numberOfLines,p=void 0===g?0:g,f=c(t,["className","children","ellipsis","ellipsizeMode","limit","numberOfLines"]),m=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=ei(ei({},ii),r),a=o.ellipsis,i=o.ellipsizeMode,s=o.limit;if(i===ai)return n;switch(i){case ri:e=0,t=s;break;case oi:e=Math.floor(s/2),t=Math.floor(s/2);break;default:e=s,t=0}return i!==ni?si(n,e,t,a):n}("string"==typeof r?r:"",{ellipsis:a,ellipsizeMode:l,limit:d,numberOfLines:p}),h=l===ni,y=(0,s.useMemo)((function(){var e={};return e.numberOfLines=qo(ui(),p),jo(h&&!p&&Xa,h&&!!p&&e.numberOfLines,n)}),[n,p,h]);return ci(ci({},f),{},{className:y,children:m})}(Ri(Ri({},T),{},{className:D,children:a,ellipsizeMode:u||F}));return!x&&Array.isArray(a)&&(M=s.Children.map(a,(function(e){return(0,ie.isPlainObject)(e)&&"props"in e&&(n=["Link"],(t=e)&&("string"==typeof n?Ko(t).includes(n):Array.isArray(n)&&n.some((function(e){return Ko(t).includes(e)}))))?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e;var t,n}))),Ri(Ri({},L),{},{children:x?L.children:M})},name:"Text"});function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ji=1===__webpack_require__(4155).env.COMPONENT_SYSTEM_PHASE?Ti:void 0,Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return null},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Component",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e};return 1===Qo.env.COMPONENT_SYSTEM_PHASE?Yo((function(o,a){var i=Uo(o,n),u=i.__unstableVersion,d=c(i,["__unstableVersion"]);if("next"===u){var g=r(d);return(0,s.createElement)(t,l({},g,{ref:a}))}return(0,s.createElement)(e,l({},o,{ref:a}))}),n):e}(J("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",yt,""),ji,"WPComponentsText",(function(e){var t=e.as,n=e.variant,r=c(e,["as","variant"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:t,css:yt({variant:n}).styles},r)})),Fi=__webpack_require__(4802),Di=()=>(0,s.createElement)(De,{className:"gla-get-started-benefits-card",isBorderless:!0},(0,s.createElement)(qe,null,(0,s.createElement)("div",{className:"gla-get-started-benefits-card__image"},(0,s.createElement)("img",{src:Fi,alt:(0,o.__)("Google Listings & Ads Benefits","google-listings-and-ads"),width:"100%",height:"100%"})),(0,s.createElement)(ze,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-benefits-card__title"},(0,s.createInterpolateElement)((0,o.__)("Increase clicks by <strong>50%</strong>","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)})),(0,s.createElement)(Ii,{variant:"body",className:"gla-get-started-benefits-card__description"},(0,o.__)("Using free listings and ads together increased clicks by 50% and doubled impressions. Small-to-medium merchants saw the largest share of the increases.","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-benefits-card__hint"},(0,o.__)("Source: Google Internal Data, July 2020","google-listings-and-ads"))))),Li=(0,s.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),o=d()("components-flex__block",n);return(0,s.createElement)(re,l({},r,{className:o,ref:t}))}));function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qi={isBorderless:!1,isShady:!1,size:"medium"},zi=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=Bi(Bi(Bi({},qi),p()),e),a=o.isBorderless,i=o.size,u=d()("components-card__header",a&&"is-borderless",n&&"is-shady",i&&"is-size-".concat(i),t);return(0,s.createElement)(Ae,l({},r,{className:u}))},Hi=__webpack_require__(1704);const Ui=e=>{let{quote:t,name:n}=e;return(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Hi,alt:(0,o.__)("An image of a quote.","google-listings-and-ads"),width:"34",height:"34"}),(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__content",variant:"body"},t),(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__name"},n))};var Vi=()=>(0,s.createElement)(De,{className:"gla-get-started-customer-quotes-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{className:"gla-get-started-customer-quotes-card__title",variant:"title.medium"},(0,o.__)("21,000+ WooCommerce store owners like you already list products on Google for free","google-listings-and-ads"))),(0,s.createElement)(ae,{gap:0},(0,s.createElement)(Ui,{quote:(0,o.__)("Thank you Google and WooCommerce for creating this app. It’s so simple to use and connect your products to Merchant Center.","google-listings-and-ads"),name:(0,o.__)("joshualukewhite","google-listings-and-ads")}),(0,s.createElement)(Ui,{quote:(0,o.__)("It does everything smoothly. Perfect and must need add-on from WooCommerce. Some things are just “essentials”.","google-listings-and-ads"),name:(0,o.__)("Anonymous","google-listings-and-ads")}))),Wi=function(e){var t=e.label,n=e.children;return(0,s.createElement)("div",{className:"components-panel__header"},t&&(0,s.createElement)("h2",null,t),n)},Yi=(0,s.forwardRef)((function(e,t){var n=e.header,r=e.className,o=e.children,a=d()(r,"components-panel");return(0,s.createElement)("div",{className:a,ref:t},n&&(0,s.createElement)(Wi,{label:n}),o)}));function Ki(e){var t=Et((0,s.useState)((function(){return!(!e||"undefined"==typeof window||!window.matchMedia(e).matches)})),2),n=t[0],r=t[1];return(0,s.useEffect)((function(){if(e){var t=function(){return r(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&n}var Qi=__webpack_require__(4155),Zi="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,Xi=Qi.env.FORCE_REDUCED_MOTION||Zi?function(){return!0}:function(){return Ki("(prefers-reduced-motion: reduce)")};function Ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ts=function(e){return(0,s.createElement)("circle",e)},ns=function(e){return(0,s.createElement)("path",e)},rs=function(e){var t=e.className,n=e.isPressed,r=es(es({},c(e,["className","isPressed"])),{},{className:d()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1});return(0,s.createElement)("svg",r)},os=(0,s.createElement)(rs,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(ns,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),as=(0,s.createElement)(rs,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(ns,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),is=window.wp.deprecated,ss=__webpack_require__.n(is),ls=window.wp.dom,cs=window.wp.keycodes,us={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ds={">=":"min-width","<":"max-width"},gs={">=":function(e,t){return t>=e},"<":function(e,t){return t<e}},ps=(0,s.createContext)(null),fs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=(0,s.useContext)(ps),r=!n&&"(".concat(ds[t],": ").concat(us[e],"px)"),o=Ki(r);return n?gs[t](us[e],n):o};fs.__experimentalWidthProvider=ps.Provider;var ms=fs,hs=__webpack_require__(5464),ys=__webpack_require__.n(hs)(),vs=function(){return(0,s.useCallback)((function(e){e&&e.addEventListener("keydown",(function(t){if(t.keyCode===cs.TAB){var n=ls.focus.tabbable.find(e);if(n.length){var r=n[0],o=n[n.length-1];t.shiftKey&&t.target===r?(t.preventDefault(),o.focus()):(t.shiftKey||t.target!==o)&&n.includes(t.target)||(t.preventDefault(),r.focus())}}}))}),[])},bs=function(e){var t=(0,s.useRef)(),n=(0,s.useRef)(),r=(0,s.useRef)(e);return(0,s.useEffect)((function(){r.current=e}),[e]),(0,s.useCallback)((function(e){if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){var o=t.current.contains(t.current.ownerDocument.activeElement);if(t.current.isConnected&&!o)return;r.current?r.current():n.current.focus()}}),[])};function _s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=(0,s.useRef)(e);return(0,s.useEffect)((function(){t.current=e}),[e]),(0,s.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=ls.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}var ws=["button","submit"];function Es(e){var t=(0,s.useRef)(e);(0,s.useEffect)((function(){t.current=e}),[e]);var n=(0,s.useRef)(!1),r=(0,s.useRef)(),o=(0,s.useCallback)((function(){clearTimeout(r.current)}),[]);(0,s.useEffect)((function(){return function(){return o()}}),[]),(0,s.useEffect)((function(){e||o()}),[e,o]);var a=(0,s.useCallback)((function(e){var t=e.type,r=e.target;(0,ie.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,ie.includes)(ws,e.type)}return!1}(r)&&(n.current=!0)}),[]),i=(0,s.useCallback)((function(e){e.persist(),n.current||(r.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:a,onMouseUp:a,onTouchStart:a,onTouchEnd:a,onBlur:i}}var $s=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ss(e,t,n,r,a,i,s,l){var c=t.width;"left"===n&&(0,o.isRTL)()?n="right":"right"===n&&(0,o.isRTL)()&&(n="left"),"left"===r&&(0,o.isRTL)()?r="right":"right"===r&&(0,o.isRTL)()&&(r="left");var u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},g=e.left;"right"===r?g=e.right:"middle"!==i&&(g=u);var p=e.right;"left"===r?p=e.left:"middle"!==i&&(p=u);var f,m={popoverLeft:g,contentWidth:g-c>0?c:g},h={popoverLeft:p,contentWidth:p+c>window.innerWidth?window.innerWidth-p:c},y=n,v=null;if(!a&&!l)if("center"===n&&d.contentWidth===c)y="center";else if("left"===n&&m.contentWidth===c)y="left";else if("right"===n&&h.contentWidth===c)y="right";else{var b="left"==(y=m.contentWidth>h.contentWidth?"left":"right")?m.contentWidth:h.contentWidth;c>window.innerWidth&&(v=window.innerWidth),b!==c&&(y="center",d.popoverLeft=window.innerWidth/2)}if(f="center"===y?d.popoverLeft:"left"===y?m.popoverLeft:h.popoverLeft,s){var _=s.getBoundingClientRect();f=Math.min(f,_.right-c)}return{xAxis:y,popoverLeft:f,contentWidth:v}}function xs(e,t,n,r,o,a,i,s){var l=t.height;if(o){var c=o.getBoundingClientRect().top+l-i;if(e.top<=c)return{yAxis:n,popoverTop:Math.min(e.bottom,c)}}var u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);var d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},g={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l},f=n,m=null;if(!o&&!s)if("middle"===n&&d.contentHeight===l)f="middle";else if("top"===n&&g.contentHeight===l)f="top";else if("bottom"===n&&p.contentHeight===l)f="bottom";else{var h="top"==(f=g.contentHeight>p.contentHeight?"top":"bottom")?g.contentHeight:p.contentHeight;m=h!==l?h:null}return{yAxis:f,popoverTop:"middle"===f?d.popoverTop:"top"===f?g.popoverTop:p.popoverTop,contentHeight:m}}function Os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ps(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 As(e,t,n){return t&&Ps(e.prototype,t),n&&Ps(e,n),e}function Ns(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ts(e,t){if(t&&("object"===Si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rs(e)}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ms(e);if(t){var o=Ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ts(this,n)}}var Is=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,o=void 0===r?"lockscroll":r,a=0,i=0;function l(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](o),n.documentElement.classList[r](o),e||(t.scrollTop=i)}function c(){0===a&&l(!0),++a}function u(){1===a&&l(!1),--a}return function(e){Ns(n,e);var t=js(n);function n(){return Os(this,n),t.apply(this,arguments)}return As(n,[{key:"componentDidMount",value:function(){c()}},{key:"componentWillUnmount",value:function(){u()}},{key:"render",value:function(){return null}}]),n}(s.Component)}();function Fs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ms(e)););return e}function Ds(){return Ds="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Fs(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ds.apply(this,arguments)}function Ls(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||Pn(e)||_t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}window.wp.warning;var Gs=__webpack_require__(4155),Bs=(0,s.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==Gs&&Gs.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}});var qs=(0,s.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),zs=(qs.Provider,qs.Consumer);s.Component;var Hs=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Rs(e)),e}return As(o,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||Ds(Ms(o.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,i=(0,ie.map)(a(n,this),(function(e){var t=e.occurrence,n=(0,ie.isFunction)(e.children)?e.children(o):e.children;return s.Children.map(n,(function(e,n){if(!e||(0,ie.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return(0,s.cloneElement)(e,{key:r})}))})).filter((0,ie.negate)(s.isEmptyElement));return(0,s.createElement)(s.Fragment,null,(0,ie.isFunction)(t)?t(i):i)}}]),o}(s.Component),Us=function(e){return(0,s.createElement)(zs,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,o=t.getFills;return(0,s.createElement)(Hs,l({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))}))},Vs=0;function Ws(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=function(e){var t=(0,s.useContext)(qs),n=t.getSlot,r=t.subscribe,o=Et((0,s.useState)(n(e)),2),a=o[0],i=o[1];return(0,s.useEffect)((function(){return i(n(e)),r((function(){i(n(e))}))}),[e]),a}(t),i=(0,s.useRef)({name:t,children:n});return i.current.occurrence||(i.current.occurrence=++Vs),(0,s.useLayoutEffect)((function(){return r(t,i.current),function(){return o(t,i.current)}}),[]),(0,s.useLayoutEffect)((function(){i.current.children=n,a&&a.forceUpdate()}),[n]),(0,s.useLayoutEffect)((function(){t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,r(t,i.current))}),[t]),a&&a.node?((0,ie.isFunction)(n)&&(n=n(a.props.fillProps)),(0,s.createPortal)(n,a.node)):null}var Ys=function(e){return(0,s.createElement)(zs,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return(0,s.createElement)(Ws,l({},e,{registerFill:n,unregisterFill:r}))}))};function Ks(e){var t=e.name,n=e.fillProps,r=void 0===n?{}:n,o=e.as,a=void 0===o?"div":o,i=c(e,["name","fillProps","as"]),u=(0,s.useContext)(Bs),d=(0,s.useRef)();return(0,s.useLayoutEffect)((function(){return u.registerSlot(t,d,r),function(){u.unregisterSlot(t,d)}}),[u.registerSlot,u.unregisterSlot,t]),(0,s.useLayoutEffect)((function(){u.updateSlot(t,r)})),(0,s.createElement)(a,l({ref:d},i))}function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xs(e){var t=(0,s.useContext)(Bs),n=t.slots[e]||{},r=t.fills[e],o=(0,s.useMemo)((function(){return r||[]}),[r]),a=(0,s.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),i=(0,s.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=(0,s.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),c=(0,s.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return Zs(Zs({},n),{},{updateSlot:a,unregisterSlot:i,fills:o,registerFill:l,unregisterFill:c})}function Js(e){var t,n=e.name,r=e.children,o=Xs(n),a=(0,s.useRef)({rerender:(t=Et((0,s.useState)({}),2)[1],function(){return t({})})});return(0,s.useEffect)((function(){return o.registerFill(a),function(){o.unregisterFill(a)}}),[o.registerFill,o.unregisterFill]),o.ref&&o.ref.current?("function"==typeof r&&(r=r(o.fillProps)),(0,s.createPortal)(r,o.ref.current)):null}function el(e){var t=e.bubblesVirtually,n=c(e,["bubblesVirtually"]);return t?(0,s.createElement)(Ks,n):(0,s.createElement)(Us,n)}function tl(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ys,e),(0,s.createElement)(Js,e))}var nl="Popover";function rl(e,t){var n=t.defaultView,r=n.frameElement;if(!r)return e;var o=r.getBoundingClientRect();return new n.DOMRect(e.left+o.left,e.top+o.top,e.width,e.height)}function ol(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,s=r.paddingRight,l=o?parseInt(o,10):0,c=a?parseInt(a,10):0,u=i?parseInt(i,10):0,d=s?parseInt(s,10):0;return{x:e.left+u,y:e.top+l,width:e.width-u-d,height:e.height-l-c,left:e.left+u,right:e.right-d,top:e.top+l,bottom:e.bottom-c}}function al(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function sl(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ll=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,o=e.children,a=e.className,i=e.noArrow,u=void 0===i||i,g=e.isAlternate,p=e.position,m=void 0===p?"bottom right":p,h=(e.range,e.focusOnMount),y=void 0===h?"firstElement":h,v=e.anchorRef,b=e.shouldAnchorIncludePadding,_=e.anchorRect,w=e.getAnchorRect,E=e.expandOnMobile,$=e.animate,C=void 0===$||$,k=e.onClickOutside,S=e.onFocusOutside,x=e.__unstableStickyBoundaryElement,O=e.__unstableSlotName,P=void 0===O?nl:O,A=e.__unstableObserveElement,N=e.__unstableBoundaryParent,R=e.__unstableForcePosition,T=c(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableStickyBoundaryElement","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent","__unstableForcePosition"]),M=(0,s.useRef)(null),j=(0,s.useRef)(null),I=(0,s.useRef)(),F=ms("medium","<"),D=Et((0,s.useState)(),2),L=D[0],G=D[1],B=Xs(P),q=E&&F,z=Et(ys(),2),H=z[0],U=z[1];u=q||u,(0,s.useLayoutEffect)((function(){if(q)return sl(I.current,"is-without-arrow",u),sl(I.current,"is-alternate",g),al(I.current,"data-x-axis"),al(I.current,"data-y-axis"),il(I.current,"top"),il(I.current,"left"),il(j.current,"maxHeight"),void il(j.current,"maxWidth");var e=function(){if(I.current&&j.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return rl((0,ls.getRectangleFromRange)(r),r.endContainer.ownerDocument);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){var a=rl(r.getBoundingClientRect(),r.ownerDocument);return o?a:ol(a,r)}var i=r.top,s=r.bottom,l=i.getBoundingClientRect(),c=s.getBoundingClientRect(),u=rl(new window.DOMRect(l.left,l.top,l.width,c.bottom-l.top),i.ownerDocument);return o?u:ol(u,r)}if(e.current){var d=e.current.parentNode,g=d.getBoundingClientRect();return o?g:ol(g,d)}}(M,_,w,v,b);if(e){var t,n,r=I.current,o=r.offsetParent,a=r.ownerDocument,i=0;if(o&&o!==a.body){var s=o.getBoundingClientRect();i=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}N&&(t=null===(n=I.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode);var l=function(e,t){var n=arguments.length>3?arguments[3]:void 0,r=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,i=Et((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top").split(" "),3),s=i[0],l=i[1],c=void 0===l?"center":l,u=i[2],d=xs(e,t,s,u,n,0,r,a);return ks(ks({},Ss(e,t,c,u,n,d.yAxis,o,a)),d)}(e,U.height?U:j.current.getBoundingClientRect(),m,x,I.current,i,t,R),c=l.popoverTop,d=l.popoverLeft,p=l.xAxis,f=l.yAxis,h=l.contentHeight,y=l.contentWidth;"number"==typeof c&&"number"==typeof d&&(il(I.current,"top",c+"px"),il(I.current,"left",d+"px")),sl(I.current,"is-without-arrow",u||"center"===p&&"middle"===f),sl(I.current,"is-alternate",g),al(I.current,"data-x-axis",p),al(I.current,"data-y-axis",f),il(j.current,"maxHeight","number"==typeof h?h+"px":""),il(j.current,"maxWidth","number"==typeof y?y+"px":""),G(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))}}};e();var t,n=I.current.ownerDocument,r=n.defaultView,o=r.setInterval(e,500),a=function(){r.cancelAnimationFrame(t),t=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);var i,s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(v);return s&&s!==n&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),A&&(i=new r.MutationObserver(e)).observe(A,{attributes:!0}),function(){r.clearInterval(o),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(t),s&&s!==n&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),i&&i.disconnect()}}),[q,_,w,v,b,m,U,x,A,N]);var V=vs(),W=bs(),Y=_s(y),K=Es((function(e){if(S)S(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),ss()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()})),Q=[I,y?V:null,y?W:null,y?Y:null],Z=(0,s.useCallback)(nn(Q),Q),X=Boolean(C&&L)&&function(e){if("loading"===e.type)return d()("components-animate__loading");var t=e.type,n=e.origin,r=void 0===n?function(e){return"appear"===e?"top":"left"}(t):n;if("appear"===t){var o,a=Et(r.split(" "),2),i=a[0],s=a[1],l=void 0===s?"center":s;return d()("components-animate__appear",(f(o={},"is-from-"+l,"center"!==l),f(o,"is-from-"+i,"middle"!==i),o))}return"slide-in"===t?d()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:L}),J=(0,s.createElement)("div",l({className:d()("components-popover",a,X,{"is-expanded":q,"is-without-arrow":u,"is-alternate":g})},T,{onKeyDown:function(e){e.keyCode===cs.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)}},K,{ref:Z,tabIndex:"-1"}),q&&(0,s.createElement)(Is,null),q&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},t),(0,s.createElement)(xl,{className:"components-popover__close",icon:$s,onClick:n})),(0,s.createElement)("div",{ref:j,className:"components-popover__content"},(0,s.createElement)("div",{style:{position:"relative"}},H,o)));return B.ref&&(J=(0,s.createElement)(tl,{name:P},J)),v||_?J:(0,s.createElement)("span",{ref:M},J)};ll.Slot=function(e){var t=e.name,n=void 0===t?nl:t;return(0,s.createElement)(el,{bubblesVirtually:!0,name:n,className:"popover-slot"})};var cl=ll,ul=function(e){var t,n,r=e.shortcut,o=e.className;return r?((0,ie.isString)(r)&&(t=r),(0,ie.isObject)(r)&&(t=r.display,n=r.ariaLabel),(0,s.createElement)("span",{className:o,"aria-label":n},t)):null};function dl(e,t){var n=(0,m.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,m.useRef)(!0),o=(0,m.useRef)(n),a=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,m.useEffect)((function(){r.current=!1,o.current=a}),[a]),a.result}function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fl=(0,s.createElement)("div",{className:"event-catcher"}),ml=function(e){var t=e.eventHandlers,n=e.child,r=e.childrenWithPopover;return(0,s.cloneElement)((0,s.createElement)("span",{className:"disabled-element-wrapper"},(0,s.cloneElement)(fl,t),(0,s.cloneElement)(n,{children:r}),","),t)},hl=function(e){var t=e.child,n=e.eventHandlers,r=e.childrenWithPopover;return(0,s.cloneElement)(t,pl(pl({},n),{},{children:r}))},yl=function(e,t,n){if(1===s.Children.count(e)){var r=s.Children.only(e);"function"==typeof r.props[t]&&r.props[t](n)}},vl=function(e){var t=e.children,n=e.position,r=e.text,o=e.shortcut,a=Et((0,s.useState)(!1),2),i=a[0],l=a[1],c=Et((0,s.useState)(!1),2),u=c[0],d=c[1],g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dl((function(){return ie.debounce.apply(void 0,t)}),t);return(0,s.useEffect)((function(){return function(){return r.cancel()}}),[r]),r}(d,700),p=function(e){yl(t,"onMouseDown",e),document.addEventListener("mouseup",h),l(!0)},f=function(e){yl(t,"onMouseUp",e),document.removeEventListener("mouseup",h),l(!1)},m=function(e){return"mouseUp"===e?f:"mouseDown"===e?p:void 0},h=m("mouseUp"),y=function(e,n){return function(r){if(yl(t,e,r),!(r.currentTarget.disabled||"focus"===r.type&&i)){g.cancel();var o=(0,ie.includes)(["focus","mouseenter"],r.type);o!==u&&(n?g(o):d(o))}}},v=function(){g.cancel()};if((0,s.useEffect)((function(){return v}),[]),1!==s.Children.count(t))return t;var b={onMouseEnter:y("onMouseEnter",!0),onMouseLeave:y("onMouseLeave"),onClick:y("onClick"),onFocus:y("onFocus"),onBlur:y("onBlur"),onMouseDown:m("mouseDown")},_=s.Children.only(t),w=_.props,E=w.children,$=w.disabled?ml:hl,C=function(e){var t=e.grandchildren,n=e.isOver,r=e.position,o=e.text,a=e.shortcut;return(0,s.concatChildren)(t,n&&(0,s.createElement)(cl,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,s.createElement)(ul,{className:"components-tooltip__shortcut",shortcut:a})))}(pl({grandchildren:E},{isOver:u,position:n,text:r,shortcut:o}));return $({child:_,eventHandlers:b,childrenWithPopover:C})},bl=function(e){var t=e.icon,n=e.className,r=c(e,["icon","className"]),o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,s.createElement)("span",l({className:o},r))};function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var El=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,o=c(e,["icon","size"]);if("string"==typeof n)return(0,s.createElement)(bl,l({icon:n},o));if(n&&bl===n.type)return(0,s.cloneElement)(n,wl({},o));var a=r||24;if("function"==typeof n)return n.prototype instanceof s.Component?(0,s.createElement)(n,wl({size:a},o)):n(wl({size:a},o));if(n&&("svg"===n.type||n.type===rs)){var i=wl(wl({width:a,height:a},n.props),o);return(0,s.createElement)(rs,i)}return(0,s.isValidElement)(n)?(0,s.cloneElement)(n,wl({size:a},o)):n};function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cl=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=c(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=c(e,["as"]);return"function"==typeof r.children?r.children(r):(0,s.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:d()("components-visually-hidden",r)},o))};function kl(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}var Sl=["onMouseDown","onClick"],xl=(0,s.forwardRef)((function(e,t){var n=e.href,r=e.target,o=e.isPrimary,a=e.isSmall,i=e.isTertiary,u=e.isPressed,g=e.isBusy,p=e.isDefault,f=e.isSecondary,m=e.isLink,h=e.isDestructive,y=e.className,v=e.disabled,b=e.icon,_=e.iconPosition,w=void 0===_?"left":_,E=e.iconSize,$=e.showTooltip,C=e.tooltipPosition,k=e.shortcut,S=e.label,x=e.children,O=e.text,P=e.__experimentalIsFocusable,A=e.describedBy,N=c(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconPosition","iconSize","showTooltip","tooltipPosition","shortcut","label","children","text","__experimentalIsFocusable","describedBy"]);p&&ss()("Button isDefault prop",{alternative:"isSecondary"});var R=d()("components-button",y,{"is-secondary":p||f,"is-primary":o,"is-small":a,"is-tertiary":i,"is-pressed":u,"is-busy":g,"is-link":m,"is-destructive":h,"has-text":!!b&&!!x,"has-icon":!!b}),T=v&&!P,M=void 0===n||T?"button":"a",j="a"===M?{href:n,target:r}:{type:"button",disabled:T,"aria-pressed":u};if(v&&P){j["aria-disabled"]=!0;var I,F=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kl(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)?kl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}(Sl);try{for(F.s();!(I=F.n()).done;)N[I.value]=function(e){e.stopPropagation(),e.preventDefault()}}catch(e){F.e(e)}finally{F.f()}}var D=!T&&($&&S||k||!!S&&(!x||(0,ie.isArray)(x)&&!x.length)&&!1!==$),L=A?(0,ie.uniqueId)():null,G=N["aria-describedby"]||L,B=(0,s.createElement)(M,l({},j,N,{className:R,"aria-label":N["aria-label"]||S,"aria-describedby":G,ref:t}),b&&"left"===w&&(0,s.createElement)(El,{icon:b,size:E}),O&&(0,s.createElement)(s.Fragment,null,O),b&&"right"===w&&(0,s.createElement)(El,{icon:b,size:E}),x);return D?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(vl,{text:A||S,shortcut:k,position:C},B),A&&(0,s.createElement)(Cl,null,(0,s.createElement)("span",{id:L},A))):(0,s.createElement)(s.Fragment,null,B,A&&(0,s.createElement)(Cl,null,(0,s.createElement)("span",{id:L},A)))}));function Ol(e){return null!=e}function Pl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(Ol))&&void 0!==e?e:n}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rl={initial:void 0,fallback:""},Tl=function(e,t){var n=(0,s.useRef)(!1);(0,s.useEffect)((function(){if(n.current)return e();n.current=!0}),t)},Ml=(0,s.forwardRef)((function(e,t){var n=e.isOpened,r=e.icon,o=e.title,a=c(e,["isOpened","icon","title"]);return o?(0,s.createElement)("h2",{className:"components-panel__body-title"},(0,s.createElement)(xl,l({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),(0,s.createElement)("span",{"aria-hidden":"true"},(0,s.createElement)(El,{className:"components-panel__arrow",icon:n?os:as})),o,r&&(0,s.createElement)(El,{icon:r,className:"components-panel__icon",size:20}))):null})),jl=(0,s.forwardRef)((function(e,t){var n=e.buttonProps,r=void 0===n?{}:n,o=e.children,a=e.className,i=e.icon,c=e.initialOpen,u=e.onToggle,g=void 0===u?ie.noop:u,p=e.opened,f=e.title,m=e.scrollAfterOpen,h=void 0===m||m,y=Et(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rl,n=Nl(Nl({},Rl),t),r=n.initial,o=n.fallback,a=Et((0,s.useState)(e),2),i=a[0],l=a[1],c=Ol(e);return(0,s.useEffect)((function(){c&&i&&l(void 0)}),[c,i]),[Pl([e,i,r],o),function(e){c||l(e)}]}(p,{initial:void 0===c||c}),2),v=y[0],b=y[1],_=(0,s.useRef)(),w=Xi()?"auto":"smooth",E=(0,s.useRef)();E.current=h,Tl((function(){var e;v&&E.current&&null!==(e=_.current)&&void 0!==e&&e.scrollIntoView&&_.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:w})}),[v,w]);var $=d()("components-panel__body",a,{"is-opened":v});return(0,s.createElement)("div",{className:$,ref:nn([_,t])},(0,s.createElement)(Ml,l({icon:i,isOpened:v,onClick:function(e){e.preventDefault();var t=!v;b(t),g(t)},title:f},r)),"function"==typeof o?o({opened:v}):v&&o)}));jl.displayName="PanelBody";var Il=jl,Fl=function(e){var t=e.className,n=e.children,r=d()("components-panel__row",t);return(0,s.createElement)("div",{className:r},n)},Dl=__webpack_require__(4940);const Ll=(e,t,n)=>r=>{(0,Dl.recordEvent)(e,{id:t,action:r?"expand":"collapse",context:n})};function Gl(e){let{trackName:t,faqItems:n,className:r,context:a}=e;return(0,s.createElement)(Yi,{className:d()("gla-faqs-panel",r),header:(0,o.__)("Frequently asked questions","google-listings-and-ads")},n.map((e=>{let{trackId:n,question:r,answer:o}=e;return(0,s.createElement)(Il,{key:n,title:r,initialOpen:!1,onToggle:Ll(t,n,a)},(0,s.createElement)(Fl,null,o))})))}var Bl=window.wc.components,ql=e=>{const{eventName:t,eventProps:n,onClick:r=(()=>{}),...o}=e;return(0,s.createElement)(Bl.Link,l({},o,{onClick:e=>{t&&(0,Dl.recordEvent)(t,n),r(e)}}))},zl=e=>{const{context:t,linkId:n,href:r,...o}=e;return(0,s.createElement)(ql,l({eventProps:{context:t,link_id:n,href:r},type:"external",target:"_blank",href:r},o,{eventName:"gla_documentation_link_click"}))};const Hl=[{trackId:"what-do-i-need-to-get-started",question:(0,o.__)("What do I need to get started?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("In order to sync your WooCommerce store with Google and begin showcasing your products online, you will need to provide the following during setup; Google account access, target audience, shipping information, tax rate information (required for US only), and ensure your store is running on a compatible PHP version. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"general-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/#general-requirements"})}))},{trackId:"what-if-i-already-have-free-listings",question:(0,o.__)("What if I already have Google listings or ads set up? Will syncing my store replace my current Google listings?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Once you link an existing account to connect your store, your Shopping ads and free listings will stop running. You’ll need to re-upload your feed and product data in order to run Shopping ads and show free listings.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Learn more about claiming URLs <link>here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"claiming-urls",href:"https://support.google.com/merchants/answer/7527436"})})),(0,s.createElement)("p",null,(0,o.__)("If you have an existing Content API feed, it will not be changed, overwritten or deleted by this WooCommerce integration. Instead, products will be added to your existing Content API feed.","google-listings-and-ads")))},{trackId:"is-my-store-ready-to-sync-with-google",question:(0,o.__)("Is my store ready to sync with Google?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("In order to meet the Google Merchant Center requirements make sure your website has the following; secure checkout process and payment information, refund and return policies, billing terms and conditions, business contact information. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"google-merchant-center-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/#google-merchant-center-requirements"})}))},{trackId:"what-is-a-performance-max-campaign",question:(0,o.__)("What is a Performance Max campaign?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Performance Max campaigns make it easy to connect your WooCommerce store to Google Shopping ads so you can showcase your products to shoppers across Google Search, Maps, Shopping, YouTube, Gmail, the Display Network and Discover feed to drive traffic and sales for your store. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"performance-max",href:"https://woocommerce.com/document/google-listings-and-ads/#google-performance-max-campaigns"})}))},{trackId:"what-are-free-listings",question:(0,o.__)("What are free listings?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Google Free Listings allows stores to showcase eligible products to shoppers looking for what you offer and drive traffic to your store with Google’s free listings on the Shopping tab. Your products can also appear on Google Search, Google Images, and Gmail if you’re selling in the United States. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"free-listings",href:"https://woocommerce.com/document/google-listings-and-ads/#free-listings-on-google"})}))},{trackId:"where-to-track-free-listings-and-performance-max-campaign-performance",question:(0,o.__)("Where can I track my free listings and Performance Max campaign performance?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Once your free listings and Performance Max campaigns are set up, you will be able to track your performance straight from your WooCommerce dashboard. You can view your reports yearly, quarterly, monthly, weekly, or daily. The following metrics will be visible within your report: conversions, clicks, impressions, total sales and total spend. <link>Learn more.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"campaign-analytics",href:"https://woocommerce.com/document/google-listings-and-ads/#getting-started-with-campaign-analytics"})}))},{trackId:"how-to-sync-products-to-google-free-listings",question:(0,o.__)("How do I sync my products to Google free listings?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,o.__)("The Google Listings and Ads plugin allows you to upload your store and product data to Google. Your products will sync automatically to make relevant information available for free listings, Google Ads, and other Google services. You can create a new Merchant Center account or link an existing account to connect your store and list products across Google.","google-listings-and-ads"))},{trackId:"can-i-run-both-shopping-ads-and-free-listings-campaigns",question:(0,o.__)("Can I run both Shopping ads and free listings campaigns at the same time?","google-listings-and-ads"),answer:(0,s.createElement)("p",null,(0,o.__)("Yes, you can run both at the same time, and we recommend it! In the US, advertisers running free listings and ads together have seen an average of over 50% increase in clicks and over 100% increase in impressions on both free listings and ads on the Shopping tab. Your store is automatically opted into free listings automatically and can choose to run a paid Performance Max campaign.","google-listings-and-ads"))},{trackId:"how-can-i-get-the-ad-credit-offer",question:(0,o.__)("How can I get the $500 ad credit offer?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Create a new Google Ads account through Google Listings & Ads and a promotional code will be automatically applied to your account. You’ll have 60 days to spend $500 to qualify for the $500 ads credit.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Ad credit amounts vary by country and region. Full terms and conditions can be found <link>here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"terms-and-conditions-of-google-ads-coupons",href:"https://www.google.com/ads/coupons/terms/"})})))}];var Ul=()=>(0,s.createElement)(Gl,{className:"gla-get-started-faqs",trackName:"gla_faq",context:"get-started",faqItems:Hl}),Vl=__webpack_require__(2454),Wl=__webpack_require__(9648),Yl=__webpack_require__(434);const Kl=e=>{let{linkId:t,href:n}=e;return(0,s.createElement)(Ii,{className:"gla-get-started-features-card__learn-more",variant:"body"},(0,s.createInterpolateElement)((0,o.__)("<link>Learn More →</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started",linkId:t,href:n})}))};var Ql=()=>(0,s.createElement)(De,{className:"gla-get-started-features-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{className:"gla-get-started-features-card__title",variant:"title.medium"},(0,o.__)("49% of shoppers surveyed say they use Google to discover or find a new item or product","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__description",variant:"body"},(0,o.__)("With Google Listings & Ads, connect with the right shoppers at the right moment when they’re looking to buy products like yours.","google-listings-and-ads"))),(0,s.createElement)(ae,{gap:0},(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Vl,alt:(0,o.__)("Drawing of WooCommerce and Google","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Show products automatically on Google for free","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("When your products are added and approved, they’ll be eligible for free listings, reaching shoppers across Google’s network.","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-free-listing-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#free-listings-on-google"})),(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Wl,alt:(0,o.__)("Drawing of a mobile and product ads","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Promote products and drive more sales with paid ads","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("Connect your Google Ads account, choose a budget, and Google will optimize your ads so they appear at the right time and place. ","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-google-ads-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#google-performance-max-campaigns"})),(0,s.createElement)(Li,null,(0,s.createElement)("img",{src:Yl,alt:(0,o.__)("Drawing of a bar and line charts heading up","google-listings-and-ads"),width:"183",height:"100"}),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__label",variant:"label"},(0,o.__)("Track performance straight from your store dashboard","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-features-card__content",variant:"body"},(0,o.__)("Real-time reporting all within your WooCommerce dashboard means you know how your campaigns are performing at all times.","google-listings-and-ads")),(0,s.createElement)(Kl,{linkId:"get-started-features-dashboard-learn-more",href:"https://woocommerce.com/document/google-listings-and-ads/#getting-started-with-campaign-analytics"}))));const Zl=window.glaData,Xl="report-source",Jl="paid",ec="free",tc=Jl,nc="programs",rc="submission-success",oc="campaign-creation-success",ac="gla-can-onboarding-setup-ces-prompt-open",ic="GOOGLE_DISCONNECTED",sc="flat_rate",lc="product",cc="account",uc="request-review";var dc=__webpack_require__(4682),gc=e=>{const{className:t,disabled:n,loading:r,eventName:o,eventProps:a,text:i,onClick:c=(()=>{}),...u}=e,g=["app-button",t];let p;return r&&(p=(0,s.createElement)(Bl.Spinner,null)),i&&(p=(0,s.createElement)(s.Fragment,null,r&&(0,s.createElement)(Bl.Spinner,null),i),u.icon&&g.push("app-button--icon-with-text"),"right"===u.iconPosition&&g.push("app-button--icon-position-right")),(0,s.createElement)(xl,l({className:d()(...g),disabled:n||r,text:p,onClick:function(){o&&(0,Dl.recordEvent)(o,a),c(...arguments)}},u))},pc=window.wc.navigation;const fc="/google/dashboard",mc="/google/settings",hc="/free-listings/edit",yc="/campaigns/edit",vc="/campaigns/create",bc="/edit-phone-number",_c="/edit-store-address",wc="/reconnect-wpcom-account",Ec="/reconnect-google-account",$c=fc,Cc=mc,kc=()=>(0,pc.getNewPath)({subpath:vc},$c),Sc=()=>(0,pc.getNewPath)(null,"/google/setup-mc",null),xc=()=>(0,pc.getNewPath)(null,$c,null),Oc=()=>(0,pc.getNewPath)(null,Cc,null),Pc=e=>{let t;switch(e){case"JETPACK_DISCONNECTED":t=wc;break;case ic:t=Ec;break;default:return}return(0,pc.getNewPath)({subpath:t},Cc,null)};var Ac=()=>{const e=!Zl.mcSupportedLanguage;return(0,s.createElement)(De,{className:"gla-get-started-card",isBorderless:!0},(0,s.createElement)(ze,{className:"motivation-image"},(0,s.createElement)("img",{src:dc,alt:(0,o.__)("Google Shopping search results example","google-listings-and-ads"),width:"279",height:"185"})),(0,s.createElement)(qe,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-card__title"},(0,o.__)("Get your products in front of more shoppers with Google Listings & Ads","google-listings-and-ads")),(0,s.createElement)(gc,{isPrimary:!0,disabled:e,href:Sc(),eventName:"gla_setup_mc",eventProps:{target:"set_up_free_listings",trigger:"click",context:"get-started"}},(0,o.__)("Start listing products →","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-card__terms-notice"},(0,s.createInterpolateElement)((0,o.__)("By clicking ‘Start listing products‘, you agree to our <link>Terms of Service.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started",linkId:"wp-terms-of-service",href:"https://wordpress.com/tos/"})}))))},Nc=function(e){return(0,s.createElement)("div",{className:"components-tip"},(0,s.createElement)(rs,{width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),(0,s.createElement)("p",null,e.children))};const Rc={allow:"fullscreen",allowtransparency:"true",scrolling:"no",width:"100%",height:"100%",className:"wistia_embed",name:"wistia_embed"};var Tc=e=>{const{id:t,src:n,title:r,iframeProps:a={}}=e,[i,c]=(0,s.useState)(!1);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie.noop;(0,s.useEffect)((()=>{const n=document.createElement("script");return n.src=e,n.async=!0,document.body.appendChild(n),n.onload=()=>{t()},()=>{document.body.removeChild(n)}}),[e,t])}("https://fast.wistia.com/assets/external/E-v1.js",(0,s.useCallback)((()=>{window._wq&&window._wq.push({id:t,onReady:e=>{e.bind("play",(()=>c(!0)))}})}),[t,c])),(0,s.createElement)("div",{className:d()("gla-wistia-video",i?"is-playing":"")},(0,s.createElement)("div",{className:"gla-wistia-video__container"},(0,s.createElement)("iframe",l({src:n,title:r?(0,o.sprintf)(// translators: %s: The title of the iframe.
|
2 |
+
(0,o.__)("%s Video","google-listings-and-ads"),r):(0,o.__)("Wistia Video","google-listings-and-ads")},Rc,a))))},Mc=__webpack_require__(5314),jc=()=>{const e=!Zl.mcSupportedLanguage;return(0,s.createElement)(De,{className:"gla-get-started-with-video-card",isBorderless:!0},(0,s.createElement)(zi,null,(0,s.createElement)("p",null,(0,o.__)("The official extension for WooCommerce, built in collaboration with","google-listings-and-ads")),(0,s.createElement)("img",{src:Mc,alt:(0,o.__)("Google Logo","google-listings-and-ads"),width:"71",height:"24"})),(0,s.createElement)(Li,{className:"motivation-video"},(0,s.createElement)(Tc,{id:"lpvgtsjwrg",src:"https://fast.wistia.net/embed/iframe/lpvgtsjwrg?seo=false&videoFoam=true",title:"WooCommerce-Google-Listings-Ads"})),(0,s.createElement)(qe,null,(0,s.createElement)(Ii,{variant:"title.medium",className:"gla-get-started-with-video-card__title"},(0,o.__)("Reach new customers across Google with free product listings and paid ads","google-listings-and-ads")),(0,s.createElement)(Ii,{variant:"body",className:"gla-get-started-with-video-card__description"},(0,o.__)("Sync your products directly to Google, manage your product feed, and create Google Ad campaigns–without leaving your WooCommerce dashboard. The official extension, built in collaboration with Google.","google-listings-and-ads")),(0,s.createElement)(gc,{className:"gla-get-started-with-video-card__button",isPrimary:!0,disabled:e,href:Sc(),eventName:"gla_setup_mc",eventProps:{target:"set_up_free_listings",trigger:"click",context:"get-started-with-video"}},(0,o.__)("Start listing products →","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-with-video-card__hint"},(0,o.__)("Estimated setup time: 15 min","google-listings-and-ads")),(0,s.createElement)(Ii,{className:"gla-get-started-with-video-card__terms-notice",variant:"body"},(0,s.createInterpolateElement)((0,o.__)("By clicking ‘Start listing products’, you agree to our <link>Terms of Service.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"get-started-with-video",linkId:"wp-terms-of-service",href:"https://wordpress.com/tos/"})}))),(0,s.createElement)(Nc,null,(0,o.__)("If you’re already using another extension to manage your product feed with Google, make sure to deactivate or uninstall it first to prevent duplicate product feeds.","google-listings-and-ads")))},Ic=window.wp.a11y,Fc=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,a=e.children,i=e.spokenMessage,l=void 0===i?a:i,c=e.onRemove,u=void 0===c?ie.noop:c,g=e.isDismissible,p=void 0===g||g,f=e.actions,m=void 0===f?[]:f,h=e.politeness,y=void 0===h?function(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}(r):h,v=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((function(){n&&(0,Ic.speak)(n,t)}),[n,t])}(l,y);var b=d()(t,"components-notice","is-"+r,{"is-dismissible":p});return v&&(a=(0,s.createElement)(s.RawHTML,null,a)),(0,s.createElement)("div",{className:b},(0,s.createElement)("div",{className:"components-notice__content"},a,m.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,l=e.onClick,c=e.url;return(0,s.createElement)(xl,{key:t,href:c,isPrimary:o,isSecondary:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:l,className:d()("components-notice__action",n)},r)}))),p&&(0,s.createElement)(xl,{className:"components-notice__dismiss",icon:$s,label:(0,o.__)("Dismiss this notice"),onClick:u,showTooltip:!1}))},Dc=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));const Lc="wc/gla";var Gc,Bc,qc=window.wp.dataControls,zc=window.wp.apiFetch,Hc=__webpack_require__.n(zc),Uc="RECEIVE_SHIPPING_RATES",Vc="UPSERT_SHIPPING_RATES",Wc="DELETE_SHIPPING_RATES",Yc="RECEIVE_SHIPPING_TIMES",Kc="UPSERT_SHIPPING_TIMES",Qc="DELETE_SHIPPING_TIMES",Zc="RECEIVE_SETTINGS",Xc="SAVE_SETTINGS",Jc="RECEIVE_ACCOUNTS_JETPACK",eu="RECEIVE_ACCOUNTS_GOOGLE",tu="RECEIVE_ACCOUNTS_GOOGLE_ACCESS",nu="RECEIVE_ACCOUNTS_GOOGLE_MC",ru="RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING",ou="RECEIVE_ACCOUNTS_GOOGLE_ADS",au="DISCONNECT_ACCOUNTS_GOOGLE",iu="DISCONNECT_ACCOUNTS_GOOGLE_ADS",su="DISCONNECT_ACCOUNTS_ALL",lu="RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS",cu="RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING",uu="RECEIVE_MC_CONTACT_INFORMATION",du="VERIFIED_MC_PHONE_NUMBER",gu="RECEIVE_MC_COUNTRIES_AND_CONTINENTS",pu="RECEIVE_TARGET_AUDIENCE",fu="SAVE_TARGET_AUDIENCE",mu="RECEIVE_ADS_CAMPAIGNS",hu="CREATE_ADS_CAMPAIGN",yu="UPDATE_ADS_CAMPAIGN",vu="DELETE_ADS_CAMPAIGN",bu="RECEIVE_MC_SETUP",_u="RECEIVE_REPORT",wu="RECEIVE_MC_PRODUCT_STATISTICS",Eu="RECEIVE_MC_REVIEW_REQUEST",$u="RECEIVE_MC_ISSUES",Cu="RECEIVE_MC_PRODUCT_FEED",ku="UPDATE_MC_PRODUCTS_VISIBILITY";function Su(e){const t=e.targeted_locations.length>0,n=t?e.targeted_locations:[e.country];return{...e,allowMultiple:t,displayCountries:n}}function xu(e,t){const{createNotice:n}=(0,dn.dispatch)("core/notices");401!==e.statusCode&&n("error",t),console.log(e)}function*Ou(){try{const e=(yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates"})).map((e=>({...e,rate:Number(e.rate)})));return{type:Uc,shippingRates:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading shipping rates.","google-listings-and-ads"))}}function*Pu(e){const t=(yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates/batch",method:"POST",data:{rates:e}})).success.map((e=>({...e.rate,rate:Number(e.rate.rate)})));return{type:Vc,shippingRates:t}}function*Au(e){return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/rates/batch",method:"DELETE",data:{ids:e}}),{type:Wc,ids:e}}function*Nu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times"}),t=Object.values(e).map((e=>({countryCode:e.country_code,time:Number(e.time)})));return{type:Yc,shippingTimes:t}}catch(e){yield xu(e,(0,o.__)("There was an error loading shipping times.","google-listings-and-ads"))}}function*Ru(e){const{countryCodes:t,time:n}=e;try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times/batch",method:"POST",data:{country_codes:t,time:n}}),{type:Kc,shippingTime:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to add / update shipping times. Please try again later.","google-listings-and-ads"))}}function*Tu(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/shipping/times/batch",method:"DELETE",data:{country_codes:e}}),{type:Qc,countryCodes:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to delete shipping times. Please try again later.","google-listings-and-ads"))}}function*Mu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/settings"});return{type:Zc,settings:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading merchant center settings.","google-listings-and-ads"))}}function*ju(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/settings",method:"POST",data:e}),{type:Xc,settings:e}}catch(e){yield xu(e,(0,o.__)("There was an error trying to save settings. Please try again later.","google-listings-and-ads"))}}function*Iu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/jetpack/connected"});return{type:Jc,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Jetpack account info.","google-listings-and-ads"))}}function*Fu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/google/connected"});return{type:eu,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google account info.","google-listings-and-ads"))}}function Du(e){return{type:tu,data:e}}function*Lu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/connection"});return{type:nu,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Merchant Center account info.","google-listings-and-ads"))}}function*Gu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/accounts"});return{type:ru,accounts:e}}catch(e){yield xu(e,(0,o.__)("There was an error getting your Google Merchant Center accounts.","google-listings-and-ads"))}}function*Bu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/connection"});return{type:ou,account:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Ads account info.","google-listings-and-ads"))}}function*qu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/google/connect",method:"DELETE"}),{type:au}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect your Google account. Please try again later.","google-listings-and-ads")),e}}function*zu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/ads/connection",method:"DELETE"}),{type:iu}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect your Google Ads account. Please try again later.","google-listings-and-ads")),e}}function*Hu(){try{return yield(0,qc.apiFetch)({path:"/wc/gla/connections",method:"DELETE"}),{type:su}}catch(e){throw yield xu(e,(0,o.__)("Unable to disconnect all your accounts. Please try again later.","google-listings-and-ads")),e}}function*Uu(){try{return ed(yield(0,qc.apiFetch)({path:"/wc/gla/ads/billing-status"}))}catch(e){yield xu(e,(0,o.__)("There was an error getting the billing status of your Google Ads account.","google-listings-and-ads"))}}function*Vu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/accounts"});return{type:cu,accounts:e}}catch(e){yield xu(e,(0,o.__)("There was an error getting your Google Ads accounts.","google-listings-and-ads"))}}function Wu(e){return{type:uu,data:e}}function*Yu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/contact-information",method:"POST"});yield Wu(e)}catch(e){throw yield xu(e,(0,o.__)("Unable to update your Google Merchant Center contact information. Please try again later.","google-listings-and-ads")),e}}function*Ku(e,t,n){try{return{verificationId:(yield(0,qc.apiFetch)({path:"/wc/gla/mc/phone-verification/request",method:"POST",data:{phone_region_code:e,phone_number:t,verification_method:n}})).verification_id}}catch(e){if("rateLimitExceeded"===e.reason)throw{...e,display:(0,o.__)("Unable to initiate the verification code request. A maximum of five attempts to verify the same phone number every four hours. Please try again later.","google-listings-and-ads")};yield xu(e,(0,o.__)("Unable to request the phone verification code. Please try again later.","google-listings-and-ads"))}}function*Qu(e,t,n){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/phone-verification/verify",method:"POST",data:{verification_id:e,verification_code:t,verification_method:n}}),{type:du}}catch(e){const{reason:t,message:n=""}=e;if("badRequest"===t){const[,t]=n.match(/^\[(\w+)\]/)||[],r={verificationCode:(0,o.__)("Wrong verification code. Please try again.","google-listings-and-ads"),verificationId:(0,o.__)("The verification code has expired. Please initiate a new verification request by the resend button.","google-listings-and-ads")};if(t in r)throw{...e,display:r[t]}}yield xu(e,(0,o.__)("Unable to verify your phone number. Please try again later.","google-listings-and-ads"))}}function*Zu(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/target_audience"});return{type:pu,target_audience:e}}catch(e){yield xu(e,(0,o.__)("There was an error loading target audience.","google-listings-and-ads"))}}function Xu(e){return{type:nu,account:e}}function Ju(e){return{type:ou,account:e}}function ed(e){return{type:lu,billingStatus:e}}function*td(e){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/target_audience",method:"POST",data:e}),{type:fu,target_audience:e}}catch(e){yield xu(e,(0,o.__)("There was an error saving target audience data.","google-listings-and-ads"))}}function*nd(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/ads/campaigns"});return{type:mu,adsCampaigns:e.map(Su)}}catch(e){yield xu(e,(0,o.__)("There was an error loading ads campaigns.","google-listings-and-ads"))}}function*rd(e,t){try{const n=yield(0,qc.apiFetch)({path:"/wc/gla/ads/campaigns",method:"POST",data:{amount:e,targeted_locations:t}});return{type:hu,createdCampaign:Su(n)}}catch(e){throw yield xu(e,(0,o.__)("Unable to create your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function*od(e,t){try{return yield(0,qc.apiFetch)({path:`/wc/gla/ads/campaigns/${e}`,method:"PATCH",data:t}),{type:yu,id:e,data:t}}catch(e){throw yield xu(e,(0,o.__)("Unable to update your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function*ad(e){try{return yield(0,qc.apiFetch)({path:`/wc/gla/ads/campaigns/${e}`,method:"DELETE"}),{type:vu,id:e}}catch(e){throw yield xu(e,(0,o.__)("Unable to delete your paid ads campaign. Please try again later.","google-listings-and-ads")),e}}function id(e,t){return{type:_u,reportKey:e,data:t}}function*sd(){try{return ld(yield(0,qc.apiFetch)({path:"/wc/gla/mc/setup"}))}catch(e){yield xu(e,(0,o.__)("There was an error loading your merchant center setup status.","google-listings-and-ads"))}}function*ld(e){return{type:bu,mcSetup:e}}function*cd(e){return{type:wu,mcProductStatistics:e}}function*ud(e){return{type:Eu,mcReviewRequest:e}}function*dd(e,t){return{type:$u,query:e,data:t}}function*gd(e,t){return{type:Cu,query:e,data:t}}function*pd(e,t){try{return yield(0,qc.apiFetch)({path:"/wc/gla/mc/product-visibility",method:"POST",data:{ids:e,visible:t}}),{type:ku}}catch(e){throw yield xu(e,(0,o.__)("Unable to update the channel visibility of products. Please try again later.","google-listings-and-ads")),e}}function*fd(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/review",method:"POST"});return yield ud(e)}catch(e){throw yield xu(e,null==e?void 0:e.message),e}}function md(e){return[e]}function hd(e){return!!e&&"object"==typeof e}function yd(){var e={clear:function(){e.head=null}};return e}function vd(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function bd(e,t){var n,r;function o(){n=Bc?new WeakMap:yd()}function a(){var n,o,a,i,s,l=arguments.length;for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];for(s=t.apply(null,i),(n=r(s)).isUniqueByDependants||(n.lastDependants&&!vd(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),o=n.head;o;){if(vd(o.args,i,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=md),r=Bc?function(e){var t,r,o,a,i=n,s=!0;for(t=0;t<e.length;t++){if(!hd(r=e[t])){s=!1;break}i.has(r)?i=i.get(r):(o=new WeakMap,i.set(r,o),i=o)}return i.has(Gc)||((a=yd()).isUniqueByDependants=s,i.set(Gc,a)),i.get(Gc)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}Gc={},Bc="undefined"!=typeof WeakMap;var _d=window.wp.date,wd=__webpack_require__(9171);const Ed=["clicks","impressions"],$d=["sales","conversions","spend",...Ed],Cd=Object.freeze({NONE:0,FOR_METRIC:1,FOR_REQUEST:2});function kd(e,t,n){const r=(0,wd.getCurrentDates)(t);return{after:(0,_d.format)("Y-m-d",r[n].after),before:(0,_d.format)("Y-m-d",r[n].before),fields:"free"===e?Ed:$d}}function Sd(e,t,n){return`${e}:${t}:${JSON.stringify(n,Object.keys(n).sort())}`}function xd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(n||Object.keys(e)).reduce(((n,r)=>({...n,[r]:Od(e[r],t[r],e[r]&&t[r]?Cd.NONE:Cd.FOR_REQUEST)})),{})}const Od=(e,t,n)=>({value:e,delta:Pd(e,t),prevValue:t,missingFreeListingsData:n});function Pd(e,t){let n=null;if("number"==typeof e&&"number"==typeof t&&(n=0,e!==t)){const r=(e-t)/t*100;n=Number.isFinite(r)?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=Math.pow(10,t);return Math.round(e*n)/n}(r):null}return n}const Ad=e=>e.mc.shipping.rates,Nd=e=>e.mc.shipping.times,Rd=e=>e.mc.settings,Td=e=>e.mc.accounts.jetpack,Md=e=>e.mc.accounts.google,jd=e=>e.mc.accounts.google_access,Id=e=>e.mc.accounts.mc,Fd=e=>e.mc.accounts.existing_mc,Dd=e=>e.mc.accounts.ads,Ld=e=>e.mc.accounts.ads_billing_status,Gd=e=>e.mc.accounts.existing_ads,Bd=e=>e.mc.contact,qd=(0,dn.createRegistrySelector)((e=>t=>{const n=e(Lc);return{loaded:!!Bd(t)||n.hasFinishedResolution("getGoogleMCContactInformation"),data:n.getGoogleMCContactInformation()}})),zd=bd((e=>{const{countries:t,continents:n}=e.mc;return{countries:t,continents:n}}),(e=>[e.mc.countries,e.mc.continents])),Hd=e=>e.mc.target_audience,Ud=e=>e.ads_campaigns,Vd=e=>e.mc_setup,Wd=e=>e.mc_product_statistics,Yd=e=>e.mc_review_request,Kd=bd(((e,t)=>{const n=e.mc_issues[t.issue_type];if(!n)return n;const r=(t.page-1)*t.per_page,o=r+t.per_page;return{issues:n.issues.slice(r,o),total:n.total}}),(e=>[e.mc_issues])),Qd=(e,t)=>e.mc_product_feed?{products:e.mc_product_feed.pages[t.page],total:e.mc_product_feed.total}:e.mc_product_feed,Zd=(e,t,n,r)=>{const o=Sd(t,n,r);return e.report[o]||null},Xd=(0,dn.createRegistrySelector)((e=>(t,n,r,o,a)=>{const i=e(Lc),s=function(e,t,n,r){const o=kd(t,n,r),{order:a="desc"}=n;let{orderby:i}=n;i&&o.fields.includes(i)||(i=o.fields[0]);const s={...o,interval:"day",orderby:i,order:a};return"programs"===e&&n.programs?s.ids=n.programs:"products"===e&&n.products&&(s.ids=n.products.replace(/\d+/g,"gla_$&")),s}(n,r,o,a),l=[n,r,s];return{reportQuery:s,loaded:i.hasFinishedResolution("getReportByApiQuery",l),data:i.getReportByApiQuery(...l)}})),Jd=(0,dn.createRegistrySelector)((e=>(t,n,r,o)=>{const a=e(Lc),i=["programs",n,kd(n,r,o)],s=a.getReportByApiQuery(...i);return{data:s?s.totals:null,loaded:a.hasFinishedResolution("getReportByApiQuery",i)}}));var eg=window.wp.url;function*tg(){yield Ou()}function*ng(){yield Nu()}function*rg(){yield Mu()}function*og(){yield Iu()}function*ag(){yield Fu()}function*ig(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/google/reconnected"});yield Du(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading Google account access info.","google-listings-and-ads"))}}function*sg(){yield Lu()}function*lg(){yield Gu()}function*cg(){yield Bu()}function*ug(){yield Uu()}function*dg(){yield Vu()}function*gg(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/contact-information"});yield Wu(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading Google Merchant Center contact information.","google-listings-and-ads"))}}function*pg(){try{const e={continents:!0},t=(0,eg.addQueryArgs)("/wc/gla/mc/countries",e),n=yield(0,qc.apiFetch)({path:t});return{type:gu,data:n}}catch(e){yield xu(e,(0,o.__)("There was an error loading supported country details.","google-listings-and-ads"))}}function*fg(){yield Zu()}function*mg(){yield nd()}function*hg(){yield sd()}function*yg(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/product-statistics"});yield cd(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading your merchant center product statistics.","google-listings-and-ads"))}}function*vg(){try{const e=yield(0,qc.apiFetch)({path:"/wc/gla/mc/review"});yield ud(e)}catch(e){yield xu(e,(0,o.__)("There was an error loading your merchant center product review request status.","google-listings-and-ads"))}}function*bg(e){try{const{issue_type:t,...n}=e,r=yield(0,qc.apiFetch)({path:(0,eg.addQueryArgs)(`/wc/gla/mc/issues/${t||cc}`,n)});yield dd(e,r)}catch(e){yield xu(e,(0,o.__)("There was an error loading issues to resolve.","google-listings-and-ads"))}}function*_g(e){try{const t=yield(0,qc.apiFetch)({path:(0,eg.addQueryArgs)("/wc/gla/mc/product-feed",e)});yield gd(e,t)}catch(e){yield xu(e,(0,o.__)("There was an error loading product feed.","google-listings-and-ads"))}}ag.shouldInvalidate=e=>e.type===au,ig.shouldInvalidate=e=>e.type===au,gg.shouldInvalidate=e=>e.type===du,bg.shouldInvalidate=e=>e.type===ku,_g.shouldInvalidate=(e,t)=>e.type===ku||e.type===Cu&&(e.query.per_page!==t.per_page||e.query.orderby!==t.orderby||e.query.order!==t.order);const wg=new Map([[ec,"mc"],[Jl,"ads"]]);function*Eg(e,t,n){const r=`/wc/gla/${wg.get(t)}/reports/${e}`,a=(0,eg.addQueryArgs)(r,n);try{const r=yield(0,qc.apiFetch)({path:a}),o=Sd(e,t,n);yield id(o,r)}catch(e){yield xu(e,(0,o.__)("There was an error loading report.","google-listings-and-ads"))}}const $g={mc:{target_audience:null,countries:null,continents:null,shipping:{rates:[],times:[]},settings:null,accounts:{jetpack:null,google:null,mc:null,ads:null,existing_mc:null,existing_ads:null,ads_billing_status:null,google_access:null},contact:null},ads_campaigns:null,mc_setup:null,mc_product_statistics:null,mc_issues:{account:null,product:null},mc_review_request:{status:null,cooldown:null,issues:null,reviewEligibleRegions:[]},mc_product_feed:null,report:{}};function Cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=Object.assign(e.constructor(),e),r=e=>null==e?{}:(0,ie.clone)(e),o=e=>t?Array.isArray(t)||Array.isArray(e)?[].concat(t,e):`${t}.${e}`:e;return{setIn(e,t){const a=o(e);return(0,ie.setWith)(n,a,t,r),this},end:()=>n}}function kg(e,t,n){return Cg(e).setIn(t,n).end()}function Sg(e,t){return t?e.json?e.json():Promise.reject(e):e}(0,dn.registerStore)(Lc,{actions:t,selectors:n,resolvers:r,controls:qc.controls,reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Uc:return kg(e,"mc.shipping.rates",t.shippingRates);case Vc:{const{shippingRates:n}=t,r=[...e.mc.shipping.rates];return n.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));t>=0?r[t]=e:r.push(e)})),kg(e,"mc.shipping.rates",r)}case Wc:{const{ids:n}=t,r=e.mc.shipping.rates.filter((e=>!n.includes(e.id)));return kg(e,"mc.shipping.rates",r)}case Yc:return kg(e,"mc.shipping.times",t.shippingTimes);case Kc:{const{countryCodes:n,time:r}=t.shippingTime,o=[...e.mc.shipping.times];return n.forEach((e=>{const t={countryCode:e,time:r},n=o.findIndex((t=>t.countryCode===e));n>=0?o[n]=t:o.push(t)})),kg(e,"mc.shipping.times",o)}case Qc:{const n=new Set(t.countryCodes),r=e.mc.shipping.times.filter((e=>!n.has(e.countryCode)));return kg(e,"mc.shipping.times",r)}case Zc:return kg(e,"mc.settings",t.settings);case Xc:return kg(e,"mc.settings",{...e.mc.settings,...t.settings});case Jc:return kg(e,"mc.accounts.jetpack",t.account);case eu:return kg(e,"mc.accounts.google",t.account);case tu:return kg(e,"mc.accounts.google_access",t.data);case nu:return kg(e,"mc.accounts.mc",t.account);case ru:return kg(e,"mc.accounts.existing_mc",t.accounts);case ou:return kg(e,"mc.accounts.ads",t.account);case iu:return kg(e,"mc.accounts.ads",$g.mc.accounts.ads);case lu:return kg(e,"mc.accounts.ads_billing_status",t.billingStatus);case cu:return kg(e,"mc.accounts.existing_ads",t.accounts);case uu:return kg(e,"mc.contact",t.data);case gu:{const{data:n}=t;return Cg(e,"mc").setIn("countries",n.countries).setIn("continents",n.continents).end()}case pu:case fu:return kg(e,"mc.target_audience",t.target_audience);case mu:return kg(e,"ads_campaigns",t.adsCampaigns);case hu:return kg(e,"ads_campaigns",[...e.ads_campaigns||[],t.createdCampaign]);case yu:{const{id:n,data:r}=t,o=e.ads_campaigns.findIndex((e=>e.id===n)),a={...e.ads_campaigns[o],...r},i=[...e.ads_campaigns];return i[o]=a,kg(e,"ads_campaigns",i)}case vu:{const{id:n}=t,r=e.ads_campaigns.filter((e=>e.id!==n));return kg(e,"ads_campaigns",r)}case bu:return kg(e,"mc_setup",t.mcSetup);case wu:return kg(e,"mc_product_statistics",t.mcProductStatistics);case Eu:return kg(e,"mc_review_request",t.mcReviewRequest);case $u:{var n;const{query:r,data:o}=t,a=(null===(n=e.mc_issues[r.issue_type])||void 0===n?void 0:n.issues.slice())||[];return a.splice((r.page-1)*r.per_page,r.per_page,...o.issues),Cg(e,`mc_issues.${r.issue_type}`).setIn("issues",a).setIn("total",o.total).end()}case Cu:{const{query:n,data:r}=t,o=e.mc_product_feed||{},a=Cg(e,"mc_product_feed");return o.per_page===n.per_page&&o.order===n.order&&o.orderby===n.orderby||a.setIn("pages",{}),a.setIn(["pages",n.page],r.products).setIn("per_page",n.per_page).setIn("order",n.order).setIn("orderby",n.orderby).setIn("total",r.total).end()}case _u:{const{reportKey:n,data:r}=t;return kg(e,["report",n],r)}default:return e}}}),Hc().use(function(e){const t=new RegExp("^/wc/gla/");return function(n,r){if(!t.test(n.path))return r(n);const{parse:o=!0}=n;return r({...n,parse:!1}).catch(e).catch((async e=>Promise.reject(await Sg(e,o)))).then((e=>o&&204===e.status?null:Sg(e,o)))}}((e=>{if(Zl.mcSetupComplete&&401===e.status)return(e.json||e.text).call(e).then((e=>"string"==typeof e?{message:e}:e)).then((e=>{const t=Pc(e.code);return t&&(0,pc.getHistory)().replace(t),e})).then((t=>Promise.reject({...t,statusCode:e.status})));throw e})));const xg=()=>(0,dn.useDispatch)(Lc);var Og=e=>{const t=(0,s.useRef)(e);return(0,ie.isEqual)(t.current,e)||(t.current=e),t.current},Pg=function(e){const{invalidateResolution:t}=xg();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];const a=Og(r),i=(0,s.useCallback)((()=>{t(e,a)}),[t,e,a]);return(0,dn.useSelect)((t=>{const{isResolving:n,hasFinishedResolution:r}=t(Lc),o=t(Lc)[e](...a);return{isResolving:n(e,a),hasFinishedResolution:r(e,a),data:o,invalidateResolution:i}}),[i,e,a])},Ag=()=>Pg("getTargetAudience"),Ng=window.wc.data;function Rg(){return(0,dn.useSelect)((e=>{const{getSetting:t}=e(Ng.SETTINGS_STORE_NAME),n=(0,i.getSetting)("countries"),r=t("general","general"),[o]=r.woocommerce_default_country.split(":");return{code:o,name:n[o]}}),[])}const Tg=()=>(0,s.createElement)(El,{className:"gla-get-started-notice__icon",icon:Dc,size:18}),Mg=()=>{const{data:e}=Ag();return e?(0,s.createElement)(Fc,{className:"gla-get-started-notice",status:"error",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Your site language is <language />. This language is currently not supported by Google Listings & Ads. <settingsLink>You can change your site language here</settingsLink>. <supportedLanguagesLink>Read more about supported languages</supportedLanguagesLink>","google-listings-and-ads"),{language:(0,s.createElement)("strong",null,e.language),settingsLink:(0,s.createElement)(Bl.Link,{className:"gla-get-started-notice__link",type:"wp-admin",href:"/wp-admin/options-general.php"}),supportedLanguagesLink:(0,s.createElement)(zl,{className:"gla-get-started-notice__link",href:"https://support.google.com/merchants/answer/160637",context:"get-started",linkId:"supported-languages"})}),(0,s.createElement)(Tg,null)):null},jg=()=>{const{name:e}=Rg();return e?(0,s.createElement)(Fc,{className:"gla-get-started-notice",status:"warning",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Your store’s country is <country />. This country is currently not supported by Google Listings & Ads. However, you can still choose to list your products in another supported country, if you are able to sell your products to customers there. <settingsLink>Change your store’s country here</settingsLink>. <supportedCountriesLink>Read more about supported countries</supportedCountriesLink>","google-listings-and-ads"),{country:(0,s.createElement)("strong",null,e),settingsLink:(0,s.createElement)(Bl.Link,{className:"gla-get-started-notice__link",type:"wp-admin",href:"/wp-admin/admin.php?page=wc-settings"}),supportedCountriesLink:(0,s.createElement)(zl,{className:"gla-get-started-notice__link",href:"https://support.google.com/merchants/answer/160637",context:"get-started",linkId:"supported-countries"})}),(0,s.createElement)(Tg,null)):null};function Ig(){const{mcSupportedLanguage:e,mcSupportedCountry:t}=Zl;return(0,s.createElement)(s.Fragment,null,!e&&(0,s.createElement)(Mg,null),!t&&(0,s.createElement)(jg,null))}var Fg=()=>(0,s.createElement)("div",{className:"woocommerce-marketing-google-get-started-page"},(0,s.createElement)(Ig,null),(0,s.createElement)(jc,null),(0,s.createElement)(Di,null),(0,s.createElement)(Ql,null),(0,s.createElement)(Vi,null),(0,s.createElement)(Ac,null),(0,s.createElement)(Ul,null));const Dg={"full-page":["woocommerce-admin-full-screen","is-wp-toolbar-disabled","gla-full-page"],"full-content":["gla-full-content"]};function Lg(e){(0,s.useEffect)((()=>{if(!Dg.hasOwnProperty(e))return;const t=document.body.classList,n=Dg[e].filter((e=>!t.contains(e)));return t.add(...n),()=>{t.remove(...n)}}),[e])}var Gg=__webpack_require__(8222),Bg=e=>{let{title:t,backHref:n,helpButton:r,onBackButtonClick:o}=e;return(0,s.createElement)("div",{className:"gla-stepper-top-bar"},(0,s.createElement)(Bl.Link,{className:"back-button",href:n,type:"wc-admin",onClick:o},(0,s.createElement)(Gg.Z,null)),(0,s.createElement)("span",{className:"title"},t),(0,s.createElement)("div",{className:"actions"},r))},qg=__webpack_require__(7719),zg=e=>{const{icon:t,text:n,className:r="",...o}=e;return(0,s.createElement)(gc,l({className:`app-icon-button ${r}`},o),(0,s.createElement)("div",null,t),n)},Hg=e=>{const{eventContext:t,...n}=e;return(0,s.createElement)(zg,l({icon:(0,s.createElement)(qg.Z,null),text:(0,o.__)("Help","google-listings-and-ads"),href:"https://docs.woocommerce.com/document/google-listings-and-ads/",target:"_blank",eventName:"gla_help_click",eventProps:{context:t}},n))},Ug=()=>(0,s.createElement)(Bg,{title:(0,o.__)("Get started with Google Listings & Ads","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"setup-mc"}),backHref:(0,pc.getNewPath)({},"/google/start"),onBackButtonClick:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"back",trigger:"click"})}}),Vg=()=>(0,s.createElement)("div",{className:"app-spinner"},(0,s.createElement)(Bl.Spinner,null)),Wg=()=>(0,dn.useSelect)((e=>({jetpack:e(Lc).getJetpackAccount(),isResolving:e(Lc).isResolving("getJetpackAccount"),hasFinishedResolution:e(Lc).hasFinishedResolution("getJetpackAccount")})),[]);const Yg="https://www.googleapis.com/auth/content",Kg="https://www.googleapis.com/auth/siteverification.verify_only",Qg="https://www.googleapis.com/auth/adwords";function Zg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n={adsRequired:t.includes(Qg)};return n.gmcRequired=t.includes(Yg)&&t.includes(Kg),n.glaRequired=e?n.gmcRequired&&n.adsRequired:n.gmcRequired,n}var Xg=()=>{const{jetpack:e,isResolving:t,hasFinishedResolution:n}=Wg();return(0,dn.useSelect)((r=>{if(!e||"no"===e.active)return{google:void 0,scope:Zg(Zl.adsSetupComplete),isResolving:t,hasFinishedResolution:n};const{getGoogleAccount:o,isResolving:a,hasFinishedResolution:i}=r(Lc),s=o();return{google:s,scope:Zg(Zl.adsSetupComplete,null==s?void 0:s.scope),isResolving:a("getGoogleAccount"),hasFinishedResolution:i("getGoogleAccount")}}),[e,t,n])},Jg=()=>{const{google:e,scope:t,isResolving:n,hasFinishedResolution:r}=Xg();return(0,dn.useSelect)((o=>{if(!e||"no"===e.active||!t.gmcRequired)return{googleMCAccount:void 0,isResolving:n,hasFinishedResolution:r};const{getGoogleMCAccount:a,isResolving:i,hasFinishedResolution:s}=o(Lc);return{googleMCAccount:a(),isResolving:i("getGoogleMCAccount"),hasFinishedResolution:s("getGoogleMCAccount")}}),[e,t.gmcRequired,n,r])},ep=e=>{const{className:t="",children:n,...r}=e;return(0,s.createElement)("div",l({className:`gla-step-content ${t}`},r),(0,s.createElement)("div",{className:"gla-step-content__container"},n))},tp=e=>{const{className:t="",title:n,description:r}=e;return(0,s.createElement)("header",{className:`gla-step-content-header ${t}`},(0,s.createElement)("h1",null,n),(0,s.createElement)("div",{className:"description"},r))},np=e=>{const{className:t="",...n}=e;return(0,s.createElement)("div",l({className:`gla-step-content-footer ${t}`},n))};function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ap={isBorderless:!1,isShady:!1,size:"medium"},ip=function(e){var t=e.className,n=e.isShady,r=c(e,["className","isShady"]),o=op(op(op({},ap),p()),e),a=o.isBorderless,i=o.size,u=d()("components-card__footer",a&&"is-borderless",n&&"is-shady",i&&"is-size-".concat(i),t);return(0,s.createElement)(Re,l({},r,{className:u}))};const sp=e=>{const{className:t="",...n}=e;return(0,s.createElement)("div",l({className:`wcdl-subsection ${t}`},n))};sp.Title=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("wcdl-subsection-title",t)},n))},sp.Body=e=>{const{children:t}=e;return(0,s.createElement)("div",{className:"wcdl-subsection-body"},t)},sp.HelperText=e=>{const{className:t,children:n}=e;return(0,s.createElement)("div",{className:d()("wcdl-subsection-helper-text",t)},n)};var lp=sp;const cp=e=>{let{size:t="",...n}=e;return(0,s.createElement)(De,l({},n,{size:t}))};cp.Body=e=>{const{className:t,...n}=e;return(0,s.createElement)(qe,l({className:d()("wcdl-section-card-body",t)},n))},cp.Footer=e=>{const{children:t,...n}=e;return(0,s.createElement)(ip,l({className:"wcdl-section-card-footer"},n),t)},cp.Title=e=>{const{className:t,...n}=e;return(0,s.createElement)(lp.Title,l({className:d()("wcdl-section-card-title",t)},n))};const up=e=>{let{className:t,title:n,description:r,children:o,disabled:a}=e;const i=d()("wcdl-section",!!a&&"wcdl-section--is-disabled",t);return(0,s.createElement)("section",{className:i},(0,s.createElement)("header",null,n&&(0,s.createElement)("h1",null,n),r),(0,s.createElement)("div",{className:"wcdl-section__body"},o))};up.Card=cp;var dp=up;const gp={normal:!1,large:"gla-vertical-gap-layout__large",overlap:"gla-vertical-gap-layout__overlap"};var pp=e=>{const{className:t,size:n="normal",...r}=e;return(0,s.createElement)("div",l({className:d()("gla-vertical-gap-layout",gp[n],t)},r))};function fp(e){return"yes"!==e.active?"":"yes"===e.owner?e.email:(0,o.__)("Successfully connected through Jetpack","google-listings-and-ads")}var mp=__webpack_require__(4886);function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yp=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,o=c(e,["icon","size"]);return(0,s.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))},vp=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),bp=__webpack_require__(8026),_p=__webpack_require__(4515);const wp={EMPTY:"empty",WPCOM:"wpcom",GOOGLE:"google",GOOGLE_MERCHANT_CENTER:"google_merchant_center",GOOGLE_ADS:"google_ads",PHONE:"phone",ADDRESS:"address"},Ep=(0,s.createElement)("img",{src:bp,alt:(0,o.__)("Google Logo","google-listings-and-ads"),width:"40",height:"40"}),$p=(0,s.createElement)("img",{src:_p,alt:(0,o.__)("WordPress.com Logo","google-listings-and-ads"),width:"40",height:"40"}),Cp={[wp.EMPTY]:{},[wp.WPCOM]:{icon:$p,title:"WordPress.com"},[wp.GOOGLE]:{icon:Ep,title:(0,o.__)("Google","google-listings-and-ads")},[wp.GOOGLE_MERCHANT_CENTER]:{icon:Ep,title:(0,o.__)("Google Merchant Center","google-listings-and-ads"),description:(0,o.__)("Required to sync products and list on Google Shopping","google-listings-and-ads")},[wp.GOOGLE_ADS]:{icon:Ep,title:(0,o.__)("Google Ads","google-listings-and-ads"),description:(0,o.__)("Required to create paid campaigns with your product listings","google-listings-and-ads")},[wp.PHONE]:{icon:(0,s.createElement)(mp.Z,{size:32}),title:(0,o.__)("Phone number","google-listings-and-ads")},[wp.ADDRESS]:{icon:(0,s.createElement)(yp,{icon:vp,size:32}),title:(0,o.__)("Store address","google-listings-and-ads")}},kp={center:!1,top:"gla-account-card__styled--align-top"};function Sp(e){let{className:t,disabled:n=!1,appearance:r=wp.EMPTY,icon:o=Cp[r].icon,title:a=Cp[r].title,description:i=Cp[r].description,helper:c,alignIcon:u="center",indicator:g,alignIndicator:p="center",children:f,...m}=e;const h=d()("gla-account-card",!!n&&"gla-account-card--is-disabled",t),y=d()("gla-account-card__icon",kp[u]),v=d()("gla-account-card__indicator",kp[p]);return(0,s.createElement)(dp.Card,l({className:h},m),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(ae,{gap:4},o&&(0,s.createElement)(ze,{className:y},o),(0,s.createElement)(Li,null,a&&(0,s.createElement)(lp.Title,{className:"gla-account-card__title"},a),i&&(0,s.createElement)("div",{className:"gla-account-card__description"},i),c&&(0,s.createElement)("div",{className:"gla-account-card__helper"},c)),g&&(0,s.createElement)(ze,{className:v},g))),f)}var xp=__webpack_require__(3836),Op=e=>{const{className:t}=e;return(0,s.createElement)(ae,{className:d()("gla-connected-icon-label",t),align:"center",gap:1},(0,s.createElement)(ze,null,(0,s.createElement)(xp.Z,null)),(0,s.createElement)(ze,null,(0,o.__)("Connected","google-listings-and-ads")))},Pp=e=>{let{jetpack:t}=e;return(0,s.createElement)(Sp,{appearance:wp.WPCOM,description:fp(t),indicator:(0,s.createElement)(Op,null)})},Ap=()=>(0,dn.useDispatch)("core/notices");const Np="START",Rp="FINISH",Tp="ERROR",Mp="RESET",jp={loading:!1,error:void 0,data:void 0,response:void 0,options:void 0},Ip=(e,t)=>{switch(t.type){case Np:return{...e,loading:!0,options:t.options};case Rp:return{...e,loading:!1,data:t.data,response:t.response,options:t.options};case Tp:return{...e,loading:!1,error:t.error,response:t.response,options:t.options};case Mp:return t.state}},Fp=e=>{const{parse:t=!0}=e;return t};var Dp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jp;const n=Og(e),r={...jp,...t},[o,a]=(0,s.useReducer)(Ip,r),i=(0,s.useCallback)((async e=>{const t={...n,...e};a({type:Np,options:t});try{const e=await Hc()({...t,parse:!1}),n=e.clone(),r=n.json&&await n.json();return a({type:Rp,data:r,response:e,options:t}),Fp(t)?r:e}catch(e){if("fetch_error"===e.code)throw a({type:Tp,error:e,response:void 0,options:t}),e;const n=e,r=n.clone(),o=r.json?await r.json():new Error("No content body in fetch response.");throw a({type:Tp,error:o,response:n,options:t}),Fp(t)?o:n}}),[n]),l=e=>{a({type:Mp,state:{...r,...e}})},c={...o,reset:l};return[i,c]},Lp=()=>{const{createNotice:e}=Ap(),t=Zl.mcSetupComplete?"reconnect":"setup-mc",n={next_page_name:t},r=(0,eg.addQueryArgs)("/wc/gla/jetpack/connect",n),[a,{loading:i,data:l}]=Dp({path:r});return(0,s.createElement)(Sp,{appearance:wp.WPCOM,description:(0,o.__)("Required to connect with Google","google-listings-and-ads"),indicator:(0,s.createElement)(gc,{isSecondary:!0,loading:i||l,eventName:"gla_wordpress_account_connect_button_click",eventProps:{context:t},onClick:async()=>{try{const e=await a();window.location.href=e.url}catch(t){e("error",(0,o.__)("Unable to connect your WordPress.com account. Please try again later.","google-listings-and-ads"))}}},(0,o.__)("Connect","google-listings-and-ads"))})},Gp=e=>{let{jetpack:t}=e;return"yes"===t.active?(0,s.createElement)(Pp,{jetpack:t}):(0,s.createElement)(Lp,null)},Bp=(0,s.createElement)(zl,{context:"setup-mc-accounts",linkId:"required-google-permissions",href:"https://docs.woocommerce.com/document/google-listings-and-ads/#required-google-permissions"});function qp(e,t){const n=(0,s.useMemo)((()=>{const n={next_page_name:e,login_hint:t};return{path:(0,eg.addQueryArgs)("/wc/gla/google/connect",n)}}),[e,t]);return Dp(n)}var zp=(e,t)=>{const{createNotice:n}=Ap(),[r,a]=qp(e,t);return[async()=>{try{const{url:e}=await r();window.location.href=e}catch(e){n("error",(0,o.__)("Unable to connect your Google account. Please try again later.","google-listings-and-ads"))}},a]},Hp=e=>{let{additionalScopeEmail:t}=e;const n=Zl.mcSetupComplete?"reconnect":"setup-mc",[r,{loading:a,data:i}]=zp(n,t);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,alignIcon:"top",description:(0,s.createElement)(s.Fragment,null,t,(0,s.createElement)("p",null,(0,s.createElement)("em",null,(0,s.createInterpolateElement)((0,o.__)("<alert>Uh-oh!</alert> You did not allow WooCommerce sufficient access to your Google account. You must allow all required permissions in the Google authorization page to proceed. <link>Read more</link>","google-listings-and-ads"),{alert:(0,s.createElement)("span",{className:"gla-authorize-google-account-card__error-text"}),link:Bp})))),alignIndicator:"top",indicator:(0,s.createElement)(gc,{isSecondary:!0,isDestructive:!0,loading:a||i,eventName:"gla_google_account_connect_button_click",eventProps:{context:n,action:"scope"},text:(0,o.__)("Allow full access","google-listings-and-ads"),onClick:r})})},Up=e=>{let{googleAccount:t,helper:n,hideAccountSwitch:r=!1}=e;const[a,{loading:i}]=(()=>{const{createNotice:e,removeNotice:t}=Ap(),[n,{loading:r}]=Dp({path:"/wc/gla/mc/connection",method:"DELETE"}),[a,{loading:i}]=Dp({path:"/wc/gla/google/connect",method:"DELETE"}),[s,{loading:l,data:c}]=qp("setup-mc");return[async()=>{const{notice:r}=await e("info",(0,o.__)("Connecting to a different Google account, please wait…","google-listings-and-ads"));try{await n(),await a();const{url:e}=await s();window.location.href=e}catch(n){t(r.id),e("error",(0,o.__)("Unable to connect to a different Google account. Please try again later.","google-listings-and-ads"))}},{loading:r||i||l||c}]})();return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,description:t.email,helper:n,indicator:(0,s.createElement)(Op,null)},!r&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:i,text:(0,o.__)("Or, connect to a different Google account","google-listings-and-ads"),eventName:"gla_google_account_connect_different_account_button_click",onClick:a})))},Vp=e=>{let{disabled:t}=e;const n=Zl.mcSetupComplete?"reconnect":"setup-mc",[r,{loading:a,data:i}]=zp(n);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,disabled:t,alignIcon:"top",description:(0,s.createElement)(s.Fragment,null,(0,o.__)("Required to sync with Google Merchant Center and Google Ads.","google-listings-and-ads"),(0,s.createElement)("p",null,(0,s.createElement)("em",null,(0,s.createInterpolateElement)((0,o.__)("You will be prompted to give WooCommerce access to your Google account. Please check all the checkboxes to give WooCommerce all required permissions. <link>Read more</link>","google-listings-and-ads"),{link:Bp})))),alignIndicator:"top",indicator:(0,s.createElement)(gc,{isSecondary:!0,disabled:t,loading:a||i,eventName:"gla_google_account_connect_button_click",eventProps:{context:n,action:"authorization"},text:(0,o.__)("Connect","google-listings-and-ads"),onClick:r})})};function Wp(e){let{disabled:t=!1}=e;const{google:n,scope:r,hasFinishedResolution:o}=Xg();if(!o)return(0,s.createElement)(Sp,{description:(0,s.createElement)(Vg,null)});const a="yes"===(null==n?void 0:n.active);return a&&r.glaRequired?(0,s.createElement)(Up,{googleAccount:n}):a&&!r.glaRequired?(0,s.createElement)(Hp,{additionalScopeEmail:n.email}):(0,s.createElement)(Vp,{disabled:t})}var Yp=e=>{const{children:t,...n}=e;return(0,s.createElement)(vl,n,(0,s.createElement)("div",{className:"app-tooltip__children-container"},t))},Kp=()=>(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(Vg,null))),Qp=e=>{let{googleMCAccount:t,hideAccountSwitch:n=!1}=e;const{createNotice:r,removeNotice:a}=Ap(),{invalidateResolution:l}=xg(),[c,{loading:u}]=Dp({path:"/wc/gla/mc/connection",method:"DELETE"}),d=new URL((0,i.getSetting)("homeUrl")).host;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: account domain, 2: account ID.
|
3 |
(0,o.__)("%1$s (%2$s)","google-listings-and-ads"),d,t.id),indicator:(0,s.createElement)(Op,null)},!n&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:u,text:(0,o.__)("Or, connect to a different Google Merchant Center account","google-listings-and-ads"),eventName:"gla_mc_account_connect_different_account_button_click",onClick:async()=>{const{notice:e}=await r("info",(0,o.__)("Disconnecting your Google Merchant Center account, please wait…","google-listings-and-ads"));try{await c(),l("getExistingGoogleMCAccounts",[]),l("getGoogleMCAccount",[])}catch(e){r("error",(0,o.__)("Unable to disconnect your Google Merchant Center account. Please try again later.","google-listings-and-ads"))}a(e.id)}})))},Zp=()=>(0,s.createElement)(Sp,{disabled:!0,appearance:wp.GOOGLE_MERCHANT_CENTER,indicator:(0,s.createElement)(xl,{isSecondary:!0,disabled:!0},(0,o.__)("Create Account","google-listings-and-ads"))}),Xp=()=>Pg("getExistingGoogleMCAccounts"),Jp=function(e){var t=e.className,n=c(e,["className"]),r=d()("components-card__divider",t);return(0,s.createElement)(Te,l({},n,{children:null,className:r,role:"separator"}))},ef=new WeakMap;function tf(e){var t=ef.get(e)||0;return ef.set(e,t+1),t}function nf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,s.useMemo)((function(){if(n)return n;var r=tf(e);return t?"".concat(t,"-").concat(r):r}),[e])}var rf={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function of(e){return(0,ie.get)(rf,e,"")}var af=J("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",of("default.fontFamily"),";font-size:",of("default.fontSize"),";"),sf=J("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",Ce(1),";.components-panel__row &{margin-bottom:inherit;}"),lf=J("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",Ce(1),";"),cf=J("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",Ce(1),";font-size:",of("helpText.fontSize"),";font-style:normal;color:",$e("mediumGray.text"),";");function uf(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return(0,s.createElement)(af,{className:d()("components-base-control",a)},(0,s.createElement)(sf,{className:"components-base-control__field"},n&&t&&(r?(0,s.createElement)(Cl,{as:"label",htmlFor:t},n):(0,s.createElement)(lf,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,s.createElement)(Cl,{as:"label"},n):(0,s.createElement)(uf.VisualLabel,null,n)),i),!!o&&(0,s.createElement)(cf,{id:t+"__help",className:"components-base-control__help"},o))}uf.VisualLabel=function(e){var t=e.className,n=e.children;return t=d()("components-base-control__label",t),(0,s.createElement)("span",{className:t},n)};var df=uf,gf=new RegExp(/-left/g),pf=new RegExp(/-right/g),ff=new RegExp(/Left/g),mf=new RegExp(/Right/g);function hf(e){return"left"===e?"right":"right"===e?"left":gf.test(e)?e.replace(gf,"-right"):pf.test(e)?e.replace(pf,"-left"):ff.test(e)?e.replace(ff,"Right"):mf.test(e)?e.replace(mf,"Left"):e}var yf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ie.mapKeys)(e,(function(e,t){return hf(t)}))};function vf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){return t?(0,o.isRTL)()?U(t,""):U(e,""):(0,o.isRTL)()?U(yf(e),""):U(e,"")}}var bf={name:"1dacand",styles:"padding-top:0;"},_f=function(){return bf},wf={name:"r6z5ec",styles:"z-index:1;"},Ef=function(e){return e.isFocused?wf:""},$f={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},Cf={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},kf={name:"x4dmss",styles:"justify-content:space-between;"},Sf=function(e){switch(e.labelPosition){case"top":return $f;case"bottom":return Cf;case"edge":return kf;default:return""}},xf=J(ae,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",_f," ",Ef," ",Sf,""),Of={name:"8atqhb",styles:"width:100%;"},Pf=J("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=$e(e.disabled?"ui.backgroundDisabled":"ui.background");return U({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":U("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):Of}),""),Af={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},Nf=J("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",$e("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=U("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=U("&:active{cursor:",n,";}")),U(r," ",o,"")})," ",(function(e){return e.disabled?U({color:$e("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?U("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return U(n[t]||n.default,"")})," ",(function(){return Af}),"}"),Rf={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Tf=function(){return Rf},Mf=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),U({paddingTop:0,paddingBottom:n},"")},jf=J(Ii,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",Mf," ",Tf,"}"),If=function(e){return(0,s.createElement)(jf,l({},e,{as:"label"}))},Ff=J(ze,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Df=J("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=$e(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat($e("ui.borderFocus")," inset")),t&&(r=$e("ui.borderDisabled")),U({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",vf({paddingLeft:2}),"}"),Lf=J("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Gf=J("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Bf=(0,s.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return(0,s.createElement)(Df,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})})),qf=Bf;function zf(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,o=c(e,["children","hideLabelFromVision","htmlFor"]);return t?n?(0,s.createElement)(Cl,{as:"label",htmlFor:r},t):(0,s.createElement)(If,l({htmlFor:r},o),t):null}var Hf=(0,s.forwardRef)((function e(t,n){var r=t.__unstableInputWidth,o=t.children,a=t.className,i=t.disabled,u=void 0!==i&&i,d=t.hideLabelFromVision,g=void 0!==d&&d,p=t.labelPosition,f=t.id,m=t.isFocused,h=void 0!==m&&m,y=t.label,v=t.prefix,b=t.size,_=void 0===b?"default":b,w=t.suffix,E=c(t,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),$=function(t){var n=nf(e),r="input-base-control-".concat(n);return t||r}(f);return(0,s.createElement)(xf,l({},E,{className:a,isFocused:h,labelPosition:p,ref:n}),(0,s.createElement)(Ff,null,(0,s.createElement)(zf,{className:"components-input-control__label",hideLabelFromVision:g,labelPosition:p,htmlFor:$,size:_},y)),(0,s.createElement)(Pf,{__unstableInputWidth:r,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:p},v&&(0,s.createElement)(Lf,{className:"components-input-control__prefix"},v),o,w&&(0,s.createElement)(Gf,{className:"components-input-control__suffix"},w),(0,s.createElement)(qf,{"aria-hidden":"true",disabled:u,isFocused:h,label:y,size:_})))})),Uf=J("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",$e("black"),";display:block;margin:0;width:100%;",(function(e){return e.disabled?U({color:$e("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?U("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return U(n[t]||n.default,"")}),";",vf({paddingLeft:8,paddingRight:24})(),"}"),Vf=J("div",{target:"e12x0a391",label:"DownArrowWrapper"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",vf({right:0})()," svg{display:block;}");var Wf=(0,s.forwardRef)((function e(t,n){var r=t.className,o=t.disabled,a=void 0!==o&&o,i=t.help,u=t.hideLabelFromVision,g=t.id,p=t.label,f=t.multiple,m=void 0!==f&&f,h=t.onBlur,y=void 0===h?ie.noop:h,v=t.onChange,b=void 0===v?ie.noop:v,_=t.onFocus,w=void 0===_?ie.noop:_,E=t.options,$=void 0===E?[]:E,C=t.size,k=void 0===C?"default":C,S=t.value,x=t.labelPosition,O=void 0===x?"top":x,P=c(t,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),A=Et((0,s.useState)(!1),2),N=A[0],R=A[1],T=function(t){var n=nf(e),r="inspector-select-control-".concat(n);return t||r}(g),M=i?"".concat(T,"__help"):void 0;if((0,ie.isEmpty)($))return null;var j=d()("components-select-control",r);return(0,s.createElement)(df,{help:i},(0,s.createElement)(Hf,{className:j,disabled:a,hideLabelFromVision:u,id:T,isFocused:N,label:p,size:k,suffix:(0,s.createElement)(Vf,null,(0,s.createElement)(yp,{icon:as,size:18})),labelPosition:O},(0,s.createElement)(Uf,l({},P,{"aria-describedby":M,className:"components-select-control__input",disabled:a,id:T,multiple:m,onBlur:function(e){y(e),R(!1)},onChange:function(e){if(m){var t=Ls(e.target.options).filter((function(e){return e.selected})),n=t.map((function(e){return e.value}));b(n)}else b(e.target.value,{event:e})},onFocus:function(e){w(e),R(!0)},ref:n,size:k,value:S}),$.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return(0,s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))})),Yf=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",{className:d()("app-select-control",t)},(0,s.createElement)(Wf,n))},Kf=e=>{const{data:t=[]}=Xp(),n=t.map((e=>({value:e.id,label:(0,o.sprintf)(// translators: 1: account name, 2: account domain, 3: account ID.
|
4 |
(0,o.__)("%1$s ・ %2$s (%3$s)","google-listings-and-ads"),e.name,e.domain,e.id)})));return n.sort(((e,t)=>e.label.localeCompare(t.label))),n.unshift({value:"",label:(0,o.__)("Select one","google-listings-and-ads")}),(0,s.createElement)(Yf,l({options:n},e))},Qf=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("gla-content-button-layout",t)},n))},Zf=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));function Xf(e,t){return e.map((function(e,n){return e+t[n]}))}function Jf(e,t){return e.map((function(e,n){return e-t[n]}))}function em(e){return Math.hypot.apply(Math,e)}function tm(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function nm(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function rm(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-nm(t-e,n-t,r)+t:e>n?+nm(e-n,n-t,r)+n:e}function om(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 am(){return am=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},am.apply(this,arguments)}function im(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(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 cm(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return lm(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)?lm(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}function um(){}function dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?um:1===t.length?t[0]:function(){for(var e,n,r=cm(t);!(n=r()).done;){var o=n.value;e=o.apply(this,arguments)||e}return e}}function gm(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function pm(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function fm(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],s=a[1];switch(typeof s){case"function":n[i]=s.call(n,e[i],i,e);break;case"object":n[i]=fm(e[i],s);break;case"boolean":s&&(n[i]=e[i])}}return n}function mm(){return"undefined"!=typeof window&&"ontouchstart"in window}function hm(e){return"pointerId"in e?null:"touchend"===e.type?e.changedTouches:e.targetTouches}function ym(e){return Array.from(hm(e)).map((function(e){return e.identifier}))}function vm(e){return{buttons:"buttons"in e?e.buttons:0,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}var bm=function(e){return e};function _m(e,t){void 0===t&&(t=bm);var n=hm(e),r=n?n[0]:e;return t([r.clientX,r.clientY])}var wm={threshold:function(e){return void 0===e&&(e=0),gm(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return gm(.15);case!1:return gm(0);default:return gm(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:gm(e)},transform:!0},Em=am({},wm,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return Em.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,a=void 0===o?1/0:o,i=t.top,s=void 0===i?-1/0:i,l=t.bottom;return[[r,a],[s,void 0===l?1/0:l]]}}),$m="undefined"!=typeof window&&window.document&&window.document.createElement,Cm={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(_x){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=$m?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}},transform:!0},km=am({},Em,{useTouch:function(e){void 0===e&&(e=!1);var t=mm(),n="undefined"!=typeof window&&"onpointerdown"in window;return!(!e||!t)||!(!t||n)},experimental_preventWindowScrollY:function(e){return void 0===e&&(e=!1),e},threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,a=n.lockDirection,i=void 0!==a&&a,s=n.axis,l=gm(e,o?3:i||(void 0===s?void 0:s)?1:0);return this.filterTaps=o,l},swipeVelocity:function(e){return void 0===e&&(e=.5),gm(e)},swipeDistance:function(e){return void 0===e&&(e=50),gm(e)},swipeDuration:function(e){return void 0===e&&(e=250),e},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Sm(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),i=function(e){return void 0===e&&(e={}),fm(e,Cm)}({domTarget:t,eventOptions:n,window:r,enabled:o});return i.drag=function(e){return void 0===e&&(e={}),fm(e,km)}(a),i}function xm(e){return am({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:um,canceled:!1,memo:void 0,args:void 0},e)}function Om(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:xm({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:xm({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:xm({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Pm=new Map,Am=function(e){return e},Nm=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=n.controller.pointerIds.size||n.controller.touchIds.size,a=n.controller.state.shared.buttons>0||o>0,i=am({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),s=n.handler(i);return n.state.memo=void 0!==s?s:n.state.memo,i},this.controller=e,this.args=t}var t,n,r=e.prototype;return r.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},r.updateGestureState=function(e){Object.assign(this.state,e)},r.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},r.getMovement=function(e){var t=this.config.rubberband,n=this.state,r=n._bounds,o=n._initial,a=n._active,i=n._intentional,s=n.lastOffset,l=n.movement,c=n._threshold,u=this.getInternalMovement(e,this.state),d=!1===i[0]?Rm(u[0],c[0]):i[0],g=!1===i[1]?Rm(u[1],c[1]):i[1],p=this.checkIntentionality([d,g],u);if(p._blocked)return am({},p,{_movement:u,delta:[0,0]});var f=p._intentional,m=u,h=[!1!==f[0]?u[0]-f[0]:0,!1!==f[1]?u[1]-f[1]:0],y=Xf(h,s),v=a?t:[0,0];return h=Tm(r,Xf(h,o),v),am({},p,{intentional:!1!==f[0]||!1!==f[1],_initial:o,_movement:m,movement:h,values:e,offset:Tm(r,y,v),delta:Jf(h,l)})},r.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||Am}}])&&om(t.prototype,n),e}();function Rm(e,t){return Math.abs(e)>=t&&tm(e)*t}function Tm(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],s=e[0],l=s[0],c=s[1],u=e[1],d=u[0],g=u[1];return[rm(r,l,c,a),rm(o,d,g,i)]}function Mm(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function jm(e,t,n,r){var o=e.state,a=e.config,i=e.stateKey,s=e.args,l=e.transform,c=o.offset,u=n.timeStamp,d=a.initial,g=a.bounds,p=Jf(l(a.threshold),l([0,0])).map(Math.abs),f=am({},Om()[i],{_active:!0,args:s,values:t,initial:null!=r?r:t,_threshold:p,offset:c,lastOffset:c,startTime:u});return am({},f,{_initial:pm(d,f),_bounds:pm(g,f)})}var Im=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=mm(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o,a={},i=cm(t.classes);!(o=i()).done;){var s=o.value;new s(t,n).addBindings(a)}var l=function(e){Um(a,e,(function(r){return t.nativeRefs[e](am({},t.state.shared,{event:r,args:n}))}))};for(var c in t.nativeRefs)l(c);return t.config.domTarget?Bm(t,a):qm(t,a)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Hm(t.config),n=t.config.eventOptions;e&&Wm(e,zm(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(n){for(var a in o)Wm(n,o[a],r);e.windowListeners={}}}(t)},this.classes=e,this.state=Om(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Fm(e,t){"pointerId"in t?e.pointerIds.add(t.pointerId):e.touchIds=new Set(ym(t))}function Dm(e,t){"pointerId"in t?e.pointerIds.delete(t.pointerId):ym(t).forEach((function(t){return e.touchIds.delete(t)}))}function Lm(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=r.eventOptions),r.window&&(Wm(r.window,o[t],n),delete o[t])}function Gm(e,t,n,r){var o=e.config,a=e.windowListeners;void 0===n&&(n=[]),void 0===r&&(r=o.eventOptions),o.window&&(Wm(o.window,a[t],r),Vm(o.window,a[t]=n,r))}function Bm(e,t){var n=e.config,r=e.domListeners,o=Hm(n);if(!o)throw new Error("domTarget must be defined");var a=n.eventOptions;Wm(o,zm(r),a);for(var i=0,s=Object.entries(t);i<s.length;i++){var l=s[i],c=l[0],u=l[1],d=c.slice(2).toLowerCase();r.push([d,dm.apply(void 0,u)])}Vm(o,r,a)}function qm(e,t){for(var n={},r=e.config.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var i=a[o],s=i[0],l=i[1],c=Array.isArray(l)?l:[l];n[s+r]=dm.apply(void 0,c)}return n}function zm(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Hm(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Um(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Vm(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=cm(t);!(r=o()).done;){var a=r.value,i=a[0],s=a[1];e.addEventListener(i,s,n)}}function Wm(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=cm(t);!(r=o()).done;){var a=r.value,i=a[0],s=a[1];e.removeEventListener(i,s,n)}}function Ym(){}var Km=function(e){function t(){return e.apply(this,arguments)||this}im(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Jf(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],a=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=em(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,s=t.map((function(e){return a*e})),l=t.map((function(e){return o*e}));return{velocities:s,velocity:i,distance:em(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Nm);function Qm(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}var Zm=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.setPointerCapture=function(e){if(!t.config.useTouch&&!document.pointerLockElement){var n=e.target,r=e.pointerId;n&&"setPointerCapture"in n&&n.setPointerCapture(r),t.updateGestureState({_dragTarget:n,_dragPointerId:r})}},t.releasePointerCapture=function(){if(!t.config.useTouch&&!document.pointerLockElement){var e=t.state,n=e._dragTarget,r=e._dragPointerId;if(r&&n&&"releasePointerCapture"in n&&(!("hasPointerCapture"in n)||n.hasPointerCapture(r)))try{n.releasePointerCapture(r)}catch(e){}}},t.preventScroll=function(e){t.state._dragPreventScroll&&e.cancelable&&e.preventDefault()},t.getEventId=function(e){return t.config.useTouch?e.changedTouches[0].identifier:e.pointerId},t.isValidEvent=function(e){return t.state._pointerId===t.getEventId(e)},t.shouldPreventWindowScrollY=t.config.experimental_preventWindowScrollY&&t.controller.supportsTouchEvents,t.setUpWindowScrollDetection=function(e){Qm(e),Gm(t.controller,t.stateKey,[["touchmove",t.preventScroll],["touchend",t.clean.bind(sm(t))],["touchcancel",t.clean.bind(sm(t))]],{passive:!1}),t.setTimeout(t.startDrag.bind(sm(t)),250,e)},t.setUpDelayedDragTrigger=function(e){t.state._dragDelayed=!0,Qm(e),t.setTimeout(t.startDrag.bind(sm(t)),t.config.delay,e)},t.setStartState=function(e){var n=_m(e,t.transform);t.updateSharedState(vm(e)),t.updateGestureState(am({},jm(sm(t),n,e),Mm(sm(t),e,!0),{_pointerId:t.getEventId(e)})),t.updateGestureState(t.getMovement(n))},t.onDragStart=function(e){Fm(t.controller,e),t.enabled&&!t.state._active&&(t.setStartState(e),t.setPointerCapture(e),t.shouldPreventWindowScrollY?t.setUpWindowScrollDetection(e):t.config.delay>0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Xf(t.transform([r,o]),t.state.values)}else n=_m(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=vm(e);t.updateSharedState(i);var s=Mm(sm(t),e),l=em(a._movement),c=t.state._dragIsTap;c&&l>=3&&(c=!1),t.updateGestureState(am({},s,a,{_dragIsTap:c})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(Dm(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,s=i[0],l=i[1],c=t.state._intentional,u=c[0],d=c[1],g=t.config.swipeVelocity,p=g[0],f=g[1],m=t.config.swipeDistance,h=m[0],y=m[1],v=t.config.swipeDuration,b=am({},Mm(sm(t),e),t.getMovement(t.state.values)),_=[0,0];b.elapsedTime<v&&(!1!==u&&Math.abs(o)>p&&Math.abs(s)>h&&(_[0]=tm(o)),!1!==d&&Math.abs(a)>f&&Math.abs(l)>y&&(_[1]=tm(a))),t.updateSharedState({buttons:0}),t.updateGestureState(am({},b,{tap:n,swipe:_})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(sm(t)),t.state._dragStarted=!1,t.releasePointerCapture(),Lm(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}im(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){this.config.useTouch?(Um(e,"onTouchStart",this.onDragStart),Um(e,"onTouchMove",this.onDragChange),Um(e,"onTouchEnd",this.onDragEnd),Um(e,"onTouchCancel",this.onDragEnd)):(Um(e,"onPointerDown",this.onDragStart),Um(e,"onPointerMove",this.onDragChange),Um(e,"onPointerUp",this.onDragEnd),Um(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps&&Um(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Km);function Xm(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Xm(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xm(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||Xm(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Jm(e,t){try{return Xm(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nh=function(e){return e},rh={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},oh="CHANGE",ah="COMMIT",ih="DRAG_END",sh="DRAG_START",lh="DRAG",ch="INVALIDATE",uh="PRESS_DOWN",dh="PRESS_ENTER",gh="PRESS_UP",ph="RESET",fh="UPDATE";function mh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh,t=e.value;return th(th(th({},rh),e),{},{initialValue:t})}function hh(e){return function(t,n){var r=th({},t),o=n.type,a=n.payload;switch(o){case gh:case uh:r.isDirty=!1;break;case sh:r.isDragging=!0;break;case ih:r.isDragging=!1;break;case oh:r.error=null,r.value=a.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case ah:r.value=a.value,r.isDirty=!1;break;case ph:r.error=null,r.isDirty=!1,r.value=a.value||t.initialValue;break;case fh:r.value=a.value,r.isDirty=!1;break;case ch:r.error=a.error}return a.event&&(r._event=a.event),e(r,n)}}var yh=(0,s.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,o=e.dragDirection,a=void 0===o?"n":o,i=e.dragThreshold,u=void 0===i?10:i,d=e.id,g=e.isDragEnabled,p=void 0!==g&&g,f=e.isFocused,y=e.isPressEnterToChange,v=void 0!==y&&y,b=e.onBlur,_=void 0===b?ie.noop:b,w=e.onChange,E=void 0===w?ie.noop:w,$=e.onDrag,C=void 0===$?ie.noop:$,k=e.onDragEnd,S=void 0===k?ie.noop:k,x=e.onDragStart,O=void 0===x?ie.noop:x,P=e.onFocus,A=void 0===P?ie.noop:P,N=e.onKeyDown,R=void 0===N?ie.noop:N,T=e.onValidate,M=void 0===T?ie.noop:T,j=e.size,I=void 0===j?"default":j,F=e.setIsFocused,D=e.stateReducer,L=void 0===D?function(e){return e}:D,G=e.value,B=e.type,q=c(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nh,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rh,n=Et((0,s.useReducer)(hh(e),mh(t)),2),r=n[0],o=n[1],a=function(e){return function(t,n){n&&n.persist&&n.persist(),o({type:e,payload:{value:t,event:n}})}},i=function(e){return function(t){t&&t.persist&&t.persist(),o({type:e,payload:{event:t}})}},l=function(e){return function(t){o({type:e,payload:t})}},c=a(oh),u=a(ch),d=a(ph),g=a(ah),p=a(fh),f=l(sh),m=l(lh),h=l(ih),y=i(gh),v=i(uh),b=i(dh);return{change:c,commit:g,dispatch:o,drag:m,dragEnd:h,dragStart:f,invalidate:u,pressDown:v,pressEnter:b,pressUp:y,reset:d,state:r,update:p}}(L,{isDragEnabled:p,value:G,isPressEnterToChange:v}),H=z.state,U=z.change,V=z.commit,W=z.drag,Y=z.dragEnd,K=z.dragStart,Q=z.invalidate,Z=z.pressDown,X=z.pressEnter,J=z.pressUp,ee=z.reset,te=z.update,ne=H._event,re=H.value,oe=H.isDragging,ae=H.isDirty,se=(0,s.useRef)(!1),le=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,s.useEffect)((function(){document.documentElement.style.cursor=e?n:null}),[e]),n}(oe,a);Tl((function(){G!==re&&(f||se.current?ae||(E(re,{event:ne}),se.current=!1):te(G))}),[re,ae,f,G]);var ce=function(e){var t=e.target.value;try{M(t,e),V(t,e)}catch(t){Q(t,e)}},ue=function(e,t){void 0===t&&(t={}),Pm.set("drag",Zm);var n=(0,m.useRef)();return n.current||(n.current=function(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return a&&n===this&&t(s,o)||(r=e.apply(this,s),a=!0,n=this,o=s),r}}(Sm,Jm)),function(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;return e.drag&&t.add(Pm.get("drag")),e.wheel&&t.add(Pm.get("wheel")),e.scroll&&t.add(Pm.get("scroll")),e.move&&t.add(Pm.get("move")),e.pinch&&t.add(Pm.get("pinch")),e.hover&&t.add(Pm.get("hover")),t}(e),o=h().useMemo((function(){return new Im(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,h().useEffect(o.effect,[]),o.config.domTarget?Ym:o.bind}({drag:function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return S(e),void Y(e);C(e),W(e),oe||(O(e),K(e))}}},n.current(t))}(0,{threshold:u,enabled:p}),de=p?ue():{};return(0,s.createElement)(Nf,l({},q,de,{className:"components-input-control__input",disabled:r,dragCursor:le,isDragging:oe,id:d,onBlur:function(e){_(e),F(!1),v&&ae&&(se.current=!0,function(e){var t=""===e;return!Ol(e)||t}(re)?ee(G):ce(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){A(e),F(!0)},onKeyDown:function(e){var t=e.keyCode;switch(R(e),t){case cs.UP:J(e);break;case cs.DOWN:Z(e);break;case cs.ENTER:X(e),v&&(e.preventDefault(),ce(e))}},ref:t,size:I,value:re,type:B}))})),vh=yh;var bh=(0,s.forwardRef)((function e(t,n){var r=t.__unstableStateReducer,o=void 0===r?function(e){return e}:r,a=t.__unstableInputWidth,i=t.className,u=t.disabled,g=void 0!==u&&u,p=t.hideLabelFromVision,f=void 0!==p&&p,m=t.id,h=t.isPressEnterToChange,y=void 0!==h&&h,v=t.label,b=t.labelPosition,_=void 0===b?"top":b,w=t.onChange,E=void 0===w?ie.noop:w,$=t.onValidate,C=void 0===$?ie.noop:$,k=t.onKeyDown,S=void 0===k?ie.noop:k,x=t.prefix,O=t.size,P=void 0===O?"default":O,A=t.suffix,N=t.value,R=c(t,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),T=Et((0,s.useState)(!1),2),M=T[0],j=T[1],I=function(t){var n=nf(e),r="inspector-input-control-".concat(n);return t||r}(m),F=d()("components-input-control",i);return(0,s.createElement)(Hf,{__unstableInputWidth:a,className:F,disabled:g,gap:3,hideLabelFromVision:f,id:I,isFocused:M,justify:"left",label:v,labelPosition:_,prefix:x,size:P,suffix:A},(0,s.createElement)(vh,l({},R,{className:"components-input-control__input",disabled:g,id:I,isFocused:M,isPressEnterToChange:y,onChange:E,onKeyDown:S,onValidate:C,ref:n,setIsFocused:j,size:P,stateReducer:o,value:N})))}));const _h="app-input-control";var wh=(0,s.forwardRef)(((e,t)=>{const{className:n,noPointerEvents:r,...o}=e,a=d()(_h,r&&`${_h}--no-pointer-events`,n);return(0,s.createElement)("div",{className:a},(0,s.createElement)(bh,l({ref:t},o)))})),Eh=e=>{const{className:t,...n}=e;return(0,s.createElement)(wh,l({className:d()("app-input-link-control",t),prefix:(0,s.createElement)(yp,{icon:Zf,size:24})},n))},$h=e=>{let{id:t,websiteUrl:n,onSwitchAccount:r=ie.noop}=e;const{invalidateResolution:a}=xg(),[l,{loading:c,error:u,reset:d}]=Dp({path:"/wc/gla/mc/accounts/claim-overwrite",method:"POST",data:{id:t}}),g=(0,i.getSetting)("homeUrl");return(0,s.createElement)(Sp,{className:"gla-reclaim-url-card",appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: website URL, 2: account ID.
|
5 |
(0,o.__)("%1$s (%2$s)","google-listings-and-ads"),n,t),indicator:(0,s.createElement)(gc,{isSecondary:!0,disabled:c,eventName:"gla_mc_account_switch_account_button_click",eventProps:{context:"reclaim-url"},onClick:r},(0,o.__)("Switch account","google-listings-and-ads"))},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Reclaim your URL","google-listings-and-ads")),(0,s.createElement)(lp.Body,null,(0,o.__)("Your URL is currently claimed by another Merchant Center account.","google-listings-and-ads")),(0,s.createElement)(Qf,null,(0,s.createElement)(Eh,{disabled:!0,value:g}),(0,s.createElement)(gc,{isSecondary:!0,loading:c,eventName:"gla_mc_account_reclaim_url_button_click",onClick:async()=>{d(),await l({parse:!1}),a("getGoogleMCAccount",[])}},(0,o.__)("Reclaim my URL","google-listings-and-ads"))),(0,s.createElement)(lp.HelperText,null,(0,s.createInterpolateElement)((0,o.__)("If you reclaim this URL, it will cause any existing product listings or ads to stop running, and the other verified account will be notified that they have lost their claim. <link>Learn more</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc",linkId:"claim-url",href:"https://support.google.com/merchants/answer/176793"})})),u&&(0,s.createElement)(Fc,{status:"error",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("<strong>We were unable to reclaim this URL.</strong> You may not have permission to reclaim this URL, or an error might have occurred. Try again later or contact your Google account administrator.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)}))))},Ch=e=>{let{id:t,claimedUrl:n,newUrl:r,onSelectAnotherAccount:a=(()=>{})}=e;const{createNotice:l}=Ap(),{invalidateResolution:c}=xg(),[u,{loading:d,error:g,response:p}]=Dp({path:"/wc/gla/mc/accounts/switch-url",method:"POST",data:{id:t}}),f=(0,i.getSetting)("homeUrl"),m=()=>{a()};return p&&403===p.status?(0,s.createElement)($h,{id:g.id,websiteUrl:g.website_url,onSwitchAccount:m}):(0,s.createElement)(Sp,{className:"gla-switch-url-card",appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.sprintf)(// translators: 1: the new URL, 2: account ID.
|
8 |
/* translators: 1: new URL. 2: claimed URL. */
|
9 |
(0,o.__)("If you switch your claimed URL to %1$s, you will lose your claim to %2$s. This will cause any existing product listings tied to %2$s to stop running.","google-listings-and-ads"),r,n))))},kh=function(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat((0,ie.upperFirst)((0,ie.camelCase)(t)),"(").concat(a,")"),r}},Sh=kh((function(e){return function(t){var n=nf(e);return(0,s.createElement)(e,l({},t,{instanceId:n}))}}),"withInstanceId"),xh=kh((function(e){return function(t){var n=Et((0,s.useState)(),2),r=n[0],o=n[1],a=(0,s.useCallback)((function(e){return o((function(){return null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0}))}),[]);return(0,s.createElement)("div",Es(r),(0,s.createElement)(e,l({ref:a},t)))}}),"withFocusOutside");function Oh(e){var t=e.overlayClassName,n=e.contentLabel,r=e.aria,o=r.describedby,a=r.labelledby,i=e.children,l=e.className,c=e.role,u=e.style,g=e.focusOnMount,p=e.shouldCloseOnEsc,f=e.onRequestClose,m=_s(g),h=vs(),y=bs();return(0,s.createElement)("div",{className:d()("components-modal__screen-overlay",t),onKeyDown:function(e){p&&e.keyCode===cs.ESCAPE&&(e.stopPropagation(),f&&f(e))}},(0,s.createElement)("div",{className:d()("components-modal__frame",l),style:u,ref:nn([h,y,m]),role:c,"aria-label":n,"aria-labelledby":n?null:a,"aria-describedby":o,tabIndex:"-1"},i))}var Ph=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).handleFocusOutside=e.handleFocusOutside.bind(Rs(e)),e}return As(o,[{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.props.onRequestClose&&this.props.onRequestClose(e)}},{key:"render",value:function(){return(0,s.createElement)(Oh,this.props)}}]),o}(s.Component),Ah=xh(Ph),Nh=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,l=e.isDismissible,c=a||(0,o.__)("Close dialog");return(0,s.createElement)("div",{className:"components-modal__header"},(0,s.createElement)("div",{className:"components-modal__header-heading-container"},t&&(0,s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&(0,s.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),l&&(0,s.createElement)(xl,{onClick:r,icon:$s,label:c}))},Rh=new Set(["alert","status","log","marquee","timer"]),Th=[],Mh=!1;var jh,Ih=0,Fh=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(e){var t;return Os(this,o),(t=r.call(this,e)).prepareDOM(),t}return As(o,[{key:"componentDidMount",value:function(){1==++Ih&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0==--Ih&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){jh||(jh=document.createElement("div"),document.body.appendChild(jh)),this.node=document.createElement("div"),jh.appendChild(this.node)}},{key:"cleanDOM",value:function(){jh.removeChild(this.node)}},{key:"openFirstModal",value:function(){(function(e){if(!Mh){var t=document.body.children;(0,ie.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Rh.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Th.push(t))})),Mh=!0}})(jh),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),Mh&&((0,ie.forEach)(Th,(function(e){e.removeAttribute("aria-hidden")})),Th=[],Mh=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,o=e.closeButtonLabel,a=e.children,i=e.aria,u=e.instanceId,d=e.isDismissible,g=e.isDismissable,p=c(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),f=i.labelledby||"components-modal-header-".concat(u);return g&&ss()("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),(0,s.createPortal)((0,s.createElement)(Ah,l({onRequestClose:t,aria:{labelledby:n?f:null,describedby:i.describedby}},p),(0,s.createElement)("div",{className:"components-modal__content",role:"document"},(0,s.createElement)(Nh,{closeLabel:o,headingId:f,icon:r,isDismissible:d||g,onClose:t,title:n}),a)),this.node)}}]),o}(s.Component);Fh.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};var Dh=Sh(Fh);const Lh={auto:!1,visible:"app-modal__styled--overflow-visible"};var Gh=e=>{let{className:t,overflow:n="auto",buttons:r=[],children:o,...a}=e;const i=d()("app-modal",Lh[n],t);return(0,s.createElement)(Dh,l({className:i},a),o,r.length>=1&&(0,s.createElement)("div",{className:"app-modal__footer"},r))},Bh=__webpack_require__(5683),qh=e=>{let{size:t=18}=e;return(0,s.createElement)(Bh.Z,{className:"gla-warning-icon",size:t})},zh=e=>{let{existingAccount:t,onContinue:n=(()=>{}),onRequestClose:r=(()=>{})}=e;return(0,s.createElement)(Gh,{className:"gla-mc-warning-modal",title:(0,o.__)("Create Google Merchant Center Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"confirm",isSecondary:!0,eventName:"gla_mc_account_warning_modal_confirm_button_click",onClick:()=>{n()}},(0,o.__)("Yes, I want a new account","google-listings-and-ads")),(0,s.createElement)(gc,{key:"cancel",isPrimary:!0,onClick:r},(0,o.__)("Cancel","google-listings-and-ads"))],onRequestClose:r},(0,s.createElement)("p",{className:"gla-mc-warning-modal__warning-text"},(0,s.createElement)(qh,null),(0,s.createElement)("span",null,(0,o.__)("Are you sure you want to create a new Google Merchant Center account?","google-listings-and-ads"))),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You already have another verified account, <storename />, which is connected to this store’s URL, <storeurl />.","google-listings-and-ads"),{storename:(0,s.createElement)("strong",null,t.name),storeurl:(0,s.createElement)("strong",null,t.domain)})),(0,s.createElement)("p",null,(0,o.__)("If you create a new Google Merchant Center account, you will have to reclaim this store’s URL with the new account. This will cause any existing product listings or ads to stop running, and the other verified account will lose its claim.","google-listings-and-ads")))},Hh=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));function Uh(e){var t=e.label,n=e.className,r=e.heading,o=e.checked,a=e.help,i=e.onChange,u=c(e,["label","className","heading","checked","help","onChange"]),d=nf(Uh),g="inspector-checkbox-control-".concat(d);return(0,s.createElement)(df,{label:r,id:g,help:a,className:n},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",l({id:g,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return i(e.target.checked)},checked:o,"aria-describedby":a?g+"__help":void 0},u)),o?(0,s.createElement)(yp,{icon:Hh,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:g},t))}var Vh=e=>{let{onCreateAccount:t=(()=>{}),onRequestClose:n=(()=>{})}=e;const[r,a]=(0,s.useState)(!1);return(0,s.createElement)(Gh,{className:"gla-mc-terms-modal",title:(0,o.__)("Create Google Merchant Center Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"1",isPrimary:!0,disabled:!r,eventName:"gla_mc_account_create_button_click",onClick:()=>{t(),n()}},(0,o.__)("Create account","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",{className:"main"},(0,o.__)("By creating a Google Merchant Center account, you agree to the following terms and conditions:","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You agree to comply with Google’s terms and policies, including <link>Google Merchant Center Terms of Service</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc",linkId:"google-mc-terms-of-service",href:"https://support.google.com/merchants/answer/160173"})})),(0,s.createElement)(Uh,{label:(0,o.__)("I have read and accept these terms","google-listings-and-ads"),checked:r,onChange:a}))};const Wh=Object.freeze({NONE:"NONE",WARNING:"WARNING",TERMS:"TERMS"});var Yh=e=>{const{onCreateAccount:t=ie.noop,onClick:n=ie.noop,...r}=e,[o,a]=(0,s.useState)(Wh.NONE),{data:c}=Xp(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new URL((0,i.getSetting)("homeUrl")).toString();return e.find((e=>{try{return new URL(e.domain).toString()===t}catch(e){return!1}}))}(c),d=()=>{a(Wh.NONE)};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,l({onClick:()=>{a(u?Wh.WARNING:Wh.TERMS),n()}},r)),o===Wh.WARNING&&(0,s.createElement)(zh,{existingAccount:u,onContinue:()=>{a(Wh.TERMS)},onRequestClose:d}),o===Wh.TERMS&&(0,s.createElement)(Vh,{onCreateAccount:t,onRequestClose:d}))},Kh=()=>{const{createNotice:e}=Ap(),{invalidateResolution:t}=xg(),[n,r]=Dp({path:"/wc/gla/mc/accounts",method:"POST"});return[async()=>{try{var a;await n({data:(null===(a=r.error)||void 0===a?void 0:a.id)&&{id:r.error.id},parse:!1}),t("getGoogleMCAccount",[])}catch(t){if(![403,503].includes(t.status)){const n=(await t.json()).message||(0,o.__)("Unable to create Merchant Center account. Please try again later.","google-listings-and-ads");e("error",n)}}},r]},Qh=e=>{const{retryAfter:t,onRetry:n=(()=>{})}=e;return(0,s.useEffect)((()=>{if(!t)return;const e=setInterval((()=>{n()}),1e3*t);return()=>clearInterval(e)}),[t,n]),(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,description:(0,o.__)("This may take a few minutes, please wait a moment…","google-listings-and-ads"),indicator:(0,s.createElement)(gc,{loading:!0},(0,o.__)("Creating…","google-listings-and-ads"))})},Zh=()=>{var e,t,n,r;const[a,i]=(0,s.useState)(),[l,c]=(e=>{const{createNotice:t}=Ap(),[n,r]=Dp({path:"/wc/gla/mc/accounts",method:"POST",data:{id:e}}),{invalidateResolution:a}=xg();return[async()=>{if(e)try{await n({parse:!1}),a("getGoogleMCAccount",[])}catch(e){if(![409,403].includes(e.status)){const n=(await e.json()).message||(0,o.__)("Unable to connect Merchant Center account. Please try again later.","google-listings-and-ads");t("error",n)}}},r]})(a),[u,d]=Kh();return 409===(null===(e=c.response)||void 0===e?void 0:e.status)?(0,s.createElement)(Ch,{id:c.error.id,message:c.error.message,claimedUrl:c.error.claimed_url,newUrl:c.error.new_url,onSelectAnotherAccount:c.reset}):403===(null===(t=c.response)||void 0===t?void 0:t.status)||403===(null===(n=d.response)||void 0===n?void 0:n.status)?(0,s.createElement)($h,{id:(null===(g=c.error)||void 0===g?void 0:g.id)||(null===(p=d.error)||void 0===p?void 0:p.id),websiteUrl:(null===(f=c.error)||void 0===f?void 0:f.website_url)||(null===(m=d.error)||void 0===m?void 0:m.website_url),onSwitchAccount:()=>{c.reset(),d.reset()}}):d.loading||503===(null===(r=d.response)||void 0===r?void 0:r.status)?(0,s.createElement)(Qh,{retryAfter:null===(h=d.error)||void 0===h?void 0:h.retry_after,onRetry:u}):(0,s.createElement)(Sp,{className:"gla-connect-mc-card",appearance:wp.GOOGLE_MERCHANT_CENTER},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select an existing account","google-listings-and-ads")),(0,s.createElement)(Qf,null,(0,s.createElement)(Kf,{value:a,onChange:i}),(0,s.createElement)(gc,{isSecondary:!0,loading:c.loading,disabled:!a,eventName:"gla_mc_account_connect_button_click",onClick:l},(0,o.__)("Connect","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(Yh,{isLink:!0,disabled:c.loading,onCreateAccount:u},(0,o.__)("Or, create a new Merchant Center account","google-listings-and-ads"))));var g,p,f,m,h},Xh=e=>{const{onCreateAccount:t}=e;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_MERCHANT_CENTER,indicator:(0,s.createElement)(Yh,{isSecondary:!0,onCreateAccount:t},(0,o.__)("Create Account","google-listings-and-ads"))})},Jh=e=>{const{onSwitchAccount:t}=e,[n,{loading:r,error:o,response:a}]=Kh();return r||a&&503===a.status?(0,s.createElement)(Qh,{retryAfter:o&&o.retry_after,onRetry:n}):a&&403===a.status?(0,s.createElement)($h,{id:o.id,websiteUrl:o.website_url,onSwitchAccount:t}):(0,s.createElement)(Xh,{onCreateAccount:n})},ey=()=>{const{data:e,hasFinishedResolution:t,invalidateResolution:n}=Xp();return t?e.length>0?(0,s.createElement)(Zh,null):(0,s.createElement)(Jh,{onSwitchAccount:n}):(0,s.createElement)(Kp,null)},ty=()=>{const{hasFinishedResolution:e,googleMCAccount:t}=Jg();return e?t?0===t.id||"connected"!==t.status?(0,s.createElement)(ey,null):(0,s.createElement)(Qp,{googleMCAccount:t}):(0,s.createElement)(Zp,null):(0,s.createElement)(Kp,null)},ny=()=>(0,s.createElement)("div",{className:"gla-google-mc-account"},(0,s.createElement)(dp,{description:(0,s.createElement)(Nc,null,(0,s.createInterpolateElement)((0,o.__)("Google’s Shopping tab has an average of <strong>over 50% increase in clicks and over 100% increase in impressions</strong> across free listings and ads. <tooltip>Source</tooltip>","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null),tooltip:(0,s.createElement)(Yp,{text:(0,o.__)("Google Internal Data, July 2020, based on an A/B test comparing performance for users seeing the updated layout on the Shopping property vs a control group not seeing the new experience.","google-listings-and-ads")})}))},(0,s.createElement)(ty,null)));const ry=[{trackId:"why-do-i-need-a-wp-account",question:(0,o.__)("Why do I need a WordPress.com account?","google-listings-and-ads"),answer:(0,o.__)("We use a WordPress.com account to connect your site to the WooCommerce and Google servers. It ensures that requests (e.g. product feed, clicks, sales, etc) from your site are securely and correctly attributed to your store. It enables a connection to your self-hosted site, and provides a common authentication interface across disparate server configurations and architectures.","google-listings-and-ads")},{trackId:"why-do-i-need-a-google-mc-account",question:(0,o.__)("Why do I need a Google Merchant Center account?","google-listings-and-ads"),answer:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Google Merchant Center helps you sync your store and product data with Google and makes the information available for both free listings on the Shopping tab and Google Shopping Ads. That means everything about your stores and products is available to shoppers when they search on a Google property.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("If you create a new Merchant Center account through this application, it will be associated with Google’s Comparison Shopping Service (Google Shopping) by default. You can change the CSS associated with your account at any time. <link>Please find more information here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"faqs",linkId:"find-a-partner",href:"https://comparisonshoppingpartners.withgoogle.com/find_a_partner/"})})))}];var oy=()=>(0,s.createElement)(dp,null,(0,s.createElement)(Gl,{trackName:"gla_faq",context:"setup-mc-accounts",faqItems:ry})),ay=e=>{const{onContinue:t=(()=>{})}=e,{jetpack:n}=Wg(),{google:r,scope:a}=Xg(),{googleMCAccount:i}=Jg(),l=!n,c="yes"===(null==n?void 0:n.active)&&!r,u="yes"===(null==r?void 0:r.active)&&a.gmcRequired&&!i;if(l||c||u)return(0,s.createElement)(Vg,null);const d="yes"!==(null==n?void 0:n.active),g="connected"!==(null==i?void 0:i.status);return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up your accounts","google-listings-and-ads"),description:(0,o.__)("Connect your WordPress.com account, Google account, and Google Merchant Center account to use Google Listings & Ads.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Connect accounts","google-listings-and-ads"),description:(0,o.__)("The following accounts are required to use the Google Listings & Ads plugin.","google-listings-and-ads")},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Gp,{jetpack:n}),(0,s.createElement)(Wp,{disabled:d}))),(0,s.createElement)(ny,null),(0,s.createElement)(oy,null),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:g,onClick:t},(0,o.__)("Continue","google-listings-and-ads"))))},iy=__webpack_require__(8465),sy=()=>(0,s.createElement)("div",{className:"gla-setup-free-listing-hero"},(0,s.createElement)(tp,{className:"hero-text",title:(0,o.__)("Configure your product listings","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",{className:"hero-text__subtitle"},(0,o.__)("Your free product listings will look something like this.","google-listings-and-ads")),(0,s.createElement)("p",{className:"hero-text__body"},(0,o.__)("Your product details, estimated shipping info and tax details will be displayed across Google.","google-listings-and-ads")))}),(0,s.createElement)("div",{className:"hero-image"},(0,s.createElement)("img",{src:iy,alt:(0,o.__)("Google Shopping search results example","google-listings-and-ads"),width:"720",height:"319"}))),ly=()=>(0,dn.useSelect)((e=>({settings:e(Lc).getSettings()})),[]),cy=e=>e.rate>0&&e.method===sc;const uy=new Set(["automatic","flat","manual"]),dy=new Set(["flat","manual"]),gy=new Set(["destination","manual"]);var py=(e,t,n)=>{const r={};return uy.has(e.shipping_rate)||(r.shipping_rate=(0,o.__)("Please select a shipping rate option.","google-listings-and-ads")),"flat"===e.shipping_rate&&(e.shipping_country_rates.length<n.length||e.shipping_country_rates.some((e=>e.rate<0)))&&(r.shipping_rate=(0,o.__)("Please specify shipping rates for all the countries. And the estimated shipping rate cannot be less than 0.","google-listings-and-ads")),"flat"===e.shipping_rate&&(void 0===e.offer_free_shipping&&e.shipping_country_rates.some(cy)&&(r.offer_free_shipping=(0,o.__)("Please select an option for whether to offer free shipping.","google-listings-and-ads")),!0===e.offer_free_shipping&&e.shipping_country_rates.every((e=>void 0===e.options.free_shipping_threshold))&&(r.offer_free_shipping=(0,o.__)("Please enter minimum order for free shipping.","google-listings-and-ads"))),dy.has(e.shipping_time)||(r.shipping_time=(0,o.__)("Please select a shipping time option.","google-listings-and-ads")),"flat"===e.shipping_time&&(t.length<n.length||t.some((e=>e.time<0)))&&(r.shipping_time=(0,o.__)("Please specify shipping times for all the countries. And the estimated shipping time cannot be less than 0.","google-listings-and-ads")),n.includes("US")&&!gy.has(e.tax_rate)&&(r.tax_rate=(0,o.__)("Please specify tax rate option.","google-listings-and-ads")),r},fy=e=>{const{className:t="",...n}=e;return(0,s.createElement)("span",l({className:`wcdl-radio-helper-text ${t}`},n))};function my(e){var t=e.label,n=e.className,r=e.selected,o=e.help,a=e.onChange,i=e.options,l=void 0===i?[]:i,c=nf(my),u="inspector-radio-control-".concat(c),g=function(e){return a(e.target.value)};return!(0,ie.isEmpty)(l)&&(0,s.createElement)(df,{label:t,id:u,help:o,className:d()(n,"components-radio-control")},l.map((function(e,t){return(0,s.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},(0,s.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:g,checked:e.value===r,"aria-describedby":o?"".concat(u,"__help"):void 0}),(0,s.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))}var hy=e=>{const{className:t,label:n,value:r,selected:o,collapsible:a=!1,children:i,...c}=e;return(0,s.createElement)("div",{className:d()("app-radio-content-control",t)},(0,s.createElement)(my,l({selected:o,options:[{label:n,value:r}]},c,{help:""})),(!a||o===r)&&(0,s.createElement)("div",{className:"app-radio-content-control__content"},i))},yy=e=>{const{formProps:{getInputProps:t}}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Tax rate (required for U.S. only)","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("This tax rate will be shown to potential customers, together with the cost of your product.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-tax-rate",linkId:"tax-rate-read-more",href:"https://support.google.com/merchants/answer/160162"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},t("tax_rate"),{label:(0,o.__)("My store uses destination-based tax rates.","google-listings-and-ads"),value:"destination",collapsible:!0}),(0,s.createElement)(fy,null,(0,o.__)("Google’s estimated tax rates will automatically be applied to my product listings.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},t("tax_rate"),{label:(0,o.__)("My store does not use destination-based tax rates.","google-listings-and-ads"),value:"manual",collapsible:!0}),(0,s.createElement)(fy,null,(0,s.createInterpolateElement)((0,o.__)("I’ll set my tax rates up manually in <link>Google Merchant Center</link>. I understand that if I don’t set this up, my products will be disapproved.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-tax-rate",linkId:"tax-rate-manual",href:"https://www.google.com/retail/solutions/merchant-center/"})})))))))};function vy(e,t,n){var r=this,o=(0,m.useRef)(null),a=(0,m.useRef)(0),i=(0,m.useRef)(null),s=(0,m.useRef)([]),l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(e),d=(0,m.useRef)(!0);u.current=e;var g=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,f=!("trailing"in n)||!!n.trailing,h="maxWait"in n,y=h?Math.max(+n.maxWait||0,t):null,v=(0,m.useCallback)((function(e){var t=s.current,n=l.current;return s.current=l.current=null,a.current=e,c.current=u.current.apply(n,t)}),[]),b=(0,m.useCallback)((function(e,t){g&&cancelAnimationFrame(i.current),i.current=g?requestAnimationFrame(e):setTimeout(e,t)}),[g]),_=(0,m.useCallback)((function(e){if(!d.current)return!1;var n=e-o.current,r=e-a.current;return!o.current||n>=t||n<0||h&&r>=y}),[y,h,t]),w=(0,m.useCallback)((function(e){return i.current=null,f&&s.current?v(e):(s.current=l.current=null,c.current)}),[v,f]),E=(0,m.useCallback)((function(){var e=Date.now();if(_(e))return w(e);if(d.current){var n=e-o.current,r=e-a.current,i=t-n,s=h?Math.min(i,y-r):i;b(E,s)}}),[y,h,_,b,w,t]),$=(0,m.useCallback)((function(){i.current&&(g?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null}),[g]),C=(0,m.useCallback)((function(){return i.current?w(Date.now()):c.current}),[w]);(0,m.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var k=(0,m.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var u=Date.now(),g=_(u);if(s.current=e,l.current=r,o.current=u,g){if(!i.current&&d.current)return a.current=o.current,b(E,t),p?v(o.current):c.current;if(h)return b(E,t),v(o.current)}return i.current||b(E,t),c.current}),[v,p,h,_,b,E,t]),S=(0,m.useCallback)((function(){return!!i.current}),[]);return(0,m.useMemo)((function(){return{callback:k,cancel:$,flush:C,pending:S}}),[k,$,C,S])}const by={wait:500,callOnFirstRender:!1};var _y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:by;const{wait:r,callOnFirstRender:o}={...by,...n},a=Og(e),i=vy(t,r),l=(0,s.useRef)(!1);(0,s.useEffect)((()=>{o||l.current?i.callback(a):l.current=!0}),[o,i,a])},wy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{code:t}=Rg();return"US"===t||!(!e||!e.includes("US"))||(!t||null===e)&&null},Ey=()=>{const e=Pg("getMCCountriesAndContinents");return{...e,data:e.data.countries}},$y=()=>{const{data:e,isResolving:t}=Ey();return(0,dn.useSelect)((function(n){const{getTargetAudience:r,isResolving:o}=n(Lc),a=r(),i=o("getTargetAudience")||t,s=e&&Object.keys(e);function l(e){return"all"===(null==e?void 0:e.location)?s:null==e?void 0:e.countries}return{loading:i,data:l(a),targetAudience:a,getFinalCountries:l}}),[e,t])},Cy=e=>{let{show:t,children:n}=e;switch(t){case!0:return n;case!1:return null;default:return(0,s.createElement)(dp,null,(0,s.createElement)(Vg,null))}},ky=__webpack_require__(3115),Sy=e=>{const{button:t,modal:n}=e,{onClick:r=(()=>{})}=t.props,{onRequestClose:o=(()=>{})}=n.props,[a,i]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.cloneElement)(t,{onClick:function(){i(!0),r(...arguments)}}),a&&(0,s.cloneElement)(n,{onRequestClose:function(){i(!1),o(...arguments)}}))};const xy=__webpack_require__(9016);function Oy({precision:e=null,decimalSeparator:t=".",thousandSeparator:n=","},r){if("number"!=typeof r&&(r=parseFloat(r)),isNaN(r))return"";let o=parseInt(e,10);if(isNaN(o)){const[,e]=r.toString().split(".");o=e?e.length:0}return xy(r,o,t,n)}var Py=()=>{const e=(0,i.getSetting)("currency");return(0,s.useMemo)((()=>({...e,formatNumber:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.precision;const r={...e,precision:n};return Oy(r,t)}})),[e])},Ay=(e,t)=>{const{decimalSeparator:n}=t,r=new RegExp("[^0-9-"+n+"]",["g"]),o=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(r,"").replace(n,"."));return isNaN(o)?0:o},Ny=e=>({...Py(),precision:0,...e}),Ry=e=>{const t=Py();return(0,s.useMemo)((()=>{const n={...t,...e};return e=>Oy(n,e)}),[t,e])},Ty=e=>{const{value:t,numberSettings:n,onChange:r=(()=>{}),onBlur:o=(()=>{}),...a}=e,i=Ny(n),c=(e=>{const t=Ny(e);return Ry(t)})(n),u=c(t),d=e=>{const t=Ay(e,i),n=c(t);return Ay(n,i)};return(0,s.createElement)(wh,l({value:u,onChange:e=>{const t=d(e);r(t)},onBlur:e=>{const t=d(e.target.value);o(e,t)}},a))},My=e=>{const t=Py();return(0,s.createElement)(Ty,l({suffix:t.code,numberSettings:t},e))},jy=e=>{const t={};return 0===e.countries.length&&(t.countries=(0,o.__)("Please specify at least one country.","google-listings-and-ads")),Number.isFinite(e.rate)||(t.rate=(0,o.__)("Please enter the estimated shipping rate.","google-listings-and-ads")),e.rate<0&&(t.rate=(0,o.__)("The estimated shipping rate cannot be less than 0.","google-listings-and-ads")),t},Iy=e=>{let{tags:t=[],disabled:n,maxVisibleTags:r=0,onChange:a=(()=>{})}=e;const[i,l]=(0,s.useState)(!1),c=Math.max(0,r),u=i||!c?t:t.slice(0,c);if(!t.length)return null;const d=e=>()=>{n||a(t.filter((t=>t.id!==e)))};return(0,s.createElement)("div",{className:"woocommerce-tree-select-control__tags"},u.map(((e,n)=>{if(!e.label)return null;const r=(0,o.sprintf)(// translators: 1: Tag Label, 2: Current Tag index, 3: Total amount of tags.
|
10 |
(0,o.__)("%1$s (%2$d of %3$d)","woocommerce-admin"),e.label,n+1,t.length);return(0,s.createElement)(Bl.Tag,{key:e.id,id:e.id,label:e.label,screenReaderLabel:r,remove:d})})),c>0&&t.length>c&&(0,s.createElement)(xl,{isTertiary:!0,className:"woocommerce-tree-select-control__show-more",onClick:()=>{l(!i)}},i?(0,o.__)("Show less","google-listing-and-ads"):(0,o.sprintf)(// translators: %d: The number of extra tags to show
|
11 |
+
(0,o.__)("+ %d more","google-listing-and-ads"),t.length-c)))};const Fy="__WC_TREE_SELECT_COMPONENT_ROOT__",Dy=(0,s.forwardRef)(((e,t)=>{let{tags:n=[],instanceId:r,placeholder:o,isExpanded:a,disabled:i,maxVisibleTags:l,value:c="",onFocus:u=(()=>{}),onTagsChange:g=(()=>{}),onInputChange:p=(()=>{}),onControlClick:f=ie.noop}=e;const m=n.length>0,h=!m&&!a;return(0,s.createElement)("div",{className:d()("components-base-control","woocommerce-tree-select-control__control",{"is-disabled":i,"has-tags":m}),onClick:e=>{t.current.focus(),f(e)}},m&&(0,s.createElement)(Iy,{disabled:i,tags:n,maxVisibleTags:l,onChange:g}),(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("input",{ref:t,id:`woocommerce-tree-select-control-${r}__control-input`,type:"search",placeholder:h?o:"",autoComplete:"off",className:"woocommerce-tree-select-control__control-input",role:"combobox","aria-autocomplete":"list",value:c,"aria-expanded":a,disabled:i,onFocus:u,onChange:p,onKeyDown:e=>{if("Backspace"===e.key){if(c)return;g(n.slice(0,-1)),e.preventDefault()}}})))}));var Ly=Dy,Gy=e=>{var t,n;let{option:r,checked:o,className:a,...i}=e;return r?(0,s.createElement)("div",{className:a},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",l({id:`inspector-checkbox-control-${null!==(t=r.key)&&void 0!==t?t:r.value}`,className:"components-checkbox-control__input",type:"checkbox",tabIndex:"-1",value:r.value,checked:o},i)),o&&(0,s.createElement)(yp,{icon:Hh,role:"presentation",className:"components-checkbox-control__checked"})),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:`inspector-checkbox-control-${null!==(n=r.key)&&void 0!==n?n:r.value}`},r.label))):null};const By=e=>{let{options:t=[],onChange:n=(()=>{}),onExpanderClick:r=ie.noop,onToggleExpanded:o=ie.noop}=e;return t.map((e=>{var t;const a=e.value===Fy,{hasChildren:i,checked:l,partialChecked:c,expanded:u}=e;return(0,s.createElement)("div",{key:`${null!==(t=e.key)&&void 0!==t?t:e.value}`,role:i?"treegroup":"treeitem","aria-expanded":i?u:void 0,className:d()("woocommerce-tree-select-control__node",i&&"has-children")},(0,s.createElement)(ae,{justify:"flex-start"},!a&&(0,s.createElement)("button",{className:d()("woocommerce-tree-select-control__expander",!i&&"is-hidden"),tabIndex:"-1",onClick:t=>{r(t),o(e)}},(0,s.createElement)(yp,{icon:u?os:as})),(0,s.createElement)(Gy,{className:d()("components-base-control","woocommerce-tree-select-control__option",c&&"is-partially-checked"),option:e,checked:l,onChange:t=>{n(t.target.checked,e)},onKeyDown:t=>{((e,t)=>{t.hasChildren&&("ArrowRight"!==e.key||t.expanded?"ArrowLeft"===e.key&&t.expanded&&o(t):o(t))})(t,e)}})),i&&u&&(0,s.createElement)("div",{className:d()("woocommerce-tree-select-control__children",a&&"woocommerce-tree-select-control__main")},(0,s.createElement)(By,{options:e.children,onChange:n,onExpanderClick:r,onToggleExpanded:o})))}))};var qy=By;const zy=e=>{let{id:t,label:n,selectAllLabel:r=(0,o.__)("All","google-listings-and-ads"),help:a,placeholder:i,className:c,disabled:u,options:g=[],value:p=[],maxVisibleTags:f,onChange:m=(()=>{}),onDropdownVisibilityChange:h=ie.noop}=e,y=nf(zy);y=null!=t?t:y;const[v,b]=(0,s.useState)(!1),[_,w]=(0,s.useState)([]),[E,$]=(0,s.useState)(""),C=(0,s.useRef)(),k=(0,s.useRef)(),S=(0,s.useRef)();S.current=h;const x=(0,s.useRef)({filteredOptionsMap:new Map});x.current.expandedValues=_,x.current.selectedValues=p;const O=!u&&v,P=!1!==r?{label:r,value:Fy,children:g}:null,A=Og(P?[P]:g),N=Es((()=>{b(!1)})),R=E.trim().toLowerCase(),T=R.length>=3?R:"",M=(0,s.useMemo)((()=>{const e={};return x.current.filteredOptionsMap.clear(),A.forEach((function t(n,r){var o,a;n.parent=r,null===(o=n.children)||void 0===o||o.forEach((e=>t(e,n.value))),e[null!==(a=n.key)&&void 0!==a?a:n.value]=n})),e}),[A]),j=(0,s.useMemo)((()=>{const{current:e}=x,t=e.filteredOptionsMap.get(T);if(t)return t;const n=Boolean(T),r={hasChildren:{get(){var e;return(null===(e=this.children)||void 0===e?void 0:e.length)>0}},leaves:{get(){return this.hasChildren?this.children.flatMap((e=>e.hasChildren?e.leaves:e)):[]}},checked:{get(){return this.hasChildren?this.leaves.every((e=>e.checked)):e.selectedValues.includes(this.value)}},partialChecked:{get(){return!!this.hasChildren&&!this.checked&&this.leaves.some((e=>e.checked||e.partialChecked))}},expanded:{get(){return n||this.value===Fy||e.expandedValues.includes(this.value)}}},o=(e,t)=>{let{children:a=[],...i}=t;if(a.length){if(i.children=a.reduce(o,[]),!i.children.length)return e}else if(n){const t=i.label.toLowerCase().indexOf(T);if(-1===t)return e;i.label=((e,t)=>{const r=t+T.length;return n?(0,s.createElement)("span",null,(0,s.createElement)("span",null,e.substring(0,t)),(0,s.createElement)("strong",null,e.substring(t,r)),(0,s.createElement)("span",null,e.substring(r))):e})(i.label,t)}return Object.defineProperties(i,r),e.push(i),e},a=A.reduce(o,[]);return e.filteredOptionsMap.set(T,a),a}),[A,T]);(0,s.useEffect)((()=>{S.current(O)}),[O]);const I=e=>{w(e.expanded?_.filter((t=>e.value!==t)):[..._,e.value])};return(0,s.createElement)("div",l({},N,{onKeyDown:e=>{if(u)return;"Escape"===e.key&&b(!1),"Enter"===e.key&&(b(!0),e.preventDefault());const t={ArrowUp:-1,ArrowDown:1}[e.key];if(t&&k.current&&j.length){const n=ls.focus.focusable.find(k.current).filter((e=>"checkbox"===e.type)),r=n.indexOf(e.target),o=Math.max(r+t,-1)%n.length;n.at(o).focus(),e.preventDefault()}},className:d()("woocommerce-tree-select-control",c)}),!!n&&(0,s.createElement)("label",{htmlFor:`woocommerce-tree-select-control-${y}__control-input`,className:"woocommerce-tree-select-control__label"},n),(0,s.createElement)(Ly,{ref:C,disabled:u,tags:g.length?p.map((e=>{const t=M[e];return{id:e,label:null==t?void 0:t.label}})):[],isExpanded:O,onFocus:()=>{b(!0)},onControlClick:()=>{u||b(!0)},instanceId:y,placeholder:i,label:n,maxVisibleTags:f,value:E,onTagsChange:e=>{m([...e.map((e=>e.id))])},onInputChange:e=>{$(e.target.value)}}),O&&(0,s.createElement)("div",{ref:k,className:"woocommerce-tree-select-control__tree",role:"tree",tabIndex:"-1"},(0,s.createElement)(qy,{options:j,onChange:(e,t)=>{t.hasChildren?((e,t)=>{let n;const r=t.leaves.filter((t=>t.checked!==e)).map((e=>e.value));e?(t.expanded||I(t),n=p.concat(r)):n=p.filter((e=>!r.includes(e))),m(n)})(e,t):((e,t)=>{const n=e?[...p,t.value]:p.filter((e=>e!==t.value));m(n)})(e,t),$(""),_.includes(t.parent)||C.current.focus()},onExpanderClick:e=>{const t=ls.focus.focusable.find(k.current),n=t.indexOf(e.currentTarget)+1;t.at(n).focus()},onToggleExpanded:I})),a&&(0,s.createElement)("div",{className:"woocommerce-tree-select-control__help"},a))};var Hy=zy;const Uy=[];function Vy(e){let{countryCodes:t,className:n,...r}=e;const a=ms("medium","<")?5:10,i=function(e){const{data:{countries:t,continents:n},hasFinishedResolution:r}=Pg("getMCCountriesAndContinents");return(0,s.useMemo)((()=>{if(!r)return Uy;const o=e||Object.keys(t);return Object.entries(n).reduce(((e,n)=>{let[r,a]=n;const i=a.countries.reduce(((e,n)=>(o.includes(n)&&e.push({value:n,label:t[n].name}),e)),[]);return i.length&&e.push({value:r,label:a.name,children:i}),e}),[])}),[e,t,n,r])}(t);return(0,s.createElement)(Hy,l({className:d()("gla-supported-country-select",n),placeholder:(0,o.__)("Start typing to filter countries…","google-listings-and-ads"),selectAllLabel:(0,o.__)("All countries","google-listings-and-ads"),maxVisibleTags:a,options:i},r))}var Wy=e=>{let{countryOptions:t,initialValues:n,renderButtons:r=ie.noop,onSubmit:a,onRequestClose:i}=e;const[c,u]=(0,s.useState)(!1);return(0,s.createElement)(Bl.Form,{initialValues:n,validate:jy,onSubmit:a},(e=>{const{values:n,getInputProps:a}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!c,shouldCloseOnClickOutside:!c,title:(0,o.__)("Estimate a shipping rate","google-listings-and-ads"),buttons:r(e),onRequestClose:i},(0,s.createElement)(pp,null,(0,s.createElement)(Vy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:t,onDropdownVisibilityChange:u},a("countries"))),(0,s.createElement)(My,l({label:(0,o.__)("Then the estimated shipping rate displayed in the product listing is","google-listings-and-ads"),suffix:n.currency},a("rate")))))}))},Yy=e=>{let{countryOptions:t,initialValues:n,onSubmit:r,onRequestClose:a=ie.noop}=e;return(0,s.createElement)(Wy,{countryOptions:t,initialValues:n,renderButtons:e=>{const{isValidForm:t,handleSubmit:n}=e;return[(0,s.createElement)(xl,{key:"submit",isPrimary:!0,disabled:!t,onClick:()=>{a(),n()}},(0,o.__)("Add shipping rate","google-listings-and-ads"))]},onSubmit:r,onRequestClose:a})},Ky=e=>{let{countryOptions:t,initialValues:n,onSubmit:r,onRequestClose:a=ie.noop,onDelete:i=ie.noop}=e;const l=()=>{a(),i()};return(0,s.createElement)(Wy,{countryOptions:t,initialValues:n,renderButtons:e=>{const{isValidForm:t,handleSubmit:n}=e;return[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:l},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"submit",isPrimary:!0,disabled:!t,onClick:()=>{a(),n()}},(0,o.__)("Update shipping rate","google-listings-and-ads"))]},onSubmit:r,onRequestClose:a})},Qy=window.wp.htmlEntities,Zy=()=>{const e={...(0,i.getSetting)("countries")};return Object.keys(e).forEach((t=>{e[t]=(0,Qy.decodeEntities)(e[t])})),e};const Xy=5;var Jy=e=>{const{countries:t,firstN:n=Xy,textWithMore:r,textWithoutMore:a}=e,i=Zy(),l=t.slice(0,n).map((e=>i[e])),c=t.length>l.length?r:a;return(0,s.createInterpolateElement)((0,o.sprintf)(c,l.join(", "),t.length-l.length),{strong:(0,s.createElement)("strong",null)})},ev=e=>{const{countries:t}=e;return(0,s.createElement)("div",null,(0,s.createElement)(Jy,{countries:t,textWithMore:// translators: 1: list of country names separated by comma, up to 5 countries; 2: the remaining count of countries.
|
12 |
(0,o.__)("Shipping rate for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
13 |
+
(0,o.__)("Shipping rate for <strong>%1$s</strong>","google-listings-and-ads")}))},tv=e=>{let{countryOptions:t,value:n,onChange:r,onDelete:a}=e;const{countries:i,currency:l,rate:c}=n;return(0,s.createElement)("div",{className:"gla-shipping-rate-input-control"},(0,s.createElement)(My,{label:(0,s.createElement)("div",{className:"label"},(0,s.createElement)(ev,{countries:i}),(0,s.createElement)(Sy,{button:(0,s.createElement)(gc,{isTertiary:!0},(0,o.__)("Edit","google-listings-and-ads")),modal:(0,s.createElement)(Ky,{countryOptions:t,initialValues:n,onSubmit:r,onDelete:a})})),suffix:l,value:c,onBlur:(e,t)=>{c!==t&&r({...n,rate:t})}}),0===c&&(0,s.createElement)("div",{className:"gla-input-pill-div"},(0,s.createElement)(Bl.Pill,null,(0,o.__)("Free shipping for all orders","google-listings-and-ads"))))};const nv={method:sc,options:{}};function rv(e){let{audienceCountries:t,value:n,onChange:r}=e;const{code:a}=Py(),{handleAddSubmit:i,getChangeHandler:l,getDeleteHandler:c}=(e=>{let{value:t,onChange:n}=e;return{handleAddSubmit:e=>{let{countries:r,method:o,currency:a,rate:i}=e;const s=r.map((e=>({...nv,country:e,method:o,currency:a,rate:i})));n(t.concat(s))},getChangeHandler:e=>r=>{const o=t.filter((t=>!(e.countries.includes(t.country)&&!r.countries.includes(t.country))));r.countries.forEach((e=>{const t=o.findIndex((t=>t.country===e)),n=o[t],a={...nv,...n,country:e,method:r.method,currency:r.currency,rate:r.rate};cy(a)||(a.options.free_shipping_threshold=void 0),t>=0?o[t]=a:o.push(a)})),n(o)},getDeleteHandler:e=>()=>{const r=t.filter((t=>!e.countries.includes(t.country)));n(r)}}})({value:n,onChange:r});return(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Estimated shipping rates","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(()=>{const e=(e=>{const t=new Map;return e.forEach((e=>{const{country:n,method:r,currency:o,rate:a}=e,i=`${r} ${o} ${a} `,s=t.get(i)||{countries:[],method:r,currency:o,rate:a};s.countries.push(n),t.set(i,s)})),Array.from(t.values())})(n);if(0===e.length){const e={countries:t,method:sc,currency:a,rate:void 0};return(0,s.createElement)(tv,{countryOptions:t,value:e,onChange:l(e),onDelete:c(e)})}const r=t.filter((e=>!n.some((t=>t.country===e&&t.method===sc))));return(0,s.createElement)(s.Fragment,null,e.map((e=>(0,s.createElement)(tv,{key:e.countries.join("-"),countryOptions:t,value:e,onChange:l(e),onDelete:c(e)}))),r.length>=1&&(0,s.createElement)("div",null,(0,s.createElement)(Sy,{button:(0,s.createElement)(xl,{isSecondary:!0,icon:(0,s.createElement)(ky.Z,null)},(0,o.__)("Add another rate","google-listings-and-ads")),modal:(0,s.createElement)(Yy,{countryOptions:r,initialValues:{countries:r,method:sc,currency:a,rate:0},onSubmit:i})})))})())))}var ov=e=>{const{value:t,onChange:n}=e,r=e=>{n("yes"===e)};return(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("I offer free shipping for orders over a certain price","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,{label:(0,o.__)("Yes","google-listings-and-ads"),value:"yes",selected:!0===t&&"yes",onChange:r}),(0,s.createElement)(hy,{label:(0,o.__)("No","google-listings-and-ads"),value:"no",selected:!1===t&&"no",onChange:r}))))},av=e=>{const t={};return 0===e.countries.length&&(t.countries=(0,o.__)("Please specify at least one country.","google-listings-and-ads")),e.threshold>0||(t.threshold=(0,o.__)("The minimum order amount must be greater than 0.","google-listings-and-ads")),t},iv=e=>{let{countryOptions:t,renderButtons:n,initialValues:r,onSubmit:a,onRequestClose:i}=e;const[c,u]=(0,s.useState)(!1);return(0,s.createElement)(Bl.Form,{initialValues:r,validate:av,onSubmit:a},(e=>{const{getInputProps:r,values:a,setValue:d}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!c,shouldCloseOnClickOutside:!c,title:(0,o.__)("Minimum order to qualify for free shipping","google-listings-and-ads"),buttons:n(e),onRequestClose:i},(0,s.createElement)(pp,null,(0,s.createElement)(Vy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:t,onDropdownVisibilityChange:u},r("countries"))),(0,s.createElement)(My,l({label:(0,o.__)("Then they qualify for free shipping if their order is over","google-listings-and-ads"),suffix:a.currency},r("threshold"),{onBlur:(e,t)=>{r("threshold").onBlur(e),d("threshold",t>0?t:void 0)}}))))}))},sv=e=>{let{countryOptions:t,initialValues:n,onSubmit:r,onRequestClose:a}=e;return(0,s.createElement)(iv,{countryOptions:t,initialValues:n,renderButtons:e=>{const{isValidForm:t,handleSubmit:n}=e;return[(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!t,onClick:()=>{a(),n()}},(0,o.__)("Add minimum order","google-listings-and-ads"))]},onSubmit:r,onRequestClose:a})},lv=e=>{let{countryOptions:t,initialValues:n,onSubmit:r,onRequestClose:a,onDelete:i}=e;const l=()=>{a(),i()};return(0,s.createElement)(iv,{countryOptions:t,initialValues:n,renderButtons:e=>{const{isValidForm:t,handleSubmit:n}=e;return[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:l},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!t,onClick:()=>{a(),n()}},(0,o.__)("Update minimum order","google-listings-and-ads"))]},onSubmit:r,onRequestClose:a})},cv=e=>{const{countries:t}=e;return(0,s.createElement)("div",null,(0,s.createElement)(Jy,{countries:t,textWithMore:// translators: 1: list of country names separated by comma, up to 5 countries; 2: the remaining count of countries.
|
14 |
(0,o.__)("Minimum order for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
15 |
+
(0,o.__)("Minimum order for <strong>%1$s</strong>","google-listings-and-ads")}))},uv=e=>{const{countryOptions:t,value:n,onChange:r,onDelete:a}=e,{countries:i,threshold:l,currency:c}=n;return(0,s.createElement)(My,{className:"gla-minimum-order-input-control",label:(0,s.createElement)("div",{className:"gla-minimum-order-input-control__label"},(0,s.createElement)(cv,{countries:i}),(0,s.createElement)(Sy,{button:(0,s.createElement)(gc,{isTertiary:!0},(0,o.__)("Edit","google-listings-and-ads")),modal:(0,s.createElement)(lv,{countryOptions:t,initialValues:n,onSubmit:r,onDelete:a})})),suffix:c,value:l,onBlur:(e,t)=>{t!==n.threshold&&r({countries:i,threshold:t>0?t:void 0,currency:c})}})};const dv=(e,t,n)=>e.map((e=>{const r={...e,options:{...e.options}};return null!=n&&n.countries.includes(r.country)?r.options.free_shipping_threshold=n.threshold:null!=t&&t.countries.includes(r.country)&&(r.options.free_shipping_threshold=void 0),r}));var gv=e=>{const{value:t=[],onChange:n}=e;return(0,s.createElement)(dp.Card,{className:"gla-minimum-order-card"},(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Minimum order to qualify for free shipping","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(()=>{const e=t.filter(cy),r=(e=>{const t=new Map;return e.forEach((e=>{const{method:n,options:{free_shipping_threshold:r},currency:o}=e,a=`${n} ${r} ${o}`,i=t.get(a)||{countries:[],method:n,threshold:r,currency:o};i.countries.push(e.country),t.set(a,i)})),Array.from(t.values())})(e),a=e.map((e=>e.country)),i=e=>r=>{n(dv(t,e,r))},l=e=>()=>{n(dv(t,e))};if(1===r.length)return(0,s.createElement)(uv,{countryOptions:a,value:r[0],onChange:i(r[0]),onDelete:l(r[0])});const c=r.filter((e=>void 0!==e.threshold)),u=r.find((e=>void 0===e.threshold));return(0,s.createElement)(s.Fragment,null,c.map((e=>(0,s.createElement)(uv,{key:e.countries.join("-"),countryOptions:a,value:e,onChange:i(e),onDelete:l(e)}))),u&&(0,s.createElement)("div",null,(0,s.createElement)(Sy,{button:(0,s.createElement)(gc,{isSecondary:!0,icon:(0,s.createElement)(ky.Z,null)},(0,o.__)("Add another minimum order","google-listings-and-ads")),modal:(0,s.createElement)(sv,{countryOptions:u.countries,initialValues:u,onSubmit:e=>{n(dv(t,null,e))}})})))})())))},pv=e=>{const{audienceCountries:t,formProps:n}=e,{getInputProps:r,values:o,setValue:a}=n,i=o.shipping_country_rates.some(cy);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(rv,l({audienceCountries:t},r("shipping_country_rates"),{onChange:(c=r("shipping_country_rates").onChange,e=>{e.some(cy)||a("offer_free_shipping",void 0),c(e)})})),i&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ov,l({},r("offer_free_shipping"),{onChange:(e=>t=>{if(!t){const e=o.shipping_country_rates.map((e=>({...e,options:{...e.options,free_shipping_threshold:void 0}})));a("shipping_country_rates",e)}e(t)})(r("offer_free_shipping").onChange)})),o.offer_free_shipping&&(0,s.createElement)(gv,r("shipping_country_rates"))));var c},fv=e=>{let{formProps:t,audienceCountries:n}=e;const{getInputProps:r,values:a,setValue:i}=t,c=r("shipping_rate"),u=e=>t=>{switch(t){case"automatic":case"flat":i("shipping_time","flat");break;case"manual":i("shipping_time","manual")}e(t)};return(0,s.createElement)(dp,{title:(0,o.__)("Shipping rates","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your shipping rates will be shown to potential customers on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-read-more",href:"https://support.google.com/merchants/answer/7050921"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},c,{label:(0,s.createInterpolateElement)((0,o.__)("<strong>Recommended:</strong> Automatically sync my store’s shipping settings to Google.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)}),value:"automatic",collapsible:!0,onChange:u(c.onChange)}),(0,s.createElement)(fy,null,(0,o.__)("My current settings and any future changes to my store’s shipping rates and classes will be automatically synced to Google Merchant Center.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},c,{label:(0,o.__)("My shipping settings are simple. I can manually estimate flat shipping rates.","google-listings-and-ads"),value:"flat",collapsible:!0,onChange:u(c.onChange)})),(0,s.createElement)(hy,l({},c,{label:(0,o.__)("My shipping settings are complex. I will enter my shipping rates and times manually in Google Merchant Center.","google-listings-and-ads"),value:"manual",collapsible:!0,onChange:u(c.onChange)}),(0,s.createElement)(fy,null,(0,s.createInterpolateElement)((0,o.__)("I understand that if I don’t set this up manually in <link>Google Merchant Center</link>, my products will be disapproved by Google.","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-manual",href:"https://www.google.com/retail/solutions/merchant-center/"})})))))),"flat"===a.shipping_rate&&(0,s.createElement)(pv,{audienceCountries:n,formProps:t})))},mv=()=>Pg("getShippingTimes"),hv=e=>{let{additionalCountryCodes:t,...n}=e,{data:r}=$y();return r?(t&&(r=Array.from(new Set(r.concat(t)))),(0,s.createElement)(Vy,l({},n,{countryCodes:r}))):(0,s.createElement)(Vg,null)},yv=e=>{const t={};return 0===e.countries.length&&(t.countries=(0,o.__)("Please specify at least one country.","google-listings-and-ads")),Number.isInteger(e.time)||(t.time=(0,o.__)("Please enter the estimated shipping time.","google-listings-and-ads")),e.time<0&&(t.time=(0,o.__)("The estimated shipping time cannot be less than 0.","google-listings-and-ads")),t},vv=e=>{const{onRequestClose:t}=e,{upsertShippingTimes:n}=xg(),r=(()=>{const{data:e}=$y(),t=(0,dn.useSelect)((e=>e(Lc).getShippingTimes().map((e=>e.countryCode))),[]);if(!e)return[];const n=new Set(t);return e.filter((e=>!n.has(e)))})(),[a,i]=(0,s.useState)(!1);return(0,s.createElement)(Bl.Form,{initialValues:{countries:r,time:0},validate:yv,onSubmit:e=>{n({countryCodes:e.countries,time:e.time}),t()}},(e=>{const{getInputProps:n,isValidForm:r,handleSubmit:c}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!a,shouldCloseOnClickOutside:!a,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!r,onClick:c},(0,o.__)("Save","google-listings-and-ads"))],onRequestClose:t},(0,s.createElement)(pp,null,(0,s.createElement)(hv,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),onDropdownVisibilityChange:i},n("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},n("time")))))}))},bv=()=>{const[e,t]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{isSecondary:!0,icon:(0,s.createElement)(ky.Z,null),onClick:()=>{t(!0)}},(0,o.__)("Add another time","google-listings-and-ads")),e&&(0,s.createElement)(vv,{onRequestClose:()=>{t(!1)}}))},_v=e=>{const{countries:t}=e;return(0,s.createElement)("div",null,(0,s.createElement)(Jy,{countries:t,textWithMore:// translators: 1: list of country names separated by comma, up to 5 countries; 2: the remaining count of countries.
|
16 |
(0,o.__)("Shipping time for <strong>%1$s</strong> + %2$d more","google-listings-and-ads"),textWithoutMore:// translators: 1: list of country names separated by comma.
|
17 |
+
(0,o.__)("Shipping time for <strong>%1$s</strong>","google-listings-and-ads")}))},wv=e=>{const{time:t,onRequestClose:n}=e,{upsertShippingTimes:r,deleteShippingTimes:a}=xg(),[i,c]=(0,s.useState)(!1),u=()=>{a(t.countries),n()};return(0,s.createElement)(Bl.Form,{initialValues:{countries:t.countries,time:t.time},validate:yv,onSubmit:e=>{r({countryCodes:e.countries,time:e.time});const o=new Set(e.countries),i=t.countries.filter((e=>!o.has(e)));i.length&&a(i),n()}},(e=>{const{getInputProps:t,isValidForm:r,handleSubmit:a}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!i,shouldCloseOnClickOutside:!i,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:u},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!r,onClick:a},(0,o.__)("Save","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)(pp,null,(0,s.createElement)(hv,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),onDropdownVisibilityChange:c},t("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},t("time")))))}))},Ev=e=>{const{time:t}=e,[n,r]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{className:"gla-edit-time-button",isTertiary:!0,onClick:()=>{r(!0)}},(0,o.__)("Edit","google-listings-and-ads")),n&&(0,s.createElement)(wv,{time:t,onRequestClose:()=>{r(!1)}}))},$v=e=>{const{value:t,onBlur:n}=e,{countries:r,time:a}=t,{data:i}=$y();return i?(0,s.createElement)("div",{className:"gla-countries-time-input"},(0,s.createElement)(Ty,{label:(0,s.createElement)("div",{className:"label"},(0,s.createElement)(_v,{countries:r}),(0,s.createElement)(Ev,{time:t})),suffix:(0,o.__)("days","google-listings-and-ads"),value:a,onBlur:n})):(0,s.createElement)(Vg,null)},Cv=e=>{const t=Og(e.savedValue),[n,r]=(0,s.useState)(t),{upsertShippingTimes:o}=xg();return(0,s.useEffect)((()=>{r(t)}),[t]),(0,s.createElement)($v,{value:n,onBlur:(e,t)=>{const{countries:a,time:i}=n;i!==t&&(r({countries:a,time:t}),o({countryCodes:a,time:t}))}})},kv=()=>{const{data:e}=mv(),{data:t}=$y();if(!t)return(0,s.createElement)(Vg,null);const n=t.length,r=e.length,o=n-r,a=(e=>{const t=new Map;return e.forEach((e=>{const{countryCode:n,time:r}=e,o=t.get(r)||{countries:[],time:r};o.countries.push(n),t.set(r,o)})),Array.from(t.values())})(e);return 0===a.length&&a.push({countries:t,time:null}),(0,s.createElement)("div",{className:"gla-shipping-time-setup"},(0,s.createElement)(pp,null,(0,s.createElement)("div",{className:"countries-time"},(0,s.createElement)(pp,null,a.map((e=>(0,s.createElement)("div",{key:e.countries.join("-"),className:"countries-time-input-form"},(0,s.createElement)(Cv,{savedValue:e})))),r>=1&&o>=1&&(0,s.createElement)("div",{className:"add-time-button"},(0,s.createElement)(bv,null))))))},Sv=e=>{let{formProps:t}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Shipping times","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your shipping times will be shown to potential customers on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-read-more",href:"https://support.google.com/merchants/answer/7050921"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Estimated shipping times","google-listings-and-ads")),(0,s.createElement)(kv,{formProps:t}))))};const xv=(e,t)=>{const n=["country","method","currency","rate","options.free_shipping_threshold"];return(0,ie.isEqual)((0,ie.at)(e,n),(0,ie.at)(t,n))};var Ov=(e,t)=>(0,ie.differenceWith)(e,t,xv),Pv=(e,t)=>void 0!==e.id&&e.id===t.id||e.country===t.country&&e.method===t.method,Av=()=>Pg("getShippingRates"),Nv=()=>{const{data:e}=Av(),{deleteShippingRates:t,upsertShippingRates:n}=xg();return{saveShippingRates:(0,s.useCallback)((async r=>{const o=((e,t)=>((e,t)=>(0,ie.differenceWith)(t,e,Pv))(e,t).map((e=>e.id)))(r,e);o.length&&await t(o);const a=Ov(r,e);a.length&&await n(a)}),[t,e,n])}},Rv=e=>{const{formProps:t,submitButton:n}=e,{values:r}=t,{shipping_country_rates:o,...a}=r,{data:i}=$y(),l=wy(i),c="flat"===r.shipping_time;return(e=>{const{saveSettings:t}=xg();_y(e,t)})(a),(e=>{const{saveShippingRates:t}=Nv(),n=Og(e);_y(n,(async e=>{try{await t(e)}catch(e){}}))})(o),(0,s.createElement)(ep,null,(0,s.createElement)(fv,{formProps:t,audienceCountries:i}),c&&(0,s.createElement)(Sv,{formProps:t}),(0,s.createElement)(Cy,{show:l},(0,s.createElement)(yy,{formProps:t})),(0,s.createElement)(np,null,n))};function Tv(){const e=(0,s.useRef)(!1);return(0,s.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),(0,s.useCallback)((()=>e.current),[])}var Mv=e=>{if(e.some(cy))return e.some((e=>e.options.free_shipping_threshold>0))},jv=e=>{const t=Og(e),[n,r]=Dp(t,{loading:!0});return(0,s.useEffect)((()=>{t&&n()}),[n,t]),r},Iv=()=>{const{hasFinishedResolution:e,data:t}=Av(),{loading:n,data:r}=(()=>{const{loading:e,data:t}=$y(),{loading:n,data:r}=jv(t&&{path:(0,eg.addQueryArgs)("/wc/gla/mc/shipping/rates/suggestions",{country_codes:t})});return{loading:e||n,data:null==r?void 0:r.filter((e=>e.method===sc))}})(),a=(0,s.useRef)(void 0);e&&void 0===a.current&&(a.current=0===t.length);const i=a.current&&r,[l,c]=(0,s.useState)(!1),u=(()=>{const{createNotice:e}=Ap(),{saveShippingRates:t}=Nv();return(0,s.useCallback)((async n=>{try{await t(n)}catch(t){e("error",(0,o.__)("Unable to use your WooCommerce shipping settings as shipping rates in Google. You may have to enter shipping rates manually.","google-listings-and-ads"))}}),[e,t])})();return function(e,t){const n=(0,s.useRef)(!1);for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];const i=Og(o);(0,s.useEffect)((()=>{!0!==n.current&&e&&(n.current=!0,t(...i))}),[i,t,e])}(i,(0,s.useCallback)((async e=>{await u(e),c(!0)}),[u]),r),{loading:n||!e||i&&!l,data:t}},Fv=e=>{const{onContinue:t=(()=>{})}=e,{settings:n}=ly(),{loading:r,data:a}=Iv(),{data:i}=mv(),{data:l}=$y(),{saveSettings:c}=xg(),{saveShippingRates:u}=Nv(),[d,g]=(0,s.useState)(!1),{createNotice:p}=Ap(),f=Tv();return n&&!r&&i&&l?(0,s.createElement)("div",{className:"gla-setup-free-listings"},(0,s.createElement)(sy,null),(0,s.createElement)(Bl.Form,{initialValues:{shipping_rate:n.shipping_rate||"automatic",shipping_time:n.shipping_time||"flat",tax_rate:n.tax_rate,shipping_country_rates:a,offer_free_shipping:Mv(a)},validate:()=>({}),onSubmit:async e=>{const{shipping_country_rates:n,...r}=e;g(!0);try{await Promise.all([c(r),u(n)]),t()}catch(e){f()&&g(!1),p("error",(0,o.__)("There is a problem in saving your settings and shipping rates. Please try again later.","google-listings-and-ads"))}}},(e=>{const{values:t,handleSubmit:n}=e,r=py(t,i,l),a=Object.keys(r).length>=1;return(0,s.createElement)(Rv,{formProps:e,submitButton:(0,s.createElement)(gc,{isPrimary:!0,disabled:a,loading:d,onClick:n},(0,o.__)("Continue","google-listings-and-ads"))})}))):(0,s.createElement)(Vg,null)},Dv=e=>{const{formProps:t}=e,{values:n,isValidForm:r,getInputProps:a,handleSubmit:i}=t,{locale:c,language:u}=n;return(e=>{const{saveTargetAudience:t}=xg();_y(e,t,{callOnFirstRender:!0})})(n),((e,t)=>{const{data:n}=mv(),{saveShippingRates:r}=Nv(),{deleteShippingTimes:a}=xg(),{createNotice:i}=Ap(),l=vy((async()=>{try{if(r([]),n.length){const e=n.map((e=>e.countryCode));a(e)}}catch(e){i("error",(0,o.__)("Something went wrong while trying to clear your shipping data. Please try again later.","google-listings-and-ads"))}}),500),c=(0,s.useRef)(null),u=(0,s.useRef)(null);(0,s.useEffect)((()=>{if(null===c.current&&null===u.current)return c.current=e,void(u.current=t);"all"===c.current&&"all"===e||"selected"===c.current&&"selected"===e&&u.current.length===t.length||(c.current=e,u.current=t,l.callback())}),[l,e,t])})(n.location,n.countries),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Where do you want to sell your products?","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Language","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,s.createInterpolateElement)((0,o.__)("Listings can only be displayed in your site language. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-audience",linkId:"site-language",href:"https://support.google.com/merchants/answer/160637"})})),(0,s.createElement)(my,{selected:c,options:[{label:u,value:c}]})),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Location","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,o.__)("Your store should already have the appropriate shipping and tax rates (if required) for potential customers in your selected location(s).","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},a("location"),{collapsible:!0,label:(0,o.__)("Selected countries only","google-listings-and-ads"),value:"selected"}),(0,s.createElement)("div",{className:"input"},(0,s.createElement)(Vy,l({multiple:!0},a("countries")))),(0,s.createElement)("div",{className:"cannot-find-country"},(0,o.__)("Can’t find a country? Only supported countries can be selected.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},a("location"),{label:(0,o.__)("All countries","google-listings-and-ads"),value:"all"}),(0,s.createElement)(fy,null,(0,o.__)("Your listings will be shown in all supported countries.","google-listings-and-ads")))))))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:!r,onClick:i},(0,o.__)("Continue","google-listings-and-ads"))))},Lv=e=>{const{onContinue:t=(()=>{})}=e,{loading:n,data:r}=(()=>{const{hasFinishedResolution:e}=Ey(),{hasFinishedResolution:t,data:n}=Ag(),{loading:r,data:o}=jv({path:"/wc/gla/mc/target_audience/suggestions"});return{loading:!e||!t||r,data:t&&null===(null==n?void 0:n.location)&&null===(null==n?void 0:n.countries)?o:n}})();return n?(0,s.createElement)(Vg,null):(0,s.createElement)("div",{className:"gla-choose-audience"},(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Choose your audience","google-listings-and-ads"),description:(0,o.__)("Configure who sees your product listings on Google.","google-listings-and-ads")}),(0,s.createElement)(Bl.Form,{initialValues:{locale:r.locale,language:r.language,location:r.location,countries:r.countries||[]},validate:e=>{const t={};return e.location||(t.location=(0,o.__)("Please select a location option.","google-listings-and-ads")),"selected"===e.location&&0===e.countries.length&&(t.countries=(0,o.__)("Please select at least one country.","google-listings-and-ads")),t},onSubmit:()=>{t()}},(e=>(0,s.createElement)(Dv,{formProps:e})))))},Gv=()=>(0,i.getSetting)("adminUrl");const Bv={address:"",address2:"",city:"",state:"",country:"",postcode:"",isMCAddressDifferent:null,isAddressFilled:null};function qv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wc";const{data:t,hasFinishedResolution:n,invalidateResolution:r}=Pg("getGoogleMCContactInformation"),o=Zy();let a=Bv;if(n&&t){const{is_mc_address_different:n}=t,r="wc"===e?t.wc_address:t.mc_address,i=(null==r?void 0:r.street_address)||"",s=(null==r?void 0:r.locality)||"",l=(null==r?void 0:r.region)||"",c=(null==r?void 0:r.postal_code)||"",[u,d=""]=i.split("\n");a={address:u,address2:d,city:s,state:l,country:o[null==r?void 0:r.country],postcode:c,isAddressFilled:!t.wc_address_errors.length,isMCAddressDifferent:n}}return{refetch:r,loaded:n,data:a}}var zv={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[25689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","(?:0\\d\\d|222|800)\\d{6}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[47]\\d{6}|76\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0\\d|1[0-5]|6[1267]|7[0-57]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:005|[1-9]\\d\\d)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:005|[1-9]\\d\\d)\\d{5}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"210\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|51[013]0\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Hv(e,t){var n=Array.prototype.slice.call(t);return n.push(zv),e.apply(this,n)}function Uv(e){return Uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uv(e)}function Vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wv(e){var t,n,r,o,a,i=(o=Array.prototype.slice.call(e),a=4,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=i[0],l=i[1],c=i[2],u=i[3];if("string"!=typeof s)throw new TypeError("A text for parsing must be a string.");if(t=s,l&&"string"!=typeof l){if(!Yv(l))throw new Error("Invalid second argument: ".concat(l));c?(n=l,r=c):r=l}else u?(n=c,r=u):(n=void 0,r=c),l&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vv(e,t,n[t])}))}return e}({defaultCountry:l},n));return{text:t,options:n,metadata:r}}var Yv=function(e){return"object"===Uv(e)},Kv="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~"),Qv=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=this.constructor.name,this.message=t,this.stack=new Error(t).stack};function Zv(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var a=Number(n[o]),i=Number(r[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function Xv(e){return Xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xv(e)}function Jv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eb(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 tb(e,t,n){return t&&eb(e.prototype,t),n&&eb(e,n),e}(Qv.prototype=Object.create(Error.prototype)).constructor=Qv;var nb=" ext. ",rb=/^\d+$/,ob=function(){function e(t){Jv(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!ub(e)||!ub(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ub(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+db(e)+": "+e,"."))}(t),this.metadata=t,pb.call(this,t)}return tb(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&rb.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new ab(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new ab(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),ab=function(){function e(t,n){Jv(this,e),this.globalMetadataObject=n,this.metadata=t,pb.call(this,n.metadata)}return tb(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map((function(t){return new ib(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&cb(this.types(),e))return new lb(cb(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?nb:this.metadata[13]||nb}}]),e}(),ib=function(){function e(t,n){Jv(this,e),this._format=t,this.metadata=n}return tb(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||sb.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),sb=/^\(?\$1\)?$/,lb=function(){function e(t,n){Jv(this,e),this.type=t,this.metadata=n}return tb(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function cb(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var ub=function(e){return"object"===Xv(e)},db=function(e){return Xv(e)};function gb(e,t){if((t=new ob(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function pb(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Zv(t,"1.2.0")?this.v2=!0:-1===Zv(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var fb=function(e){return"([".concat("0-90-9٠-٩۰-۹","]{1,").concat(e,"})")};function mb(e){var t="#?";return";ext="+fb("20")+"|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[ \\t,-]*"+fb("20")+"#?|[ \\t,]*(?:[xx##~~]|int|int)[:\\..]?[ \\t,-]*"+fb("9")+"#?|[- ]+"+fb("6")+"#|[ \\t]*(?:,{2}|;)[:\\..]?[ \\t,-]*"+fb("15")+"#?|[ \\t]*(?:,)+[:\\..]?[ \\t,-]*"+fb("9")+t}var hb="[++]{0,1}(?:["+Kv+"]*[0-90-9٠-٩۰-۹]){3,}["+Kv+"0-90-9٠-٩۰-۹]*",yb=new RegExp("^[++]{0,1}(?:["+Kv+"]*[0-90-9٠-٩۰-۹]){1,2}$","i"),vb=hb+"(?:"+mb()+")?",bb=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^"+vb+"$","i");function _b(e){return e.length>=2&&bb.test(e)}var wb=new RegExp("(?:"+mb()+")$","i"),Eb={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function $b(e){var t="",n=e.split(""),r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}t+=Cb(a,t)||""}return t}function Cb(e,t){if("+"===e){if(t)return;return"+"}return function(e){return Eb[e]}(e)}function kb(e,t){return Sb(e,void 0,t)}function Sb(e,t,n){var r=n.type(t),o=r&&r.possibleLengths()||n.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return Sb(e,"MOBILE",n);var a=n.type("MOBILE");a&&(o=function(e,t){var n=e.slice(),r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;e.indexOf(s)<0&&n.push(s)}return n.sort((function(e,t){return e-t}))}(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var i=e.length,s=o[0];return s===i?"IS_POSSIBLE":s>i?"TOO_SHORT":o[o.length-1]<i?"TOO_LONG":o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function xb(e,t){return"IS_POSSIBLE"===kb(e,t)}function Ob(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var Pb=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ab(e,t,n){if(t=t||{},e.country){(n=new ob(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Ob(r,n.nationalNumberPattern())){if(Nb(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?Nb(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o=0,a=Pb;o<a.length;o++){var i=a[o];if(Nb(r,i,n))return i}}}}function Nb(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Ob(e,t.pattern())}var Rb=/(\$\d)/;var Tb=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Mb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jb={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Ib(e,t,n,r,o){var a=function(e,t){var n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var i=a;if(i.leadingDigitsPatterns().length>0){var s=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(s))continue}if(Ob(t,i.pattern()))return i}}(r.formats(),e);return a?function(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix,a=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Rb,t.nationalPrefixFormattingRule()):t.format()));return r?function(e){return e.replace(new RegExp("[".concat(Kv,"]+"),"g")," ").trim()}(a):a}(e,a,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:r}):e}function Fb(e,t,n,r){return t?r(e,t,n):e}function Db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lb(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)}}var Gb=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var o=new ob(r);Bb(t)&&(this.country=t,o.country(t),t=o.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var t,n;return t=e,n=[{key:"setExt",value:function(e){this.ext=e}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new ob(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return xb(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return function(e,t,n){return t=t||{},n=new ob(n),!!e.country&&(n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Ab(e,t,n.metadata):Ob(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern()))}(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new ob(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Ab(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,n,r){if(n=n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mb(e,t,n[t])}))}return e}({},jb,n):jb,r=new ob(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Fb(o=Ib(i,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return i?(o=Ib(i,null,"INTERNATIONAL",r,n),Fb(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,o){if(gb(r,o.metadata)===n){var a=Ib(e,t,"NATIONAL",o);return"1"===n?n+" "+a:a}var i=function(e,t,n){var r=new ob(n);return r.selectNumberingPlan(e,void 0),r.defaultIDDPrefix()?r.defaultIDDPrefix():Tb.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,0,o.metadata);if(i)return"".concat(i," ").concat(n," ").concat(Ib(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,n.fromCountry,r);return Fb(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Db(e,t,n[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],n&&Lb(t.prototype,n),e}(),Bb=function(e){return/^[A-Z]{2}$/.test(e)},qb=new RegExp("([0-90-9٠-٩۰-۹])");function zb(e,t){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,a,i,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var c=r[0];o=e.slice(c.length),l&&(a=r[1])}if(l){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=r[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}(e,t),r=n.nationalNumber,o=n.carrierCode;if(!function(e,t,n){return!(Ob(e,n.nationalNumberPattern())&&!Ob(t,n.nationalNumberPattern()))}(e,r,t))return{nationalNumber:e};if(e.length!==r.length+(o?o.length:0)&&t.possibleLengths())switch(kb(r,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:r,carrierCode:o}}var Hb=new RegExp("[++0-90-9٠-٩۰-۹]"),Ub=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function Vb(e,t,n){if(t=t||{},n=new ob(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Qv("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){if(e&&0===e.indexOf("tel:"))return function(e){var t,n,r,o,a=(e=e.replace(/^tel:/,"tel=")).split(";"),i=Array.isArray(a),s=0;for(a=i?a:a[Symbol.iterator]();;){var l;if(i){if(s>=a.length)break;l=a[s++]}else{if((s=a.next()).done)break;l=s.value}var c=(r=l.split("="),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=c[0],d=c[1];switch(u){case"tel":t=d;break;case"ext":n=d;break;case"phone-context":"+"===d[0]&&(t=d+t)}}if(!_b(t))return{};var g={number:t};return n&&(g.ext=n),g}(e);var r=function(e,t,n){if(e)if(e.length>250){if(n)throw new Qv("TOO_LONG")}else{if(!1===t)return e;var r=e.search(Hb);if(!(r<0))return e.slice(r).replace(Ub,"")}}(e,n,t);if(!r)return{};if(!_b(r))return function(e){return yb.test(e)}(r)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(wb);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(wb),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}(r);return o.ext?o:{number:r}}(e,t.v2,t.extract),o=r.number,a=r.ext,i=r.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new Qv("TOO_SHORT");throw new Qv("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var o,a=function(e,t,n,r){if(!e)return{};if("+"!==e[0]){var o=function(e,t,n,r){if(t){var o=new ob(r);o.selectNumberingPlan(t,n);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(qb);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}(e,t,n,r);if(!o||o===e){if(t||n){var a=function(e,t,n,r){var o=t?gb(t,r):n;if(0===e.indexOf(o)){(r=new ob(r)).selectNumberingPlan(t,n);var a=e.slice(o.length),i=zb(a,r).nationalNumber,s=zb(e,r).nationalNumber;if(!Ob(s,r.nationalNumberPattern())&&Ob(i,r.nationalNumberPattern())||"TOO_LONG"===kb(s,r))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r),i=a.countryCallingCode,s=a.number;if(i)return{countryCallingCode:i,number:s}}return{number:e}}e="+"+o}if("0"===e[1])return{};r=new ob(r);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCode:c,number:e.slice(l)};l++}return{}}($b(e),t,n,r.metadata),i=a.countryCallingCode,s=a.number;if(i)r.selectNumberingPlan(i);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(o=t),i=n||gb(t,r.metadata)}if(!s)return{countryCallingCode:i};var l=zb($b(s),r),c=l.nationalNumber,u=l.carrierCode,d=function(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){n=new ob(n);var r=e,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;if(n.country(s),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return s}else if(Ab({phone:t,country:s},void 0,n.metadata))return s}}(r,t,n.metadata)}(i,c,r);return d&&(o=d,"001"===d||r.country(o)),{country:o,countryCallingCode:i,nationalNumber:c,carrierCode:u}}(o,t.defaultCountry,t.defaultCallingCode,n),l=s.country,c=s.nationalNumber,u=s.countryCallingCode,d=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Qv("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new Qv("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new Qv("TOO_LONG");return{}}if(t.v2){var g=new Gb(u,c,n.metadata);return l&&(g.country=l),d&&(g.carrierCode=d),a&&(g.ext=a),g}var p=!!(t.extended?n.hasSelectedNumberingPlan():l)&&Ob(c,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:u,carrierCode:d,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!xb(c,n)),phone:c,ext:a}:p?function(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}(l,c,a):{}}function Wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kb(e,t,n){t&&t.defaultCountry&&!function(e,t){return void 0!==t.countries[e]}(t.defaultCountry,n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Yb(e,t,n[t])}))}return e}({},t,{defaultCountry:void 0}));try{return function(e,t,n){return Vb(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wb(e,t,n[t])}))}return e}({},t,{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof Qv))throw e}}function Qb(){var e=Wv(arguments),t=e.text,n=e.options,r=e.metadata;return Kb(t,n,r)}function Zb(){return Hv(Qb,arguments)}const Xb={country:"",countryCallingCode:"",nationalNumber:"",isValid:!1,display:""};function Jb(){return(0,dn.useSelect)((e=>{const{getGoogleMCPhoneNumber:t}=e(Lc),{data:n,loaded:r}=t();let o=Xb;if(n){const e=Zb(n.phone_number||"");e&&(o={...e,isValid:e.isValid(),display:e.formatInternational()},delete o.metadata)}return{loaded:r,data:o}}),[])}const e_=Array(6).fill(""),t_=e=>{const t=e.join("");return{code:t,isFilled:6===t.length}};function n_(e){let{onCodeChange:t,resetNeedle:n=""}=e;const r=(0,s.useRef)([]),o=(0,s.useRef)(0),a=(0,s.useRef)(),[i,l]=(0,s.useState)(e_);a.current=t;const c=e=>{const t=r.current[e];t&&t.focus()},u=e=>{const{dataset:t,selectionStart:n,selectionEnd:r,value:o}=e.target,a=Number(t.idx);switch(e.keyCode){case 37:case 8:0===n&&0===r&&c(a-1);break;case 39:1!==n&&o||c(a+1)}},d=e=>{o.current=e.target.selectionStart},g=e=>{const{value:n,dataset:r}=e.target,a=Number(r.idx),s=n.substr(o.current,1).replace(/\D/,"");if(s!==n&&(e.target.value=s),s&&c(a+1),s!==i[a]){const e=[...i];e[a]=s,l(e),t(t_(e))}};return(0,s.useEffect)((()=>{r.current.forEach((e=>e.value="")),l(e_),a.current(t_(e_))}),[n]),(0,s.useEffect)((()=>{i===e_&&c(0)}),[n,i]),(0,s.createElement)(ae,{className:"gla-verification-code-control",justify:"normal",gap:2},i.map(((e,t)=>(0,s.createElement)(wh,{key:t,ref:e=>r.current[t]=e,"data-idx":t,value:e,onKeyDown:u,onBeforeInput:d,onInput:g,autoComplete:"off"}))))}const r_=Object.freeze({SMS:"SMS",PHONE_CALL:"PHONE_CALL"}),o_={[r_.SMS]:{toInstruction:e=>(0,s.createInterpolateElement)((0,o.__)("A text message with the 6-digit verification code has been sent to <userPhoneNumber />.","google-listings-and-ads"),{userPhoneNumber:(0,s.createElement)("strong",null,e)}),textResend:(0,o.__)("Resend code","google-listings-and-ads"),
|
18 |
// translators: %d: seconds to wait until the next verification code can be requested via SMS.
|
19 |
+
textResendCooldown:(0,o.__)("Resend code (in %ds)","google-listings-and-ads"),textSwitch:(0,o.__)("Or, receive a verification code through a phone call","google-listings-and-ads")},[r_.PHONE_CALL]:{toInstruction:e=>(0,s.createInterpolateElement)((0,o.__)("You will receive a phone call at <userPhoneNumber /> with an automated message containing the 6-digit verification code.","google-listings-and-ads"),{userPhoneNumber:(0,s.createElement)("strong",null,e)}),textResend:(0,o.__)("Call again","google-listings-and-ads"),
|
20 |
// translators: %d: seconds to wait until the next verification code can be requested via phone call.
|
21 |
+
textResendCooldown:(0,o.__)("Call again (in %ds)","google-listings-and-ads"),textSwitch:(0,o.__)("Or, receive a verification code through text message","google-listings-and-ads")}};function a_(e){let{verificationMethod:t,country:n,number:r,display:a,onVerificationStateChange:i}=e;const l=Tv(),[c,u]=(0,s.useState)(t),{second:d,callCount:g,startCountdown:p}=function(e){const t=(0,s.useRef)({}),[n,r]=(0,s.useState)(0);t.current.usingHandle=e,t.current[e]=t.current[e]||{callCount:0};const o=(0,s.useCallback)((n=>{r(n);const o=t.current[e],a=(new Date).getTime()+1e3*n;o.id&&clearInterval(o.id),o.updateSecond=()=>{let n=(a-(new Date).getTime())/1e3;n=Math.max(Math.round(n),0),t.current.usingHandle===e&&r(n),0===n&&clearInterval(o.id)},o.id=setInterval(o.updateSecond,1e3),o.callCount+=1}),[e]);(0,s.useEffect)((()=>{const{updateSecond:n}=t.current[e];n&&n()}),[e]),(0,s.useEffect)((()=>{const e=t.current;return()=>{Object.values(e).forEach((e=>clearInterval(e.id)))}}),[]);const{callCount:a}=t.current[e];return{second:n,callCount:a,startCountdown:o}}(c),[f,m]=(0,s.useState)(null),[h,y]=(0,s.useState)(!1),[v,b]=(0,s.useState)(null),_=(0,s.useRef)({}),{requestPhoneVerificationCode:w,verifyPhoneNumber:E}=xg(),$=c===r_.SMS,C=(0,s.useCallback)((()=>{b(null),p(60),_.current[c]=null,w(n,r,c).then((e=>{let{verificationId:t}=e;_.current[c]=t})).catch((e=>{l()&&(b(e),p(0))}))}),[n,r,c,p,w,l]);(0,s.useEffect)((()=>{0===g&&C()}),[c,g,C]);const{toInstruction:k,textResend:S,textResendCooldown:x,textSwitch:O}=o_[c],P=_.current[c],A=!(null!=f&&f.isFilled&&P);return(0,s.createElement)("form",{onSubmit:e=>{e.preventDefault(),b(null),y(!0),i(!0,!1);const t=_.current[c];E(t,f.code,c).then((()=>{i(!1,!0)})).catch((e=>{l()&&(b(e),y(!1),i(!1,!1))}))}},(0,s.createElement)(dp.Card.Body,null,v&&(0,s.createElement)(lp,null,(0,s.createElement)(Fc,{status:"error",isDismissible:!1},v.display)),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Enter verification code","google-listings-and-ads")),k(a)),(0,s.createElement)(lp,null,(0,s.createElement)(n_,{resetNeedle:c+g,onCodeChange:m})),(0,s.createElement)(lp,null,(0,s.createElement)(ae,{justify:"normal",gap:4},(0,s.createElement)(gc,{isSecondary:!0,disabled:A,loading:h,text:(0,o.__)("Verify phone number","google-listings-and-ads"),type:"submit"}),(0,s.createElement)(gc,{isSecondary:!0,disabled:d>0||h,text:d?(0,o.sprintf)(x,d):S,onClick:C})))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(gc,{isLink:!0,disabled:h,text:O,onClick:()=>{u($?r_.PHONE_CALL:r_.SMS)}})))}function i_(e){return new ob(e).getCountries()}var s_=e=>{const{label:t,helperText:n,className:r,...o}=e;return(0,s.createElement)("div",{className:d()("wcdl-select-control",r)},t&&(0,s.createElement)("div",{className:"wcdl-select-control__label"},t),(0,s.createElement)("div",{className:"wcdl-select-control__input"},(0,s.createElement)(Bl.SelectControl,l({},o,{help:""}))),n&&(0,s.createElement)("div",{className:"wcdl-select-control__helper-text"},n))};const l_=[{label:(0,o.__)("Text message","google-listings-and-ads"),value:r_.SMS},{label:(0,o.__)("Phone call","google-listings-and-ads"),value:r_.PHONE_CALL}];function c_(e){let{initCountry:t,initNationalNumber:n,onSendVerificationCodeClick:r}=e;const a=function(){const e=Zy();return(0,s.useMemo)((()=>function(){return Hv(i_,arguments)}().reduce(((t,n)=>{const r=e[n];if(r){const e=function(){return Hv(gb,arguments)}(n);t.push(((e,t,n)=>({key:e,keywords:[n,t,e],label:`${n} (+${t})`}))(n,e,r))}return t}),[])),[e])}(),[i,l]=(0,s.useState)(t),[c,u]=(0,s.useState)(n),[d,g]=(0,s.useState)(r_.SMS),[p,f]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=Zb(c,i),t=!!e&&e.isValid();f(e?{...e,isValid:t,display:e.formatInternational(),verificationMethod:d}:{isValid:t,country:i,number:"",display:"",verificationMethod:d})}),[c,i,d]),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(ae,{gap:4},(0,s.createElement)(ze,null,(0,s.createElement)(s_,{label:(0,o.__)("Country code","google-listings-and-ads"),isSearchable:!0,excludeSelectedOptions:!1,options:a,selected:i,onChange:l})),(0,s.createElement)(Li,null,(0,s.createElement)(wh,{label:(0,o.__)("Phone number","google-listings-and-ads"),value:c,onChange:u}))),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select verification method","google-listings-and-ads")),(0,s.createElement)(my,{selected:d,options:l_,onChange:g})),(0,s.createElement)(lp,null,(0,s.createElement)(gc,{isSecondary:!0,disabled:!(null!=p&&p.isValid),text:(0,o.__)("Send verification code","google-listings-and-ads"),onClick:()=>r(p)})))}const u_=()=>{},d_={className:"gla-phone-number-card",appearance:wp.PHONE};function g_(e){let{phoneNumber:t,onPhoneNumberVerified:n}=e;const{loaded:r,data:a}=t,[i,c]=(0,s.useState)(!1),[u,d]=(0,s.useState)(null);let g=(0,s.createElement)(Vg,null);r&&(g=u?(0,s.createElement)(a_,l({},u,{onVerificationStateChange:(e,t)=>{c(e),t&&n()}})):(0,s.createElement)(c_,{initCountry:a.country,initNationalNumber:a.nationalNumber,onSendVerificationCodeClick:d}));const p=u?u.display:(0,o.__)("Please enter a phone number to be used for verification.","google-listings-and-ads"),f=u?(0,s.createElement)(gc,{isSecondary:!0,text:(0,o.__)("Edit","google-listings-and-ads"),disabled:i,onClick:()=>d(null)}):null;return(0,s.createElement)(Sp,l({},d_,{description:p,indicator:f}),(0,s.createElement)(Jp,null),g)}var p_=e=>{let{view:t,phoneNumber:n,initEditing:r=null,onEditClick:a,onPhoneNumberVerified:i=u_}=e;const{loaded:c,data:u}=n,[d,g]=(0,s.useState)(r);if((0,s.useEffect)((()=>{c&&null===d&&g(!u.isValid)}),[c,u.isValid,d]),null===d)return(0,s.createElement)(Sp,l({},d_,{indicator:(0,s.createElement)(Bl.Spinner,null)}));if(d){const e=()=>{g(!1),i()};return(0,s.createElement)(g_,{phoneNumber:n,onPhoneNumberVerified:e})}let p=null,f=(0,s.createElement)(Bl.Spinner,null);return c&&(p=u.display,f=(0,s.createElement)(gc,{isSecondary:!0,eventName:"gla_mc_phone_number_edit_button_click",eventProps:{view:t},onClick:()=>{a?a():g(!0)}},(0,o.__)("Edit","google-listings-and-ads"))),(0,s.createElement)(Sp,l({},d_,{description:p,indicator:f}))},f_=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(ns,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}));function m_(e){let{editHref:t,editEventName:n,loading:r,content:a,appearance:i,warning:l}=e;const{subpath:c}=(0,pc.getQuery)(),u=(0,s.createElement)(gc,{isSecondary:!0,href:t,text:(0,o.__)("Edit","google-listings-and-ads"),eventName:n,eventProps:{path:(0,pc.getPath)(),subpath:c}});let d,g;return r?d=(0,s.createElement)("span",{className:"gla-contact-info-preview-card__placeholder","aria-busy":"true",title:(0,o.__)("Loading…","google-listings-and-ads")}):l?(g=(0,s.createElement)(s.Fragment,null,(0,s.createElement)(yp,{icon:f_,size:24,className:"gla-contact-info-preview-card__notice-icon"}),l),d=(0,s.createElement)("span",{className:"gla-contact-info-preview-card__notice-details"},a)):d=a,(0,s.createElement)(Sp,{appearance:i,className:"gla-contact-info-preview-card",icon:null,title:g,description:d,indicator:u})}function h_(e){let{editHref:t,learnMore:n}=e;const{loaded:r,data:a}=Jb();let i,l;return r&&(a.isValid?i=a.display:(l=(0,o.__)("Please add your phone number","google-listings-and-ads"),i=(0,s.createElement)(s.Fragment,null,(0,o.__)("Google requires the phone number for all stores using Google Merchant Center. ","google-listings-and-ads"),n))),(0,s.createElement)(m_,{appearance:wp.PHONE,editHref:t,editEventName:"gla_edit_mc_phone_number",learnMore:n,loading:!r,warning:l,content:i})}var y_=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(ns,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),v_=()=>{const{loaded:e,data:t,refetch:n}=qv(),{subpath:r}=(0,pc.getQuery)(),a=(0,s.createElement)(gc,{isSecondary:!0,icon:y_,iconSize:20,iconPosition:"right",text:(0,o.__)("Refresh to sync","google-listings-and-ads"),onClick:n,disabled:!e});let i;const l=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Edit your store address in your <link>WooCommerce settings</link>.","google-listings-and-ads"),{link:(0,s.createElement)(ql,{target:"_blank",type:"external",href:"admin.php?page=wc-settings",eventName:"gla_edit_wc_store_address",eventProps:{path:(0,pc.getPath)(),subpath:r}})})),(0,s.createElement)("p",null,(0,o.__)("Once you’ve saved your new address there, refresh to sync your new address with Google.","google-listings-and-ads")));if(e){const{address:e,address2:n,city:r,state:o,country:a,postcode:l}=t,c=[r,o?`${o} - ${a}`:a,l].filter(Boolean).join(", ");i=(0,s.createElement)("div",null,(0,s.createElement)("div",null,e),n&&(0,s.createElement)("div",null,n),(0,s.createElement)("div",null,c))}else i=(0,s.createElement)(Bl.Spinner,null);return(0,s.createElement)(Sp,{className:"gla-store-address-card",appearance:wp.ADDRESS,alignIcon:"top",alignIndicator:"top",description:l,indicator:a},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Store address","google-listings-and-ads")),i))};function b_(e){let{editHref:t,learnMore:n}=e;const{loaded:r,data:a}=qv("mc");let i,l;if(r){const{isAddressFilled:e,isMCAddressDifferent:t,address:r,address2:c,city:u,state:d,country:g,postcode:p}=a,f=d?`${d} - ${g}`:g;e&&!t?i=[r,c,u,f,p].filter(Boolean).join(", "):(l=(0,o.__)("Please add your store address","google-listings-and-ads"),i=(0,s.createElement)(s.Fragment,null,(0,o.__)("Google requires the store address for all stores using Google Merchant Center. ","google-listings-and-ads"),n))}return(0,s.createElement)(m_,{appearance:wp.ADDRESS,editHref:t,editEventName:"gla_edit_mc_store_address",loading:!r,warning:l,content:i})}var w_=e=>{let{loaded:t,data:{display:n,isValid:r}}=e;const o=!!n,a=(0,pc.getPath)();(0,s.useEffect)((()=>{t&&(0,Dl.recordEvent)("gla_mc_phone_number_check",{path:a,exist:o,isValid:r})}),[o,r,t,a])};const E_="contact-information-read-more",$_="https://docs.woocommerce.com/document/google-listings-and-ads/#contact-information",C_=(0,o.__)("Your contact information is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.","google-listings-and-ads"),k_=(0,o.__)("Enter contact information","google-listings-and-ads"),S_=(0,o.__)("Contact information","google-listings-and-ads");function x_(){return(0,s.createElement)(dp,{title:S_,description:C_},(0,s.createElement)(pp,{size:"overlap"},(0,s.createElement)(h_,{editHref:(0,pc.getNewPath)({subpath:bc},Cc,null),learnMore:(0,s.createElement)(zl,{context:"settings-no-phone-number-notice",linkId:E_,href:$_},(0,o.__)("Learn more","google-listings-and-ads"))}),(0,s.createElement)(b_,{editHref:(0,pc.getNewPath)({subpath:_c},Cc,null),learnMore:(0,s.createElement)(zl,{context:"settings-no-store-address-notice",linkId:E_,href:$_},(0,o.__)("Learn more","google-listings-and-ads"))})))}var O_=e=>{let{onPhoneNumberVerified:t}=e;const n=Jb(),r=k_;return w_(n),(0,s.createElement)(dp,{title:r,description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,C_),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-contact-information",linkId:E_,href:$_},(0,o.__)("Learn more","google-listings-and-ads"))))},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(p_,{view:"setup-mc",phoneNumber:n,initEditing:!0,onPhoneNumberVerified:t}),(0,s.createElement)(v_,null)))},P_=e=>{let{id:t,children:n}=e;const[r,o]=(0,s.useState)(!1);return(0,s.createElement)("span",{className:"help-popover"},(0,s.createElement)("button",{onClick:()=>{o(!0),(0,Dl.recordEvent)("gla_tooltip_viewed",{id:t})}},(0,s.createElement)(qg.Z,{size:16})),r&&(0,s.createElement)(cl,{focusOnMount:"container",onClose:()=>{o(!1)}},n))},A_=e=>{const{formProps:t}=e,{getInputProps:n}=t;return(0,s.createElement)("div",{className:"gla-pre-launch-checklist"},(0,s.createElement)(dp,{title:(0,o.__)("Pre-Launch Checklist","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Ensure you meet Google Merchant Center requirements by reviewing this checklist. Otherwise, your products may be disapproved or your Google Merchant Center account may be suspended by Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"checklist-requirements",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy"},(0,o.__)("Read Google Merchant requirements","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)("div",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My store website is live.","google-listings-and-ads")),(0,s.createElement)(P_,{id:"website_live"},(0,s.createInterpolateElement)((0,o.__)("Ensure your store website and products are online and accessible to your customers. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-website-is-live",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#store-is-live"})})))},n("website_live")))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("I have a complete and secure checkout process.","google-listings-and-ads")),(0,s.createElement)(P_,{id:"checkout_process_secure"},(0,s.createElement)("p",null,(0,o.__)("Ensure customers are able to successfully add items to the cart and fully complete the checkout process.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Payment and transaction processing, as well as collection of any sensitive and financial personal information from the user, must be conducted over a secure processing server (SSL-protected, with a valid SSL certificate - https://). <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-checkout-process",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#complete-checkout"})}))))},n("checkout_process_secure"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My payment methods are visible on my website.","google-listings-and-ads")),(0,s.createElement)(P_,{id:"payment_methods_visible"},(0,s.createInterpolateElement)((0,o.__)("Ensure customers have at least one valid payment method, such as credit card, direct bank transfer, or cash on delivery. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-payment-methods",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#payment-methods"})})))},n("payment_methods_visible"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My refund policy and terms of service are visible on my online store.","google-listings-and-ads")),(0,s.createElement)(P_,{id:"refund_tos_visible"},(0,s.createInterpolateElement)((0,o.__)("Your site must provide a clear and conspicuous return policy and billing terms to customers. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-refund-policy",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#refund-and-terms"})})))},n("refund_tos_visible"))),(0,s.createElement)(Uh,l({label:(0,s.createElement)("span",{className:"gla-pre-launch-checklist__checkbox_popover"},(0,s.createElement)("span",{className:"checkbox-label"},(0,o.__)("My store’s phone number, email and/or address are visible on my website.","google-listings-and-ads")),(0,s.createElement)(P_,{id:"contact_info_visible"},(0,s.createInterpolateElement)((0,o.__)("Your website must display sufficient and accurate contact information to your customers, including a telephone number and/or email. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-checklist",linkId:"check-phone-numbers",href:"https://woocommerce.com/document/google-listings-and-ads/compliance-policy/#contact-info"})})))},n("contact_info_visible"))))))))};function N_(e){const t={};return!0!==e.website_live&&(t.website_live=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.checkout_process_secure&&(t.checkout_process_secure=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.payment_methods_visible&&(t.payment_methods_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.refund_tos_visible&&(t.refund_tos_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),!0!==e.contact_info_visible&&(t.contact_info_visible=(0,o.__)("Please check the requirement.","google-listings-and-ads")),t}function R_(){const e=Gv(),{updateGoogleMCContactInformation:t,saveSettings:n}=xg(),{createNotice:r}=Ap(),{data:a}=qv(),{settings:i}=ly(),[l,c]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1);return i?(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Confirm store requirements","google-listings-and-ads"),description:(0,o.__)("Review and confirm that your store meets Google Merchant Center requirements.","google-listings-and-ads")}),(0,s.createElement)(Bl.Form,{initialValues:{website_live:i.website_live,checkout_process_secure:i.checkout_process_secure,payment_methods_visible:i.payment_methods_visible,refund_tos_visible:i.refund_tos_visible,contact_info_visible:i.contact_info_visible},validate:N_,onChange:(e,t)=>{n(t)},onSubmit:async()=>{try{d(!0),await t(),await Hc()({path:"/wc/gla/mc/settings/sync",method:"POST"});const n=(0,pc.getNewPath)({guide:"submission-success"},"/google/product-feed");window.location.href=e+n}catch(e){d(!1),r("error",(0,o.__)("Unable to complete your setup. Please try again later.","google-listings-and-ads"))}}},(e=>{const{handleSubmit:t,isValidForm:n}=e,r=n&&l&&a.isAddressFilled;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(O_,{onPhoneNumberVerified:()=>c(!0)}),(0,s.createElement)(A_,{formProps:e}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,loading:u,disabled:!r,onClick:t},(0,o.__)("Complete setup","google-listings-and-ads"))))}))):(0,s.createElement)(Vg,null)}var T_={accounts:"1",target_audience:"2",shipping_and_taxes:"3",store_requirements:"4"},M_=e=>{let{savedStep:t,onRefetchSavedStep:n=(()=>{})}=e;const[r,a]=(0,s.useState)(t),i=e=>{Number(e)<=Number(t)&&a(e)};return(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:r,steps:[{key:T_.accounts,label:(0,o.__)("Set up your accounts","google-listings-and-ads"),content:(0,s.createElement)(ay,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step1_continue",trigger:"click"}),a(T_.target_audience),n()}}),onClick:i},{key:T_.target_audience,label:(0,o.__)("Choose your audience","google-listings-and-ads"),content:(0,s.createElement)(Lv,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step2_continue",trigger:"click"}),a(T_.shipping_and_taxes),n()}}),onClick:i},{key:T_.shipping_and_taxes,label:(0,o.__)("Configure your product listings","google-listings-and-ads"),content:(0,s.createElement)(Fv,{onContinue:()=>{(0,Dl.recordEvent)("gla_setup_mc",{target:"step3_continue",trigger:"click"}),a(T_.store_requirements),n()}}),onClick:i},{key:T_.store_requirements,label:(0,o.__)("Confirm store requirements","google-listings-and-ads"),content:(0,s.createElement)(R_,null),onClick:i}]})},j_=()=>{const{hasFinishedResolution:e,data:t,invalidateResolution:n}=Pg("getMCSetup");if(!e&&!t)return(0,s.createElement)(Vg,null);if(e&&!t)return null;const{status:r,step:o}=t;return"complete"===r?((0,pc.getHistory)().replace((0,pc.getNewPath)({},"/google/dashboard")),null):(0,s.createElement)(M_,{savedStep:T_[o],onRefetchSavedStep:()=>{n()}})},I_=()=>(Lg("full-page"),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ug,null),(0,s.createElement)(j_,null)));function F_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;(0,s.useEffect)((()=>{const r=t=>{t.preventDefault(),t.returnValue=e};t&&window.addEventListener("beforeunload",r);const o=(0,pc.getHistory)().block((r=>{if(t&&n(r))return e}));return()=>{o(),window.removeEventListener("beforeunload",r)}}),[e,t,n])}const D_="getGoogleAdsAccount";var L_=()=>{const{google:e,isResolving:t}=Xg(),n=xg(),r=(0,s.useCallback)((()=>{n.invalidateResolution(D_,[])}),[n]);return(0,dn.useSelect)((n=>{if(!e||"no"===e.active)return{googleAdsAccount:void 0,isResolving:t};const o=n(Lc);return{googleAdsAccount:o.getGoogleAdsAccount(),isResolving:o.isResolving(D_),refetchGoogleAdsAccount:r,hasFinishedResolution:o.hasFinishedResolution(D_)}}),[e,t,r])};function G_(e){
|
22 |
// translators: %s: user's account ID
|
23 |
+
return(0,o.sprintf)((0,o.__)("Account %s","google-listings-and-ads"),e)}function B_(e){let{googleAdsAccount:t,...n}=e;return(0,s.createElement)(Sp,l({appearance:wp.GOOGLE_ADS,description:G_(t.id),indicator:(0,s.createElement)(Op,null)},n))}var q_=e=>{let{onCreateAccount:t=(()=>{}),onRequestClose:n=(()=>{})}=e;const[r,a]=(0,s.useState)(!1);return(0,s.createElement)(Gh,{className:"gla-ads-terms-modal",title:(0,o.__)("Create Google Ads Account","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"1",isPrimary:!0,disabled:!r,eventName:"gla_ads_account_create_button_click",onClick:()=>{t(),n()}},(0,o.__)("Create account","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",{className:"main"},(0,o.__)("By creating a Google Ads account, you agree to the following terms and conditions:","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("You agree to comply with Google’s terms and policies, including <policylink>Shopping ads policies</policylink> and <termslink>Google Ads Terms and Conditions</termslink>.","google-listings-and-ads"),{policylink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"shopping-ads-policies",href:"https://support.google.com/merchants/answer/6149970"}),termslink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"google-ads-terms-of-service",href:"https://support.google.com/adspolicy/answer/54818"})})),(0,s.createElement)(Uh,{label:(0,o.__)("I have read and accept these terms","google-listings-and-ads"),checked:r,onChange:a}))};function z_(e){let{text:t}=e;return(0,s.createElement)("div",{className:"gla-loading-label"},(0,s.createElement)(Bl.Spinner,null),t)}var H_=e=>{const{onCreateAccount:t,...n}=e,[r,a]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,n.loading?(0,s.createElement)(z_,{text:(0,o.__)("Creating…","google-listings-and-ads")}):(0,s.createElement)(gc,l({isSecondary:!0},n,{text:(0,o.__)("Create account","google-listings-and-ads"),onClick:()=>{a(!0)}})),r&&(0,s.createElement)(q_,{onCreateAccount:t,onRequestClose:()=>{a(!1)}}))};const U_=()=>{const{createNotice:e}=Ap(),{fetchGoogleAdsAccount:t}=xg(),[n,r]=(0,s.useState)(!1),[a,{loading:i}]=Dp({path:"/wc/gla/ads/accounts",method:"POST"});return(0,s.createElement)(H_,{loading:i||n,onCreateAccount:async()=>{try{await a({parse:!1})}catch(t){if(428!==t.status)return void e("error",(0,o.__)("Unable to create Google Ads account. Please try again later.","google-listings-and-ads"))}r(!0),await t(),r(!1)}})};var V_=e=>{const{allowShowExisting:t,onShowExisting:n}=e;return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_ADS,indicator:(0,s.createElement)(U_,null)},t&&(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isLink:!0,onClick:n},(0,o.__)("Or, use your existing Google Ads account","google-listings-and-ads"))))},W_=e=>{const{accounts:t,...n}=e,r=[{value:"",label:(0,o.__)("Select one","google-listings-and-ads")},...t.map((e=>({value:e,label:G_(e)})))];return(0,s.createElement)(Yf,l({options:r},n))},Y_=e=>{const{accounts:t,onCreateNew:n=(()=>{})}=e,[r,a]=(0,s.useState)(),[i,l]=(0,s.useState)(!1),[c]=Dp({path:"/wc/gla/ads/accounts",method:"POST",data:{id:r}}),{refetchGoogleAdsAccount:u}=L_(),{createNotice:d}=Ap(),g=t.length>1;return(0,s.createElement)(Sp,{className:"gla-connect-ads",appearance:wp.GOOGLE_ADS},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Select an existing account","google-listings-and-ads")),g&&(0,s.createElement)(lp.Body,null,(0,s.createInterpolateElement)((0,o.__)("If you manage multiple sub-accounts in Google Ads, please connect the relevant sub-account, not a manager account. <link>Learn more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-ads-connect-account",linkId:"connect-sub-account",href:"https://support.google.com/google-ads/answer/6139186"})})),(0,s.createElement)(Qf,null,(0,s.createElement)(W_,{accounts:t,value:r,onChange:a}),i?(0,s.createElement)(z_,{text:(0,o.__)("Connecting…","google-listings-and-ads")}):(0,s.createElement)(gc,{isSecondary:!0,disabled:!r,eventName:"gla_ads_account_connect_button_click",onClick:async()=>{if(r){l(!0);try{await c(),await u()}catch(e){l(!1),d("error",(0,o.__)("Unable to connect your Google Ads account. Please try again later.","google-listings-and-ads"))}}}},(0,o.__)("Connect","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isLink:!0,onClick:n},(0,o.__)("Or, create a new Google Ads account","google-listings-and-ads"))))},K_=()=>{const{existingAccounts:e}=(0,dn.useSelect)((e=>({existingAccounts:e(Lc).getExistingGoogleAdsAccounts(),isResolving:e(Lc).isResolving("getExistingGoogleAdsAccounts")})),[]),[t,n]=(0,s.useState)(!1);if(!e)return(0,s.createElement)(Kp,null);return 0===e.length||t?(0,s.createElement)(V_,{allowShowExisting:t,onShowExisting:()=>{n(!1)}}):(0,s.createElement)(Y_,{accounts:e,onCreateNew:()=>{n(!0)}})};const Q_="setup-ads";var Z_=e=>{let{additionalScopeEmail:t}=e;const{createNotice:n}=Ap(),[r,{loading:a,data:i}]=qp(Q_,t);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE_ADS,indicator:(0,s.createElement)(gc,{isSecondary:!0,loading:a||i,onClick:()=>{r().then((e=>{let{url:t}=e;window.location.href=t})).catch((()=>{n("error",(0,o.__)("Unable to get Google authorization page. Please try again later.","google-listings-and-ads"))}))},text:(0,o.__)("Allow full access","google-listings-and-ads"),eventName:"gla_google_account_connect_button_click",eventProps:{context:Q_,action:"scope"}})})};function X_(){const{google:e,scope:t}=Xg(),{googleAdsAccount:n}=L_();return e&&n?t.adsRequired?"disconnected"===n.status?(0,s.createElement)(K_,null):(0,s.createElement)(B_,{googleAdsAccount:n}):(0,s.createElement)(Z_,{additionalScopeEmail:e.email}):(0,s.createElement)(Kp,null)}var J_=__webpack_require__(3119),ew=[["DZ",250,"USD"],["AR",25e3,"ARS"],["AM",300,"USD"],["AU",600,"AUD"],["AT",400,"EUR"],["AZ",300,"USD"],["BH",300,"USD"],["BY",300,"USD"],["BE",400,"EUR"],["BO",350,"USD"],["BA",350,"EUR"],["BR",1200,"BRL"],["BG",700,"BGN"],["CA",600,"CAD"],["CL",350,"USD"],["CN",3e3,"CNY"],["CO",350,"USD"],["CR",350,"USD"],["HR",2500,"HRK"],["CY",350,"EUR"],["CZ",8500,"CZK"],["DK",3e3,"DKK"],["DO",350,"USD"],["EC",350,"USD"],["EG",3e3,"EGP"],["SV",350,"USD"],["EE",350,"EUR"],["FI",400,"EUR"],["FR",400,"EUR"],["GE",300,"USD"],["DE",400,"EUR"],["GR",350,"EUR"],["GT",350,"USD"],["HN",350,"USD"],["HK",3e3,"HKD"],["HU",12e4,"HUF"],["IS",400,"EUR"],["IN",2e4,"INR"],["ID",3e6,"IDR"],["IE",400,"EUR"],["IL",1500,"ILS"],["IT",400,"EUR"],["JP",6e4,"JPY"],["JO",250,"USD"],["KZ",300,"USD"],["KE",300,"USD"],["KR",6e5,"KRW"],["KW",300,"USD"],["LV",350,"EUR"],["LB",250,"USD"],["LY",250,"USD"],["LT",350,"EUR"],["LU",400,"EUR"],["MK",300,"USD"],["MY",1500,"MYR"],["MT",350,"EUR"],["MX",7e3,"MXN"],["ME",350,"EUR"],["MA",250,"USD"],["NL",400,"EUR"],["NZ",600,"NZD"],["NI",350,"USD"],["NG",300,"USD"],["NO",4e3,"NOK"],["OM",250,"USD"],["PK",400,"USD"],["PS",250,"USD"],["PA",350,"USD"],["PY",350,"USD"],["PE",350,"USD"],["PH",2e4,"PHP"],["PL",1200,"PLN"],["PT",400,"EUR"],["PR",350,"USD"],["QA",300,"USD"],["RO",1500,"RON"],["RU",3e4,"RUB"],["SA",1300,"SAR"],["RS",350,"EUR"],["SG",600,"SGD"],["SK",350,"EUR"],["SI",350,"EUR"],["ZA",6e3,"ZAR"],["ES",400,"EUR"],["LK",400,"USD"],["SE",4e3,"SEK"],["CH",400,"CHF"],["TW",12e3,"TWD"],["TH",12e3,"THB"],["TN",250,"USD"],["TR",2500,"TRY"],["UA",1e4,"UAH"],["AE",1600,"AED"],["GB",400,"GBP"],["US",500,"USD"],["UY",350,"USD"],["VE",350,"USD"],["VN",56e5,"VND"]],tw=e=>{const t=Zy();return(0,s.createElement)(Gh,l({className:"gla-free-ad-credit-country-modal",title:(0,o.__)("Check your maximum free credit","google-listings-and-ads")},e),(0,s.createElement)("p",null,(0,o.__)("Whatever you spend in the next month will be added back to your Google Ads account as free credit, up to a maximum limit depending on your store’s country.","google-listings-and-ads")),(0,s.createElement)("table",null,(0,s.createElement)("tbody",null,ew.map(((e,n)=>{const[r,o,a]=e;return(0,s.createElement)("tr",{key:n},(0,s.createElement)("td",null,t[r]),(0,s.createElement)("td",null,`${o} ${a}`))})))))},nw=()=>{const[e,t]=(0,s.useState)(!1);return(0,s.createElement)("div",{className:"gla-free-ad-credit"},(0,s.createElement)(J_.Z,null),(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"gla-free-ad-credit__title"},(0,o.__)("Spend $500 to get $500 in Google Ads credits!","google-listings-and-ads")),(0,s.createElement)("div",{className:"gla-free-ad-credit__description"},(0,s.createInterpolateElement)((0,o.__)("New to Google Ads? Get $500 in ad credit when you spend $500 within your first 60 days. Check how much credit you can receive in your country <checkLink>here</checkLink>. <termLink>Terms and conditions apply</termLink>.","google-listings-and-ads"),{checkLink:(0,s.createElement)(ql,{eventName:"gla_free_ad_credit_country_click",eventProps:{context:"setup-ads"},href:"#",type:"wp-admin",onClick:()=>{t(!0)}}),termLink:(0,s.createElement)(zl,{context:"setup-ads",linkId:"free-ad-credit-terms",href:"https://www.google.com/ads/coupons/terms/"})})),e&&(0,s.createElement)(tw,{onRequestClose:()=>{t(!1)}})))},rw=e=>{const{onContinue:t=(()=>{})}=e,{google:n}=Xg(),{googleAdsAccount:r}=L_(),a=(()=>{const{googleAdsAccount:e}=L_();return e&&e.sub_account&&(0,wd.getDateDifferenceInDays)(new Date,new Date(1e3*e.created_timestamp))<60})();if(!n||"yes"===n.active&&!r)return(0,s.createElement)(Vg,null);const i=!r.id;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up your accounts","google-listings-and-ads"),description:(0,o.__)("Connect your Google account and your Google Ads account to set up a paid Performance Max campaign.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Connect accounts","google-listings-and-ads"),description:(0,o.__)("Any campaigns created through this app will appear in your Google Ads account. You will be billed directly through Google.","google-listings-and-ads")},(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Up,{googleAccount:n,hideAccountSwitch:!0,helper:(0,o.__)("This Google account is connected to your store’s product feed.","google-listings-and-ads")}),(0,s.createElement)(X_,null),a&&(0,s.createElement)(nw,null))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:i,onClick:t},(0,o.__)("Continue","google-listings-and-ads"))))};function ow(e,t){return e.map((e=>({label:t[e],value:e})))}var aw=e=>{const{formProps:{getInputProps:t},multiple:n=!0,disabled:r=!1,countrySelectHelperText:a}=e,i=Zy(),l=t("countryCodes"),c=n?(0,s.createElement)(hv,{label:(0,o.__)("Select countries","google-listings-and-ads"),help:a,disabled:r,value:l.value,additionalCountryCodes:r?l.value:void 0,onChange:l.onChange}):(0,s.createElement)(Wf,{label:(0,o.__)("Select one country","google-listings-and-ads"),help:a,disabled:r,options:ow(l.value,i),value:l.selected[0],onChange:l.onChange,role:"combobox"});return(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Choose where do you want your product ads to appear.","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,c)))},iw=__webpack_require__(7132),sw=e=>{const{countryCodes:t,dailyAverageCost:n=1/0}=e,{data:r}=(e=>{const t={country_codes:e},n=(0,eg.addQueryArgs)("/wc/gla/ads/campaigns/budget-recommendation",t);return jv({path:n})})(t),a=Zy();if(!r)return null;const{currency:i,recommendations:l}=r,{daily_budget_low:c,daily_budget_high:u,country:d}=function(e){return e.reduce(((e,t)=>t.daily_budget_high>e.daily_budget_high?t:e))}(l),g=a[d],p=function(e){const t={strong:(0,s.createElement)("strong",null)},n=e?// translators: it's a range of recommended budget amount. 1: the low value of the range, 2: the high value of the range, 3: the currency of amount.
|
24 |
(0,o.__)("Most merchants targeting similar countries set a daily budget of <strong>%1$f to %2$f %3$s</strong> for approximately 10 conversions a week.","google-listings-and-ads"):// translators: it's a range of recommended budget amount. 1: the low value of the range, 2: the high value of the range, 3: the currency of amount, 4: a country name selected by the merchant.
|
25 |
+
(0,o.__)("Most merchants targeting <strong>%4$s</strong> set a daily budget of <strong>%1$f to %2$f %3$s</strong> for approximately 10 conversions a week.","google-listings-and-ads");for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return(0,s.createInterpolateElement)((0,o.sprintf)(n,...a),t)}(l.length>1,c,u,i,g),f=n<c;return(0,s.createElement)("div",{className:"gla-budget-recommendation"},(0,s.createElement)("div",{className:"gla-budget-recommendation__recommendation"},(0,s.createElement)(iw.Z,null),(0,s.createElement)("div",null,p)),f&&(0,s.createElement)("div",{className:"gla-budget-recommendation__low-budget"},(0,s.createElement)(iw.Z,null),(0,s.createElement)("div",null,(0,o.__)("With a budget lower than your competitor range, your campaign may not get noticeable results.","google-listings-and-ads"))))};const lw={noPointerEvents:!0,readOnly:!0,tabIndex:-1};var cw=e=>{const{formProps:{getInputProps:t,setValue:n,values:r},disabled:a=!1}=e,{countryCodes:i,amount:c}=r,{googleAdsAccount:u}=L_(),d=30.4*c,g=null==u?void 0:u.currency,p=(0,s.useRef)(c);return(0,s.useEffect)((()=>{const e=a?void 0:p.current;n("amount",e)}),[a,n]),(0,s.createElement)("div",{className:"gla-budget-section"},(0,s.createElement)(dp,{disabled:a,title:(0,o.__)("Budget","google-listings-and-ads"),description:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,o.__)("Enter a daily average cost that works best for your business and the results that you want. You can change your budget or cancel your ad at any time.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("You will be billed directly by Google Ads.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Google will optimize your ads to maximize performance across your selected country(s).","google-listings-and-ads")))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,{className:"gla-budget-section__card-body"},(0,s.createElement)("div",{className:"gla-budget-section__card-body__cost"},(0,s.createElement)(My,l({label:(0,o.__)("Daily average cost","google-listings-and-ads"),suffix:g},t("amount"),a&&lw)),(0,s.createElement)(My,{disabled:!0,label:(0,o.__)("Monthly max, estimated ","google-listings-and-ads"),suffix:g,value:d})),i.length>0&&(0,s.createElement)(sw,{countryCodes:i,dailyAverageCost:c})))))},uw=()=>{const e=e=>t=>{(0,Dl.recordEvent)("gla_setup_ads_faq",{id:e,action:t?"expand":"collapse"})};return(0,s.createElement)(dp,null,(0,s.createElement)(Yi,{header:(0,o.__)("Frequently asked questions","google-listings-and-ads")},(0,s.createElement)(Il,{initialOpen:!1,title:(0,o.__)("What do I pay for?","google-listings-and-ads"),onToggle:e("what-do-i-pay-for")},(0,s.createElement)(Fl,null,(0,o.__)("You only pay when someone clicks on your product ads to your store.","google-listings-and-ads"))),(0,s.createElement)(Il,{initialOpen:!1,title:(0,o.__)("What does daily average or monthly max mean?","google-listings-and-ads"),onToggle:e("what-does-daily-average-monthly-max-mean")},(0,s.createElement)(Fl,null,(0,o.__)("Some days you might spend less than your daily average, and on others you might spend up to 4 times as much. But over a month, your total spend across the month will be approximately as calculated above.","google-listings-and-ads")))))},dw=e=>{const{formProps:t}=e,n=!t.values.countryCodes.length;return(0,s.createElement)("div",{className:"gla-campaign-form-content"},(0,s.createElement)(aw,{formProps:t}),(0,s.createElement)(cw,{formProps:t,disabled:n}),(0,s.createElement)(uw,null))},gw=e=>{const{formProps:t,onContinue:n=(()=>{})}=e,{isValidForm:r}=t;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),description:(0,s.createInterpolateElement)((0,o.__)("Paid Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"})})}),(0,s.createElement)(dw,{formProps:t}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!r,onClick:n},(0,o.__)("Continue","google-listings-and-ads"))))},pw=e=>{const{title:t,button:n}=e;return(0,s.createElement)(Qf,{className:"gla-title-button-layout"},(0,s.createElement)(lp.Title,{className:"title"},t),n)},fw=(e,t)=>{const n=(()=>{const[e,t]=(0,s.useState)(document.hasFocus());return(0,s.useEffect)((()=>{const e=()=>{t(!0)},n=()=>{t(!1)};return window.addEventListener("focus",e),window.addEventListener("blur",n),()=>{window.removeEventListener("focus",e),window.removeEventListener("blur",n)}}),[]),e})();(0,s.useEffect)((()=>{if(!n)return;e();const r=setInterval(e,1e3*t);return()=>clearInterval(r)}),[e,t,n])};const mw=()=>Hc()({path:"/wc/gla/ads/accounts",method:"POST"});var hw=e=>{let{billingUrl:t,onSetupComplete:n}=e;const{googleAdsAccount:r}=L_();return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const{createNotice:t}=Ap(),{receiveGoogleAdsAccountBillingStatus:n}=xg(),r=(0,s.useCallback)((async()=>{const r=await Hc()({path:"/wc/gla/ads/billing-status"});if("approved"===r.status)try{await mw(),await e(),n(r)}catch(e){t("error",(0,o.__)("Unable to complete your Google Ads account setup. Please try again later.","google-listings-and-ads"))}}),[t,e,n]);fw(r,30)}(n),r?(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card"},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__account-number"},(0,s.createElement)(pw,{title:G_(r.id)})),(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__description"},(0,s.createElement)("div",{className:"gla-google-ads-billing-setup-card__description__text"},(0,o.__)("You do not have billing information set up in your Google Ads account. Once you have completed your billing setup, your campaign will launch automatically.","google-listings-and-ads")),(0,s.createElement)(gc,{isSecondary:!0,href:t,target:"_blank",eventName:"gla_ads_set_up_billing_click",eventProps:{context:"setup-ads",link_id:"set-up-billing",href:t}},(0,o.__)("Set up billing","google-listings-and-ads")))))):(0,s.createElement)(Vg,null)},yw=__webpack_require__(7188),vw=()=>{const{googleAdsAccount:e}=L_();return e?(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card"},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card__account-number"},(0,s.createElement)(pw,{title:G_(e.id)})),(0,s.createElement)("div",{className:"gla-google-ads-billing-saved-card__description"},(0,s.createElement)(yw.Z,null),(0,s.createElement)("div",null,(0,s.createInterpolateElement)((0,o.__)("Great! You already have billing information saved for this <link>Google Ads account</link>.","google-listings-and-ads"),{link:(0,s.createElement)(ql,{eventName:"gla_google_ads_account_link_click",eventProps:{context:"setup-ads",link_id:"google-ads-account",href:"https://ads.google.com/aw/overview "},type:"external",target:"_blank",href:"https://ads.google.com/aw/overview"})})))))):(0,s.createElement)(Vg,null)},bw=e=>{const{formProps:{isSubmitting:t,handleSubmit:n}}=e,{billingStatus:r}=(0,dn.useSelect)((e=>({billingStatus:e(Lc).getGoogleAdsAccountBillingStatus()})),[]);return r?(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Set up billing","google-listings-and-ads"),description:"approved"===r.status?(0,o.__)("You will be billed directly by Google Ads, and you only pay when you get results.","google-listings-and-ads"):(0,o.__)("In order to launch your paid campaign, your billing information is required. You will be billed directly by Google and only pay when someone clicks on your ad.","google-listings-and-ads")}),(0,s.createElement)(dp,{title:(0,o.__)("Payment info through Google Ads","google-listings-and-ads")},"approved"===r.status?(0,s.createElement)(vw,null):(0,s.createElement)(hw,{billingUrl:r.billing_url||"https://support.google.com/google-ads/answer/2375375",onSetupComplete:n})),"approved"===r.status&&(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,loading:t,onClick:n},(0,o.__)("Launch paid campaign","google-listings-and-ads")))):(0,s.createElement)(Vg,null)},_w=e=>{const{formProps:t}=e,[n,r]=(0,s.useState)("1"),a=e=>{e<n&&r(e)};return(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:n,steps:[{key:"1",label:(0,o.__)("Set up your accounts","google-listings-and-ads"),content:(0,s.createElement)(rw,{onContinue:()=>{r("2")}}),onClick:a},{key:"2",label:(0,o.__)("Create your paid campaign","google-listings-and-ads"),content:(0,s.createElement)(gw,{formProps:t,onContinue:()=>{r("3")}}),onClick:a},{key:"3",label:(0,o.__)("Set up billing","google-listings-and-ads"),content:(0,s.createElement)(bw,{formProps:t}),onClick:a}]})},ww=()=>(0,s.createElement)(Bg,{title:(0,o.__)("Set up paid campaign","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"setup-ads"}),backHref:(0,pc.getNewPath)({},"/google/dashboard"),onBackButtonClick:()=>{(0,Dl.recordEvent)("gla_setup_ads",{target:"back",trigger:"click"})}}),Ew=e=>{const{formProps:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ww,null),(0,s.createElement)(_w,{formProps:t}))},$w=e=>{const t={};return 0===e.countryCodes.length&&(t.countryCodes=(0,o.__)("Please select at least one country for your ads campaign.","google-listings-and-ads")),e.amount<=0&&(t.amount=(0,o.__)("Please make sure daily average cost is greater than 0.","google-listings-and-ads")),t},Cw=()=>{const[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[a,i]=function(){const{createAdsCampaign:e}=xg(),{createNotice:t}=Ap(),[n,r]=(0,s.useState)(!1),a=(0,s.useCallback)((()=>Hc()({path:"/wc/gla/ads/setup/complete",method:"POST"}).catch((()=>(t("error",(0,o.__)("Unable to complete your ads setup. Please try again later.","google-listings-and-ads")),Promise.reject())))),[t]);return[(0,s.useCallback)(((t,n,o)=>{r(!0),e(t,n).then(a).then(o).catch((()=>r(!1)))}),[e,a]),n]}(),l=Gv(),{data:c}=$y(),u={amount:0,countryCodes:c};(0,s.useEffect)((()=>{if(n){const e=(0,pc.getNewPath)({guide:"campaign-creation-success"},"/google/dashboard");window.location.href=l+e}}),[n,l]);const d=e&&!n;return F_((0,o.__)("You have unsaved campaign data. Are you sure you want to leave?","google-listings-and-ads"),d),c?(0,s.createElement)(Bl.Form,{initialValues:u,validate:$w,onChange:(e,n)=>{t(!(0,ie.isEqual)(u,n))},onSubmit:e=>{const{amount:t,countryCodes:n}=e;(0,Dl.recordEvent)("gla_launch_paid_campaign_button_click",{audiences:n.join(","),budget:t}),a(t,n,(()=>{r(!0)}))}},(e=>{const t={...e,isSubmitting:i};return(0,s.createElement)(Ew,{formProps:t})})):null},kw=()=>(Lg("full-page"),(0,s.createElement)(Cw,null)),Sw=e=>{let{context:t}=e;const{googleAdsAccount:n}=L_(),{code:r}=Py();return n&&"connected"===n.status&&n.currency!==r?(0,s.createElement)(Fc,{className:"gla-different-currency-notice",status:"warning",isDismissible:!1},(0,s.createInterpolateElement)((0,o.__)("Note: The currency set in your Google Ads account is <adsCurrency />, which is different from your store currency, <storeCurrency />. <readMoreLink>Read more</readMoreLink>","google-listings-and-ads"),{adsCurrency:(0,s.createElement)("strong",null,n.currency),storeCurrency:(0,s.createElement)("strong",null,r),readMoreLink:(0,s.createElement)(zl,{className:"gla-different-currency-notice__link",href:"https://support.google.com/google-ads/answer/9841530",context:t,linkId:"setting-up-currency"})})):null};var xw=["menuitem","menuitemradio","menuitemcheckbox"],Ow=function(e){Ns(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Ms(t);if(n){var o=Ms(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ts(this,e)});function o(){var e;return Os(this,o),(e=r.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Rs(e)),e.bindContainer=e.bindContainer.bind(Rs(e)),e.getFocusableContext=e.getFocusableContext.bind(Rs(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Rs(e)),e}return As(o,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,(0,ie.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?ls.focus.tabbable:ls.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?ie.noop:i,l=n.stopNavigationEvents,c=a(e);if(void 0!==c&&l){e.stopImmediatePropagation();var u=e.target.getAttribute("role");xw.includes(u)&&e.preventDefault()}if(c){var d=t(e.target.ownerDocument.activeElement);if(d){var g=d.index,p=d.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(g,p.length,c):g+c;f>=0&&f<p.length&&(p[f].focus(),s(f,p[f]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=c(e,["children"]);return(0,s.createElement)("div",l({ref:this.bindContainer},(0,ie.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),o}(s.Component),Pw=function(e,t){return(0,s.createElement)(Ow,l({},e,{forwardedRef:t}))};Pw.displayName="NavigableContainer";var Aw=(0,s.forwardRef)(Pw),Nw=(0,s.forwardRef)((function(e,t){var n=e.role,r=void 0===n?"menu":n,o=e.orientation,a=void 0===o?"vertical":o,i=c(e,["role","orientation"]);return(0,s.createElement)(Aw,l({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:r,"aria-orientation":"presentation"===r?null:a,eventToOffset:function(e){var t=e.keyCode,n=[cs.DOWN],r=[cs.UP];return"horizontal"===a&&(n=[cs.RIGHT],r=[cs.LEFT]),"both"===a&&(n=[cs.RIGHT,cs.DOWN],r=[cs.LEFT,cs.UP]),(0,ie.includes)(n,t)?1:(0,ie.includes)(r,t)?-1:(0,ie.includes)([cs.DOWN,cs.UP,cs.LEFT,cs.RIGHT],t)?0:void 0}},i))}));const Rw=e=>{let{tabId:t,href:n,children:r,selected:o,...a}=e;return(0,s.createElement)(Bl.Link,l({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,href:n},a),r)};var Tw=e=>{const{selectedKey:t,tabs:n}=e;return(0,s.createElement)("div",{className:"app-tab-nav"},(0,s.createElement)(Nw,{role:"tablist",orientation:"horizontal",className:"app-tab-nav__tabs"},n.map((e=>(0,s.createElement)(Rw,{className:d()("components-button","app-tab-nav__tabs-item",{"is-active":e.key===t}),tabId:`${e.key}`,"aria-controls":`${e.key}-view`,selected:e.key===t,key:e.key,href:e.href},e.title)))))},Mw=()=>{var e;return!(null===(e=window.wcAdminFeatures)||void 0===e||!e.navigation)};const jw={match:{url:"/google/dashboard"},wpOpenMenu:"toplevel_page_woocommerce-marketing"};function Iw(){const e=Mw();return(0,s.useEffect)((()=>{e||window.wpNavMenuClassChange(jw,jw.match.url)}),[e])}let Fw=[{key:"dashboard",title:(0,o.__)("Dashboard","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/dashboard",{})},{key:"reports",title:(0,o.__)("Reports","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/reports",{})},{key:"product-feed",title:(0,o.__)("Product Feed","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/product-feed",{})},{key:"settings",title:(0,o.__)("Settings","google-listings-and-ads"),href:(0,pc.getNewPath)({},"/google/settings",{})}];Zl.enableReports||(Fw=Fw.filter((e=>{let{key:t}=e;return"reports"!==t})));var Dw=()=>{Iw();const e=(()=>{var e;const t=(0,pc.getPath)();return null===(e=Fw.find((e=>t.includes(e.key))))||void 0===e?void 0:e.key})();return(0,s.createElement)(Tw,{tabs:Fw,selectedKey:e})},Lw=()=>Mw()?null:(0,s.createElement)(Dw,null),Gw=window.wc.customerEffortScore,Bw=__webpack_require__.n(Gw);const qw="undefined"!=typeof window&&"localStorage"in window,zw={get:e=>qw?window.localStorage.getItem(e):null,set:(e,t)=>qw?window.localStorage.setItem(e,t):null,remove:e=>qw?window.localStorage.removeItem(e):null};var Hw=zw,Uw=e=>{let{eventContext:t,label:n}=e;return(0,s.createElement)(Bw(),{label:n,recordScoreCallback:(e,n)=>{(0,Dl.recordEvent)("gla_ces_feedback",{context:t,score:e,comments:n||""})},onNoticeShownCallback:()=>{Hw.remove(ac),(0,Dl.recordEvent)("gla_ces_snackbar_open",{context:t})},onNoticeDismissedCallback:()=>{(0,Dl.recordEvent)("gla_ces_snackbar_closed",{context:t})},onModalShownCallback:()=>{(0,Dl.recordEvent)("gla_ces_modal_open",{context:t})},icon:(0,s.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":(0,o.__)("Pencil icon","google-listings-and-ads")},"✏️")})},Vw=e=>{const{trackEventReportId:t}=e,n=(()=>{const e=(0,pc.getQuery)(),{period:t,compare:n,before:r,after:o}=(0,wd.getDateParamsFromQuery)(e),{primary:a,secondary:i}=(0,wd.getCurrentDates)(e);return{period:t,compare:n,before:r,after:o,primaryDate:a,secondaryDate:i}})();return(0,s.createElement)(Bl.DateRangeFilterPicker,{dateQuery:n,onRangeSelect:e=>{t&&(0,Dl.recordEvent)("gla_datepicker_update",{report:t,...e}),(0,pc.updateQueryString)(e)},isoDateFormat:"YYYY-MM-DD"})},Ww=function(e){let t;function n(e){const n={code:"USD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2,...e};t={code:n.code.toString(),symbol:n.symbol.toString(),symbolPosition:n.symbolPosition.toString(),decimalSeparator:n.decimalSeparator.toString(),priceFormat:a(n),thousandSeparator:n.thousandSeparator.toString(),precision:parseInt(n.precision,10)}}function r(e,n=!1){const r=Oy(t,e);if(""===r)return r;const{priceFormat:a,symbol:i,code:s}=t;return(0,o.sprintf)(a,n?s:i,r)}function a(e){if(e.priceFormat)return function(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}(e.priceFormat.toString());switch(e.symbolPosition){case"left":return"%1$s%2$s";case"right":return"%2$s%1$s";case"left_space":return"%1$s %2$s";case"right_space":return"%2$s %1$s"}return"%1$s%2$s"}return n(e),{getCurrencyConfig:()=>({...t}),getDataForCountry:function(e,t={},n={}){const r=t[e]||{},o=n[r.currency_code];return o?{code:r.currency_code,symbol:(0,Qy.decodeEntities)(o),symbolPosition:r.currency_pos,thousandSeparator:r.thousand_sep,decimalSeparator:r.decimal_sep,precision:r.num_decimals}:{}},setCurrency:n,formatAmount:r,formatCurrency:function(e){return ss()("Currency().formatCurrency",{version:"5.0.0",alternative:"Currency().formatAmount",plugin:"WooCommerce",hint:"`formatAmount` accepts the same arguments as formatCurrency"}),r(e)},getPriceFormat:a,formatDecimal(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return 0;const{precision:n}=t;return Math.round(e*Math.pow(10,n))/Math.pow(10,n)},formatDecimalString(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return"";const{precision:n}=t;return e.toFixed(n)},render:e=>("number"!=typeof e&&(e=parseFloat(e)),e<0?(0,s.createElement)("span",{className:"is-negative"},r(e)):r(e))}};function Yw(){const e=Py(),{googleAdsAccount:t}=L_(),n=(null==t?void 0:t.currency)||"",r=(null==t?void 0:t.symbol)||"",o=(0,s.useMemo)((()=>({...e,code:n,symbol:r})),[e,n,r]),a=(0,s.useMemo)((()=>Ww(o).formatAmount),[o]);return{adsCurrencyConfig:o,formatAmount:a}}function Kw(){const e=(0,pc.getQuery)();return Og(e)}function Qw(e){const t=Kw();return(0,dn.useSelect)((n=>{const{getDashboardPerformance:r}=n(Lc),o=r(e,t,"primary"),a=r(e,t,"secondary");let i=null;const s=o.loaded&&a.loaded;return s&&o.data&&a.data&&(i=xd(o.data,a.data)),{loaded:s,data:i}}),[e,t])}var Zw=e=>{let t,{loaded:n,data:r,children:o,noDataMessage:a}=e;return t=n?r?(0,s.createElement)(Bl.SummaryList,null,(()=>o(r))):(0,s.createElement)("div",{className:"gla-summary-card__body"},(0,s.createElement)("p",null,a.body),(0,s.createElement)(gc,{eventName:a.eventName,eventProps:{context:"dashboard",href:a.link},href:a.link,target:"_blank",isSmall:!0,isSecondary:!0},a.buttonLabel)):(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:2}),t},Xw=e=>{let{title:t,children:n}=e;return(0,s.createElement)(De,{className:"gla-summary-card"},(0,s.createElement)(zi,{size:"medium"},(0,s.createElement)(Ii,{variant:"title.small"},t)),n)},Jw=e=>{const{eventName:t="gla_add_paid_campaign_clicked",eventProps:n,children:r,onClick:a=(()=>{}),...i}=e,{adsSetupComplete:c}=Zl,u=c?kc():(0,pc.getNewPath)({},"/google/setup-ads",{}),d={context:"",href:u};return(0,s.createElement)(gc,l({isSmall:!0,isSecondary:!0,onClick:function(){(0,Dl.recordEvent)(t,{...d,...n}),(0,pc.getHistory)().push(u),a(...arguments)}},i),r||(0,o.__)("Add paid campaign","google-listings-and-ads"))};const eE=e=>{let{adsAccount:t}=e;const n=t.sub_account||"disconnected"===t.status;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,n?(0,o.__)("Create your first campaign and get $500 in ad credit*","google-listings-and-ads"):(0,o.__)("Create your first campaign","google-listings-and-ads")),(0,s.createElement)(Jw,{eventProps:{context:"add-paid-campaign-promotion"}}))};var tE=function(){const{googleAdsAccount:e}=L_();return(0,s.createElement)("div",{className:"gla-summary-card__body"},e?(0,s.createElement)(eE,{adsAccount:e}):(0,s.createElement)(Bl.Spinner,null))};const nE={precision:0},rE=()=>{const e=Ry(nE),{data:t,loaded:n}=Qw(ec);return(0,s.createElement)(Zw,{loaded:n,data:t,noDataMessage:{body:(0,o.__)("We're having trouble loading this data. Try again later, or track your performance in Google Merchant Center.","google-listings-and-ads"),link:"https://merchants.google.com/mc/reporting/dashboard",eventName:"gla_google_mc_link_click",buttonLabel:(0,o.__)("Open Google Merchant Center","google-listings-and-ads")}},(t=>[(0,s.createElement)(Bl.SummaryNumber,{key:"1",label:(0,o.__)("Clicks","google-listings-and-ads"),value:e(t.clicks.value),prevValue:e(t.clicks.prevValue),delta:t.clicks.delta}),(0,s.createElement)(Bl.SummaryNumber,{key:"2",label:(0,o.__)("Total Spend","google-listings-and-ads"),value:(0,o.__)("Free","google-listings-and-ads"),delta:null})]))},oE=()=>{const{formatAmount:e}=Yw(),{data:t,loaded:n}=Qw(Jl);return(0,s.createElement)(Zw,{loaded:n,data:t,noDataMessage:{body:(0,o.__)("We're having trouble loading this data. Try again later, or track your performance in Google Ads.","google-listings-and-ads"),link:"https://ads.google.com/",eventName:"gla_google_ads_link_click",buttonLabel:(0,o.__)("Open Google Ads","google-listings-and-ads")}},(t=>[(0,s.createElement)(Bl.SummaryNumber,{key:"1",label:(0,o.__)("Total Sales","google-listings-and-ads"),value:e(t.sales.value,!0),prevValue:e(t.sales.prevValue,!0),delta:t.sales.delta}),(0,s.createElement)(Bl.SummaryNumber,{key:"2",label:(0,o.__)("Total Spend","google-listings-and-ads"),value:e(t.spend.value,!0),prevValue:e(t.spend.prevValue,!0),delta:t.spend.delta})]))};function aE(){const{adsSetupComplete:e}=Zl;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Xw,{title:(0,o.__)("Performance (Free Listing)","google-listings-and-ads")},(0,s.createElement)(rE,null)),(0,s.createElement)(Xw,{title:(0,o.__)("Performance (Paid Campaigns)","google-listings-and-ads")},e?(0,s.createElement)(oE,null):(0,s.createElement)(tE,null)))}function iE(e){let{title:t,children:n}=e;return(0,s.createElement)("div",{className:"gla-guide__page-content"},(0,s.createElement)("h2",{className:"gla-guide__page-content__header"},t),(0,s.createElement)("div",{className:"gla-guide__page-content__body"},n))}function sE(e){const{context:t,href:n,className:r,...o}=e;return(0,s.createElement)(ql,l({className:d()("gla-guide__page-content__link",r),eventName:"gla_modal_content_link_click",eventProps:{context:t,href:n},type:"external",target:"_blank",href:n},o))}var lE=__webpack_require__(221);const cE="create-another-campaign",uE="confirm";function dE(e){let{onGuideRequestClose:t=(()=>{})}=e;(0,s.useEffect)((()=>{(0,Dl.recordEvent)("gla_modal_open",{context:oc})}),[]);const n=(0,s.useCallback)((e=>t(e,"dismiss")),[t]);return(0,s.createElement)(Gh,{className:"gla-campaign-creation-success-guide",onRequestClose:n,buttons:[(0,s.createElement)(xl,{key:"0",isTertiary:!0,"data-action":cE,onClick:t},(0,o.__)("Create another campaign","google-listings-and-ads")),(0,s.createElement)(xl,{key:"1",isPrimary:!0,"data-action":uE,onClick:t},(0,o.__)("Got it","google-listings-and-ads"))]},(0,s.createElement)("div",{className:"gla-campaign-creation-success-guide__header-image"},(0,s.createElement)("img",{src:lE,alt:(0,o.__)("Drawing of a person who successfuly launched a campaign","google-listings-and-ads"),width:"413",height:"160"})),(0,s.createElement)(iE,{title:(0,o.__)("You've set up a paid Performance Max Campaign!","google-listings-and-ads")},(0,s.createInterpolateElement)((0,o.__)("You can pause or edit your campaign at any time. For best results, we recommend allowing your campaign to run for at least 14 days without pausing or editing. <link>Learn more about Performance Max technology.</link>","google-listings-and-ads"),{link:(0,s.createElement)(sE,{href:"https://support.google.com/google-ads/answer/10724817",context:"campaign-creation-performance-max"})})))}var gE=e=>{const{className:t,...n}=e;return(0,s.createElement)("div",l({className:d()("app-table-card-div",t)},n))};const pE=(e,t,n)=>{const r=t.includes(n)?"on":"off";(0,Dl.recordEvent)("gla_table_header_toggle",{report:e,column:n,status:r})},fE=(e,t,n)=>{(0,Dl.recordEvent)("gla_table_sort",{report:e,column:t,direction:n})};var mE=e=>{const{trackEventReportId:t,...n}=e;function r(e,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t&&e(t,...o),n&&n(...o)}}return(0,s.createElement)(gE,null,(0,s.createElement)(Bl.TableCard,l({},n,{onColumnsChange:r(pE,e.onColumnsChange),onSort:r(fE,e.onSort)})))},hE=e=>{const{programId:t,onRequestClose:n}=e,[r,a]=(0,s.useState)(!1),i=xg(),l=()=>{r||n()};return(0,s.createElement)(Gh,{className:"gla-remove-program-modal",title:(0,o.__)("Permanently Remove?","google-listings-and-ads"),isDismissible:!r,buttons:[(0,s.createElement)(xl,{key:"keep",isSecondary:!0,disabled:r,onClick:l},(0,o.__)("Keep Campaign","google-listings-and-ads")),(0,s.createElement)(gc,{key:"remove",isPrimary:!0,isDestructive:!0,loading:r,onClick:()=>{a(!0),i.deleteAdsCampaign(t).then((()=>n())).catch((()=>a(!1)))}},(0,o.__)("Remove Campaign","google-listings-and-ads"))],onRequestClose:l},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s paid ad campaigns. Removing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Once a campaign is removed, it cannot be re-enabled.","google-listings-and-ads")))},yE=e=>{const{programId:t}=e,[n,r]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{isDestructive:!0,isLink:!0,onClick:()=>{r(!0)}},(0,o.__)("Remove","google-listings-and-ads")),n&&(0,s.createElement)(hE,{programId:t,onRequestClose:()=>{r(!1)}}))},vE=e=>{let{programId:t,onRequestClose:n}=e;return(0,s.createElement)(Gh,{className:"gla-edit-program-prompt-modal",title:(0,o.__)("Before you edit…","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"no",isSecondary:!0,onClick:()=>{n()}},(0,o.__)("Don't edit","google-listings-and-ads")),(0,s.createElement)(xl,{key:"yes",isPrimary:!0,onClick:()=>{const e=0===t?(0,pc.getNewPath)({subpath:hc},$c):(e=>(0,pc.getNewPath)({subpath:yc,programId:e},$c))(t);(0,pc.getHistory)().push(e),(0,Dl.recordEvent)("gla_dashboard_edit_program_click",{programId:t,url:e})}},(0,o.__)("Continue to edit","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s Free Listing and paid ad campaigns.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Editing will result in the loss of any optimisations learned over time.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("We recommend allowing your programs to run for at least 14 days after set up, without pausing or editing, for optimal performance.","google-listings-and-ads")))},bE=e=>{const{programId:t}=e;return(0,s.createElement)(Sy,{button:(0,s.createElement)(xl,{isLink:!0},(0,o.__)("Edit","google-listings-and-ads")),modal:(0,s.createElement)(vE,{programId:t})})};const _E="getAdsCampaigns";var wE=()=>(0,dn.useSelect)((e=>{const{adsSetupComplete:t}=Zl;if(!t)return{loading:!1,loaded:!0,data:[]};const n=e(Lc),r=n[_E]();return{loading:n.isResolving(_E),loaded:n.hasFinishedResolution(_E),data:r}}),[]),EE=e=>{const{onPauseCampaign:t=(()=>{}),onRequestClose:n}=e;return(0,s.createElement)(Gh,{className:"gla-pause-program-modal",title:(0,o.__)("Before you pause…","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"1",isSecondary:!0,onClick:()=>{n()}},(0,o.__)("Keep Active","google-listings-and-ads")),(0,s.createElement)(xl,{key:"2",isPrimary:!0,onClick:()=>{t()}},(0,o.__)("Pause Campaign","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)("p",null,(0,o.__)("Results typically improve with time with Google’s paid ad campaigns. If you pause, your products won’t be shown to people looking for what you offer.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Pausing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.","google-listings-and-ads")))},$E=function(e){var t=e.className,n=e.checked,r=e.id,o=e.disabled,a=e.onChange,i=void 0===a?ie.noop:a,u=c(e,["className","checked","id","disabled","onChange"]),g=d()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,s.createElement)("span",{className:g},(0,s.createElement)("input",l({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o},u)),(0,s.createElement)("span",{className:"components-form-toggle__track"}),(0,s.createElement)("span",{className:"components-form-toggle__thumb"}))};function CE(e){var t,n,r=e.label,o=e.checked,a=e.help,i=e.className,l=e.onChange,c=e.disabled,u=nf(CE),g="inspector-toggle-control-".concat(u);return a&&(t=g+"__help",n=(0,ie.isFunction)(a)?a(o):a),(0,s.createElement)(df,{id:g,help:n,className:d()("components-toggle-control",i)},(0,s.createElement)($E,{id:g,checked:o,onChange:function(e){l(e.target.checked)},"aria-describedby":t,disabled:c}),(0,s.createElement)("label",{htmlFor:g,className:"components-toggle-control__label"},r))}var kE=e=>(0,s.createElement)("div",{className:"app-standalone-toggle-control"},(0,s.createElement)(CE,e)),SE=e=>{const{program:t}=e,[n,r]=(0,s.useState)(t.active),[o,a]=(0,s.useState)(!1),{updateAdsCampaign:i}=xg();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(kE,{checked:n,onChange:e=>{!1!==e?(r(e),i(t.id,{status:"enabled"})):a(!0)}}),o&&(0,s.createElement)(EE,{programId:t.id,onPauseCampaign:()=>{a(!1),r(!1),i(t.id,{status:"paused"})},onRequestClose:()=>{a(!1)}}))},xE=()=>(0,s.createElement)(Yp,{text:(0,o.__)("Free listings cannot be paused through WooCommerce. Go to Google Merchant Center for advanced settings.","google-listings-and-ads")},(0,s.createElement)(kE,{checked:!0,disabled:!0}));const OE=[{key:"title",label:(0,o.__)("Program","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"country",label:(0,o.__)("Country","google-listings-and-ads"),isLeftAligned:!0},{key:"dailyBudget",label:(0,o.__)("Daily budget","google-listings-and-ads")},{key:"enabled",label:(0,o.__)("Enabled","google-listings-and-ads")},{key:"actions",label:"",required:!0}];function PE(e){let{countryCodes:t,countryNameMap:n}=e;const[r]=t;return(0,s.createElement)("span",null,n[r],t.length>=2&&(0,o.sprintf)(// translators: %d: number of countries, with minimum value of 1.
|
26 |
+
(0,o.__)(" + %d more","google-listings-and-ads"),t.length-1))}var AE=e=>{const t=(0,pc.getQuery)(),{formatAmount:n}=Yw(),{data:r}=$y(),{data:a}=wE(),i=Zy();if(!r||!a)return(0,s.createElement)(Vg,null);const c=[{id:0,title:(0,o.__)("Free listings","google-listings-and-ads"),dailyBudget:(0,o.__)("Free","google-listings-and-ads"),country:(0,s.createElement)(PE,{countryCodes:r,countryNameMap:i}),active:!0},...a.map((e=>({id:e.id,title:e.name,dailyBudget:n(e.amount,!0),country:(0,s.createElement)(PE,{countryCodes:e.displayCountries,countryNameMap:i}),active:"enabled"===e.status})))];return(0,s.createElement)(mE,l({className:"gla-all-programs-table-card",title:(0,o.__)("Programs","google-listings-and-ads"),actions:(0,s.createElement)(Jw,{eventProps:{context:"programs-table-card"}}),headers:OE,rows:c.map((e=>[{display:e.title},{display:e.country},{display:e.dailyBudget},{display:0===e.id?(0,s.createElement)(xE,null):(0,s.createElement)(SE,{key:e.id,program:e})},{display:(0,s.createElement)("div",{className:"program-actions",key:e.id},(0,s.createElement)(bE,{programId:e.id}),0!==e.id&&(0,s.createElement)(yE,{programId:e.id}))}])),totalRows:c.length,rowsPerPage:c.length,query:t,onQueryChange:pc.onQueryChange},e))},NE=()=>{var e;return!(null===(e=window.wcTracks)||void 0===e||!e.isEnabled)},RE=e=>{const{formProps:t}=e,{values:n,isValidForm:r,getInputProps:a,handleSubmit:i}=t,{locale:c,language:u}=n;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(dp,{title:(0,o.__)("Audience","google-listings-and-ads"),description:(0,s.createElement)("p",null,(0,o.__)("Where do you want to sell your products?","google-listings-and-ads"))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Language","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,s.createInterpolateElement)((0,o.__)("Listings can only be displayed in your site language. <link>Read more</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"setup-mc-audience",linkId:"site-language",href:"https://support.google.com/merchants/answer/160637"})})),(0,s.createElement)(my,{selected:c,options:[{label:u,value:c}]})),(0,s.createElement)(lp,null,(0,s.createElement)(lp.Title,null,(0,o.__)("Location","google-listings-and-ads")),(0,s.createElement)(lp.HelperText,{className:"helper-text"},(0,o.__)("Your store should already have the appropriate shipping and tax rates (if required) for potential customers in your selected location(s).","google-listings-and-ads")),(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(hy,l({},a("location"),{collapsible:!0,label:(0,o.__)("Selected countries only","google-listings-and-ads"),value:"selected"}),(0,s.createElement)("div",{className:"input"},(0,s.createElement)(Vy,l({multiple:!0},a("countries")))),(0,s.createElement)("div",{className:"cannot-find-country"},(0,o.__)("Can’t find a country? Only supported countries can be selected.","google-listings-and-ads"))),(0,s.createElement)(hy,l({},a("location"),{label:(0,o.__)("All countries","google-listings-and-ads"),value:"all"}),(0,s.createElement)(fy,null,(0,o.__)("Your listings will be shown in all supported countries.","google-listings-and-ads")))))))),(0,s.createElement)(np,null,(0,s.createElement)(xl,{isPrimary:!0,disabled:!r,onClick:i},(0,o.__)("Continue","google-listings-and-ads"))))};function TE(e){let{initialData:t,onChange:n=(()=>{}),onContinue:r=(()=>{})}=e;return t?(0,s.createElement)("div",{className:"gla-choose-audience"},(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Choose your audience","google-listings-and-ads"),description:(0,o.__)("Configure who sees your product listings on Google.","google-listings-and-ads")}),t&&(0,s.createElement)(Bl.Form,{initialValues:{locale:t.locale,language:t.language,location:t.location,countries:t.countries||[]},validate:e=>{const t={};return e.location||(t.location=(0,o.__)("Please select a location option.","google-listings-and-ads")),"selected"===e.location&&0===e.countries.length&&(t.countries=(0,o.__)("Please select at least one country.","google-listings-and-ads")),t},onSubmit:r,onChange:n},(e=>(0,s.createElement)(RE,{formProps:e}))))):(0,s.createElement)(Vg,null)}var ME=e=>{let{countries:t,onRequestClose:n,onSubmit:r}=e;const[a,i]=(0,s.useState)(!1);return(0,s.createElement)(Bl.Form,{initialValues:{countries:t,time:0},validate:yv,onSubmit:e=>{r(e),n()}},(e=>{const{getInputProps:r,isValidForm:c,handleSubmit:u}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!a,shouldCloseOnClickOutside:!a,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!c,onClick:u},(0,o.__)("Add shipping time","google-listings-and-ads"))],onRequestClose:n},(0,s.createElement)(pp,null,(0,s.createElement)(Vy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:t,onDropdownVisibilityChange:i},r("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},r("time")))))}))},jE=e=>{const[t,n]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{isSecondary:!0,icon:(0,s.createElement)(ky.Z,null),onClick:()=>{n(!0)}},(0,o.__)("Add another time","google-listings-and-ads")),t&&(0,s.createElement)(ME,l({onRequestClose:()=>{n(!1)}},e)))},IE=e=>{let{audienceCountries:t,time:n,onDelete:r,onSubmit:a,onRequestClose:i}=e;const[c,u]=(0,s.useState)(!1),d=Array.from(new Set([...n.countries,...t])),g=()=>{r(n.countries)};return(0,s.createElement)(Bl.Form,{initialValues:{countries:n.countries,time:n.time},validate:yv,onSubmit:e=>{const t=new Set(e.countries),r=n.countries.filter((e=>!t.has(e)));a(e,r)}},(e=>{const{getInputProps:t,isValidForm:n,handleSubmit:r}=e;return(0,s.createElement)(Gh,{overflow:"visible",shouldCloseOnEsc:!c,shouldCloseOnClickOutside:!c,title:(0,o.__)("Estimate shipping time","google-listings-and-ads"),buttons:[(0,s.createElement)(xl,{key:"delete",isTertiary:!0,isDestructive:!0,onClick:g},(0,o.__)("Delete","google-listings-and-ads")),(0,s.createElement)(xl,{key:"save",isPrimary:!0,disabled:!n,onClick:r},(0,o.__)("Update shipping time","google-listings-and-ads"))],onRequestClose:i},(0,s.createElement)(pp,null,(0,s.createElement)(Vy,l({label:(0,o.__)("If customer is in","google-listings-and-ads"),countryCodes:d,onDropdownVisibilityChange:u},t("countries"))),(0,s.createElement)(Ty,l({label:(0,o.__)("Then the estimated shipping time displayed in the product listing is","google-listings-and-ads"),suffix:(0,o.__)("days","google-listings-and-ads")},t("time")))))}))},FE=e=>{let{audienceCountries:t,time:n,onChange:r,onDelete:a}=e;const[i,l]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xl,{className:"gla-edit-time-button",isTertiary:!0,onClick:()=>{l(!0)}},(0,o.__)("Edit","google-listings-and-ads")),i&&(0,s.createElement)(IE,{audienceCountries:t,time:n,onSubmit:function(){r(...arguments),l(!1)},onDelete:e=>{a(e),l(!1)},onRequestClose:()=>{l(!1)}}))},DE=e=>{let{value:t,audienceCountries:n,onChange:r,onDelete:a}=e;const{countries:i,time:l}=t;return n?(0,s.createElement)("div",{className:"gla-countries-time-input"},(0,s.createElement)(Ty,{label:(0,s.createElement)("div",{className:"label"},(0,s.createElement)(_v,{countries:i}),(0,s.createElement)(FE,{audienceCountries:n,onChange:r,onDelete:a,time:t})),suffix:(0,o.__)("days","google-listings-and-ads"),value:l,onBlur:(e,t)=>{l!==t&&r({countries:i,time:t})}})):(0,s.createElement)(Vg,null)};function LE(e){let{value:t,selectedCountryCodes:n,onChange:r}=e;const o=t.length,a=new Map(t.map((e=>[e.countryCode,e]))),i=n.filter((e=>!a.has(e))),l=i.length,c=(e=>{const t=new Map;return e.forEach((e=>{const{countryCode:n,time:r}=e,o=t.get(r)||{countries:[],time:r};o.countries.push(n),t.set(r,o)})),Array.from(t.values())})(t);function u(e){r(t.filter((t=>!e.includes(t.countryCode))))}function d(e){let{countries:t,time:n}=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o.forEach((e=>a.delete(e))),t.forEach((e=>{a.set(e,{countryCode:e,time:n})})),r(Array.from(a.values()))}return 0===c.length&&c.push({countries:n,time:null}),(0,s.createElement)("div",{className:"countries-time"},(0,s.createElement)(pp,null,c.map((e=>(0,s.createElement)("div",{key:e.countries.join("-"),className:"countries-time-input-form"},(0,s.createElement)(DE,{value:e,audienceCountries:n,onChange:d,onDelete:u})))),o>=1&&l>=1&&(0,s.createElement)("div",{className:"add-time-button"},(0,s.createElement)(jE,{countries:i,onSubmit:function(e){let{countries:n,time:o}=e;const a=n.map((e=>({countryCode:e,time:o})));r(t.concat(a))}}))))}var GE=e=>{let{formProps:t,selectedCountryCodes:n}=e;const{getInputProps:r}=t;return n?(0,s.createElement)("div",{className:"gla-shipping-time-setup"},(0,s.createElement)(pp,null,(0,s.createElement)(LE,l({},r("shipping_country_times"),{selectedCountryCodes:n})))):(0,s.createElement)(Vg,null)},BE=e=>{let{formProps:t,countries:n}=e;return(0,s.createElement)(dp,{title:(0,o.__)("Shipping times","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your shipping times will be shown to potential customers on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createElement)(zl,{context:"setup-mc-shipping",linkId:"shipping-read-more",href:"https://support.google.com/merchants/answer/7050921"},(0,o.__)("Read more","google-listings-and-ads"))))},(0,s.createElement)(dp.Card,null,(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(dp.Card.Title,null,(0,o.__)("Estimated shipping times","google-listings-and-ads")),(0,s.createElement)(GE,{selectedCountryCodes:n,formProps:t}))))},qE=e=>{let{countries:t,formProps:n,saving:r=!1,submitLabel:a=(0,o.__)("Complete setup","google-listings-and-ads")}=e;const{values:i,isValidForm:l,handleSubmit:c}=n,u=wy(t),d="flat"===i.shipping_time,g=null===u||!l;return(0,s.createElement)(ep,null,(0,s.createElement)(fv,{formProps:n,audienceCountries:t}),d&&(0,s.createElement)(BE,{formProps:n,countries:t}),(0,s.createElement)(Cy,{show:u},(0,s.createElement)(yy,{formProps:n})),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:g,loading:r,onClick:c},a)))};const zE=["shipping_rate","shipping_time","tax_rate","website_live","checkout_process_secure","payment_methods_visible","refund_tos_visible","contact_info_visible"];var HE=e=>{let{countries:t,settings:n,onSettingsChange:r=(()=>{}),shippingRates:o,onShippingRatesChange:a=(()=>{}),shippingTimes:i,onShippingTimesChange:l=(()=>{}),onContinue:c=(()=>{}),submitLabel:u}=e;const[d,g]=(0,s.useState)(!1);return n&&o&&i&&t?(0,s.createElement)("div",{className:"gla-setup-free-listings"},(0,s.createElement)(sy,null),(0,s.createElement)(Bl.Form,{initialValues:{shipping_rate:n.shipping_rate,shipping_time:n.shipping_time,tax_rate:n.tax_rate,website_live:n.website_live,checkout_process_secure:n.checkout_process_secure,payment_methods_visible:n.payment_methods_visible,refund_tos_visible:n.refund_tos_visible,contact_info_visible:n.contact_info_visible,offer_free_shipping:Mv(o),shipping_country_rates:o,shipping_country_times:i},onChange:(e,t)=>{"shipping_country_rates"===e.name?a(t.shipping_country_rates):"shipping_country_times"===e.name?l(t.shipping_country_times):zE.includes(e.name)&&r(e,(e=>(0,ie.pick)(e,zE))(t))},validate:e=>{const{shipping_country_times:n}=e;return py(e,n,t)},onSubmit:async()=>{g(!0),await c(),g(!1)}},(e=>(0,s.createElement)(qE,{formProps:e,countries:t,submitLabel:u,saving:d})))):(0,s.createElement)(Vg,null)},UE=()=>{const{data:e}=mv(),{deleteShippingTimes:t,upsertShippingTimes:n}=xg(),r=(0,s.useCallback)((async r=>{const o=((e,t)=>((e,t)=>(0,ie.differenceBy)(t,e,"countryCode"))(e,t).map((e=>e.countryCode)))(r,e);o.length&&await t(o);const a=(i=r,s=e,(0,ie.differenceWith)(i,s,ie.isEqual));var i,s;if(a.length){const e=(e=>{const t=new Map;return e.forEach((e=>{let{countryCode:n,time:r}=e;const o=t.get(r)||{countryCodes:[],time:r};o.countryCodes.push(n),t.set(r,o)})),Array.from(t.values())})(a).map((e=>n(e)));await Promise.all(e)}}),[t,e,n]);return{saveShippingTimes:r}};function VE(e){const t=new Set(["/"+(0,pc.getNewPath)({pageStep:void 0}),"/"+(0,pc.getNewPath)({pageStep:1}),"/"+(0,pc.getNewPath)({pageStep:2})]),n=e.pathname+e.search;return!t.has(n)}var WE=()=>{Lg("full-content");const{targetAudience:e,getFinalCountries:t}=$y(),{settings:n}=ly(),{saveTargetAudience:r,saveSettings:a}=xg(),{saveShippingRates:i}=Nv(),{saveShippingTimes:l}=UE(),[c,u]=(0,s.useState)(e),[d,g]=(0,s.useState)(n),{hasFinishedResolution:p,data:f}=Av(),[m,h]=(0,s.useState)(f),y=p?m:null,{hasFinishedResolution:v,data:b}=mv(),[_,w]=(0,s.useState)(b),E=v?_:null;(0,s.useEffect)((()=>g(n)),[n]),(0,s.useEffect)((()=>u(e)),[e]),(0,s.useEffect)((()=>h(f)),[f]),(0,s.useEffect)((()=>w(b)),[b]);const[$]=Dp({path:"/wc/gla/mc/settings/sync",method:"POST"}),{createNotice:C}=Ap(),k=!(0,ie.isEqual)(...[c,e].map((e=>({...e,countries:new Set(null==e?void 0:e.countries)})))),S=!(0,ie.isEqual)(d,n),x=(P=f,(O=m).length!==P.length||Ov(O,P).length>0);var O,P;const A=!(0,ie.isEqual)(new Set(_),new Set(b)),N=k||S||x||A;F_((0,o.__)("You have unsaved campaign data. Are you sure you want to leave?","google-listings-and-ads"),N,VE);const{pageStep:R="1"}=(0,pc.getQuery)(),T=(0,pc.getNewPath)({pageStep:void 0,subpath:void 0},"/google/dashboard"),M=()=>{const e=t(c),n=y.filter((t=>e.includes(t.country)));h(n);const r=E.filter((t=>e.includes(t.countryCode)));w(r)},j=e=>{"2"===e&&M(),(0,pc.getHistory)().push((0,pc.getNewPath)({pageStep:e}))};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit free listings","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"edit-free-listings"}),backHref:T}),(0,s.createElement)(Bl.Stepper,{className:"gla-setup-stepper",currentStep:R,steps:[{key:"1",label:(0,o.__)("Choose your audience","google-listings-and-ads"),content:(0,s.createElement)(TE,{initialData:c,onChange:(e,t)=>{u(t)},onContinue:()=>{M(),(0,pc.getHistory)().push((0,pc.getNewPath)({pageStep:"2"}))}}),onClick:j},{key:"2",label:(0,o.__)("Configure your product listings","google-listings-and-ads"),content:(0,s.createElement)(HE,{countries:t(c),settings:d,onSettingsChange:(e,t)=>{g(t)},shippingRates:y,onShippingRatesChange:h,shippingTimes:E,onShippingTimesChange:w,onContinue:async()=>{try{await Promise.allSettled([r(c),a(d),i(m),l(_)]),await $(),C("success",(0,o.__)("Your changes to your Free Listings have been saved and will be synced to your Google Merchant Center account.","google-listings-and-ads")),(0,Dl.recordEvent)("gla_free_campaign_edited")}catch(e){C("error",(0,o.__)("Something went wrong while saving your changes. Please try again later.","google-listings-and-ads"))}},submitLabel:(0,o.__)("Save changes","google-listings-and-ads")}),onClick:j}]}))},YE=e=>{let{formProps:t,allowMultiple:n=!0}=e;const r=n?(0,o.__)("Once a campaign has been created, you cannot change the target country(s).","google-listings-and-ads"):(0,o.__)("Once a campaign has been created, you cannot change the target country.","google-listings-and-ads");return(0,s.createElement)("div",{className:"gla-campaign-form-content"},(0,s.createElement)(aw,{disabled:!0,multiple:n,countrySelectHelperText:r,formProps:t}),(0,s.createElement)(cw,{formProps:t}),(0,s.createElement)(uw,null))},KE=e=>{const{campaign:t}=e,{amount:n,allowMultiple:r,displayCountries:a}=t,[i,l]=(0,s.useState)(!1),{updateAdsCampaign:c}=xg();return(0,s.createElement)(Bl.Form,{initialValues:{amount:n,countryCodes:a},validate:e=>$w(e),onSubmit:async e=>{l(!0);try{await c(t.id,{amount:e.amount})}catch(e){return void l(!1)}(0,pc.getHistory)().push(xc())}},(e=>{const{isValidForm:t,handleSubmit:n}=e;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Edit your paid campaign","google-listings-and-ads"),description:(0,s.createElement)(s.Fragment,null,(0,o.__)("Paid ad campaigns are automatically optimized for you by Google.","google-listings-and-ads"),(0,s.createElement)("br",null),(0,s.createElement)(zl,{context:"edit-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"},(0,o.__)("See what your ads will look like.","google-listings-and-ads")))}),(0,s.createElement)(YE,{formProps:e,allowMultiple:r}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!t,loading:i,onClick:n},(0,o.__)("Save changes","google-listings-and-ads"))))}))};const QE=(0,pc.getNewPath)({},"/google/dashboard",{}),ZE=(0,s.createElement)(Hg,{eventContext:"edit-ads"});var XE=()=>{Lg("full-content");const e=Number((0,pc.getQuery)().programId),{loaded:t,data:n}=wE(),r=null==n?void 0:n.find((t=>t.id===e));return t?r?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.sprintf)(// translators: %s: campaign's name.
|
27 |
+
(0,o.__)("Edit %s","google-listings-and-ads"),r.name),helpButton:ZE,backHref:QE}),(0,s.createElement)(KE,{campaign:r})):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit Campaign","google-listings-and-ads"),helpButton:ZE,backHref:QE}),(0,s.createElement)("div",null,(0,o.__)("Error in loading your paid ads campaign. Please try again later.","google-listings-and-ads"))):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Loading…","google-listings-and-ads"),helpButton:ZE,backHref:QE}),(0,s.createElement)(Vg,null))},JE=()=>{const[e,t]=(0,s.useState)(!1),{createAdsCampaign:n}=xg(),{createNotice:r}=Ap(),{data:a}=$y();return a?(0,s.createElement)(Bl.Form,{initialValues:{amount:0,countryCodes:a},validate:e=>$w(e),onSubmit:async e=>{t(!0);try{const{amount:t,countryCodes:a}=e;(0,Dl.recordEvent)("gla_launch_paid_campaign_button_click",{audiences:a.join(","),budget:t}),await n(t,a),r("success",(0,o.__)("You’ve successfully created a paid campaign!","google-listings-and-ads"))}catch(e){return void t(!1)}(0,pc.getHistory)().push(xc())}},(t=>{const{isValidForm:n,handleSubmit:r}=t;return(0,s.createElement)(ep,null,(0,s.createElement)(tp,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),description:(0,s.createInterpolateElement)((0,o.__)("Paid Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"create-ads",linkId:"see-what-ads-look-like",href:"https://support.google.com/google-ads/answer/6275294"})})}),(0,s.createElement)(dw,{formProps:t}),(0,s.createElement)(np,null,(0,s.createElement)(gc,{isPrimary:!0,disabled:!n,loading:e,onClick:r},(0,o.__)("Launch paid campaign","google-listings-and-ads"))))})):null};const e$=(0,pc.getNewPath)({},"/google/dashboard",{});var t$=()=>(Lg("full-content"),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Create your paid campaign","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"create-ads"}),backHref:e$}),(0,s.createElement)(JE,null))),n$=()=>{const[e,t]=(0,s.useState)(!1),n=(0,s.useCallback)(((e,n)=>{const r=n||e.currentTarget.dataset.action,o={...(0,pc.getQuery)(),guide:void 0};(0,pc.getHistory)().replace((0,pc.getNewPath)(o)),r===cE?(0,pc.getHistory)().push(kc()):r===uE&&t(!0),(0,Dl.recordEvent)("gla_modal_closed",{context:oc,action:r})}),[t]),r=(0,pc.getQuery)();switch(r.subpath){case hc:return(0,s.createElement)(WE,null);case yc:return(0,s.createElement)(XE,null);case vc:return(0,s.createElement)(t$,null)}const a="dashboard",{enableReports:i}=Zl,l=(null==r?void 0:r.guide)===oc,c=NE();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"gla-dashboard"},(0,s.createElement)(Sw,{context:"dashboard"}),(0,s.createElement)(Lw,null),(0,s.createElement)("div",{className:"gla-dashboard__filter"},(0,s.createElement)(Vw,{trackEventReportId:a}),i&&(0,s.createElement)((()=>(0,s.createElement)(Bl.Link,{href:(0,pc.getNewPath)(null,"/google/reports")},(0,s.createElement)(xl,{isPrimary:!0},"View Reports"))),null)),(0,s.createElement)("div",{className:"gla-dashboard__performance"},(0,s.createElement)(aE,null)),(0,s.createElement)("div",{className:"gla-dashboard__programs"},(0,s.createElement)(AE,{trackEventReportId:a}))),l&&(0,s.createElement)(dE,{onGuideRequestClose:n}),e&&c&&(0,s.createElement)(Uw,{label:(0,o.__)("How easy was it to create a Google Ad campaign?","google-listings-and-ads"),eventContext:oc}))};function r$(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[...new Set(e.split(",").map((e=>parseInt(e,10))).filter((e=>!isNaN(e))))]}function o$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(((e,r)=>(e[r]=(t[r]||0)+(n[r]||0),e)),{})}function a$(e,t){if(!t)return e||null;if(!e)return t;const n=new Map(e.map((e=>[e.interval,e.subtotals]))),r=new Map(t.map((e=>[e.interval,e.subtotals])));return[...new Set([...n.keys(),...r.keys()])].sort().map((e=>({interval:e,subtotals:o$($d,n.get(e),r.get(e))})))}function i$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=e?Object.keys(e):n;return e=e||{},r.reduce(((r,o)=>{let a=Cd.NONE,i=e[o];return n&&(n.includes(o)?void 0===t[o]?a=Cd.FOR_REQUEST:i=(e[o]||0)+t[o]:a=Cd.FOR_METRIC),{...r,[o]:Od(i,void 0,a)}}),{})}const s$="programs",l$={free_listings:[],campaigns:[],intervals:[],totals:{}},c$={loaded:!0,data:{},reportQuery:null};function u$(e,t,n){const r=r$(t.programs),o=0===r.length||r.includes(0),a=(0===r.length||r.some((e=>0!==e)))&&Zl.adsSetupComplete;return{free:o&&e(s$,"free",t,n)||c$,paid:a&&e(s$,"paid",t,n)||c$}}const d$=(0,o.__)("Unavailable","google-listings-and-ads");function g$(e){const{formatNumber:t}=Py(),{formatAmount:n}=Yw();return(0,s.useMemo)((()=>{function r(e){return void 0===e?d$:this.isCurrency?n(e,!0):t(e,0)}return e.map((e=>({...e,formatFn:r})))}),[e,t,n])}const p$=[{id:0,name:(0,o.__)("Free Listings","google-listings-and-ads")}],f$=new Set(p$.map((e=>e.id)));var m$=__webpack_require__(5697),h$=__webpack_require__.n(m$);class y$ extends s.Component{constructor(e){let{getLabels:t,param:n,query:r}=e;super(...arguments),this.state={selected:[]},this.clearQuery=this.clearQuery.bind(this),this.updateQuery=this.updateQuery.bind(this),this.updateLabels=this.updateLabels.bind(this),this.onButtonClicked=this.onButtonClicked.bind(this),r[n]&&t(r[n],r).then(this.updateLabels)}componentDidUpdate(e,t){let{param:n,query:r}=e,{selected:o}=t;const{getLabels:a,param:i,query:s}=this.props,{selected:l}=this.state;if(n!==i||o.length>0&&0===l.length)return void this.clearQuery();const c=(0,pc.getIdsFromQuery)(r[i]),u=(0,pc.getIdsFromQuery)(s[i]);(0,ie.isEqual)(c.sort(),u.sort())||a(s[i],s).then(this.updateLabels)}clearQuery(){const{param:e,path:t,query:n}=this.props;this.setState({selected:[]}),(0,pc.updateQueryString)({[e]:void 0},t,n)}updateLabels(e){this.setState({selected:e})}updateQuery(){const{param:e,path:t,query:n}=this.props,{selected:r}=this.state,o=r.map((e=>e.key));(0,pc.updateQueryString)({[e]:o.join(",")},t,n)}onButtonClicked(e){this.updateQuery(e),(0,ie.isFunction)(this.props.onClick)&&this.props.onClick(e)}render(){const{labels:e,type:t,autocompleter:n}=this.props,{selected:r}=this.state;return(0,s.createElement)(De,{className:"woocommerce-filters__compare"},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{variant:"subtitle.small"},e.title)),(0,s.createElement)(qe,null,(0,s.createElement)(Bl.Search,{autocompleter:n,type:t,selected:r,placeholder:e.placeholder,onChange:e=>{this.setState({selected:e})}})),(0,s.createElement)(ip,{justify:"flex-start"},(0,s.createElement)(Bl.CompareButton,{count:r.length,helpText:e.helpText,onClick:this.onButtonClicked},e.update),r.length>0&&(0,s.createElement)(xl,{isLink:!0,onClick:this.clearQuery},(0,o.__)("Clear all","woocommerce-admin"))))}}function v$(e){var t,n,r,o,a,i=e.renderContent,c=e.renderToggle,u=e.position,g=void 0===u?"bottom right":u,p=e.className,f=e.contentClassName,m=e.expandOnMobile,h=e.headerTitle,y=e.focusOnMount,v=e.popoverProps,b=e.onClose,_=e.onToggle,w=(0,s.useRef)(),E=(!1,n=_,o=(r=Et((0,s.useState)(false),2))[0],a=r[1],[o,function(e){a(e),n&&n(e)}]),$=Et(E,2),C=$[0],k=$[1];function S(){b&&b(),k(!1)}(0,s.useEffect)((function(){return function(){_&&_(!1)}}),[]);var x={isOpen:C,onToggle:function(){k(!C)},onClose:S};return(0,s.createElement)("div",{className:d()("components-dropdown",p),ref:w},c(x),C&&(0,s.createElement)(cl,l({position:g,onClose:S,onFocusOutside:function(){var e=w.current.ownerDocument;w.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||S()},expandOnMobile:m,headerTitle:h,focusOnMount:y},v,{anchorRef:null!==(t=null==v?void 0:v.anchorRef)&&void 0!==t?t:w.current,className:d()("components-dropdown__content",v?v.className:void 0,f)}),i(x)))}y$.propTypes={getLabels:h$().func.isRequired,labels:h$().shape({placeholder:h$().string,title:h$().string,update:h$().string}),param:h$().string.isRequired,path:h$().string.isRequired,query:h$().object,type:h$().string.isRequired,autocompleter:h$().object},y$.defaultProps={labels:{},query:{}};var b$=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const _$="all";class w$ extends s.Component{constructor(e){super(e);const t=this.getFilter();if(this.state={nav:t.path||[],animate:null,selectedTag:null},this.selectSubFilter=this.selectSubFilter.bind(this),this.getVisibleFilters=this.getVisibleFilters.bind(this),this.updateSelectedTag=this.updateSelectedTag.bind(this),this.onTagChange=this.onTagChange.bind(this),this.onContentMount=this.onContentMount.bind(this),this.goBack=this.goBack.bind(this),t.settings&&t.settings.getLabels){const{query:e}=this.props,{param:n,getLabels:r}=t.settings;r(e[n],e).then(this.updateSelectedTag)}}componentDidUpdate(e){let{query:t}=e;const{query:n,config:r}=this.props;if(t[r.param]!==n[[r.param]]){const e=this.getFilter();if(e&&"Search"===e.component){this.setState({nav:e.path||[]});const{param:t,getLabels:r}=e.settings;r(n[t],n).then(this.updateSelectedTag)}}}updateSelectedTag(e){this.setState({selectedTag:e[0]})}getFilter(e){const{config:t,query:n}=this.props,r=(0,pc.flattenFilters)(t.filters);return e=e||n[t.param]||t.defaultValue||_$,(0,ie.find)(r,{value:e})||{}}getButtonLabel(e){if("Search"===e.component){const{selectedTag:t}=this.state;return[t&&t.label,(0,ie.get)(e,"settings.labels.button")]}return e?[e.label]:[]}getVisibleFilters(e,t){if(0===t.length)return e;const n=t[0],r=(0,ie.find)(e,{value:n});return this.getVisibleFilters(r&&r.subFilters,t.slice(1))}selectSubFilter(e){this.setState((t=>({nav:[...t.nav,e],animate:"left"})))}goBack(){this.setState((e=>({nav:e.nav.slice(0,-1),animate:"right"})))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{path:n,query:r,config:o,onFilterSelect:a}=this.props,i=(0,pc.getPersistedQuery)(r),s={[o.param]:(o.defaultValue||_$)===e?void 0:e,...t};o.staticParams.forEach((e=>{s[e]=r[e]})),(0,pc.updateQueryString)(s,n,i),a(s)}onTagChange(e,t,n,r){const o=(0,ie.last)(r),{value:a,settings:i}=e,{param:s}=i;o?(this.update(a,{[s]:o.key}),t()):this.update(n.defaultValue||_$),this.updateSelectedTag([o])}renderButton(e,t,n){if(e.component){const{type:r,labels:o,autocompleter:a}=e.settings,i=this.getFilter().value===e.value?this.state.selectedTag:null;return(0,s.createElement)(Bl.Search,{autocompleter:a,className:"woocommerce-filters-filter__search",type:r,placeholder:o.placeholder,selected:i?[i]:[],onChange:(0,ie.partial)(this.onTagChange,e,t,n),inlineTags:!0,staticResults:!0})}const r=n=>{t(n),this.update(e.value,e.query||{}),this.setState({selectedTag:null})},o=(0,ie.partial)(this.selectSubFilter,e.value),a=this.getFilter(),i=a.value===e.value||a.path&&(0,ie.includes)(a.path,e.value);return(0,s.createElement)(xl,{className:"woocommerce-filters-filter__button",onClick:n=>{i?t(n):e.subFilters?o(n):r(n)}},e.label)}onContentMount(e){const{nav:t}=this.state,n=t.length&&this.getFilter(t[t.length-1])?1:0,r=ls.focus.tabbable.find(e)[n];setTimeout((()=>{r.focus()}),0)}render(){const{config:e}=this.props,{nav:t,animate:n}=this.state,r=this.getVisibleFilters(e.filters,t),a=!!t.length&&this.getFilter(t[t.length-1]),i=this.getFilter();return(0,s.createElement)("div",{className:"woocommerce-filters-filter"},e.label&&(0,s.createElement)("span",{className:"woocommerce-filters-label"},e.label,":"),(0,s.createElement)(v$,{contentClassName:"woocommerce-filters-filter__content",position:"bottom",expandOnMobile:!0,headerTitle:(0,o.__)("filter report to show:","woocommerce-admin"),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(Bl.DropdownButton,{onClick:n,isOpen:t,labels:this.getButtonLabel(i)})},renderContent:o=>{let{onClose:l}=o;return(0,s.createElement)(Bl.AnimationSlider,{animationKey:t,animate:n,onExited:this.onContentMount},(()=>(0,s.createElement)("ul",{className:"woocommerce-filters-filter__content-list"},a&&(0,s.createElement)("li",{className:"woocommerce-filters-filter__content-list-item"},(0,s.createElement)(xl,{className:"woocommerce-filters-filter__button",onClick:this.goBack},(0,s.createElement)(yp,{icon:b$}),a.label)),r.map((t=>(0,s.createElement)("li",{key:t.value,className:d()("woocommerce-filters-filter__content-list-item",{"is-selected":i.value===t.value||i.path&&(0,ie.includes)(i.path,t.value)})},this.renderButton(t,l,e)))))))}}))}}w$.propTypes={config:h$().shape({label:h$().string,staticParams:h$().array.isRequired,param:h$().string.isRequired,defaultValue:h$().string,showFilters:h$().func.isRequired,filters:h$().arrayOf(h$().shape({chartMode:h$().oneOf(["item-comparison","time-comparison"]),component:h$().string,label:h$().string,path:h$().string,subFilters:h$().array,value:h$().string.isRequired}))}).isRequired,path:h$().string.isRequired,query:h$().object,onFilterSelect:h$().func},w$.defaultProps={query:{},onFilterSelect:()=>{}};var E$=w$;class $$ extends s.Component{constructor(){super(),this.renderCard=this.renderCard.bind(this),this.onRangeSelect=this.onRangeSelect.bind(this)}renderCard(e){const{siteLocale:t,advancedFilters:n,query:r,path:o,onAdvancedFilterAction:a,currency:i}=this.props,{filters:c,param:u}=e;if(!r[u])return null;if(0===r[u].indexOf("compare")){const e=(0,ie.find)(c,{value:r[u]});if(!e)return null;const{settings:t={}}=e;return(0,s.createElement)("div",{key:u,className:"woocommerce-filters__advanced-filters"},(0,s.createElement)(y$,l({path:o,query:r},t)))}return"advanced"===r[u]?(0,s.createElement)("div",{key:u,className:"woocommerce-filters__advanced-filters"},(0,s.createElement)(Bl.AdvancedFilters,{siteLocale:t,currency:i,config:n,path:o,query:r,onAdvancedFilterAction:a})):void 0}onRangeSelect(e){const{query:t,path:n,onDateSelect:r}=this.props;(0,pc.updateQueryString)(e,n,t),r(e)}getDateQuery(e){const{period:t,compare:n,before:r,after:o}=(0,wd.getDateParamsFromQuery)(e),{primary:a,secondary:i}=(0,wd.getCurrentDates)(e);return{period:t,compare:n,before:r,after:o,primaryDate:a,secondaryDate:i}}render(){const{dateQuery:e,filters:t,query:n,path:r,showDatePicker:a,onFilterSelect:i,isoDateFormat:l}=this.props;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bl.H,{className:"screen-reader-text"},(0,o.__)("Filters","woocommerce-admin")),(0,s.createElement)(Bl.Section,{component:"div",className:"woocommerce-filters"},(0,s.createElement)("div",{className:"woocommerce-filters__basic-filters"},a&&(0,s.createElement)(Bl.DateRangeFilterPicker,{key:JSON.stringify(n),dateQuery:e||this.getDateQuery(n),onRangeSelect:this.onRangeSelect,isoDateFormat:l}),t.map((e=>e.showFilters(n)?(0,s.createElement)(E$,{key:e.param,config:e,query:n,path:r,onFilterSelect:i}):null))),t.map(this.renderCard)))}}$$.propTypes={siteLocale:h$().string,advancedFilters:h$().object,filters:h$().array,path:h$().string.isRequired,query:h$().object,showDatePicker:h$().bool,onDateSelect:h$().func,onFilterSelect:h$().func,onAdvancedFilterAction:h$().func,currency:h$().object,dateQuery:h$().shape({period:h$().string.isRequired,compare:h$().string.isRequired,before:h$().object,after:h$().object,primaryDate:h$().shape({label:h$().string.isRequired,range:h$().string.isRequired}).isRequired,secondaryDate:h$().shape({label:h$().string.isRequired,range:h$().string.isRequired})}),isoDateFormat:h$().string},$$.defaultProps={siteLocale:"en_US",advancedFilters:{},filters:[],query:{},showDatePicker:!0,onDateSelect:()=>{},currency:Ww().getCurrencyConfig()};var C$=$$;const k$=(0,i.getSetting)("locale").siteLocale,S$=(()=>{let e,t,n;function r(){e=null,n=new Promise((e=>{t=e})).then((()=>p$.concat(e)))}r();const a={name:"programs",options:()=>n,getOptionIdentifier:e=>e.id,getOptionLabel:e=>e.name,getOptionKeywords:e=>[e.name],getOptionCompletion:e=>({key:e.id,label:e.name})};async function i(e){const t=new Set(r$(e));let r;return r=function(e,t){if(e.size>t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(t,f$)?p$:(await n).filter((e=>t.has(e.id))),r.map((e=>({key:e.id,label:e.name})))}const s={label:(0,o.__)("Show","google-listings-and-ads"),staticParams:["period","chartType","paged","per_page","selectedMetric","reportKey","orderby","order"],param:"filter",showFilters:()=>!0,filters:[{label:(0,o.__)("All Google programs","google-listings-and-ads"),value:"all"},{label:(0,o.__)("Single program","google-listings-and-ads"),value:"select_program",subFilters:[{component:"Search",value:"single_program",path:["select_program"],settings:{type:"custom",param:nc,getLabels:i,labels:{placeholder:(0,o.__)("Type to search for a program","google-listings-and-ads"),button:(0,o.__)("Single Program","google-listings-and-ads")},autocompleter:a}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),chartMode:"item-comparison",value:"compare-programs",settings:{type:"custom",param:nc,getLabels:i,labels:{helpText:(0,o.__)("Check at least two programs below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for programs to compare","google-listings-and-ads"),title:(0,o.__)("Compare Programs","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")},autocompleter:a}}]};return n=>{let{data:o,loaded:a}=n;return a?(e&&e!==o&&r(),e=o,t()):e&&r(),s}})();var x$=e=>{const{query:t,trackEventId:n}=e,r=[S$(wE())],{period:o,compare:a,before:i,after:l}=(0,wd.getDateParamsFromQuery)(t),{primary:c,secondary:u}=(0,wd.getCurrentDates)(t),d={period:o,compare:a,before:i,after:l,primaryDate:c,secondaryDate:u},g=Py(),p={...t};return(0,s.createElement)(C$,{query:p,siteLocale:k$,currency:g,filters:r,onDateSelect:e=>(0,Dl.recordEvent)("gla_datepicker_update",{report:n,...(0,ie.omitBy)(e,ie.isUndefined)}),onFilterSelect:e=>(0,Dl.recordEvent)("gla_filter",{report:n,filter:e.filter||"all"}),path:t.path,dateQuery:d,isoDateFormat:wd.isoDateFormat})};const O$="https://merchants.google.com/mc/reporting/dashboard";var P$=e=>{let{href:t,selected:n,onLinkClickCallback:r,metric:a,data:{value:i,prevValue:c,delta:u,missingFreeListingsData:d}}=e;const g=(0,s.useMemo)((()=>({value:a.formatFn(i),prevValue:a.formatFn(c)})),[a,i,c]);let p=a.label;const f=[],m=[];if(d!==Cd.NONE){const e=(0,o.__)("This data is currently available for paid campaigns only.","google-listings-and-ads");f.push(e),m.push(e)}if(d===Cd.FOR_REQUEST){const e=(0,o.__)("Please try again later, or go to <googleMerchantCenterLink /> to track your performance for Google Free Listings.","google-listings-and-ads");f.push((0,s.createInterpolateElement)(e,{googleMerchantCenterLink:(0,s.createElement)(ql,{eventName:"gla_google_mc_link_click",eventProps:{context:"reports",href:O$},type:"external",target:"_blank",href:O$,onClick:e=>e.stopPropagation()},(0,o.__)("Google Merchant Center","google-listings-and-ads"))}));const t=(0,s.createInterpolateElement)(e,{googleMerchantCenterLink:(0,s.createElement)(s.Fragment,null,(0,o.sprintf)(// translators: %s: link to Google Merchant Center.
|
28 |
+
(0,o.__)("Google Merchant Center (%s)","google-listings-and-ads"),O$))});m.push((0,s.renderToString)(t))}if(f.length>0){const e=f.map(((e,t)=>(0,s.createElement)("div",{className:"gla-reports__metric-info",key:t},e)));p=(0,s.createElement)("div",{className:"gla-reports__metric-label"},a.label,(0,s.createElement)(Yp,{text:e},(0,s.createElement)(iw.Z,{className:"gla-reports__metric-infoicon",role:"img","aria-label":m.join(" "),size:16})))}return(0,s.createElement)(Bl.SummaryNumber,l({label:p,href:t,selected:n,delta:u,onLinkClickCallback:r},g))};const A$={value:null,preValue:null,delta:null};var N$=e=>{let{loaded:t,metrics:n,expectedLength:r=n.length,totals:o,trackEventId:a}=e;const i=Kw();if(!t)return(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:r});const{selectedMetric:l=n[0].key}=i;return(0,s.createElement)(Bl.SummaryList,null,(()=>n.map((e=>{const{key:t}=e,n=l===t,r=(0,pc.getNewPath)({selectedMetric:t});return(0,s.createElement)(P$,{key:t,metric:e,href:r,selected:n,data:o[t]||A$,onLinkClickCallback:()=>{return e=t,void(0,Dl.recordEvent)("gla_chart_tab_click",{report:a,context:e});var e}})}))))};const R$=(0,o.__)("No data for the selected date range","google-listings-and-ads");function T$(e){let{metrics:t,loaded:n,intervals:r}=e;const o=Kw(),a=Py(),{selectedMetric:i}=o;let l={};t.length&&(l=i&&t.find((e=>e.key===i))||t[0]);const{key:c,label:u,isCurrency:d=!1,formatFn:g}=l,p={...a,symbol:""},f=(0,wd.getChartTypeForQuery)(o),m=d?"currency":"number",h=g.bind(l),y=(0,s.useMemo)((()=>n?r.map((e=>{let{interval:t,subtotals:n}=e;return{date:t,[u]:{value:n[c],label:u}}})):[]),[c,u,n,r]);return(0,s.createElement)(Bl.Chart,{data:y,title:u,query:o,currency:p,chartType:f,valueType:m,tooltipValueFormat:h,isRequesting:!n,emptyMessage:R$,layout:"time-comparison",legendPosition:"hidden"})}var M$=e=>{let{compareBy:t,compareParam:n,metrics:r,isLoading:a,compareButonTitle:i,data:c,nameHeader:u,nameCell:d,...g}=e;const p=Kw(),[f,m]=(0,s.useState)((()=>new Set(r$(p[t])))),h=c.length||5,y=(0,s.useMemo)((()=>{if(!r.length)return[];const e=r.map((e=>({...e,isSortable:!0,isNumeric:!0})));return e[0].defaultSort=!0,e[0].defaultOrder="desc",e}),[r]),v=e=>r.map((t=>{const n=e.subtotals[t.key];return{display:t.formatFn(n)}})),b=(e,t)=>{t?m(new Set([...f,e])):(f.delete(e),m(new Set(f)))};return(0,s.createElement)(mE,l({actions:(0,s.createElement)(xl,{isSecondary:!0,disabled:a||f.size<=1,title:i,onClick:()=>{const e=Array.from(f).join(",");(0,pc.onQueryChange)("compare")(t,n,e)}},(0,o.__)("Compare","google-listings-and-ads")),isLoading:a,headers:(_=c,[{key:"compare",label:(0,s.createElement)(Uh,{disabled:a,checked:!a&&_.length&&f.size===_.length,onChange:e=>{if(e){const e=c.map((e=>e.id));m(new Set(e))}else m(new Set)}}),required:!0},{key:"title",label:u,isLeftAligned:!0,required:!0},...y]),rows:(e=>e.map((e=>[{display:(0,s.createElement)(Uh,{checked:f.has(e.id),onChange:b.bind(null,e.id)})},{display:d(e)},...v(e)])))(c),totalRows:c.length,rowsPerPage:h,query:p,compareBy:t,compareParam:n,onQueryChange:pc.onQueryChange,onSort:(0,pc.onQueryChange)("sort")},g));var _},j$=e=>{let{isLoading:t,orderby:n,order:r,metrics:a,freeListings:i,campaigns:c,...u}=e;const d=(0,s.useMemo)((()=>{if(t)return[];if(!i||0===i.length)return c;const e=[{...i[0],name:(0,o.__)("Free Listings","google-listings-and-ads"),id:0},...c];return c.length&&(e.sort(((e,t)=>(e.subtotals[n]||Number.NEGATIVE_INFINITY)-(t.subtotals[n]||Number.NEGATIVE_INFINITY))),"desc"===r&&e.reverse()),e}),[t,i,c,n,r]);return(0,s.createElement)(M$,l({title:(0,o.__)("Programs","google-listings-and-ads"),compareButonTitle:(0,o.__)("Select one or more programs to compare","google-listings-and-ads"),nameHeader:(0,o.__)("Program","google-listings-and-ads"),nameCell:e=>e.name,compareBy:"programs",compareParam:"filter",metrics:a,isLoading:t,data:d},u))},I$=e=>{const{selectedKey:t,tabs:n}=e;return(0,s.createElement)(Nw,{role:"tablist",orientation:"horizontal",className:"subsubsub gla-sub-nav"},n.map(((e,r)=>{const o=e.key===t;return(0,s.createElement)(s.Fragment,{key:e.key},(0,s.createElement)(Bl.Link,{className:d()({current:o}),tabIndex:o?null:-1,id:`${e.key}`,href:e.href,role:"tab","aria-selected":o,"aria-controls":`${e.key}-view`,"aria-current":!!o&&"page"},e.title+" "),r<n.length-1?" | ":" ")})))},F$=()=>{const e=(0,pc.getQuery)();return"products"===(null==e?void 0:e.reportKey)?"products":"programs"};const D$=[{key:"programs",title:(0,o.__)("Programs","google-listings-and-ads"),href:(0,pc.getNewPath)({reportKey:"programs"},"/google/reports",{})},{key:"products",title:(0,o.__)("Products","google-listings-and-ads"),href:(0,pc.getNewPath)({reportKey:"products"},"/google/reports",{})}];var L$=()=>{const e=Mw(),t=F$();return e?(0,s.createElement)(Tw,{tabs:D$,selectedKey:t}):(0,s.createElement)(I$,{tabs:D$,selectedKey:t})};const G$=[{key:"sales",label:(0,o.__)("Total Sales","google-listings-and-ads"),isCurrency:!0},{key:"conversions",label:(0,o.__)("Conversions","google-listings-and-ads")},{key:"clicks",label:(0,o.__)("Clicks","google-listings-and-ads")},{key:"impressions",label:(0,o.__)("Impressions","google-listings-and-ads")}],B$=[...G$,{key:"spend",label:(0,o.__)("Total Spend","google-listings-and-ads"),isCurrency:!0}],q$=[...G$,{key:"spend",label:(0,o.__)("Spend","google-listings-and-ads"),isCurrency:!0}];var z$=()=>{const e="reports-programs",{loaded:t,data:{totals:n,intervals:r,freeListings:o,campaigns:a},reportQuery:{fields:i,orderby:l,order:c}}=function(){var e;const t=Kw(),{paid:n,free:r}=(0,dn.useSelect)((e=>{const{getReport:n}=e(Lc);return u$(n,t,"primary")}),[t]),o=n.loaded&&r.loaded,a=n.reportQuery||r.reportQuery,i=null===(e=r.reportQuery)||void 0===e?void 0:e.fields,l=(0,s.useMemo)((()=>{const e=r.data,t=n.data;return o&&t&&e?{freeListings:e.free_listings||l$.free_listings,campaigns:t.campaigns||l$.campaigns,intervals:a$(t.intervals,e.intervals)||l$.intervals,totals:i$(t.totals,e.totals,i)}:l$}),[o,n.data,r.data,i]);return{loaded:o,reportQuery:a,data:l}}(),u=(0,s.useMemo)((()=>{const e=t&&Object.keys(n).length>0,r=e?B$.filter((e=>{let{key:t}=e;return n.hasOwnProperty(t)})):B$.filter((e=>{let{key:t}=e;return i.includes(t)})),o=e?q$.filter((e=>{let{key:t}=e;return n.hasOwnProperty(t)})):q$.filter((e=>{let{key:t}=e;return i.includes(t)}));return{available:r,expected:o}}),[t,n,i]),d=g$(u.available),g=g$(u.expected),{loaded:p,data:f}=function(e){const t=Kw(),{loaded:n,data:r}=function(e){var t;const{paid:n,free:r}=(0,dn.useSelect)((t=>{const{getReport:n}=t(Lc);return u$(n,e,"secondary")}),[e]),o=n.loaded&&r.loaded,a=null===(t=r.reportQuery)||void 0===t?void 0:t.fields,i=(0,s.useMemo)((()=>{const e=r.data,t=n.data;return o&&t&&e?i$(t.totals,e.totals,a):l$.totals}),[o,n.data,r.data,a]);return{loaded:o,data:i}}(t),o=(0,s.useMemo)((()=>n?function(e,t){return Object.keys(e).reduce(((n,r)=>{var o;return{...n,[r]:Od(e[r].value,null===(o=t[r])||void 0===o?void 0:o.value,e[r].missingFreeListingsData)}}),{})}(e,r):e),[n,r,e]);return{loaded:n,data:o}}(n),m=p?f:n;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Sw,{context:e}),(0,s.createElement)(Lw,null),(0,s.createElement)(L$,null),(0,s.createElement)(x$,{query:(0,pc.getQuery)(),trackEventId:e}),(0,s.createElement)(N$,{loaded:t,metrics:d,expectedLength:B$.length,totals:m,trackEventId:e}),(0,s.createElement)(T$,{metrics:d,loaded:t,intervals:r}),(0,s.createElement)(j$,{trackEventReportId:e,isLoading:!t,orderby:l,order:c,metrics:g,freeListings:o,campaigns:a}))};const H$="products",U$={products:[],intervals:[],totals:{}};function V$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie.identity;return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;const o="function"==typeof e?e(r):e,a=(0,pc.getIdsFromQuery)(n);if(a.length<1)return Promise.resolve([]);const i={include:a.join(","),per_page:a.length};return Hc()({path:(0,eg.addQueryArgs)(o,i)}).then((e=>e.map(t)))}}const W$=V$(Ng.NAMESPACE+"/products",(e=>({key:e.id,label:e.name,type:e.type})));function Y$(e){var t;let{attributes:n,name:r}=e;const o=(null===(t=(0,i.getSetting)("admin"))||void 0===t?void 0:t.variationTitleAttributesSeparator)||" - ";if(r.indexOf(o)>-1)return r;const a=n.map((e=>{let{option:t}=e;return t})).join(", ");return a?r+o+a:r}const K$=V$((e=>{let{products:t}=e;return t?Ng.NAMESPACE+`/products/${t}/variations`:Ng.NAMESPACE+"/variations"}),(e=>({key:e.id,label:Y$(e)}))),Q$={label:(0,o.__)("Show","google-listings-and-ads"),staticParams:[Xl,"chartType","orderby","order","paged","per_page","selectedMetric","reportKey"],param:"filter",showFilters:()=>!0,filters:[{label:(0,o.__)("All Products","google-listings-and-ads"),value:"all"},{label:(0,o.__)("Single Product","google-listings-and-ads"),value:"select_product",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single-product",chartMode:"item-comparison",path:["select_product"],settings:{type:"products",param:"products",getLabels:W$,labels:{placeholder:(0,o.__)("Type to search for a product","google-listings-and-ads"),button:(0,o.__)("Single Product","google-listings-and-ads")}}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),value:"compare-products",chartMode:"item-comparison",settings:{type:"products",param:"products",getLabels:W$,labels:{helpText:(0,o.__)("Check at least two products below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for products to compare","google-listings-and-ads"),title:(0,o.__)("Compare Products","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")}}}]},Z$={showFilters:e=>"single-product"===e.filter&&!!e.products&&e["is-variable"],staticParams:["filter","products","chartType","orderby","order","paged","per_page","selectedMetric","reportKey"],param:"filter-variations",filters:[{label:(0,o.__)("All Variations","google-listings-and-ads"),chartMode:"item-comparison",value:"all"},{label:(0,o.__)("Single Variation","google-listings-and-ads"),value:"select_variation",subFilters:[{component:"Search",value:"single-variation",path:["select_variation"],settings:{type:"variations",param:"variations",getLabels:K$,labels:{placeholder:(0,o.__)("Type to search for a variation","google-listings-and-ads"),button:(0,o.__)("Single Variation","google-listings-and-ads")}}}]},{label:(0,o.__)("Comparison","google-listings-and-ads"),chartMode:"item-comparison",value:"compare-variations",settings:{type:"variations",param:"variations",getLabels:K$,labels:{helpText:(0,o.__)("Check at least two variations below to compare","google-listings-and-ads"),placeholder:(0,o.__)("Search for variations to compare","google-listings-and-ads"),title:(0,o.__)("Compare Variations","google-listings-and-ads"),update:(0,o.__)("Compare","google-listings-and-ads")}}}]},X$={label:(0,o.__)("Show data from","google-listings-and-ads"),param:Xl,staticParams:["filter","products","orderby","order","chartType","selectedMetric","reportKey"],defaultValue:tc,filters:[{value:Jl,label:(0,o.__)("Paid campaigns","google-listings-and-ads")},{value:ec,label:(0,o.__)("Free listings","google-listings-and-ads")}],showFilters:e=>{let{hasPaidSource:t}=e;return t}},J$=(0,a.applyFilters)("gla_products_report_filters",[Q$,Z$,X$]),eC=(0,a.applyFilters)("gla_products_report_advanced_filters",{}),tC=(0,i.getSetting)("currency"),nC=(0,i.getSetting)("locale").siteLocale;var rC=e=>{const{hasPaidSource:t,query:n,trackEventId:r}=e,{period:o,compare:a,before:i,after:l}=(0,wd.getDateParamsFromQuery)(n),{primary:c,secondary:u}=(0,wd.getCurrentDates)(n),d={period:o,compare:a,before:i,after:l,primaryDate:c,secondaryDate:u},g=(0,dn.useSelect)((e=>{if(n.search||!n.products||1!==n.products.split(",").length)return!1;const t=parseInt(n.products,10),r={include:t},{getItems:o}=e(Ng.ITEMS_STORE_NAME),a=o("products",r);return a&&a.get(t)&&"variable"===a.get(t).type}),[n.search,n.products]),p={...n,"is-variable":g,hasPaidSource:t};return(0,s.createElement)(Bl.ReportFilters,{query:p,siteLocale:nC,currency:tC,filters:J$,advancedFilters:eC,onDateSelect:e=>(0,Dl.recordEvent)("gla_datepicker_update",{report:r,...(0,ie.omitBy)(e,ie.isUndefined)}),onFilterSelect:e=>(0,Dl.recordEvent)("gla_filter",{report:r,filter:e.filter||"all",filterVariations:e["filter-variations"]}),dateQuery:d,isoDateFormat:wd.isoDateFormat})},oC=e=>{let{metrics:t,isLoading:n,products:r,...a}=e;return(0,s.createElement)(M$,l({title:(0,o.__)("Products","google-listings-and-ads"),compareButonTitle:(0,o.__)("Select one or more products to compare","google-listings-and-ads"),nameHeader:(0,o.__)("Product title","google-listings-and-ads"),nameCell:e=>e.name,compareBy:"products",compareParam:"filter",metrics:t,isLoading:n,data:r},a))};const aC=[{key:"clicks",label:(0,o.__)("Clicks","google-listings-and-ads")},{key:"impressions",label:(0,o.__)("Impressions","google-listings-and-ads")}],iC=[{key:"sales",label:(0,o.__)("Total Sales","google-listings-and-ads"),isCurrency:!0},{key:"conversions",label:(0,o.__)("Conversions","google-listings-and-ads")},...aC,{key:"spend",label:(0,o.__)("Spend","google-listings-and-ads"),isCurrency:!0}],sC=e=>{let{hasPaidSource:t}=e;const n="reports-products",r=(0,pc.getQuery)(),o=t?r["report-source"]||tc:ec,a=g$(o===Jl?iC:aC),{loaded:i,data:{totals:l,intervals:c,products:u}}=function(e){const t=Kw();return(0,dn.useSelect)((n=>{const{getReport:r}=n(Lc),o=r(H$,e,t,"primary"),a=r(H$,e,t,"secondary"),i=o.loaded&&a.loaded;let s=U$;return i&&o.data&&a.data&&(s={products:o.data.products||U$.products,intervals:o.data.intervals||U$.intervals,totals:xd(o.data.totals,a.data.totals,o.reportQuery.fields)}),{data:s,loaded:i}}),[e,t])}(o);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(rC,{hasPaidSource:t,query:r,trackEventId:n}),(0,s.createElement)(N$,{metrics:a,loaded:i,totals:l,trackEventId:n}),(0,s.createElement)(T$,{metrics:a,loaded:i,intervals:c}),(0,s.createElement)(oC,{trackEventReportId:n,metrics:a,isLoading:!i,products:u}))};var lC=()=>{const{loaded:e,data:t}=wE(),n=e&&t.some((e=>{let{status:t}=e;return"enabled"===t}));return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Sw,{context:"reports-products"}),(0,s.createElement)(Lw,null),(0,s.createElement)(L$,null),e?(0,s.createElement)(sC,{hasPaidSource:n}):(0,s.createElement)(Vg,null))},cC=()=>"products"===F$()?(0,s.createElement)(lC,null):(0,s.createElement)(z$,null),uC=[{key:"type",label:(0,o.__)("Type","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"affectedProduct",label:(0,o.__)("Affected product","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"issue",label:(0,o.__)("Issue","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"suggestedAction",label:(0,o.__)("Suggested action","google-listings-and-ads"),isLeftAligned:!0,required:!0},{key:"action",label:"",required:!0}];const dC=(e,t,n)=>{const r={context:e};let o;"goto"===n?(o="gla_table_go_to_page",r.page=t):(o="gla_table_page_click",r.direction=n),(0,Dl.recordEvent)(o,r)};var gC=__webpack_require__(7489),pC=e=>{let{size:t=18}=e;return(0,s.createElement)(gC.Z,{className:"gla-error-icon",size:t})};const fC=()=>{};var mC=e=>{let{productId:t,eventName:n,eventProps:r}=e;const a=`post.php?action=edit&post=${t}`,i=n?()=>(0,Dl.queueRecordEvent)(n,r):fC;return(0,s.createElement)(Bl.Link,{href:a,onClick:i,type:"wp-admin"},(0,o.__)("Edit","google-listings-and-ads"))};var hC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cc,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return Pg("getMCIssues",{page:t,issue_type:e,per_page:n})};const yC=e=>{const t=Object.values(e).reduce(((e,t)=>e+t),0);return Number.isInteger(t)?t:void 0};var vC=()=>{var e,t,n,r;const o={[cc]:null===(e=hC(cc))||void 0===e||null===(t=e.data)||void 0===t?void 0:t.total,[lc]:null===(n=hC(lc))||void 0===n||null===(r=n.data)||void 0===r?void 0:r.total};return{...o,total:yC(o)}},bC=()=>{var e;const t=vC().account?cc:lc;return(null===(e=(0,pc.getQuery)())||void 0===e?void 0:e.issueType)||t},_C=()=>{const e=bC(),t={[cc]:(0,o.__)("All account issues resolved","google-listings-and-ads"),[lc]:(0,o.__)("All product issues resolved","google-listings-and-ads")},n={[cc]:(0,s.createInterpolateElement)((0,o.__)("However, there are issues affecting your products that needs to be resolved. Head over to the <strong>Product Issues</strong> tab to view them.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)}),[lc]:(0,s.createInterpolateElement)((0,o.__)("However, there are issues affecting your account that needs to be resolved. Head over to the <strong>Account Issues</strong> tab to view them.","google-listings-and-ads"),{strong:(0,s.createElement)("strong",null)})};return(0,s.createElement)("div",{className:"gla-issues-solved"},(0,s.createElement)(bl,{icon:"yes-alt",className:"gla-issues-solved__icon"}),(0,s.createElement)(Ii,{variant:"subtitle"},t[e]),(0,s.createElement)(Ii,{variant:"body",className:"gla-issues-solved__body"},n[e]))},wC=__webpack_require__(8359),EC=e=>{let{issue:t,onRequestClose:n=(()=>{})}=e;return(0,s.createElement)(Gh,{className:"gla-issues-table-data-modal",title:t.issue,onRequestClose:n,buttons:[(0,s.createElement)(gc,{key:"learn-more",isPrimary:!0,target:"_blank",href:t.action_url,text:(0,o.__)("Learn more","google-listings-and-ads"),eventName:"gla_documentation_link_click",eventProps:{context:"issues-data-table-modal",linkId:t.code,href:t.action_url},icon:(0,s.createElement)(wC.Z,null)})]},(0,s.createElement)("p",null,(0,s.createElement)("strong",null,(0,o.__)("What to do?","google-listings-and-ads"))),(0,s.createElement)("p",null,t.action))},$C=e=>{var t;let{data:n}=e;const r=(0,o.__)("Read more about this issue","google-listings-and-ads");return n?null!==(t=n.issues)&&void 0!==t&&t.length?(0,s.createElement)(Bl.Table,{caption:(0,o.__)("Issues to resolve","google-listings-and-ads"),headers:uC,rows:n.issues.map((e=>[{display:"warning"===e.severity?(0,s.createElement)(qh,null):(0,s.createElement)(pC,null)},{display:e.product},{display:e.issue},{display:e.action?(0,s.createElement)(Sy,{button:(0,s.createElement)(gc,{isLink:!0,eventName:"gla_click_read_more_about_issue",eventProps:{context:"issues-to-resolve",issue:e.code}},r),modal:(0,s.createElement)(EC,{issue:e})}):(0,s.createElement)(zl,{context:"issues-to-resolve",linkId:e.code,href:e.action_url},r)},{display:e.type===lc&&(0,s.createElement)(mC,{productId:e.product_id,eventName:"gla_edit_product_issue_click",eventProps:{code:e.code,issue:e.issue}})}]))}):(0,s.createElement)(_C,null):(0,s.createElement)(Bl.EmptyTable,{headers:uC,numberOfRows:1},(0,o.__)("An error occurred while retrieving issues. Please try again later.","google-listings-and-ads"))},CC=()=>{const e=bC(),{page:t,setPage:n}=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[r,o]=(0,s.useState)({}),a=(0,s.useCallback)((t=>{o((n=>({...n,[e]:t})))}),[e]);return{page:null!==(t=r[e])&&void 0!==t?t:n,setPage:a}}(e),{data:r,hasFinishedResolution:a}=hC(e,t);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qe,{size:null},a?(0,s.createElement)($C,{data:r}):(0,s.createElement)(Bl.TablePlaceholder,{headers:uC,caption:(0,o.__)("Loading Issues To Resolve","google-listings-and-ads")})),(null==r?void 0:r.total)>0&&(0,s.createElement)(ip,{justify:"center"},(0,s.createElement)(Bl.Pagination,{page:t,perPage:5,total:r.total,showPagePicker:!1,showPerPagePicker:!1,onPageChange:(t,r)=>{n(t),dC(`${e}-issues-to-resolve`,t,r)}})))},kC=()=>{const e=vC(),t=bC(),n=t=>{const n=e[t];return n>=0?`(${n})`:""},r=[{key:cc,title:`${(0,o.__)("Account Issues","google-listings-and-ads")} ${n(cc)}`,href:(0,pc.getNewPath)({issueType:cc},"/google/product-feed",{})},{key:lc,title:`${(0,o.__)("Product Issues","google-listings-and-ads")} ${n(lc)}`,href:(0,pc.getNewPath)({issueType:lc},"/google/product-feed",{})}];return(0,s.createElement)(Tw,{tabs:r,selectedKey:t})},SC=e=>{let{issues:t=[]}=e;const[n,r]=(0,s.useState)(!1);if(!t.length)return null;const a=n?t:t.slice(0,5);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ii,{variant:"subtitle"},(0,o.__)("Request a review on the following issue(s):","google-listings-and-ads")),(0,s.createElement)("ul",{className:"gla-review-request-modal__issue-list"},a.map((e=>(0,s.createElement)("li",{key:e.code},e.issue)))),t.length>5&&(0,s.createElement)(xl,{isTertiary:!0,onClick:()=>{(0,Dl.recordEvent)("gla_request_review_issue_list_toggle_click",{action:n?"collapse":"expand"}),r(!n)}},n?(0,o.__)("Show less","google-listing-and-ads"):(0,o.sprintf)(// translators: %d: The number of extra issues issues
|
29 |
+
(0,o.__)("+ %d more issue(s)","google-listing-and-ads"),t.length-5)))},xC=e=>{let{issues:t=[],isActive:n=!1,onClose:r=(()=>{})}=e;const[a,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1),{sendMCReviewRequest:u}=xg(),{createNotice:d}=Ap();if(!n)return null;const g=e=>{l||r(e)};return(0,s.createElement)(Gh,{className:"gla-review-request-modal",title:(0,o.__)("Request account review","google-listings-and-ads"),buttons:[(0,s.createElement)(gc,{key:"secondary",isSecondary:!0,onClick:()=>{g("maybe-later")}},(0,o.__)("Cancel","google-listings-and-ads")),(0,s.createElement)(gc,{loading:l,key:"primary",isPrimary:!0,disabled:!a&&t.length,onClick:()=>{l||(c(!0),(0,Dl.recordEvent)("gla_request_review"),u().then((()=>{d("success",(0,o.__)("Your account review was successfully requested.","google-listings-and-ads")),(0,Dl.recordEvent)("gla_request_review_success"),r("request-review-success")})).catch((()=>{c(!1),(0,Dl.recordEvent)("gla_request_review_failure")})))}},(0,o.__)("Request account review","google-listings-and-ads"))],onRequestClose:()=>{g("dismiss")}},(0,s.createElement)(Fc,{className:"gla-review-request-modal__notice",status:"warning",isDismissible:!1},(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Please ensure that you have resolved all account suspension issues before requesting for an account review. If some issues are unresolved, you wont be able to request another review for at least 7 days. <Link>Learn more</Link>","google-listings-and-ads"),{Link:(0,s.createElement)(zl,{href:"https://support.google.com/merchants/answer/2948694",context:"request-review-modal",linkId:"request-review-modal-learn-more"})}))),(0,s.createElement)(SC,{issues:t}),t.length>0&&(0,s.createElement)(Uh,{className:"gla-review-request-modal__checkbox",label:(0,o.__)("I have resolved all the issue(s) listed above.","google-listings-and-ads"),checked:a,onChange:e=>{i(e),(0,Dl.recordEvent)("gla_request_review_issues_solved_checkbox_click",{action:e?"check":"uncheck"})}}))},OC=e=>{let{size:t=18}=e;return(0,s.createElement)(xp.Z,{className:"gla-success-icon",size:t})},PC=__webpack_require__(8249),AC=e=>{let{size:t=18,className:n}=e;return(0,s.createElement)(PC.Z,{className:d()("gla-sync-icon",n),size:t})};const NC={status:(0,s.createElement)("span",{className:"gla-error"},(0,o.__)("Disapproved","google-listing-and-ads")),statusDescription:(0,o.__)("To make products eligible to show on Google, fix all setup and policy issues that were found.","google-listing-and-ads"),title:(0,o.__)("We’ve found unresolved issues in your account.","google-listing-and-ads"),body:(0,o.__)("Fix all account suspension issues listed below to request a review of your account.","google-listing-and-ads"),requestButton:!0,icon:(0,s.createElement)(pC,{size:24})},RC={...NC,status:(0,o.__)("Warning","google-listing-and-ads"),statusDescription:(0,o.__)("To keep showing your products on Google, fix your setup and policy issues.","google-listing-and-ads"),icon:(0,s.createElement)(qh,{size:24})},TC={status:(0,o.__)("Pending review","google-listing-and-ads"),statusDescription:(0,o.__)("This may take up to 3 days. If approved, your products will show on Google once it’s completed.","google-listing-and-ads"),icon:(0,s.createElement)(AC,{size:24})};var MC={UNDER_REVIEW:{status:(0,o.__)("Under review","google-listing-and-ads"),statusDescription:(0,o.__)("Review requests take at least 7 days.","google-listing-and-ads"),icon:(0,s.createElement)(AC,{size:24})},PENDING_REVIEW:TC,DISAPPROVED:NC,WARNING:RC,APPROVED:{status:(0,s.createElement)("span",{className:"gla-success"},(0,o.__)("Approved","google-listing-and-ads")),statusDescription:(0,o.__)("Your products listings are on Google.","google-listing-and-ads"),icon:(0,s.createElement)(OC,{size:24})},ONBOARDING:{status:(0,o.__)("No products added","google-listing-and-ads"),statusDescription:(0,o.__)("Add and sync products to Google.","google-listing-and-ads"),icon:(0,s.createElement)(qh,{size:24})}},jC=e=>{let{account:t,onRequestReviewClick:n=(()=>{})}=e;const r=MC[t.status];if(!r)return null;const a=t.cooldown&&(0,o.sprintf)(// translators: %s: Cool down period date.
|
30 |
+
(0,o.__)("Your account is under cool down period. You can request a new review on %s.","google-listings-and-ads"),(0,_d.format)(`${Zl.dateFormat}, ${Zl.timeFormat}`,new Date(t.cooldown)));return(0,s.createElement)(ae,{"data-testid":"gla-review-request-notice",className:"gla-review-request-notice"},(0,s.createElement)(ze,null,(0,s.createElement)(ae,null,(0,s.createElement)(ze,{className:"gla-review-request-notice__icon"},r.icon),(0,s.createElement)(ze,{className:"gla-review-request-notice__text"},(0,s.createElement)(Ii,{variant:"subtitle"},r.title),(0,s.createElement)(Ii,{className:"gla-review-request-notice__text-body",variant:"body"},a||r.body)))),(0,s.createElement)(ze,{className:"gla-review-request-notice__button"},r.requestButton&&(t.cooldown||t.reviewEligibleRegions.length>0)&&(0,s.createElement)(gc,{isPrimary:!0,onClick:n,disabled:!!t.cooldown,text:(0,o.__)("Request review","google-listings-and-ads")})))},IC=e=>{let{account:t={}}=e;const[n,r]=(0,s.useState)(!1),o=bC(),{data:a,hasFinishedResolution:i}=hC(cc,1,200),{data:l,hasFinishedResolution:c}=t;return i&&c&&(u=l.status,null!==(d=MC[u])&&void 0!==d&&d.title)&&o===cc?(0,s.createElement)("div",{className:"gla-review-request"},(0,s.createElement)(xC,{issues:a.issues.filter((e=>l.issues.includes(e.code))),isActive:n,onClose:e=>{r(!1),(0,Dl.recordEvent)("gla_modal_closed",{context:uc,action:e})}}),(0,s.createElement)(jC,{account:l,onRequestReviewClick:()=>{r(!0),(0,Dl.recordEvent)("gla_modal_open",{context:uc})}})):null;var u,d};const FC=(0,s.createElement)(P_,{id:"issues-to-resolve"},(0,s.createInterpolateElement)((0,o.__)("Products and stores must meet <link>Google Merchant Center’s requirements</link> in order to get approved. WooCommerce and Google automatically check your product feed to help you resolve any issues. ","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"product-feed",linkId:"issues-to-resolve",href:"https://support.google.com/merchants/answer/6363310"})}));var DC=()=>{const{total:e}=vC(),t=Pg("getMCReviewRequest");return e?(0,s.createElement)(gE,{className:"gla-issues-table-card"},(0,s.createElement)(De,{className:d()("woocommerce-table",{"has-actions":!!FC})},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{variant:"title.small",as:"h2"},(0,o.__)("Issues to resolve","google-listings-and-ads")),(0,s.createElement)("div",{className:"woocommerce-table__actions"},FC)),(0,s.createElement)(kC,null),(0,s.createElement)(IC,{account:t}),(0,s.createElement)(CC,null))):null},LC=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));const GC=(0,o.__)("Select channel visibility","google-listings-and-ads"),BC=[{key:0,value:!0,label:(0,o.__)("Sync and show","google-listings-and-ads")},{key:1,value:!1,label:(0,o.__)("Don’t sync and show","google-listings-and-ads")}];function qC(e){let{withTooltip:t,children:n,...r}=e;return t?(0,s.createElement)(Yp,l({children:n},r)):n}function zC(e){let{selectedSize:t,onActionClick:n}=e;const[r,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{0===t&&a(null)}),[t]),0===t?(0,s.createElement)(Yp,{position:"top center",text:(0,o.__)("Select one or more products to bulk edit","google-listings-and-ads")},(0,s.createElement)(El,{icon:LC,size:24})):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bl.SelectControl,{label:GC,options:BC,selected:r,onChange:a}),(0,s.createElement)(qC,{withTooltip:null===r,position:"top center",text:GC},(0,s.createElement)(xl,{isSecondary:!0,disabled:null===r,onClick:()=>{const e=BC.find((e=>{let{key:t}=e;return t===r}));n(e.value)}},(0,o.sprintf)(// translators: %d: number of selected products to edit channel visibility, with minimum value of 1.
|
31 |
+
(0,o.__)("Apply to %d selected","google-listings-and-ads"),t))))}var HC={approved:(0,o.__)("Approved","google-listings-and-ads"),partially_approved:(0,o.__)("Partially approved","google-listings-and-ads"),expiring:(0,o.__)("Expiring","google-listings-and-ads"),pending:(0,o.__)("Pending","google-listings-and-ads"),disapproved:(0,o.__)("Disapproved","google-listings-and-ads"),not_synced:(0,o.__)("Not synced","google-listings-and-ads")};const UC="product-feed",VC=e=>e?"sync_and_show":"dont_sync_and_show";var WC=()=>{var e,t;const[n,r]=(0,s.useState)(new Set),[a,i]=(0,s.useState)({page:1,per_page:10,orderby:"title",order:"asc"}),{hasFinishedResolution:l,data:c}=Pg("getMCProductFeed",a),{updateMCProductVisibility:u}=xg(),{createNotice:g}=Ap(),p=e=>{if(e){const e=null==c?void 0:c.products.map((e=>e.id));r(new Set([...e]))}else r(new Set)},f=[{key:"select",label:(0,s.createElement)(Uh,{disabled:!(null!=c&&c.products),checked:(null==c||null===(e=c.products)||void 0===e?void 0:e.length)>0&&(null==c||null===(t=c.products)||void 0===t?void 0:t.every((e=>n.has(e.id)))),onChange:p}),isLeftAligned:!0,required:!0},{key:"title",label:(0,o.__)("Product Title","google-listings-and-ads"),isLeftAligned:!0,required:!0,isSortable:!0},{key:"visible",label:(0,o.__)("Channel Visibility","google-listings-and-ads"),isLeftAligned:!0,isSortable:!0},{key:"status",label:(0,o.__)("Status","google-listings-and-ads"),isLeftAligned:!0,isSortable:!0},{key:"action",label:"",required:!0}],m=(0,s.createElement)(zC,{selectedSize:n.size,onActionClick:e=>{const t=Array.from(n),{length:r}=t;u(t,e).then((()=>{const e=(0,o.sprintf)(// translators: %d: number of products are updated successfully, with minimum value of 1.
|
32 |
+
(0,o._n)("You successfully changed the channel visibility of %d product","You successfully changed the channel visibility of %d products",r,"google-listings-and-ads"),r);g("success",e)})),(0,Dl.recordEvent)("gla_bulk_edit_click",{context:UC,number_of_items:r,visibility_to:VC(e)}),p(!1)}});return(0,s.createElement)(gE,{className:"gla-product-feed-table-card"},(0,s.createElement)(De,{className:d()("woocommerce-table",{"has-actions":!!m})},(0,s.createElement)(zi,null,(0,s.createElement)(Ii,{variant:"title.small",as:"h2"},(0,o.__)("Product Feed","google-listings-and-ads")),(0,s.createElement)("div",{className:"woocommerce-table__actions"},m)),(0,s.createElement)(qe,{size:null},!l&&(0,s.createElement)(Bl.TablePlaceholder,{headers:f,numberOfRows:a.per_page}),l&&!(null!=c&&c.products)&&(0,s.createElement)(Bl.EmptyTable,{headers:f,numberOfRows:1},(0,o.__)("An error occurred while retrieving products. Please try again later.","google-listings-and-ads")),l&&(null==c?void 0:c.products)&&(0,s.createElement)(Bl.Table,{headers:f,rows:c.products.map((e=>{return[{display:(0,s.createElement)(Uh,{checked:n.has(e.id),onChange:(t=e.id,e=>{e?r(new Set([...n,t])):(n.delete(t),r(new Set(n)))})})},{display:e.title},{display:e.visible?(0,o.__)("Sync and show","google-listings-and-ads"):(0,o.__)("Don't sync and show","google-listings-and-ads")},{display:HC[e.status]},{display:(0,s.createElement)(mC,{productId:e.id,eventName:"gla_edit_product_click",eventProps:{status:e.status,visibility:VC(e.visible)}})}];var t})),query:a,onSort:(e,t)=>{i({...a,orderby:e,order:t})}})),(0,s.createElement)(ip,{justify:"center"},(null==c?void 0:c.total)&&(0,s.createElement)(Bl.Pagination,{page:a.page,perPage:a.per_page,total:null==c?void 0:c.total,showPagePicker:!0,showPerPagePicker:!1,onPageChange:(e,t)=>{i({...a,page:e}),dC(UC,e,t)}}))))},YC=__webpack_require__(2441),KC=__webpack_require__.n(YC);function QC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||(0,ie.includes)(["iPad","iPhone"],t)}__webpack_require__(3956);function ZC(e){var t=e.target,n=e.callback;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bindGlobal,o=void 0!==r&&r,a=n.eventName,i=void 0===a?"keydown":a,l=n.isDisabled,c=void 0!==l&&l,u=n.target,d=(0,s.useRef)(t);(0,s.useEffect)((function(){d.current=t}),[t]),(0,s.useEffect)((function(){if(!c){var t=new(KC())(u?u.current:document);return(0,ie.castArray)(e).forEach((function(e){var n=e.split("+"),r=new Set(n.filter((function(e){return e.length>1}))),a=r.has("alt"),s=r.has("shift");if(QC()&&(1===r.size&&a||2===r.size&&a&&s))throw new Error("Cannot bind ".concat(e,". Alt and Shift+Alt modifiers are reserved for character input."));t[o?"bindGlobal":"bind"](e,(function(){return d.current.apply(d,arguments)}),i)})),function(){t.reset()}}}),[e,o,i,u,c])}(e.shortcut,n,{bindGlobal:e.bindGlobal,target:t,eventName:e.eventName}),null}var XC=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=(0,s.useRef)(),i=(0,ie.map)(n,(function(e,t){return(0,s.createElement)(ZC,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return s.Children.count(t)?(0,s.createElement)("div",{ref:a},i,t):i};const JC=e=>{let{isSelected:t}=e;return(0,s.createElement)(rs,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(ts,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function ek(e){let{currentPage:t,numberOfPages:n,setCurrentPage:r}=e;return(0,s.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,o.__)("Guide controls")},(0,ie.times)(n,(e=>(0,s.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,s.createElement)(xl,{key:e,icon:(0,s.createElement)(JC,{isSelected:e===t}),"aria-label":(0,o.sprintf)(
|
33 |
/* translators: 1: current page number 2: total number of pages */
|
34 |
+
(0,o.__)("Page %1$d of %2$d"),e+1,n),onClick:()=>r(e)})))))}function tk(e){const t=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>{const{ownerDocument:e}=t.current,{activeElement:n,body:r}=e;n&&n!==r||t.current.focus()}),[]),(0,s.createElement)(xl,l({},e,{ref:t}))}function nk(e){let{className:t,contentLabel:n,backButtonText:r,finishButtonText:a,renderFinish:i=(e=>e),onFinish:l,pages:c}=e;const[u,g]=(0,s.useState)(0),p=u>0,f=u<c.length-1,m=()=>{p&&g(u-1)},h=()=>{f&&g(u+1)};if(0===c.length)return null;let y=null;return f||(y=i((0,s.createElement)(tk,{className:"components-guide__finish-button",onClick:l},a||(0,o.__)("Finish")))),(0,s.createElement)(Dh,{className:d()("components-guide",t),contentLabel:n,onRequestClose:l},(0,s.createElement)(XC,{key:u,shortcuts:{left:m,right:h}}),(0,s.createElement)("div",{className:"components-guide__container"},(0,s.createElement)("div",{className:"components-guide__page"},c[u].image,(0,s.createElement)(ek,{currentPage:u,numberOfPages:c.length,setCurrentPage:g}),c[u].content),(0,s.createElement)("div",{className:"components-guide__footer"},p&&(0,s.createElement)(xl,{className:"components-guide__back-button",onClick:m},r||(0,o.__)("Previous")),f&&(0,s.createElement)(xl,{className:"components-guide__forward-button",onClick:h},(0,o.__)("Next")),y)))}var rk=__webpack_require__(1393);const ok="gla_modal_closed",ak="components-guide__finish-button",ik=(0,pc.getNewPath)({guide:void 0},"/google/product-feed"),sk=(0,s.createElement)("div",{className:"gla-submission-success-guide__logo-block"},(0,s.createElement)("div",{className:"gla-submission-success-guide__logo-item"},(0,s.createElement)("img",{src:rk,alt:(0,o.__)("WooCommerce Logo","google-listings-and-ads"),width:"145",height:"31"})),(0,s.createElement)("div",{className:"gla-submission-success-guide__logo-separator-line"}),(0,s.createElement)("div",{className:"gla-submission-success-guide__logo-item"},(0,s.createElement)("img",{src:Mc,alt:(0,o.__)("Google Logo","google-listings-and-ads"),width:"106",height:"36"}))),lk=[{image:sk,content:(0,s.createElement)(iE,{title:(0,o.__)("You have successfully set up Google Listings & Ads! 🎉","google-listings-and-ads")},(0,s.createElement)("p",null,(0,o.__)("Google reviews product listings in 3-5 days. If approved, your products will automatically be live and searchable on Google.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<productFeedLink>Manage and edit your product feed in WooCommerce.</productFeedLink> We will also notify you of any product feed issues to ensure your products get approved and perform well on Google.","google-listings-and-ads"),{productFeedLink:(0,s.createElement)(sE,{href:ik,context:"product-feed"})})))},{image:sk,content:(0,s.createElement)(iE,{title:(0,o.__)("Spend $500 to get $500 in Google Ads credits","google-listings-and-ads")},(0,s.createElement)("p",null,(0,o.__)("New to Google Ads? Get $500 in ad credit when you spend $500 within your first 60 days* You can edit or cancel your campaign at any time.","google-listings-and-ads")),(0,s.createElement)("cite",null,(0,s.createInterpolateElement)((0,o.__)("*Full terms and conditions <link>here</link>.","google-listings-and-ads"),{link:(0,s.createElement)(sE,{href:"https://www.google.com/ads/coupons/terms/",context:"terms-of-ads-coupons"})})))}],ck=e=>{(0,pc.getHistory)().replace(ik);const t=(e.currentTarget||e.target).classList.contains(ak)?"maybe-later":"dismiss";(0,Dl.recordEvent)(ok,{context:rc,action:t})};var uk=()=>{(0,s.useEffect)((()=>{(0,Dl.recordEvent)("gla_modal_open",{context:rc}),Hw.set(ac,!0)}),[]);const e=(0,s.useCallback)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"gla-submission-success-guide__space_holder"}),(0,s.createElement)(xl,{isSecondary:!0,className:ak,onClick:ck},(0,o.__)("Maybe later","google-listings-and-ads")),(0,s.createElement)(Jw,{isPrimary:!0,isSecondary:!1,isSmall:!1,eventName:ok,eventProps:{context:rc,action:"create-paid-campaign"}},(0,o.__)("Create paid campaign","google-listings-and-ads")))),[]);return(0,s.createElement)(nk,{className:"gla-submission-success-guide",backButtonText:(0,o.__)("Back","google-listings-and-ads"),pages:lk,renderFinish:e,onFinish:ck})},dk=()=>Pg("getMCProductStatistics"),gk=()=>{const e={strong:(0,s.createElement)("strong",null)};return(0,s.createElement)(P_,{id:"product-status"},(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("Your product feed is <strong>automatically synced</strong> from WooCommerce to Google, every 1-2 days. ","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<strong>‘Not synced’ products</strong> do not appear in Google listings. They are queued for submission, or they may be ineligible or excluded from the product feed.","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("After submission, Google assigns each product a status: <strong>Active, Expiring, Pending, or Disapproved.</strong>","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<strong>‘Active’ products</strong> are fully approved and eligible to appear in free listings on Google.","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<strong>‘Expiring’ products</strong> will become inactive and no longer appear in Google listings in the next 3 days.","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<strong>‘Pending’ products</strong> are being processed by Google. They will not appear in listings until they are approved.","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<strong>‘Disapproved’ products</strong> are inactive and do not appear in Google listings.","google-listings-and-ads"),e)),(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("<link>Read more about product sync and statuses</link>","google-listings-and-ads"),{link:(0,s.createElement)(zl,{context:"product-feed",linkId:"product-sync-statuses",href:"https://support.google.com/merchants/answer/160491"})})))},pk=e=>{let{icon:t,title:n,label:r,description:o,className:a}=e;return(0,s.createElement)(ae,{className:a,justify:"normal",gap:1},(0,s.createElement)(ze,null,n),(0,s.createElement)(ze,{className:"gla-status__icon"},t),(0,s.createElement)(ze,null,(0,s.createElement)("span",{className:"gla-status__label"},r),(0,s.createElement)("span",{className:"gla-status__description"},o)))},fk=function(){const{data:e}=Pg("getMCProductStatistics"),{Icon:t,status:n,description:r}=function(e){let{scheduled_sync:t,statistics:n,timestamp:r}=e;if(0!==t)return{Icon:AC,status:(0,o.__)("Sync in progress","google-listings-and-ads"),description:null};const a=Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return"not_synced"===n?e:e+r}),0);return{Icon:OC,status:(0,o.__)("Automatically synced to Google","google-listings-and-ads"),description:(0,o.sprintf)(// translators: %s: datetime of last update products sync status, and %d: number of synced products, with minimum value of 1.
|
35 |
+
(0,o._n)("Last updated: %1$s, containing %2$d product","Last updated: %1$s, containing %2$d products",a,"google-listings-and-ads"),(0,_d.format)(Zl.dateFormat+(Zl.dateFormat.trim()&&Zl.timeFormat.trim()?", ":"")+Zl.timeFormat,new Date(1e3*r)),a)}}(e);return(0,s.createElement)(pk,{title:(0,o.__)("Sync with Google:","google-listings-and-ads"),icon:(0,s.createElement)(t,{className:"gla-success",size:24}),label:(0,s.createElement)("span",{className:"gla-success"},n),description:r})},mk=function(){const{total:e}=vC(),t=(n=e,Number.isInteger(n)?0===n?(0,o.__)("No issues to resolve 🎉","google-listings-and-ads"):(0,o.sprintf)(// translators: %d: number of unsolved Merchant Center issues, with minimum value of 1.
|
36 |
+
(0,o._n)("%d issue to resolve","%d issues to resolve",n,"google-listings-and-ads"),n):"");var n;return(0,s.createElement)(pk,{title:(0,o.__)("Feed setup:","google-listings-and-ads"),icon:(0,s.createElement)(OC,{size:24}),label:(0,s.createElement)("span",{className:"gla-success"},(0,o.__)("Free listings setup completed","google-listings-and-ads")),description:t})},hk=()=>{var e;const t=Pg("getMCReviewRequest");if(!t.hasFinishedResolution||null===(e=t.data)||void 0===e||!e.status)return null;const n=MC[t.data.status];return n?(0,s.createElement)(pk,{className:"gla-account-status",title:(0,o.__)("Account status:","google-listings-and-ads"),icon:n.icon,label:n.status,description:n.statusDescription}):null},yk=()=>{const{hasFinishedResolution:e,data:t}=dk();return(0,s.createElement)(De,{className:"gla-product-statistics"},(0,s.createElement)(zi,{justify:"normal"},(0,s.createElement)(ze,null,(0,s.createElement)(Ii,{variant:"title.small",as:"h2"},(0,o.__)("Overview","google-listings-and-ads"))),(0,s.createElement)(gk,null)),(0,s.createElement)(qe,{className:"gla-product-statistics__summaries",size:null},!e&&(0,s.createElement)(Bl.SummaryListPlaceholder,{numberOfItems:5}),e&&t&&(0,s.createElement)(Bl.SummaryList,null,(()=>[(0,s.createElement)(Bl.SummaryNumber,{key:"active",label:(0,o.__)("Active","google-listings-and-ads"),value:t.statistics.active}),(0,s.createElement)(Bl.SummaryNumber,{key:"expiring",label:(0,o.__)("Expiring","google-listings-and-ads"),value:t.statistics.expiring}),(0,s.createElement)(Bl.SummaryNumber,{key:"pending",label:(0,o.__)("Pending","google-listings-and-ads"),value:t.statistics.pending}),(0,s.createElement)(Bl.SummaryNumber,{key:"disapproved",label:(0,o.__)("Disapproved","google-listings-and-ads"),value:t.statistics.disapproved}),(0,s.createElement)(Bl.SummaryNumber,{key:"not_synced",label:(0,o.__)("Not Synced","google-listings-and-ads"),value:t.statistics.not_synced})]))),(0,s.createElement)(ip,{gap:0},(0,s.createElement)(mk,null),(0,s.createElement)(fk,null),(0,s.createElement)(hk,null)))},vk=()=>{var e;const{hasFinishedResolution:t,data:n}=dk(),[r,a]=(0,s.useState)(!1),i=(null===(e=(0,pc.getQuery)())||void 0===e?void 0:e.guide)===rc,l=NE();return(0,s.useEffect)((()=>{if(!r){const e=Hw.get(ac);a(!i&&e&&l)}}),[i,r,l]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Lw,null),i&&(0,s.createElement)(uk,null),r&&(0,s.createElement)(Uw,{label:(0,o.__)("How easy was it to set up Google Listings & Ads?","google-listings-and-ads"),eventContext:rc}),(0,s.createElement)("div",{className:"gla-product-feed"},!t&&(0,s.createElement)(Vg,null),t&&!n&&(0,o.__)("An error occurred while retrieving your product feed. Please try again later.","google-listings-and-ads"),t&&n&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(yk,null),(0,s.createElement)(DC,null),(0,s.createElement)(WC,{trackEventReportId:"product-feed"}))))};function bk(e){return(0,s.createElement)(dp,l({title:(0,o.__)("Linked accounts","google-listings-and-ads"),description:(0,o.__)("A WordPress.com account, Google account, and Google Merchant Center account are required to use this extension in WooCommerce.","google-listings-and-ads")},e))}const _k="all-accounts",wk="ads-account",Ek={[_k]:{title:(0,o.__)("Disconnect all accounts","google-listings-and-ads"),confirmButton:(0,o.__)("Disconnect all accounts","google-listings-and-ads"),confirmation:(0,o.__)("Yes, I want to disconnect all my accounts.","google-listings-and-ads"),contents:[(0,o.__)("I understand that I am disconnecting any WordPress.com account, Google account, Google Merchant Center account and Google Ads account connected to this extension.","google-listings-and-ads"),(0,o.__)("Any active product listings will continue to show on Google. They can be managed, edited, or deleted manually from Google Merchant Center (merchants.google.com).","google-listings-and-ads"),(0,o.__)("Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).","google-listings-and-ads")]},[wk]:{title:(0,o.__)("Disconnect Google Ads account","google-listings-and-ads"),confirmButton:(0,o.__)("Disconnect Google Ads Account","google-listings-and-ads"),confirmation:(0,o.__)("Yes, I want to disconnect my Google Ads account.","google-listings-and-ads"),contents:[(0,o.__)("I understand that I am disconnecting my Google Ads account from this WooCommerce extension.","google-listings-and-ads"),(0,o.__)("Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).","google-listings-and-ads"),(0,o.__)("Some configurations for Google Ads created through WooCommerce may be lost. This cannot be undone.","google-listings-and-ads")]}};function $k(e){let{disconnectTarget:t,onRequestClose:n,onDisconnected:r}=e;const[a,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1),u=xg(),{title:d,confirmButton:g,confirmation:p,contents:f}=Ek[t],m=()=>{l||n()};return(0,s.createElement)(Gh,{className:"gla-disconnect-accounts-modal",title:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qh,{size:20}),d),isDismissible:!l,buttons:[(0,s.createElement)(xl,{key:"1",isSecondary:!0,disabled:l,onClick:m},(0,o.__)("Never mind","google-listings-and-ads")),(0,s.createElement)(gc,{key:"2",isPrimary:!0,isDestructive:!0,loading:l,disabled:!a,onClick:()=>{const e=t===_k?u.disconnectAllAccounts:u.disconnectGoogleAdsAccount;c(!0),e().then((()=>{r(),n()})).catch((()=>{c(!1)}))}},g)],onRequestClose:m},f.map(((e,t)=>(0,s.createElement)("p",{key:t},e))),(0,s.createElement)(Uh,{label:p,checked:a,disabled:l,onChange:i}))}function Ck(e){return(0,s.createElement)($k,e)}function kk(){const e=Gv(),{jetpack:t}=Wg(),{google:n}=Xg(),{googleMCAccount:r}=Jg(),{googleAdsAccount:a}=L_(),i=!(t&&n&&r&&a),l=["connected","incomplete"].includes(null==a?void 0:a.status),[c,u]=(0,s.useState)(null);return(0,s.createElement)(bk,null,c&&(0,s.createElement)(Ck,{onRequestClose:()=>u(null),onDisconnected:()=>{(0,Dl.queueRecordEvent)("gla_disconnected_accounts",{context:c});const t=c===_k?e+(0,pc.getNewPath)(null,"/google/start",null):window.location.href;window.location.href=t},disconnectTarget:c}),i?(0,s.createElement)(Kp,null):(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Pp,{jetpack:t}),(0,s.createElement)(Up,{googleAccount:n,hideAccountSwitch:!0}),(0,s.createElement)(Qp,{googleMCAccount:r,hideAccountSwitch:!0}),l&&(0,s.createElement)(B_,{googleAdsAccount:a},(0,s.createElement)(dp.Card.Footer,null,(0,s.createElement)(xl,{isDestructive:!0,isLink:!0,onClick:()=>u(wk)},(0,o.__)("Disconnect Google Ads account only","google-listings-and-ads")))),(0,s.createElement)(ae,{justify:"flex-end"},(0,s.createElement)(xl,{isPrimary:!0,isDestructive:!0,onClick:()=>u(_k)},(0,o.__)("Disconnect from all accounts","google-listings-and-ads")))))}var Sk=(0,s.createElement)(rs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(ns,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));let xk=null;function Ok(){if(xk)return;const e=(0,eg.getQueryArgs)(document.location.search),t=t=>{const{target:n}=t;if("A"!==n.tagName)return;const r=[fc,"/google/reports","/google/product-feed",mc],o=(0,eg.getQueryArgs)(n.getAttribute("href"));if(r.includes(o.path)){t.stopPropagation(),t.preventDefault();const n=!Mw()||o.path===mc,r=(0,eg.getQueryArgs)(document.location.search);if(n&&!(0,ie.isEqual)(e,r)){const{path:t,...n}=e;(0,pc.getHistory)().push((0,pc.getNewPath)(n,t,null))}}};document.defaultView.addEventListener("click",t,!0),document.body.classList.add("gla-reconnection-lock"),xk=()=>{document.defaultView.removeEventListener("click",t,!0),document.body.classList.remove("gla-reconnection-lock")}}function Pk(){xk&&(xk(),xk=null)}function Ak(){const{jetpack:e}=Wg(),t="yes"===(null==e?void 0:e.active);return(0,s.useEffect)((()=>{t?((0,pc.getHistory)().replace(Oc()),Pk()):Ok()}),[t]),e?(0,s.createElement)(bk,null,(0,s.createElement)(pp,{size:"large"},(0,s.createElement)(Sp,{className:"gla-wpcom-connection-lost-card",isBorderless:!0,size:"small",icon:(0,s.createElement)(yp,{icon:Sk,size:24}),title:(0,o.__)("Your WordPress.com account has been disconnected.","google-listings-and-ads"),helper:(0,o.__)("Connect your WordPress.com account to ensure your products stay listed on Google. If you do not re-connect, your products can’t be automatically synced to Google, and any existing listings may be removed from Google.","google-listings-and-ads")}),(0,s.createElement)(Lp,null))):(0,s.createElement)(Vg,null)}function Nk(e){let{email:t}=e;const n=Gv(),[r,a]=(0,s.useState)(null),{disconnectGoogleAccount:i}=xg(),[l,c]=(0,s.useState)(!1);return(0,s.createElement)(Sp,{appearance:wp.GOOGLE,description:t},(0,s.createElement)(Jp,null),(0,s.createElement)(dp.Card.Body,null,(0,s.createElement)(Fc,{status:"error",isDismissible:!1},(0,s.createElement)("p",null,(0,s.createInterpolateElement)((0,o.__)("This Google account, <accountEmail />, was not the Google account previously connected to this integration.","google-listings-and-ads"),{accountEmail:(0,s.createElement)("strong",null,t)})),(0,s.createElement)("p",null,(0,o.__)("Thus, it doesn‘t have access to the Google Merchant Center and/or Google Ads account currently connected to this WooCommerce store.","google-listings-and-ads")),(0,s.createElement)("p",null,(0,o.__)("Try connecting with a different Google account, or completely disconnect all your connected accounts.","google-listings-and-ads")))),(0,s.createElement)(dp.Card.Footer,{justify:"flex-end"},r&&(0,s.createElement)(Ck,{onRequestClose:()=>a(null),onDisconnected:()=>{const e=(0,pc.getNewPath)(null,"/google/start",null);window.location.href=n+e},disconnectTarget:r}),(0,s.createElement)(gc,{isSecondary:!0,isDestructive:!0,disabled:l,onClick:()=>a(_k)},(0,o.__)("Disconnect all accounts","google-listings-and-ads")),(0,s.createElement)(gc,{isPrimary:!0,loading:l,onClick:()=>{c(!0),i().catch((()=>{c(!1)}))}},(0,o.__)("Try another Google account","google-listings-and-ads"))))}function Rk(){const{data:e}=Pg("getGoogleAccountAccess"),t=Zg(Zl.adsSetupComplete,null==e?void 0:e.scope),n="yes"===(null==e?void 0:e.active),r=n?"no"===(null==e?void 0:e.merchant_access)||"no"===(null==e?void 0:e.ads_access):void 0,a=n&&!r&&t.glaRequired;if((0,s.useEffect)((()=>{a?((0,pc.getHistory)().replace(xc()),Pk()):Ok()}),[a]),!e)return(0,s.createElement)(Vg,null);if(!a){const t=r?(0,s.createElement)(Nk,{email:e.email}):(0,s.createElement)(Wp,null);return(0,s.createElement)(dp,{title:(0,o.__)("Connect account","google-listings-and-ads")},t)}return null}var Tk=()=>{Lg("full-content");const{updateGoogleMCContactInformation:e}=xg(),{data:t}=qv(),[n,r]=(0,s.useState)(!1),a=t.isAddressFilled&&t.isMCAddressDifferent;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bg,{title:(0,o.__)("Edit store address","google-listings-and-ads"),helpButton:(0,s.createElement)(Hg,{eventContext:"edit-store-address"}),backHref:Oc()}),(0,s.createElement)("div",{className:"gla-settings"},(0,s.createElement)(dp,{title:(0,o.__)("Store address","google-listings-and-ads"),description:(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,o.__)("Your store address is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.","google-listings-and-ads")),(0,s.createElement)("p"
|