Full Site Editing - Version 3.29347

Version Description

Download this release

Release Info

Developer nelsonec
Plugin Icon wp plugin Full Site Editing
Version 3.29347
Comparing to
See all releases

Code changes from version 3.28752 to 3.29347

build_meta.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ commit_hash=917833f1a97cc70fd39aac2f47e21762af9f25a3
2
+ commit_url=https://github.com/Automattic/wp-calypso/commit/917833f1a97cc70fd39aac2f47e21762af9f25a3
3
+ build_number=3.29347
common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-polyfill'), 'version' => '95c38d141925388414672f3f632f8aba');
1
+ <?php return array('dependencies' => array('react', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-polyfill'), 'version' => 'b68f9c8f1d8825a191f96704f3e53ee3');
dotcom-fse/lib/site-plan/use-site-plan.ts ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { SiteDetails } from '@automattic/data-stores/src/site';
2
+ import { SiteDetailsPlan } from '@automattic/launch/src/stores';
3
+ import { useState, useEffect } from '@wordpress/element';
4
+ import { useCallback } from 'react';
5
+ import request from 'wpcom-proxy-request';
6
+
7
+ const useSitePlan = ( siteIdOrSlug: string | number ) => {
8
+ const [ sitePlan, setSitePlan ] = useState( {} as SiteDetailsPlan );
9
+
10
+ const fetchSite = useCallback( async () => {
11
+ const siteObj: SiteDetails = await request( {
12
+ path: `/sites/${ siteIdOrSlug }?http_envelope=1`,
13
+ apiVersion: '1.1',
14
+ } );
15
+ if ( siteObj?.plan ) {
16
+ setSitePlan( siteObj.plan );
17
+ }
18
+ }, [ siteIdOrSlug ] );
19
+
20
+ useEffect( () => {
21
+ fetchSite();
22
+ }, [ fetchSite ] );
23
+
24
+ return sitePlan;
25
+ };
26
+ export default useSitePlan;
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.28752
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.28752' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.29347
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.29347' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.28752
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.29347
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
tags-education/dist/tags-education.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'e5ef652960a95a56e86b10517bfa5ada');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '3915bb2735a6da27aabeeded6bdd7479');
tags-education/dist/tags-education.js CHANGED
@@ -1 +1,9 @@
1
- !function(){var t={421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var o,i,s,a;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(t))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var a=u.length,l=d(u,a);for(n=0;n<a;++n)r(l[n],this,e)}return!0},i.prototype.addListener=function(t,e){return a(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return a(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,f(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,f(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),c=r.sum32,u=r.sum32_4,a=r.sum32_5,l=i.ch32,f=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,g=i.g1_256,m=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=u(g(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],C=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var b=a(_,p(w),l(w,y,C),this.k[r],n[r]),F=c(h(o),f(o,i,m));_=C,C=y,y=w,w=c(v,b),v=m,m=i,i=o,o=c(b,F)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],m),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],C),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=u(o.toString(16))}return n},e.zero2=c,e.zero8=u,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,u=e;c<s.length;c++,u+=4){var a;a="big"===o?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],s[c]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,c){var u=0,a=e;return u+=(a=a+r>>>0)<e?1:0,u+=(a=a+i>>>0)<i?1:0,t+n+o+s+(u+=(a=a+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,u,a){var l=0,f=e;return l+=(f=f+r>>>0)<e?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+c>>>0)<c?1:0,t+n+o+s+u+(l+=(f=f+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,u,a){return e+r+i+c+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,u){u=u||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===a&&isFinite(t))return u.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},641:function(t,e,n){"use strict";var r=n(307),o=n(115),i=n(498),s=n(609),c=n(333),u=n(618),a=n(736);const __=a.__,l=()=>(0,o.jN)("wpcom_block_editor_tags_education_link_click"),f=(0,c.createHigherOrderComponent)((t=>e=>{const n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/support/posts/tags/",window.tagsEducationLocale),onClick:l},__("Build your audience with tags","full-site-editing")))}),"addTagsEducationLink");(0,u.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",f)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return h}});var r=n(699),o=n(898),i=(n(421),n(819)),s=(n(377),n(209),n(358));n(694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let u,a=Promise.resolve();function l(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(a=(0,o.ve)("//stats.wp.com/w.js?63"));const f=new r.EventEmitter;function h(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(u){const t=u(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),l(["recordEvent",t,e]),f.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return l}});var r=n(896),o=n(307),i=n(333),s=n(736),c=n(196);const u=(0,c.createContext)(null);function a(){var t,e;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";const e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=t.toLowerCase();return(e.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function l(){const t=(0,c.useContext)(u),e=!!t,[n,r]=(0,c.useState)(a());return(0,c.useEffect)((()=>{if(!e)return r(a()),s.subscribe((()=>{r(a())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=l();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return c},mL:function(){return u},vS:function(){return a},_r:function(){return l}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],i=["en","fr","de","es"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],a=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],l=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return m}});var r=n(896),o=n(307),i=n(333),s=n(196),c=n(849),u=n(655);const a="http://__domain__.invalid",l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,r)=>(e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${u.Xb[r]||r}.${t}`),n)},f=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r)},h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(r,o)=>"object"==typeof e&&e instanceof RegExp&&!e.test(r.pathname)?r:t.includes(o)&&"en"!==o?("prefix"===n?r.pathname=o+r.pathname:"suffix"===n&&(r.pathname.endsWith("/")?r.pathname+=o+"/":r.pathname+="/"+o),r):r},p=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>h(t,e,"prefix")(n,r)},d={"wordpress.com/support/":p(u.hI),"wordpress.com/forums/":p(u.mL),"wordpress.com/blog/":p(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":p(u.vS),"wordpress.com/wp-admin/":l("wordpress.com",u.vS),"wordpress.com/wp-login.php":l("wordpress.com",u.vS),"jetpack.com":l("jetpack.com",u._r),"en.support.wordpress.com":f("/support",u.hI),"en.blog.wordpress.com":f("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":f("/forums",u.mL),"automattic.com/privacy/":p(u.iT),"automattic.com/cookies/":p(u.xn),"wordpress.com/help/contact/":(t,e,n)=>n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),p(u.hI)(t,e)),"wordpress.com":(t,e)=>/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:p(u.vS)(t,e),"wordpress.com/theme/":(t,e,n)=>n?t:p(u.vS)(t,e),"wordpress.com/themes/":(t,e,n)=>n?t:p(u.vS)(t,e),"wordpress.com/log-in/":(t,e,n)=>n?t:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>h(t,e,"suffix")(n,r)}(u.vS)(t,e)};function g(t,e){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(t),a)}catch(s){return t}if(n.origin===a)return t;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));const o=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+e+"/"===o)return t;const i=[n.host,n.host+o,n.host+n.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in d)return d[i[c]](n,e,r).href;return t}function m(){const t=(0,c.bU)();return(0,s.useCallback)(((e,n,r)=>g(e,n||t,r)),[t])}(0,i.createHigherOrderComponent)((t=>e=>{const n=m();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}),"withLocalizeUrl")},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return c},lZ:function(){return u},_W:function(){return l},Yt:function(){return f}});var r=n(49);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function u(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function l(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),a(t),this.onload=null}function f(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),a(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return u}});var r=n(49),o=n.n(r),i=n(340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function u(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})(),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=n(632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(!c.enabled)return;const i=c,s=Number(new Date),u=s-(n||s);i.diff=u,i.prev=n,i.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if("%%"===t)return"%";a++;const o=e.formatters[n];if("function"==typeof o){const e=r[a];t=o.call(i,e),r.splice(a,1),a--}return t})),e.formatArgs.call(i,r);const l=i.log||e.log;l.apply(i,r)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.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(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},196:function(t){"use strict";t.exports=window.React},819:function(t){"use strict";t.exports=window.lodash},609:function(t){"use strict";t.exports=window.wp.components},333:function(t){"use strict";t.exports=window.wp.compose},307:function(t){"use strict";t.exports=window.wp.element},618:function(t){"use strict";t.exports=window.wp.hooks},736:function(t){"use strict";t.exports=window.wp.i18n},896:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
 
 
 
 
 
 
 
 
1
+ !function(){var t={266:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(854),o=n(730);function i(t){var e=(0,r.Z)(t);return function(t){return(0,o.Z)(e,t)}}},730:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function o(t,e){var n,o,i,s,a,c,u=[];for(n=0;n<t.length;n++){if(a=t[n],s=r[a]){for(o=s.length,i=Array(o);o--;)i[o]=u.pop();try{c=s.apply(null,i)}catch(l){return l}}else c=e.hasOwnProperty(a)?e[a]:+a;u.push(c)}return u[0]}},184:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(266);function o(t){var e=(0,r.Z)(t);return function(t){return+e({n:t})}}},854:function(t,e,n){"use strict";var r,o,i,s;function a(t){for(var e,n,a,c,u=[],l=[];e=t.match(s);){for(n=e[0],(a=t.substr(0,e.index).trim())&&u.push(a);c=l.pop();){if(i[n]){if(i[n][0]===c){n=i[n][1]||n;break}}else if(o.indexOf(c)>=0||r[c]<r[n]){l.push(c);break}u.push(c)}i[n]||l.push(n),t=t.substr(e.index+n.length)}return(t=t.trim())&&u.push(t),u.concat(l.reverse())}n.d(e,{Z:function(){return a}}),r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},668:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function o(t,e){var n;if(!Array.isArray(e))for(e=new Array(arguments.length-1),n=1;n<arguments.length;n++)e[n-1]=arguments[n];return n=1,t.replace(r,(function(){var t,r,o,i,s;return t=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=e[n-1],n++),void 0!==r?e[0]&&"object"==typeof e[0]&&e[0].hasOwnProperty(r)&&(s=e[0][r]):(void 0===t&&(t=n),n++,s=e[t-1]),"f"===i?s=parseFloat(s)||0:"d"===i&&(s=parseInt(s)||0),void 0!==o&&("f"===i?s=s.toFixed(o):"s"===i&&(s=s.substr(0,o))),null!=s?s:"")}))}},421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var o,i,s,u;if(a(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(t))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var u=c.length,l=d(c,u);for(n=0;n<u;++n)r(l[n],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return a(e),this.on(t,h(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,h(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return f(this,t,!0)},i.prototype.rawListeners=function(t){return f(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},79:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=r.rotl32,a=r.sum32,c=r.sum32_5,u=i.ft_1,l=o.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,l),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],l=this.h[2],f=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),g=c(s(o,5),u(d,i,l,f),p,n[r],h[d]);p=f,f=l,l=s(i,30),i=o,o=g}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],f),this.h[4]=a(this.h[4],p)},f.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=i.ch32,h=i.maj32,f=i.s0_256,p=i.s1_256,d=i.g0_256,g=i.g1_256,m=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(g(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],v=this.h[3],y=this.h[4],w=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,p(y),l(y,w,b),this.k[r],n[r]),x=a(f(o),h(o,i,m));_=b,b=w,w=y,y=a(v,C),v=m,m=i,i=o,o=a(C,x)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],_)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=a(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=c(o.toString(16))}return n},e.zero2=a,e.zero8=c,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),a=0,c=e;a<s.length;a++,c+=4){var u;u="big"===o?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[a]=u>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,a){var c=0,u=e;return c+=(u=u+r>>>0)<e?1:0,c+=(u=u+i>>>0)<i?1:0,t+n+o+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,a){return e+r+i+a>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,a,c,u){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+i>>>0)<i?1:0,l+=(h=h+a>>>0)<a?1:0,t+n+o+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,a,c,u){return e+r+i+a+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},839:function(t,e,n){var r=n(699),o=n(285);function i(t){if(!(this instanceof i))return new i(t);"number"==typeof t&&(t={max:t}),t||(t={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=t.max||1e3,this.maxAge=t.maxAge||0}t.exports=i,o(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(t){if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){var e=this.cache[t];return delete this.cache[t],this._unlink(t,e.prev,e.next),e.value}},i.prototype._unlink=function(t,e,n){this.length--,0===this.length?this.head=this.tail=null:this.head===t?(this.head=e,this.cache[this.head].next=null):this.tail===t?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[e].next=n,this.cache[n].prev=e)},i.prototype.peek=function(t){if(this.cache.hasOwnProperty(t)){var e=this.cache[t];if(this._checkAge(t,e))return e.value}},i.prototype.set=function(t,e){var n;if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){if((n=this.cache[t]).value=e,this.maxAge&&(n.modified=Date.now()),t===this.head)return e;this._unlink(t,n.prev,n.next)}else n={value:e,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[t]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=t),this.head=t,this.tail||(this.tail=t),e},i.prototype._checkAge=function(t,e){return!(this.maxAge&&Date.now()-e.modified>this.maxAge)||(this.remove(t),this.emit("evict",{key:t,value:e.value}),!1)},i.prototype.get=function(t){if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){var e=this.cache[t];if(this._checkAge(t,e))return this.head!==t&&(t===this.tail?(this.tail=e.next,this.cache[this.tail].prev=null):this.cache[e.prev].next=e.next,this.cache[e.next].prev=e.prev,this.cache[this.head].next=t,e.prev=this.head,e.next=null,this.head=t),e.value}},i.prototype.evict=function(){if(this.tail){var t=this.tail,e=this.remove(this.tail);this.emit("evict",{key:t,value:e})}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function a(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,c){c=c||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;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(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===u&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return a(t,i,o,"day");if(i>=r)return a(t,i,r,"hour");if(i>=n)return a(t,i,n,"minute");if(i>=e)return a(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},830:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(184),o={contextDelimiter:"",onMissingKey:null};function i(t,e){var n;for(n in this.data=t,this.pluralForms={},this.options={},o)this.options[n]=void 0!==e&&n in e?e[n]:o[n]}i.prototype.getPluralForm=function(t,e){var n,o,i,s=this.pluralForms[t];return s||("function"!=typeof(i=(n=this.data[t][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(t){var e,n,r;for(e=t.split(";"),n=0;n<e.length;n++)if(0===(r=e[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,r.Z)(o)),s=this.pluralForms[t]=i),s(e)},i.prototype.dcnpgettext=function(t,e,n,r,o){var i,s,a;return i=void 0===o?0:this.getPluralForm(t,o),s=n,e&&(s=e+this.options.contextDelimiter+n),(a=this.data[t][s])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,t),0===i?n:r)}},641:function(t,e,n){"use strict";var r=n(307),o=n(115),i=n(498),s=n(609),a=n(333),c=n(618),u=n(736);const __=u.__,l=()=>(0,o.jN)("wpcom_block_editor_tags_education_link_click"),h=(0,a.createHigherOrderComponent)((t=>e=>{const n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/support/posts/tags/",window.tagsEducationLocale),onClick:l},__("Build your audience with tags","full-site-editing")))}),"addTagsEducationLink");(0,c.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",h)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return f}});var r=n(699),o=n(898),i=(n(421),n(819)),s=(n(377),n(209),n(358));n(694);const a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let c,u=Promise.resolve();function l(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const h=new r.EventEmitter;function f(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(a,t)){if(c){const t=c(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),l(["recordEvent",t,e]),h.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},724:function(t,e,n){"use strict";var r=n(914);e.Z=new r.Z},914:function(t,e,n){"use strict";var r=n(699),o=n(594),i=n(668),s=n(49),a=n.n(s),c=n(79),u=n.n(c),l=n(839),h=n.n(l),f=n(830),p=n(3);const d=a()("i18n-calypso"),g="number_format_decimals",m="number_format_thousands_sep",v="messages",y=[function(t){return t}],w={};function b(){k.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function _(t){return Array.prototype.slice.call(t)}function C(t){const e=t[0];("string"!=typeof e||t.length>3||t.length>2&&"object"==typeof t[1]&&"object"==typeof t[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",_(t),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===t.length&&"string"==typeof e&&"string"==typeof t[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",_(t));let n={};for(let r=0;r<t.length;r++)"object"==typeof t[r]&&(n=t[r]);if("string"==typeof e?n.original=e:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof t[1]&&(n.plural=t[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(t,e){return t.dcnpgettext(v,e.context,e.original,e.plural,e.count)}function F(t,e){for(let n=y.length-1;n>=0;n--){const r=y[n](Object.assign({},e)),o=r.context?r.context+""+r.original:r.original;if(t.state.locale[o])return x(t.state.tannin,r)}return null}function k(){if(!(this instanceof k))return new k;this.defaultLocaleSlug="en",this.defaultPluralForms=t=>1===t?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:h()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new r.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}k.throwErrors=!1,k.prototype.on=function(){this.stateObserver.on(...arguments)},k.prototype.off=function(){this.stateObserver.off(...arguments)},k.prototype.emit=function(){this.stateObserver.emit(...arguments)},k.prototype.numberFormat=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="number"==typeof e?e:e.decimals||0,r=e.decPoint||this.state.numberFormatSettings.decimal_point||".",o=e.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(t,n,r,o)},k.prototype.configure=function(t){Object.assign(this,t||{}),this.setLocale()},k.prototype.setLocale=function(t){var e,n,r;if(t&&t[""]&&t[""]["key-hash"]){const e=t[""]["key-hash"],n=function(t,e){const n=!1===e?"":String(e);if(void 0!==w[n+t])return w[n+t];const r=u()().update(t).digest("hex");return w[n+t]=e?r.substr(0,e):r},r=function(t){return function(e){return e.context?(e.original=n(e.context+String.fromCharCode(4)+e.original,t),delete e.context):e.original=n(e.original,t),e}};if("sha1"===e.substr(0,4))if(4===e.length)y.push(r(!1));else{const t=e.substr(5).indexOf("-");if(t<0){const t=Number(e.substr(5));y.push(r(t))}else{const n=Number(e.substr(5,t)),o=Number(e.substr(6+t));for(let t=n;t<=o;t++)y.push(r(t))}}}if(t&&t[""].localeSlug)if(t[""].localeSlug===this.state.localeSlug){if(t===this.state.locale)return;Object.assign(this.state.locale,t)}else this.state.locale=Object.assign({},t);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(e=this.state.locale["text directionltr"])||void 0===e?void 0:e[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new f.Z({[v]:this.state.locale}),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,C([g])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,C([m])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===m&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},k.prototype.getLocale=function(){return this.state.locale},k.prototype.getLocaleSlug=function(){return this.state.localeSlug},k.prototype.getLocaleVariant=function(){return this.state.localeVariant},k.prototype.isRtl=function(){return"rtl"===this.state.textDirection},k.prototype.addTranslations=function(t){for(const e in t)""!==e&&(this.state.tannin.data.messages[e]=t[e]);this.stateObserver.emit("change")},k.prototype.hasTranslation=function(){return!!F(this,C(arguments))},k.prototype.translate=function(){const t=C(arguments);let e=F(this,t);if(e||(e=x(this.state.tannin,t)),t.args){const r=Array.isArray(t.args)?t.args.slice(0):[t.args];r.unshift(e);try{e=(0,i.Z)(...r)}catch(n){if(!window||!window.console)return;const t=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[t](n):window.console[t]("i18n sprintf error:",r)}}return t.components&&(e=(0,o.Z)({mixedString:e,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){e=n(e,t)})),e},k.prototype.reRenderTranslations=function(){d("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},k.prototype.registerComponentUpdateHook=function(t){this.componentUpdateHooks.push(t)},k.prototype.registerTranslateHook=function(t){this.translateHooks.push(t)},e.Z=k},481:function(t,e,n){"use strict";n.d(e,{Yj:function(){return o}});var r=n(724);r.Z.numberFormat.bind(r.Z),r.Z.translate.bind(r.Z),r.Z.configure.bind(r.Z),r.Z.setLocale.bind(r.Z),r.Z.getLocale.bind(r.Z);const o=r.Z.getLocaleSlug.bind(r.Z);r.Z.getLocaleVariant.bind(r.Z),r.Z.isRtl.bind(r.Z),r.Z.addTranslations.bind(r.Z),r.Z.reRenderTranslations.bind(r.Z),r.Z.registerComponentUpdateHook.bind(r.Z),r.Z.registerTranslateHook.bind(r.Z),r.Z.state,r.Z.stateObserver,r.Z.on.bind(r.Z),r.Z.off.bind(r.Z),r.Z.emit.bind(r.Z)},3:function(t,e,n){"use strict";function r(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+t)?+t:0,i=isFinite(+e)?Math.abs(e):0,s=void 0===r?",":r,a=void 0===n?".":n;let c="";return c=(i?
2
+ /*
3
+ * Exposes number format capability
4
+ *
5
+ * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
6
+ * @license See CREDITS.md
7
+ * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
8
+ */
9
+ function(t,e){const n=Math.pow(10,e);return""+(Math.round(t*n)/n).toFixed(e)}(o,i):""+Math.round(o)).split("."),c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}n.d(e,{Z:function(){return r}})},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return l}});var r=n(896),o=n(307),i=n(333),s=n(736),a=n(196);const c=(0,a.createContext)(null);function u(){var t,e;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";const e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=t.toLowerCase();return(e.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function l(){const t=(0,a.useContext)(c),e=!!t,[n,r]=(0,a.useState)(u());return(0,a.useEffect)((()=>{if(!e)return r(u()),s.subscribe((()=>{r(u())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=l();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return a},mL:function(){return c},vS:function(){return u},_r:function(){return l}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],i=["en","fr","de","es"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],c=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],u=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],l=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return y}});var r=n(896),o=n(307),i=n(333),s=n(481),a=n(196),c=n(849),u=n(655);const l="http://__domain__.invalid";function h(){return(null===s.Yj||void 0===s.Yj?void 0:(0,s.Yj)())??"en"}const f=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,r)=>(e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${u.Xb[r]||r}.${t}`),n)},p=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r)},d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(r,o)=>"object"==typeof e&&e instanceof RegExp&&!e.test(r.pathname)?r:t.includes(o)&&"en"!==o?("prefix"===n?r.pathname=o+r.pathname:"suffix"===n&&(r.pathname.endsWith("/")?r.pathname+=o+"/":r.pathname+="/"+o),r):r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>d(t,e,"prefix")(n,r)},m={"wordpress.com/support/":g(u.hI),"wordpress.com/forums/":g(u.mL),"wordpress.com/blog/":g(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":g(u.vS),"wordpress.com/wp-admin/":f("wordpress.com",u.vS),"wordpress.com/wp-login.php":f("wordpress.com",u.vS),"jetpack.com":f("jetpack.com",u._r),"en.support.wordpress.com":p("/support",u.hI),"en.blog.wordpress.com":p("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":p("/forums",u.mL),"automattic.com/privacy/":g(u.iT),"automattic.com/cookies/":g(u.xn),"wordpress.com/help/contact/":(t,e,n)=>n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),g(u.hI)(t,e)),"wordpress.com":(t,e)=>/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:g(u.vS)(t,e),"wordpress.com/theme/":(t,e,n)=>n?t:g(u.vS)(t,e),"wordpress.com/themes/":(t,e,n)=>n?t:g(u.vS)(t,e),"wordpress.com/log-in/":(t,e,n)=>n?t:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>d(t,e,"suffix")(n,r)}(u.vS)(t,e)};function v(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{e=new URL(String(t),l)}catch(s){return t}if(e.origin===l)return t;e.protocol="https:",e.hostname="",e.pathname.endsWith(".php")||(e.pathname=(e.pathname+"/").replace(/\/+$/,"/"));const o=e.pathname.substr(0,1+e.pathname.indexOf("/",1));if("en.wordpress.com"===e.host&&(e.host="wordpress.com"),"/"+n+"/"===o)return t;const i=[e.host,e.host+o,e.host+e.pathname];for(let a=i.length-1;a>=0;a--)if(i[a]in m)return m[i[a]](e,n,r).href;return t}function y(){const t=(0,c.bU)();return(0,a.useCallback)(((e,n,r)=>v(e,n||t,r)),[t])}(0,i.createHigherOrderComponent)((t=>e=>{const n=y();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}),"withLocalizeUrl")},594:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(196),o=n(310);function i(t,e){let n,o,s=[];for(let r=0;r<t.length;r++){const i=t[r];if("string"!==i.type){if(void 0===e[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof e[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=e[i.value],o=r;break}s.push(e[i.value])}else s.push(i.value)}if(n){const a=function(t,e){const n=e[t];let r=0;for(let o=t+1;o<e.length;o++){const t=e[o];if(t.value===n.value){if("componentOpen"===t.type){r++;continue}if("componentClose"===t.type){if(0===r)return o;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(o,t),c=i(t.slice(o+1,a),e),u=(0,r.cloneElement)(n,{},c);if(s.push(u),a<t.length-1){const n=i(t.slice(a+1),e);s=s.concat(n)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,r.createElement)(r.Fragment,null,...s)}function s(t){const{mixedString:e,components:n,throwErrors:r}=t;if(!n)return e;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${e}\` because components is not an object`);return e}const s=(0,o.Z)(e);try{return i(s,n)}catch(a){if(r)throw new Error(`Interpolation Error: unable to process \`${e}\` because of error \`${a.message}\``);return e}}},310:function(t,e,n){"use strict";function r(t){return t.startsWith("{{/")?{type:"componentClose",value:t.replace(/\W/g,"")}:t.endsWith("/}}")?{type:"componentSelfClosing",value:t.replace(/\W/g,"")}:t.startsWith("{{")?{type:"componentOpen",value:t.replace(/\W/g,"")}:{type:"string",value:t}}function o(t){return t.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}n.d(e,{Z:function(){return o}})},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return h}});var r=n(49);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function a(t){return s().has(t)}function c(t,e){const n=s();a(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function l(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),u(t),this.onload=null}function h(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),u(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return a},k:function(){return c}});var r=n(49),o=n.n(r),i=n(340);const s=o()("lib/load-script/dom-operations");function a(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function c(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return a}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function a(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})(),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=n(632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function a(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(!a.enabled)return;const i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let u=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if("%%"===t)return"%";u++;const o=e.formatters[n];if("function"==typeof o){const e=r[u];t=o.call(i,e),r.splice(u,1),u--}return t})),e.formatArgs.call(i,r);const l=i.log||e.log;l.apply(i,r)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.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(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},196:function(t){"use strict";t.exports=window.React},819:function(t){"use strict";t.exports=window.lodash},609:function(t){"use strict";t.exports=window.wp.components},333:function(t){"use strict";t.exports=window.wp.compose},307:function(t){"use strict";t.exports=window.wp.element},618:function(t){"use strict";t.exports=window.wp.hooks},736:function(t){"use strict";t.exports=window.wp.i18n},896:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'ba774243743aa0ced9a5860ce5b8f384');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '8cd4aee38b5ad0c3a0520dcb2bfdf5c4');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js CHANGED
@@ -1,6 +1,14 @@
1
- !function(){var e={7566:function(e,t,n){"use strict";n.d(t,{kZ:function(){return f}});var o=n(2140),r=n(6249),i=n(1119),s=n(7936),c=n(421),a=n(4806),u=n(3352),l=n(8555),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,f=void 0===n?[]:n,m=t.defaultOptions,h=void 0===m?d:m;return function(e,t,n){void 0===n&&(n=h);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,h),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],v=!1,w={state:m,setOptions:function(n){var o="function"==typeof n?n(m.options):n;y(),m.options=Object.assign({},h,m.options,o),m.scrollParents={reference:(0,l.kK)(e)?(0,i.Z)(e):e.contextElement?(0,i.Z)(e.contextElement):[],popper:(0,i.Z)(t)};var r=(0,c.Z)((0,u.Z)([].concat(f,m.options.modifiers)));return m.orderedModifiers=r.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:m,name:t,instance:w,options:o}),s=function(){};g.push(i||s)}})),w.update()},forceUpdate:function(){if(!v){var e=m.elements,t=e.reference,n=e.popper;if(p(t,n)){m.rects={reference:(0,o.Z)(t,(0,s.Z)(n),"fixed"===m.options.strategy),popper:(0,r.Z)(n)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<m.orderedModifiers.length;i++)if(!0!==m.reset){var c=m.orderedModifiers[i],a=c.fn,u=c.options,l=void 0===u?{}:u,d=c.name;"function"==typeof a&&(m=a({state:m,options:l,name:d,instance:w})||m)}else m.reset=!1,i=-1}}},update:(0,a.Z)((function(){return new Promise((function(e){w.forceUpdate(),e(m)}))})),destroy:function(){y(),v=!0}};if(!p(e,t))return w;function y(){g.forEach((function(e){return e()})),g=[]}return w.setOptions(n).then((function(e){!v&&n.onFirstUpdate&&n.onFirstUpdate(e)})),w}}},5350:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},2881:function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{Z:function(){return o}})},889:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(6166),r=n(4691),i=n(6764),s=n(1119),c=n(7936),a=n(2021),u=n(9546),l=n(8555),d=n(2881),p=n(2882),f=n(5350),m=n(98),h=n(7365),g=n(8072);function v(e,t){return t===o.Pj?(0,h.Z)((0,r.Z)(e)):(0,l.Re)(t)?function(e){var t=(0,d.Z)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,h.Z)((0,i.Z)((0,a.Z)(e)))}function w(e,t,n){var o="clippingParents"===t?function(e){var t=(0,s.Z)((0,p.Z)(e)),n=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,l.Re)(e)?(0,c.Z)(e):e;return(0,l.kK)(n)?t.filter((function(e){return(0,l.kK)(e)&&(0,f.Z)(e,n)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],a=r.reduce((function(t,n){var o=v(e,n);return t.top=(0,g.Fp)(o.top,t.top),t.right=(0,g.VV)(o.right,t.right),t.bottom=(0,g.VV)(o.bottom,t.bottom),t.left=(0,g.Fp)(o.left,t.left),t}),v(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}},2140:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(2881),r=n(6637),i=n(98),s=n(8555),c=n(1051),a=n(2021),u=n(8519);function l(e,t,n){void 0===n&&(n=!1);var l=(0,s.Re)(t),d=(0,s.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),p=(0,a.Z)(t),f=(0,o.Z)(e,d),m={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!n)&&(("body"!==(0,i.Z)(t)||(0,u.Z)(p))&&(m=(0,r.Z)(t)),(0,s.Re)(t)?((h=(0,o.Z)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):p&&(h.x=(0,c.Z)(p))),{x:f.left+m.scrollLeft-h.x,y:f.top+m.scrollTop-h.y,width:f.width,height:f.height}}},9546:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){return(0,o.Z)(e).getComputedStyle(e)}},2021:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e){return(((0,o.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6764:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(2021),r=n(9546),i=n(1051),s=n(5392),c=n(8072);function a(e){var t,n=(0,o.Z)(e),a=(0,s.Z)(e),u=null==(t=e.ownerDocument)?void 0:t.body,l=(0,c.Fp)(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=(0,c.Fp)(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-a.scrollLeft+(0,i.Z)(e),f=-a.scrollTop;return"rtl"===(0,r.Z)(u||n).direction&&(p+=(0,c.Fp)(n.clientWidth,u?u.clientWidth:0)-l),{width:l,height:d,x:p,y:f}}},812:function(e,t,n){"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.d(t,{Z:function(){return o}})},6249:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(2881);function r(e){var t=(0,o.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},98:function(e,t,n){"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return o}})},6637:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(5392),r=n(3189),i=n(8555),s=n(812);function c(e){return e!==(0,r.Z)(e)&&(0,i.Re)(e)?(0,s.Z)(e):(0,o.Z)(e)}},7936:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(3189),r=n(98),i=n(9546),s=n(8555),c=n(1725),a=n(2882);function u(e){return(0,s.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function l(e){for(var t=(0,o.Z)(e),n=u(e);n&&(0,c.Z)(n)&&"static"===(0,i.Z)(n).position;)n=u(n);return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,s.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null;for(var n=(0,a.Z)(e);(0,s.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var o=(0,i.Z)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},2882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(98),r=n(2021),i=n(8555);function s(e){return"html"===(0,o.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,r.Z)(e)}},7915:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(2882),r=n(8519),i=n(98),s=n(8555);function c(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,s.Re)(e)&&(0,r.Z)(e)?e:c((0,o.Z)(e))}},4691:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(3189),r=n(2021),i=n(1051);function s(e){var t=(0,o.Z)(e),n=(0,r.Z)(e),s=t.visualViewport,c=n.clientWidth,a=n.clientHeight,u=0,l=0;return s&&(c=s.width,a=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=s.offsetLeft,l=s.offsetTop)),{width:c,height:a,x:u+(0,i.Z)(e),y:l}}},3189:function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return o}})},5392:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(2881),r=n(2021),i=n(5392);function s(e){return(0,o.Z)((0,r.Z)(e)).left+(0,i.Z)(e).scrollLeft}},8555:function(e,t,n){"use strict";n.d(t,{kK:function(){return r},Re:function(){return i},Zq:function(){return s}});var o=n(3189);function r(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},8519:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9546);function r(e){var t=(0,o.Z)(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}},1725:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(98);function r(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}},1119:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(7915),r=n(2882),i=n(3189),s=n(8519);function c(e,t){var n;void 0===t&&(t=[]);var a=(0,o.Z)(e),u=a===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,i.Z)(a),d=u?[l].concat(l.visualViewport||[],(0,s.Z)(a)?a:[]):a,p=t.concat(d);return u?p:p.concat(c((0,r.Z)(d)))}},6166:function(e,t,n){"use strict";n.d(t,{we:function(){return o},I:function(){return r},F2:function(){return i},t$:function(){return s},d7:function(){return c},mv:function(){return a},BL:function(){return u},ut:function(){return l},zV:function(){return d},Pj:function(){return p},k5:function(){return f},YP:function(){return m},bw:function(){return h},Ct:function(){return g},xs:function(){return v}});var o="top",r="bottom",i="right",s="left",c="auto",a=[o,r,i,s],u="start",l="end",d="clippingParents",p="viewport",f="popper",m="reference",h=a.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(a,[c]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},1414:function(e,t,n){"use strict";var o=n(98),r=n(8555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,r.Re)(s)&&(0,o.Z)(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},c=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.Re)(i)&&(0,o.Z)(i)&&(Object.assign(i.style,c),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},335:function(e,t,n){"use strict";var o=n(7677),r=n(6249),i=n(5350),s=n(7936),c=n(1505),a=n(964),u=n(6713),l=n(315),d=n(6166);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o.Z)(n.placement),g=(0,c.Z)(h),v=[d.t$,d.F2].indexOf(h)>=0?"height":"width";if(f&&m){var w=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.Z)("number"!=typeof e?e:(0,l.Z)(e,d.mv))}(p.padding,n),y=(0,r.Z)(f),b="y"===g?d.we:d.t$,_="y"===g?d.I:d.F2,E=n.rects.reference[v]+n.rects.reference[g]-m[g]-n.rects.popper[v],k=m[g]-n.rects.reference[g],x=(0,s.Z)(f),S=x?"y"===g?x.clientHeight||0:x.clientWidth||0:0,Z=E/2-k/2,C=w[b],O=S-y[v]-w[_],M=S/2-y[v]/2+Z,P=(0,a.Z)(C,M,O),F=g;n.modifiersData[i]=((t={})[F]=P,t.centerOffset=P-M,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,i.Z)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},917:function(e,t,n){"use strict";var o=n(6166),r=n(7936),i=n(3189),s=n(2021),c=n(9546),a=n(7677),u=n(4531),l=n(8072),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,a=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,w=!0===v?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,l.NM)((0,l.NM)(t*o)/o)||0,y:(0,l.NM)((0,l.NM)(n*o)/o)||0}}(f):"function"==typeof v?v(f):f,y=w.x,b=void 0===y?0:y,_=w.y,E=void 0===_?0:_,k=f.hasOwnProperty("x"),x=f.hasOwnProperty("y"),S=o.t$,Z=o.we,C=window;if(g){var O=(0,r.Z)(n),M="clientHeight",P="clientWidth";O===(0,i.Z)(n)&&(O=(0,s.Z)(n),"static"!==(0,c.Z)(O).position&&"absolute"===m&&(M="scrollHeight",P="scrollWidth")),O=O,u!==o.we&&(u!==o.t$&&u!==o.F2||p!==o.ut)||(Z=o.I,E-=O[M]-a.height,E*=h?1:-1),u!==o.t$&&(u!==o.we&&u!==o.I||p!==o.ut)||(S=o.F2,b-=O[P]-a.width,b*=h?1:-1)}var F,L=Object.assign({position:m},g&&d);return h?Object.assign({},L,((F={})[Z]=x?"0":"",F[S]=k?"0":"",F.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+E+"px)":"translate3d("+b+"px, "+E+"px, 0)",F)):Object.assign({},L,((t={})[Z]=x?E+"px":"",t[S]=k?b+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,c=n.roundOffsets,l=void 0===c||c,d={placement:(0,a.Z)(t.placement),variation:(0,u.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},3191:function(e,t,n){"use strict";var o=n(3189),r={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,c=void 0===s||s,a=i.resize,u=void 0===a||a,l=(0,o.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&d.forEach((function(e){e.addEventListener("scroll",n.update,r)})),u&&l.addEventListener("resize",n.update,r),function(){c&&d.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),u&&l.removeEventListener("resize",n.update,r)}},data:{}}},5207:function(e,t,n){"use strict";var o=n(942),r=n(7677),i=n(12),s=n(9356),c=n(7826),a=n(6166),u=n(4531);t.Z={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var d=n.mainAxis,p=void 0===d||d,f=n.altAxis,m=void 0===f||f,h=n.fallbackPlacements,g=n.padding,v=n.boundary,w=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,_=void 0===b||b,E=n.allowedAutoPlacements,k=t.options.placement,x=(0,r.Z)(k),S=h||(x===k||!_?[(0,o.Z)(k)]:function(e){if((0,r.Z)(e)===a.d7)return[];var t=(0,o.Z)(e);return[(0,i.Z)(e),t,(0,i.Z)(t)]}(k)),Z=[k].concat(S).reduce((function(e,n){return e.concat((0,r.Z)(n)===a.d7?(0,c.Z)(t,{placement:n,boundary:v,rootBoundary:w,padding:g,flipVariations:_,allowedAutoPlacements:E}):n)}),[]),C=t.rects.reference,O=t.rects.popper,M=new Map,P=!0,F=Z[0],L=0;L<Z.length;L++){var R=Z[L],N=(0,r.Z)(R),T=(0,u.Z)(R)===a.BL,j=[a.we,a.I].indexOf(N)>=0,A=j?"width":"height",z=(0,s.Z)(t,{placement:R,boundary:v,rootBoundary:w,altBoundary:y,padding:g}),W=j?T?a.F2:a.t$:T?a.I:a.we;C[A]>O[A]&&(W=(0,o.Z)(W));var I=(0,o.Z)(W),G=[];if(p&&G.push(z[N]<=0),m&&G.push(z[W]<=0,z[I]<=0),G.every((function(e){return e}))){F=R,P=!1;break}M.set(R,G)}if(P)for(var D=function(e){var t=Z.find((function(t){var n=M.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return F=t,"break"},B=_?3:1;B>0;B--){if("break"===D(B))break}t.placement!==F&&(t.modifiersData[l]._skip=!0,t.placement=F,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},2883:function(e,t,n){"use strict";var o=n(6166),r=n(9356);function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[o.we,o.F2,o.I,o.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,c=t.rects.popper,a=t.modifiersData.preventOverflow,u=(0,r.Z)(t,{elementContext:"reference"}),l=(0,r.Z)(t,{altBoundary:!0}),d=i(u,o),p=i(l,c,a),f=s(d),m=s(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},3108:function(e,t,n){"use strict";var o=n(7677),r=n(6166);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,c=void 0===s?[0,0]:s,a=r.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var i=(0,o.Z)(e),s=[r.t$,r.we].indexOf(i)>=0?-1:1,c="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=c[0],u=c[1];return a=a||0,u=(u||0)*s,[r.t$,r.F2].indexOf(i)>=0?{x:u,y:a}:{x:a,y:u}}(n,t.rects,c),e}),{}),u=a[t.placement],l=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=a}}},5435:function(e,t,n){"use strict";var o=n(6919);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},6998:function(e,t,n){"use strict";var o=n(6166),r=n(7677),i=n(1505),s=n(5754),c=n(964),a=n(6249),u=n(7936),l=n(9356),d=n(4531),p=n(3046),f=n(8072);t.Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,m=e.name,h=n.mainAxis,g=void 0===h||h,v=n.altAxis,w=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,_=n.altBoundary,E=n.padding,k=n.tether,x=void 0===k||k,S=n.tetherOffset,Z=void 0===S?0:S,C=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:E,altBoundary:_}),O=(0,r.Z)(t.placement),M=(0,d.Z)(t.placement),P=!M,F=(0,i.Z)(O),L=(0,s.Z)(F),R=t.modifiersData.popperOffsets,N=t.rects.reference,T=t.rects.popper,j="function"==typeof Z?Z(Object.assign({},t.rects,{placement:t.placement})):Z,A={x:0,y:0};if(R){if(g||w){var z="y"===F?o.we:o.t$,W="y"===F?o.I:o.F2,I="y"===F?"height":"width",G=R[F],D=R[F]+C[z],B=R[F]-C[W],U=x?-T[I]/2:0,$=M===o.BL?N[I]:T[I],H=M===o.BL?-T[I]:-N[I],V=t.elements.arrow,q=x&&V?(0,a.Z)(V):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.Z)(),K=Y[z],X=Y[W],J=(0,c.Z)(0,N[I],q[I]),Q=P?N[I]/2-U-J-K-j:$-J-K-j,ee=P?-N[I]/2+U+J+X+j:H+J+X+j,te=t.elements.arrow&&(0,u.Z)(t.elements.arrow),ne=te?"y"===F?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][F]:0,re=R[F]+Q-oe-ne,ie=R[F]+ee-oe;if(g){var se=(0,c.Z)(x?(0,f.VV)(D,re):D,G,x?(0,f.Fp)(B,ie):B);R[F]=se,A[F]=se-G}if(w){var ce="x"===F?o.we:o.t$,ae="x"===F?o.I:o.F2,ue=R[L],le=ue+C[ce],de=ue-C[ae],pe=(0,c.Z)(x?(0,f.VV)(le,re):le,ue,x?(0,f.Fp)(de,ie):de);R[L]=pe,A[L]=pe-ue}}t.modifiersData[m]=A}},requiresIfExists:["offset"]}},7295:function(e,t,n){"use strict";n.d(t,{fi:function(){return m}});var o=n(7566),r=n(3191),i=n(5435),s=n(917),c=n(1414),a=n(3108),u=n(5207),l=n(6998),d=n(335),p=n(2883),f=[r.Z,i.Z,s.Z,c.Z,a.Z,u.Z,l.Z,d.Z,p.Z],m=(0,o.kZ)({defaultModifiers:f})},7826:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(4531),r=n(6166),i=n(9356),s=n(7677);function c(e,t){void 0===t&&(t={});var n=t,c=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?r.Ct:p,m=(0,o.Z)(c),h=m?d?r.bw:r.bw.filter((function(e){return(0,o.Z)(e)===m})):r.mv,g=h.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=h);var v=g.reduce((function(t,n){return t[n]=(0,i.Z)(e,{placement:n,boundary:a,rootBoundary:u,padding:l})[(0,s.Z)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}},6919:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(7677),r=n(4531),i=n(1505),s=n(6166);function c(e){var t,n=e.reference,c=e.element,a=e.placement,u=a?(0,o.Z)(a):null,l=a?(0,r.Z)(a):null,d=n.x+n.width/2-c.width/2,p=n.y+n.height/2-c.height/2;switch(u){case s.we:t={x:d,y:n.y-c.height};break;case s.I:t={x:d,y:n.y+n.height};break;case s.F2:t={x:n.x+n.width,y:p};break;case s.t$:t={x:n.x-c.width,y:p};break;default:t={x:n.x,y:n.y}}var f=u?(0,i.Z)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(l){case s.BL:t[f]=t[f]-(n[m]/2-c[m]/2);break;case s.ut:t[f]=t[f]+(n[m]/2-c[m]/2)}}return t}},4806:function(e,t,n){"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,{Z:function(){return o}})},9356:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(889),r=n(2021),i=n(2881),s=n(6919),c=n(7365),a=n(6166),u=n(8555),l=n(6713),d=n(315);function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,f=void 0===p?e.placement:p,m=n.boundary,h=void 0===m?a.zV:m,g=n.rootBoundary,v=void 0===g?a.Pj:g,w=n.elementContext,y=void 0===w?a.k5:w,b=n.altBoundary,_=void 0!==b&&b,E=n.padding,k=void 0===E?0:E,x=(0,l.Z)("number"!=typeof k?k:(0,d.Z)(k,a.mv)),S=y===a.k5?a.YP:a.k5,Z=e.rects.popper,C=e.elements[_?S:y],O=(0,o.Z)((0,u.kK)(C)?C:C.contextElement||(0,r.Z)(e.elements.popper),h,v),M=(0,i.Z)(e.elements.reference),P=(0,s.Z)({reference:M,element:Z,strategy:"absolute",placement:f}),F=(0,c.Z)(Object.assign({},Z,P)),L=y===a.k5?F:M,R={top:O.top-L.top+x.top,bottom:L.bottom-O.bottom+x.bottom,left:O.left-L.left+x.left,right:L.right-O.right+x.right},N=e.modifiersData.offset;if(y===a.k5&&N){var T=N[f];Object.keys(R).forEach((function(e){var t=[a.F2,a.I].indexOf(e)>=0?1:-1,n=[a.we,a.I].indexOf(e)>=0?"y":"x";R[e]+=T[n]*t}))}return R}},315:function(e,t,n){"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:function(){return o}})},5754:function(e,t,n){"use strict";function o(e){return"x"===e?"y":"x"}n.d(t,{Z:function(){return o}})},7677:function(e,t,n){"use strict";function o(e){return e.split("-")[0]}n.d(t,{Z:function(){return o}})},3046:function(e,t,n){"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:function(){return o}})},1505:function(e,t,n){"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:function(){return o}})},942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},12:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},4531:function(e,t,n){"use strict";function o(e){return e.split("-")[1]}n.d(t,{Z:function(){return o}})},8072:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},VV:function(){return r},NM:function(){return i}});var o=Math.max,r=Math.min,i=Math.round},3352:function(e,t,n){"use strict";function o(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,{Z:function(){return o}})},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3046);function r(e){return Object.assign({},(0,o.Z)(),e)}},421:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(6166);function r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function i(e){var t=r(e);return o.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},7365:function(e,t,n){"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.d(t,{Z:function(){return o}})},964:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8072);function r(e,t,n){return(0,o.Fp)(e,(0,o.VV)(t,n))}},5869:function(e,t,n){"use strict";var o=n(9307);t.Z=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})}},8565:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{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"}));t.Z=i},2779:function(e,t){var n;
2
  /*!
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)o.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,o=encodeURIComponent,r=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,o){function r(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,r),o(n)},e.once("error",i)),e.once(t,r)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,o){var r,i,s,u;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(r=a(e))>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(o);return r.listener=n,o.wrapFn=r,r}function p(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)o(a,this,t);else{var u=a.length,l=m(a,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,o,r,i,s;if(c(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var o=n(212),r=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=o.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,o=new Array(n+this.padLength);o[0]=128;for(var r=1;r<n;r++)o[r]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)o[r++]=0;o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=e>>>24&255,o[r++]=e>>>16&255,o[r++]=e>>>8&255,o[r++]=255&e}else for(o[r++]=255&e,o[r++]=e>>>8&255,o[r++]=e>>>16&255,o[r++]=e>>>24&255,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,i=8;i<this.padLength;i++)o[r++]=0;return o}},8032:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=n(9561),c=o.sum32,a=o.sum32_4,u=o.sum32_5,l=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,m=i.g0_256,h=i.g1_256,g=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}o.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=a(h(n[o-2]),n[o-7],m(n[o-15]),n[o-16]);var r=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),o=0;o<n.length;o++){var E=u(_,f(w),l(w,y,b),this.k[o],n[o]),k=c(p(r),d(r,i,g));_=b,b=y,y=w,w=c(v,E),v=g,g=i,i=r,r=c(E,k)}this.h[0]=c(this.h[0],r),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},713:function(e,t,n){"use strict";var o=n(212).rotr32;function r(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,o){return 0===e?r(t,n,o):1===e||3===e?s(t,n,o):2===e?i(t,n,o):void 0},t.ch32=r,t.maj32=i,t.p32=s,t.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},t.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},t.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},t.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},212:function(e,t,n){"use strict";var o=n(9561),r=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);s<128?n[o++]=s:s<2048?(n[o++]=s>>6|192,n[o++]=63&s|128):i(e,r)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),n[o++]=s>>18|240,n[o++]=s>>12&63|128,n[o++]=s>>6&63|128,n[o++]=63&s|128):(n[o++]=s>>12|224,n[o++]=s>>6&63|128,n[o++]=63&s|128)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",o=0;o<e.length;o++){var r=e[o];"little"===t&&(r=s(r)),n+=a(r.toString(16))}return n},t.zero2=c,t.zero8=a,t.join32=function(e,t,n,r){var i=n-t;o(i%4==0);for(var s=new Array(i/4),c=0,a=t;c<s.length;c++,a+=4){var u;u="big"===r?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),o=0,r=0;o<e.length;o++,r+=4){var i=e[o];"big"===t?(n[r]=i>>>24,n[r+1]=i>>>16&255,n[r+2]=i>>>8&255,n[r+3]=255&i):(n[r+3]=i>>>24,n[r+2]=i>>>16&255,n[r+1]=i>>>8&255,n[r]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,o){return e+t+n+o>>>0},t.sum32_5=function(e,t,n,o,r){return e+t+n+o+r>>>0},t.sum64=function(e,t,n,o){var r=e[t],i=o+e[t+1]>>>0,s=(i<o?1:0)+n+r;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,o){return(t+o>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,o){return t+o>>>0},t.sum64_4_hi=function(e,t,n,o,r,i,s,c){var a=0,u=t;return a+=(u=u+o>>>0)<t?1:0,a+=(u=u+i>>>0)<i?1:0,e+n+r+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,o,r,i,s,c){return t+o+i+c>>>0},t.sum64_5_hi=function(e,t,n,o,r,i,s,c,a,u){var l=0,d=t;return l+=(d=d+o>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+c>>>0)<c?1:0,e+n+r+s+a+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,o,r,i,s,c,a,u){return t+o+i+c+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},3186:function(){},8005:function(){},5773:function(){},4373:function(){},7777:function(){},7710:function(){},2014:function(){},6372:function(){},4422:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,o=60*n,r=24*o,i=7*r,s=365.25*r;function c(e,t,n,o){var r=t>=1.5*n;return Math.round(e/n)+" "+o+(r?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\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(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=r)return c(e,i,r,"day");if(i>=o)return c(e,i,o,"hour");if(i>=n)return c(e,i,n,"minute");if(i>=t)return c(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=o)return Math.round(e/o)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var c,a,u,l;if(Array.isArray(e)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;for(l=e.entries();!(a=l.next()).done;)if(!i(a.value[1],s.get(a.value[0])))return!1;return!0}if(o&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(e[a]!==s[a])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((c=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=c;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,u[a]))return!1;if(t&&e instanceof Element)return!1;for(a=c;0!=a--;)if(("_owner"!==u[a]&&"__v"!==u[a]&&"__o"!==u[a]||!e.$$typeof)&&!i(e[u[a]],s[u[a]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var o=n(9196),r=n(7295),i=n(8435),s=n.n(i),c=n(855),a=[],u=function(e,t,n){void 0===n&&(n={});var i=o.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||a},l=o.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],p=l[1],f=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p({styles:(0,c.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,c.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=o.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=o.useRef();return(0,c.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,c.LI)((function(){if(null!=e&&null!=t){var o=(n.createPopper||r.fi)(e,t,m);return h.current=o,function(){o.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return r},LI:function(){return i}});var o=n(9196),r=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect},3133:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)("");return(0,i.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>t(e.has_seen_seller_celebration_modal))).catch((()=>t(!1)))})),{hasSeenSellerCelebrationModal:e,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{t(e)}))}}}},5262:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)(""),n=(0,i.useCallback)((()=>{r()({path:"/wpcom/v2/site-intent"}).then((e=>t(e.site_intent))).catch((()=>t("")))}),[]);return(0,i.useEffect)((()=>{n()}),[n]),e}},7869:function(e,t,n){"use strict";var o=n(9307),r=(n(3945),n(849)),i=n(4655),s=n(5609),c=n(9818),a=n(8817),u=n(6483),l=n(3867),d=n(9935),p=n(1258),f=n(1970),m=n(374),h=n(7203);function g(){var e;const[t]=(0,o.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:a,variant:d,isManuallyOpened:p,isNewPageLayoutModalOpen:g}=(0,c.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,c.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{a||w()}),[w,a]),!n||g?null:d===f.yn&&!p&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===f.Sz?(0,o.createElement)(r.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,o.createElement)(l.Z,null):(0,o.createElement)(h.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,o.createElement)(m.Z,null):null}(0,a.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g,null),(0,o.createElement)(d.Z,null),(0,o.createElement)(p.Z,null))})},1568:function(e,t,n){"use strict";var o=n(9818);n(462);const r=(0,o.subscribe)((()=>{var e,t;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),r()}));(0,o.subscribe)((()=>{var e,t;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0})),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),c=n(2694),a=n(5736),u=n(3634),l=n(3790);n(3186);const __=a.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[a,p]=(0,o.useState)(!0),f=()=>p(!1);return(0,o.createElement)(u.Z,{isOpen:a,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{isPrimary:!0,onClick:f},__("Start writing","full-site-editing")),(0,o.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,c.hasAction)(d)?(0,c.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:f,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:c,imageSrc:a,actionButtons:u,onRequestClose:l,onOpen:d}=e;const p=(0,o.useRef)(null);return(0,o.useEffect)((()=>{!p.current&&t&&(null==d||d()),p.current=t}),[p,t,d]),t?(0,o.createElement)(r.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,o.createElement)("img",{src:a,alt:i})),(0,o.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,o.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},c),(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),c=n(5736),a=n(3634),u=n(5275);n(5773);const __=c.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),c=(0,o.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,p]=(0,o.useState)(!1),{fetchShouldShowFirstPostPublishedModal:f,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{f()}),[f]),(0,o.useEffect)((()=>{l&&!c.current&&n&&"post"===t&&(c.current=n,m(!1),window.setTimeout((()=>{p(!0)})))}),[t,l,n,m]),(0,o.createElement)(a.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,o.createElement)(i.Button,{isPrimary:!0,href:e},__("View Post","full-site-editing")),onRequestClose:()=>p(!1),onOpen:()=>(0,r.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1258:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),c=n(5736),a=n(3133),u=n(5262),l=n(3634),d=n(4242);n(4373);const __=c.__;t.Z=()=>{const{addEntities:e}=(0,s.useDispatch)("core");(0,o.useEffect)((()=>{e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);const[t,n]=(0,o.useState)(!1),[c,p]=(0,o.useState)(!1),f=(0,s.useSelect)((e=>!!e("core/edit-site"))),m=(0,o.useRef)(!1),{isEditorSaving:h,hasPaymentsBlock:g,linkUrl:v}=(0,s.useSelect)((e=>{if(f){var t,n,o;const r=e("core").isSavingEntityRecord("root","site"),i=e("core/edit-site").getPage(),s=parseInt(null==i||null===(t=i.context)||void 0===t?void 0:t.postId),c=e("core").isSavingEntityRecord("postType","page",s),a=e("core").getEntityRecord("postType","page",s);return{isEditorSaving:r||c,hasPaymentsBlock:(null==a||null===(n=a.content)||void 0===n||null===(o=n.raw)||void 0===o?void 0:o.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e"))??!1,linkUrl:null==a?void 0:a.link}}const r=e("core/editor").getCurrentPost();return{isEditorSaving:e("core").isSavingEntityRecord("postType",null==r?void 0:r.type,null==r?void 0:r.id),hasPaymentsBlock:e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,linkUrl:r.link}})),w=(0,u.Z)(),{hasSeenSellerCelebrationModal:y,updateHasSeenSellerCelebrationModal:b}=(0,a.Z)();(0,o.useEffect)((()=>{h||!m.current||c||"sell"!==w||!g||y||(n(!0),p(!0),b(!0)),m.current=h}),[h,c,w,g,y,b]);const _=()=>n(!1);return(0,o.createElement)(l.Z,{isOpen:t,className:"wpcom-site-editor-seller-celebration-modal",title:__("You've added your first product!","full-site-editing"),description:__("Preview your product on your site before launching and sharing with others.","full-site-editing"),imageSrc:d,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{onClick:_},__("Continue editing","full-site-editing")),(0,o.createElement)(i.Button,{isPrimary:!0,href:v,target:"__blank",rel:"noopener noreferrer"},__("View your product","full-site-editing"))),onRequestClose:_,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_seller_celebration_modal_show")})}},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return c},yn:function(){return a},z2:function(){return p}});var o=n(6989),r=n.n(o),i=n(9818),s=n(3418);n(3288);const c="tour",a="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===a?c:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return c;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t,onlyLocal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n||r()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}},setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?c:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function p(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6115),s=n(5609),c=n(9818),a=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(7777);const __=a.__;function f(e){let{pageNumber:t,isLastPage:n,alignBottom:o=!1,heading:c,description:a,imgSrc:u}=e;return(0,r.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,r.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,r.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,r.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},c),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__description"},a)),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,r.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(o?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),{setShowWelcomeGuide:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{var o;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:p,alignBottom:!0}];return(0,r.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),a(!1,{openedManually:!1})}},m.map(((e,t)=>(0,r.createElement)(f,(0,o.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},7203:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(849),s=n(5585),c=n(8038),a=n(9818),u=n(6505);n(7710);function l(){var e;const t=(0,i.bU)(),{setShowWelcomeGuide:n}=(0,a.useDispatch)("automattic/wpcom-welcome-guide"),s=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,l=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),d=(0,u.Z)(t,l()),p={steps:d,closeHandler:(e,t,o)=>{(0,r.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:s,slide_number:t+1,action:o}),n(!1,{openedManually:!1})},options:{tourRating:{enabled:!0,useTourRating:()=>(0,a.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),onTourRate:e=>{(0,a.dispatch)("automattic/wpcom-welcome-guide").setTourRating(e),(0,r.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:"thumbs-up"===e,is_gutenboarding:!1})}},callbacks:{onMinimize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:s,slide_number:e+1})},onMaximize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:s,slide_number:e+1})},onStepViewOnce:e=>{const t=d.length-1,{heading:n}=d[e].meta;(0,r.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:e+1,is_last_slide:e===t,slide_heading:n,is_gutenboarding:s})}},effects:{spotlight:l()?{styles:{minWidth:"50px",minHeight:"50px",borderRadius:"2px"}}:void 0,arrowIndicator:!1},popperModifiers:[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header");if(!e)return;const t=e.getBoundingClientRect();return[0,t.height+t.y-(n.height+n.y)+16]}return[0,0]}}})),[])],classNames:"wpcom-editor-welcome-tour"}};return(0,o.createElement)(c.Z,{config:p})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),c=(0,i.bU)();return(0,s.Z)([(0,u.Z)(c,!1)[0]]),(0,o.useEffect)((()=>{var o;(e||t)&&(0,r.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,o.createElement)(l,null)}},6505:function(e,t,n){"use strict";var o=n(9307),r=n(7498),i=n(9321),s=n(5609),c=n(5736);const __=c.__;function a(e){const t="https://s0.wp.com/i/editor-welcome-tour";return{addBlock:{desktop:{src:`${t}/slide-add-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-add-block_mobile.gif`,type:"image/gif"}},allBlocks:{desktop:{src:`${t}/slide-all-blocks.gif`,type:"image/gif"}},finish:{desktop:{src:`${t}/slide-finish.png`,type:"image/gif"}},makeBold:{desktop:{src:`${t}/slide-make-bold.gif`,type:"image/gif"}},moreOptions:{desktop:{src:`${t}/slide-more-options.gif`,type:"image/gif"},mobile:{src:`${t}/slide-more-options_mobile.gif`,type:"image/gif"}},moveBlock:{desktop:{src:`${t}/slide-move-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-move-block_mobile.gif`,type:"image/gif"}},findYourWay:{desktop:{src:`${t}/slide-find-your-way.gif`,type:"image/gif"}},undo:{desktop:{src:`${t}/slide-undo.gif`,type:"image/gif"}},welcome:{desktop:{src:`${t}/slide-welcome.png`,type:"image/png"},mobile:{src:`${t}/slide-welcome_mobile.jpg`,type:"image/jpeg"}}}[e]}t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[{meta:{heading:__("Welcome to WordPress!","full-site-editing"),descriptions:{desktop:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),mobile:null},imgSrc:a("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{meta:{heading:__("Everything is a block","full-site-editing"),descriptions:{desktop:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),mobile:null},imgSrc:a("allBlocks")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle",desktop:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle"}},meta:{heading:__("Adding a new block","full-site-editing"),descriptions:{desktop:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),mobile:__("Tap + to open the inserter. Then tap the block you want to add.","full-site-editing")},imgSrc:a("addBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{meta:{heading:__("Click a block to change it","full-site-editing"),descriptions:{desktop:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),mobile:null},imgSrc:a("makeBold")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)",desktop:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)"}},meta:{heading:__("More Options","full-site-editing"),descriptions:{desktop:__("Click the settings icon to see even more options.","full-site-editing"),mobile:__("Tap the settings icon to see even more options.","full-site-editing")},imgSrc:a("moreOptions")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},...(0,i.tq)()?[]:[{meta:{heading:__("Find your way","full-site-editing"),descriptions:{desktop:__("Use List View to see all the blocks you've added. Click and drag any block to move it around.","full-site-editing"),mobile:null},imgSrc:a("findYourWay")},options:{classNames:{desktop:["is-with-extra-padding","wpcom-editor-welcome-tour__step"],mobile:"wpcom-editor-welcome-tour__step"}}}],...(0,i.tq)()?[]:[{...t&&{referenceElements:{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"}},meta:{heading:__("Undo any mistake","full-site-editing"),descriptions:{desktop:__("Click the Undo button if you've made a mistake.","full-site-editing"),mobile:null},imgSrc:a("undo")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}],{meta:{heading:__("Drag & drop","full-site-editing"),descriptions:{desktop:__("To move blocks around, click and drag the handle.","full-site-editing"),mobile:__("To move blocks around, tap the up and down arrows.","full-site-editing")},imgSrc:a("moveBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{meta:{heading:__("Congratulations!","full-site-editing"),descriptions:{desktop:(0,o.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),mobile:null},imgSrc:a("finish")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return o.jN}});n(1694),n(6209),n(9377);var o=n(9792);n(3722)},9377:function(e,t,n){"use strict";let o=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){o=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var o=n(2699),r=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let a,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,r.ve)("//stats.wp.com/w.js?63"));const d=new o.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(c,e)){if(a){const e=a(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var o=n(8049),r=n.n(o);t.Z=r()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3668:function(e,t,n){"use strict";var o=n(9307),r=n(5736),i=n(2779),s=n.n(i),c=n(2819);n(2014);const __=r.__;t.Z=e=>{let{activePageIndex:t,numberOfPages:n,onChange:i,classNames:a,children:u}=e;const l=s()("pagination-control",a);return(0,o.createElement)("ul",{className:l,"aria-label":__("Pagination control")},(0,c.times)(n,(e=>(0,o.createElement)("li",{key:`${n}-${e}`,"aria-current":e===t?"page":void 0},(0,o.createElement)("button",{className:s()("pagination-control__page",{"is-current":e===t}),disabled:e===t,"aria-label":(0,r.sprintf)(__("Page %1$d of %2$d"),e+1,n),onClick:()=>i(e)})))),u&&(0,o.createElement)("li",{className:"pagination-control__last-item"},u))}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var o=n(7896),r=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null),u=e=>{let{children:t,localeSlug:n}=e;return(0,r.createElement)(a.Provider,{value:n},t)};function l(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,c.useContext)(a),t=!!e,[n,o]=(0,c.useState)(l());return(0,c.useEffect)((()=>{if(!t)return o(l()),s.subscribe((()=>{o(l())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,r.createElement)(e,(0,o.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return o},GG:function(){return r},iT:function(){return i},xn:function(){return s},Xb:function(){return c},hI:function(){return a},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const o="en",r=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return h}});var o=n(7896),r=n(9307),i=n(4333),s=n(9196),c=n(849),a=n(4655);const u="http://__domain__.invalid",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,o)=>(t.includes(o)&&"en"!==o&&n.pathname.substr(0,o.length+2)!=="/"+o+"/"&&(n.host=`${a.Xb[o]||o}.${e}`),n)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(o,r)=>(o.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(o.pathname)&&(t=[]),o.pathname=e+o.pathname,t.includes(r)&&"en"!==r&&(o.pathname=r+o.pathname),o)},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(o,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(o.pathname)?o:e.includes(r)&&"en"!==r?("prefix"===n?o.pathname=r+o.pathname:"suffix"===n&&(o.pathname.endsWith("/")?o.pathname+=r+"/":o.pathname+="/"+r),o):o},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>p(e,t,"prefix")(n,o)},m={"wordpress.com/support/":f(a.hI),"wordpress.com/forums/":f(a.mL),"wordpress.com/blog/":f(a.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(a.vS),"wordpress.com/wp-admin/":l("wordpress.com",a.vS),"wordpress.com/wp-login.php":l("wordpress.com",a.vS),"jetpack.com":l("jetpack.com",a._r),"en.support.wordpress.com":d("/support",a.hI),"en.blog.wordpress.com":d("/blog",a.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",a.mL),"automattic.com/privacy/":f(a.iT),"automattic.com/cookies/":f(a.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(a.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(a.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:f(a.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:f(a.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>p(e,t,"suffix")(n,o)}(a.vS)(e,t)};function h(e,t){let n,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),u)}catch(s){return e}if(n.origin===u)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));const r=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===r)return e;const i=[n.host,n.host+r,n.host+n.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in m)return m[i[c]](n,t,o).href;return e}function g(){const e=(0,c.bU)();return(0,s.useCallback)(((t,n,o)=>h(t,n||e,o)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=g();return(0,r.createElement)(e,(0,o.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return c},lZ:function(){return a},_W:function(){return l},Yt:function(){return d}});var o=n(8049);const r=n.n(o)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(e){return s().has(e)}function a(e,t){const n=s();c(e)?(r(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(r(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),o=n.get(e);if(o){r(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),o.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");r(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");r(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return a}});var o=n(8049),r=n.n(o),i=n(3340);const s=r()("lib/load-script/dom-operations");function c(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function a(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var o=n(8049),r=n.n(o),i=n(3340),s=n(5606);r()("package/load-script");function c(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:c,onPreviousStepProgression:a,tourContainerRef:u,isMinimized:l}=e;return(0,r.Z)(u)?l?(0,o.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,o.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:c,onArrowLeft:a}),(0,i.Z)(u),null}),null):null}},9549:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var o=n(9307);const r=(0,o.createContext)({}),i=()=>(0,o.useContext)(r);t.Z=e=>{let{config:t,children:n}=e;return(0,o.createElement)(r.Provider,{value:{config:t}},n)}},4065:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6951),s=n(2779),c=n.n(s),a=n(6194),u=n(9207),l=n(2036),d=n(8626),p=n(6165),f=n(7858),m=n(8074),h=n(301);const g=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,v,w,y,b,_,E,k,x,S,Z,C,O,M,P,F,L,R,N,T,j,A;let{config:z}=e;const[W,I]=(0,r.useState)(0),[G,D]=(0,r.useState)(null),[B,U]=(0,r.useState)(!1),[$,H]=(0,r.useState)(null),[V,q]=(0,r.useState)(!1),Y=(0,r.useRef)(null),K=(0,i._z)(),X=z.steps.length-1,J=(null===(t=z.steps[W].referenceElements)||void 0===t?void 0:t[K?"mobile":"desktop"])||null,Q=J?document.querySelector(J):null,ee=(0,r.useCallback)((()=>{var e,t;return!1!==(null===(e=z.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!Q||B||!V)}),[null===(n=z.options)||void 0===n||null===(s=n.effects)||void 0===s?void 0:s.arrowIndicator,B,Q,V]),te=(0,r.useCallback)((()=>{var e,t;return!(null===(e=z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.spotlight)&&!B}),[null===(v=z.options)||void 0===v||null===(w=v.effects)||void 0===w?void 0:w.spotlight,B]),ne=(0,r.useCallback)((()=>{var e,t;return!(te()||null===(e=z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!B}),[null===(y=z.options)||void 0===y||null===(b=y.effects)||void 0===b?void 0:b.overlay,B,te]),oe=(0,r.useCallback)((e=>()=>{z.closeHandler(z.steps,W,e)}),[z,W]),re=(0,r.useCallback)((()=>{var e,t;X>W&&I(W+1),g(W,null===(e=z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(_=z.options)||void 0===_||null===(E=_.callbacks)||void 0===E?void 0:E.onNextStep,W,X]),ie=(0,r.useCallback)((()=>{var e,t;W&&I(W-1),g(W,null===(e=z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(k=z.options)||void 0===k||null===(x=k.callbacks)||void 0===x?void 0:x.onPreviousStep,W]),se=(0,r.useCallback)((e=>{var t,n;I(e),g(W,null===(t=z.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(S=z.options)||void 0===S||null===(Z=S.callbacks)||void 0===Z?void 0:Z.onGoToStep,W]),ce=(0,r.useCallback)((()=>{var e,t;U(!0),g(W,null===(e=z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(C=z.options)||void 0===C||null===(O=C.callbacks)||void 0===O?void 0:O.onMinimize,W]),ae=(0,r.useCallback)((()=>{var e,t;U(!1),g(W,null===(e=z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(M=z.options)||void 0===M||null===(P=M.callbacks)||void 0===P?void 0:P.onMaximize,W]),{styles:ue,attributes:le,update:de}=(0,a.D)(Q,$,{strategy:"fixed",placement:"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,ee()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},...(null===(F=z.options)||void 0===F?void 0:F.popperModifiers)||[]]}),pe=!B&&Q&&V?{style:null==ue?void 0:ue.popper,...null==le?void 0:le.popper}:null,fe=!B&&Q&&V?{style:null==ue?void 0:ue.arrow,...null==le?void 0:le.arrow}:null;(0,r.useEffect)((()=>{setTimeout((()=>null==G?void 0:G.focus()))}),[G]),(0,r.useEffect)((()=>{Q?(q(!1),de&&de().then((()=>q(!0))).catch((()=>q(!0)))):q(!0)}),[de,Q]);const me=c()("tour-kit-frame",K?"is-mobile":"is-desktop",{"is-visible":V},(0,l.s)(null===(L=z.options)||void 0===L?void 0:L.classNames));return(0,u.Z)(W,null===(R=z.options)||void 0===R||null===(N=R.callbacks)||void 0===N?void 0:N.onStepViewOnce),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.Z,{onMinimize:ce,onDismiss:oe,onNextStepProgression:re,onPreviousStepProgression:ie,tourContainerRef:Y,isMinimized:B}),(0,r.createElement)("div",{className:me,ref:Y},ne()&&(0,r.createElement)(f.Z,{visible:!0}),te()&&(0,r.createElement)(m.Z,{referenceElement:Q,styles:null===(T=z.options)||void 0===T||null===(j=T.effects)||void 0===j||null===(A=j.spotlight)||void 0===A?void 0:A.styles}),(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__container",ref:H},pe),ee()&&(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},fe)),B?(0,r.createElement)(p.Z,{config:z,steps:z.steps,currentStepIndex:W,onMaximize:ae,onDismiss:oe}):(0,r.createElement)(h.Z,{config:z,steps:z.steps,currentStepIndex:W,onMinimize:ce,onDismiss:oe,onNextStep:re,onPreviousStep:ie,onGoToStep:se,setInitialFocusedElement:D}))))}},6165:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{config:t,steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}=e;return(0,o.createElement)("div",{className:"tour-kit-minimized"},(0,o.createElement)(t.renderers.tourMinimized,{steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}))}},7858:function(e,t,n){"use strict";var o=n(9307),r=n(2779),i=n.n(r);t.Z=e=>{let{visible:t}=e;return(0,o.createElement)("div",{className:i()("tour-kit-overlay",{"is-visible":t})})}},8074:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(2779),s=n.n(i),c=n(6194),a=n(7858);t.Z=e=>{let{referenceElement:t,styles:n}=e;const[i,u]=(0,r.useState)(null),l=null==t?void 0:t.getBoundingClientRect(),d=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:o}=e;return"bottom"===t?[0,-(n.height+(o.height-n.height)/2)]:[0,0]}}})),[])],{styles:p,attributes:f}=(0,c.D)(t,i,{strategy:"fixed",placement:"bottom",modifiers:d}),m=l?{width:`${l.width}px`,height:`${l.height}px`}:null,h=t?{style:{...m&&m,...null==p?void 0:p.popper,...n&&n},...null==f?void 0:f.popper}:null;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Z,{visible:!h}),(0,r.createElement)("div",(0,o.Z)({className:s()("tour-kit-spotlight",{"is-visible":!!h}),ref:u},h)))}},301:function(e,t,n){"use strict";var o=n(9307),r=n(6951),i=n(2779),s=n.n(i),c=n(2036);t.Z=e=>{var t,n;let{config:i,steps:a,currentStepIndex:u,onMinimize:l,onDismiss:d,onNextStep:p,onPreviousStep:f,setInitialFocusedElement:m,onGoToStep:h}=e;const g=(0,r._z)(),v=s()("tour-kit-step",`is-step-${u}`,(0,c.s)(null===(t=i.steps[u].options)||void 0===t||null===(n=t.classNames)||void 0===n?void 0:n[g?"mobile":"desktop"]));return(0,o.createElement)("div",{className:v},(0,o.createElement)(i.renderers.tourStep,{steps:a,currentStepIndex:u,onDismiss:d,onNextStep:p,onPreviousStep:f,onMinimize:l,setInitialFocusedElement:m,onGoToStep:h}))}},2313:function(e,t,n){"use strict";var o=n(9307),r=n(1415),i=n(9549),s=n(4065);n(6372);t.Z=e=>{let{config:t,__temp__className:n}=e;const c=(0,o.useRef)(document.createElement("div")).current;return(0,o.useEffect)((()=>{const e=["tour-kit",...n?[n]:[]];return c.classList.add(...e),document.body.appendChild(c),()=>{document.body.removeChild(c)}}),[n,c]),(0,o.createElement)(r.Z,null,(0,o.createElement)(i.Z,{config:t},(0,o.createElement)("div",null,(0,o.createPortal)((0,o.createElement)(s.Z,{config:t}),c))))}},1415:function(e,t,n){"use strict";var o=n(6666),r=n(9307),i=n(9196),s=n.n(i);class c extends s().Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?(0,r.createElement)("h1",null,"Something went wrong."):this.props.children}}t.Z=c},7474:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{const[t,n]=(0,o.useState)(!1),r=(0,o.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,o.useCallback)((t=>{var o;null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,o.useCallback)((t=>{var o;"Tab"===t.key&&(null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1))}),[e]);return(0,o.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,r,s,i]),t}},5386:function(e,t,n){"use strict";var o=n(5904),r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[i,s]=(0,r.useState)(),c=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==i||i.focus(),n=!0):document.activeElement===i&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,i]);(0,r.useEffect)((()=>{const t=o.focus.focusable.find(e.current);return t&&t.length&&(n(t[0]),s(t[t.length-1])),document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}}),[e,c])}},9946:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:r}=e;const i=(0,o.useCallback)((e=>{let o=!1;switch(e.key){case"Escape":t&&(t(),o=!0);break;case"ArrowRight":n&&(n(),o=!0);break;case"ArrowLeft":r&&(r(),o=!0)}o&&(e.preventDefault(),e.stopPropagation())}),[t,n,r]);(0,o.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},9207:function(e,t,n){"use strict";var o=n(9307);t.Z=(e,t)=>{const[n,r]=(0,o.useState)([]);(0,o.useEffect)((()=>{n.includes(e)||(r((t=>[...t,e])),null==t||t(e))}),[e,t,n])}},2036:function(e,t,n){"use strict";function o(e){return null!=e&&e.length?e.toString().split(","):null}n.d(t,{s:function(){return o}})},2639:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(5869),c=n(8565),a=n(9045);const __=i.__;t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:u,currentStepIndex:l}=e;const d=l+1,p=t.length-1+1;return(0,o.createElement)(r.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},(0,o.createElement)(r.Button,{onClick:n,"aria-label":__("Resume Tour")},(0,o.createElement)(r.Flex,{gap:13},(0,o.createElement)("p",null,(0,o.createInterpolateElement)((0,i.sprintf)(__("Resume tour <span>(%1$d/%2$d)</span>"),d,p),{span:(0,o.createElement)("span",{className:"wpcom-tour-kit-minimized__tour-index"})})),(0,o.createElement)(s.Z,{icon:a.Z,size:24}))),(0,o.createElement)(r.Button,{onClick:u("close-btn-minimized"),"aria-label":__("Close Tour")},(0,o.createElement)(s.Z,{icon:c.Z,size:24})))}},8428:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(2779),c=n.n(s),a=n(9549),u=n(658),l=n(5168);const __=i.__;t.Z=()=>{var e,t,n,i,s;const[d,p]=(0,o.useState)(),f=(0,a.S)().config,m=(null===(e=f.options)||void 0===e||null===(t=e.tourRating)||void 0===t||null===(n=t.useTourRating)||void 0===n?void 0:n.call(t))??d;let h=!1;if(null===(i=f.options)||void 0===i||null===(s=i.tourRating)||void 0===s||!s.enabled)return null;h||void 0===d||(h=!0);const g=e=>{if(h)return;const t=e?"thumbs-up":"thumbs-down";var n,o,r;t!==m&&(h=!0,p(t),null===(n=f.options)||void 0===n||null===(o=n.tourRating)||void 0===o||null===(r=o.onTourRate)||void 0===r||r.call(o,t))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"wpcom-tour-kit-rating__end-text"},__("Did you find this guide helpful?")),(0,o.createElement)("div",null,(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs up"),className:c()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-up"===m}),disabled:h,icon:l.Z,onClick:()=>g(!0),iconSize:24}),(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs down"),className:c()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-down"===m}),disabled:h,icon:u.Z,onClick:()=>g(!1),iconSize:24})))}},6827:function(e,t,n){"use strict";var o=n(9307),r=n(3668),i=n(5609),s=n(5736);const __=s.__;t.Z=e=>{let{currentStepIndex:t,onDismiss:n,onGoToStep:s,onNextStep:c,onPreviousStep:a,setInitialFocusedElement:u,steps:l}=e;const d=0===t,p=l.length-1;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.Z,{activePageIndex:t,numberOfPages:p+1,onChange:s},d?(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:u},__("Try it out!"))):(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:a},__("Back")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:u},__("Next")))))}},7208:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(8565),c=n(6920);const __=i.__;t.Z=e=>{let{onMinimize:t,onDismiss:n}=e;return(0,o.createElement)("div",{className:"wpcom-tour-kit-step-card-overlay-controls"},(0,o.createElement)(r.Flex,null,(0,o.createElement)(r.Button,{label:__("Minimize Tour"),isPrimary:!0,className:"wpcom-tour-kit-step-card-overlay-controls__minimize-icon",icon:c.Z,iconSize:24,onClick:t}),(0,o.createElement)(r.Button,{label:__("Close Tour"),isPrimary:!0,icon:s.Z,iconSize:24,onClick:n("close-btn")})))}},809:function(e,t,n){"use strict";var o=n(9307),r=n(9321),i=n(5609),s=n(5736),c=n(8428),a=n(6827),u=n(7208);const __=s.__;t.Z=e=>{var t;let{steps:n,currentStepIndex:s,onMinimize:l,onDismiss:d,onGoToStep:p,onNextStep:f,onPreviousStep:m,setInitialFocusedElement:h}=e;const g=n.length-1,{descriptions:v,heading:w,imgSrc:y}=n[s].meta,b=s===g,_=v[(0,r.tq)()?"mobile":"desktop"]??v.desktop,E=(0,r.O9)(r.Gh);return(0,o.createElement)(i.Card,{className:"wpcom-tour-kit-step-card",isElevated:!0},(0,o.createElement)(u.Z,{onDismiss:d,onMinimize:l}),y&&(0,o.createElement)(i.CardMedia,{className:"wpcom-tour-kit-step-card__media"},(0,o.createElement)("picture",null,y.mobile&&(0,o.createElement)("source",{srcSet:y.mobile.src,type:y.mobile.type,media:null==E?void 0:E.media}),(0,o.createElement)("img",{alt:__("Tour Media"),src:null===(t=y.desktop)||void 0===t?void 0:t.src}))),(0,o.createElement)(i.CardBody,null,(0,o.createElement)("h2",{className:"wpcom-tour-kit-step-card__heading"},w),(0,o.createElement)("p",{className:"wpcom-tour-kit-step-card__description"},_,b?(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card__description",isTertiary:!0,onClick:()=>p(0),ref:h},__("Restart tour")):null)),(0,o.createElement)(i.CardFooter,null,b?(0,o.createElement)(c.Z,null):(0,o.createElement)(a.Z,{currentStepIndex:s,onDismiss:d,onGoToStep:p,onNextStep:f,onPreviousStep:m,setInitialFocusedElement:h,steps:n})))}},825:function(e,t,n){"use strict";var o=n(9307),r=n(809);t.Z=e=>{let{steps:t,currentStepIndex:n,onDismiss:i,onNextStep:s,onPreviousStep:c,onMinimize:a,setInitialFocusedElement:u,onGoToStep:l}=e;return(0,o.createElement)(r.Z,{steps:t,currentStepIndex:n,onDismiss:i,onMinimize:a,onGoToStep:l,onNextStep:s,onPreviousStep:c,setInitialFocusedElement:u})}},8038:function(e,t,n){"use strict";var o=n(9307),r=n(2313),i=n(5585),s=n(2639),c=n(825);n(4422);t.Z=e=>{let{config:t}=e;return(0,i.Z)(t.steps),(0,o.createElement)(r.Z,{__temp__className:"wpcom-tour-kit",config:{...t,renderers:{tourStep:c.Z,tourMinimized:s.Z}}})}},5585:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9307);function r(e){(0,o.useEffect)((()=>{e.forEach((e=>{var t,n;(null===(t=e.meta.imgSrc)||void 0===t?void 0:t.mobile)&&((new window.Image).src=e.meta.imgSrc.mobile.src),(null===(n=e.meta.imgSrc)||void 0===n?void 0:n.desktop)&&((new window.Image).src=e.meta.imgSrc.desktop.src)}))}),[e])}},9045:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z"}));t.Z=i},6920:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=i},658:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=i},5168:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=i},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var o=n(7896),r=n(9307),i=n(9321),s=n(4333),c=n(9196);function a(e){const[t,n]=(0,c.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,c.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return a(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.Gh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.oh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return r},oh:function(){return i},O9:function(){return d},kV:function(){return p},Sp:function(){return f},tq:function(){return m}});const o=769,r="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,c=()=>null;function a(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?a({matches:o>t&&o<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?a({matches:o>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?a({matches:o<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function p(e){const t=d(e);return t?t.matches:void 0}function f(e,t){if(!t)return c;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return c}function m(){return p(r)}},8049:function(e,t,n){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 o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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(2632)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,r,i,s=null;function c(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];if(!c.enabled)return;const i=c,s=Number(new Date),a=s-(n||s);i.diff=a,i.prev=n,i.curr=s,n=s,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");let u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const r=t.formatters[n];if("function"==typeof r){const t=o[u];e=r.call(i,t),o.splice(u,1),u--}return e})),t.formatArgs.call(i,o);const l=i.log||t.log;l.apply(i,o)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=o,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(c),c}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),r=o.length;for(n=0;n<r;n++)o[n]&&("-"===(e=o[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,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),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}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},4242:function(e,t,n){"use strict";e.exports=n.p+"images/product-published-f8461fe85ee7eb5713c8.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},5904:function(e){"use strict";e.exports=window.wp.dom},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},6666:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},7896:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:function(){return o}})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var o={};!function(){"use strict";n.r(o);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=o}();
 
 
 
 
 
 
 
 
1
+ !function(){var e={7566:function(e,t,n){"use strict";n.d(t,{kZ:function(){return f}});var o=n(2140),r=n(6249),i=n(1119),s=n(7936),a=n(421),c=n(4806),u=n(3352),l=n(8555),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,f=void 0===n?[]:n,m=t.defaultOptions,h=void 0===m?d:m;return function(e,t,n){void 0===n&&(n=h);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,h),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],v=!1,w={state:m,setOptions:function(n){var o="function"==typeof n?n(m.options):n;y(),m.options=Object.assign({},h,m.options,o),m.scrollParents={reference:(0,l.kK)(e)?(0,i.Z)(e):e.contextElement?(0,i.Z)(e.contextElement):[],popper:(0,i.Z)(t)};var r=(0,a.Z)((0,u.Z)([].concat(f,m.options.modifiers)));return m.orderedModifiers=r.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:m,name:t,instance:w,options:o}),s=function(){};g.push(i||s)}})),w.update()},forceUpdate:function(){if(!v){var e=m.elements,t=e.reference,n=e.popper;if(p(t,n)){m.rects={reference:(0,o.Z)(t,(0,s.Z)(n),"fixed"===m.options.strategy),popper:(0,r.Z)(n)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<m.orderedModifiers.length;i++)if(!0!==m.reset){var a=m.orderedModifiers[i],c=a.fn,u=a.options,l=void 0===u?{}:u,d=a.name;"function"==typeof c&&(m=c({state:m,options:l,name:d,instance:w})||m)}else m.reset=!1,i=-1}}},update:(0,c.Z)((function(){return new Promise((function(e){w.forceUpdate(),e(m)}))})),destroy:function(){y(),v=!0}};if(!p(e,t))return w;function y(){g.forEach((function(e){return e()})),g=[]}return w.setOptions(n).then((function(e){!v&&n.onFirstUpdate&&n.onFirstUpdate(e)})),w}}},5350:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},2881:function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{Z:function(){return o}})},889:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(6166),r=n(4691),i=n(6764),s=n(1119),a=n(7936),c=n(2021),u=n(9546),l=n(8555),d=n(2881),p=n(2882),f=n(5350),m=n(98),h=n(7365),g=n(8072);function v(e,t){return t===o.Pj?(0,h.Z)((0,r.Z)(e)):(0,l.Re)(t)?function(e){var t=(0,d.Z)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,h.Z)((0,i.Z)((0,c.Z)(e)))}function w(e,t,n){var o="clippingParents"===t?function(e){var t=(0,s.Z)((0,p.Z)(e)),n=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,l.Re)(e)?(0,a.Z)(e):e;return(0,l.kK)(n)?t.filter((function(e){return(0,l.kK)(e)&&(0,f.Z)(e,n)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],c=r.reduce((function(t,n){var o=v(e,n);return t.top=(0,g.Fp)(o.top,t.top),t.right=(0,g.VV)(o.right,t.right),t.bottom=(0,g.VV)(o.bottom,t.bottom),t.left=(0,g.Fp)(o.left,t.left),t}),v(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},2140:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(2881),r=n(6637),i=n(98),s=n(8555),a=n(1051),c=n(2021),u=n(8519);function l(e,t,n){void 0===n&&(n=!1);var l=(0,s.Re)(t),d=(0,s.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),p=(0,c.Z)(t),f=(0,o.Z)(e,d),m={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!n)&&(("body"!==(0,i.Z)(t)||(0,u.Z)(p))&&(m=(0,r.Z)(t)),(0,s.Re)(t)?((h=(0,o.Z)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):p&&(h.x=(0,a.Z)(p))),{x:f.left+m.scrollLeft-h.x,y:f.top+m.scrollTop-h.y,width:f.width,height:f.height}}},9546:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){return(0,o.Z)(e).getComputedStyle(e)}},2021:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e){return(((0,o.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6764:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(2021),r=n(9546),i=n(1051),s=n(5392),a=n(8072);function c(e){var t,n=(0,o.Z)(e),c=(0,s.Z)(e),u=null==(t=e.ownerDocument)?void 0:t.body,l=(0,a.Fp)(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=(0,a.Fp)(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-c.scrollLeft+(0,i.Z)(e),f=-c.scrollTop;return"rtl"===(0,r.Z)(u||n).direction&&(p+=(0,a.Fp)(n.clientWidth,u?u.clientWidth:0)-l),{width:l,height:d,x:p,y:f}}},812:function(e,t,n){"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.d(t,{Z:function(){return o}})},6249:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(2881);function r(e){var t=(0,o.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},98:function(e,t,n){"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return o}})},6637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(5392),r=n(3189),i=n(8555),s=n(812);function a(e){return e!==(0,r.Z)(e)&&(0,i.Re)(e)?(0,s.Z)(e):(0,o.Z)(e)}},7936:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(3189),r=n(98),i=n(9546),s=n(8555),a=n(1725),c=n(2882);function u(e){return(0,s.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function l(e){for(var t=(0,o.Z)(e),n=u(e);n&&(0,a.Z)(n)&&"static"===(0,i.Z)(n).position;)n=u(n);return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,s.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null;for(var n=(0,c.Z)(e);(0,s.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var o=(0,i.Z)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},2882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(98),r=n(2021),i=n(8555);function s(e){return"html"===(0,o.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,r.Z)(e)}},7915:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(2882),r=n(8519),i=n(98),s=n(8555);function a(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,s.Re)(e)&&(0,r.Z)(e)?e:a((0,o.Z)(e))}},4691:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(3189),r=n(2021),i=n(1051);function s(e){var t=(0,o.Z)(e),n=(0,r.Z)(e),s=t.visualViewport,a=n.clientWidth,c=n.clientHeight,u=0,l=0;return s&&(a=s.width,c=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=s.offsetLeft,l=s.offsetTop)),{width:a,height:c,x:u+(0,i.Z)(e),y:l}}},3189:function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return o}})},5392:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(2881),r=n(2021),i=n(5392);function s(e){return(0,o.Z)((0,r.Z)(e)).left+(0,i.Z)(e).scrollLeft}},8555:function(e,t,n){"use strict";n.d(t,{kK:function(){return r},Re:function(){return i},Zq:function(){return s}});var o=n(3189);function r(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},8519:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9546);function r(e){var t=(0,o.Z)(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}},1725:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(98);function r(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}},1119:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7915),r=n(2882),i=n(3189),s=n(8519);function a(e,t){var n;void 0===t&&(t=[]);var c=(0,o.Z)(e),u=c===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,i.Z)(c),d=u?[l].concat(l.visualViewport||[],(0,s.Z)(c)?c:[]):c,p=t.concat(d);return u?p:p.concat(a((0,r.Z)(d)))}},6166:function(e,t,n){"use strict";n.d(t,{we:function(){return o},I:function(){return r},F2:function(){return i},t$:function(){return s},d7:function(){return a},mv:function(){return c},BL:function(){return u},ut:function(){return l},zV:function(){return d},Pj:function(){return p},k5:function(){return f},YP:function(){return m},bw:function(){return h},Ct:function(){return g},xs:function(){return v}});var o="top",r="bottom",i="right",s="left",a="auto",c=[o,r,i,s],u="start",l="end",d="clippingParents",p="viewport",f="popper",m="reference",h=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},1414:function(e,t,n){"use strict";var o=n(98),r=n(8555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,r.Re)(s)&&(0,o.Z)(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.Re)(i)&&(0,o.Z)(i)&&(Object.assign(i.style,a),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},335:function(e,t,n){"use strict";var o=n(7677),r=n(6249),i=n(5350),s=n(7936),a=n(1505),c=n(964),u=n(6713),l=n(315),d=n(6166);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o.Z)(n.placement),g=(0,a.Z)(h),v=[d.t$,d.F2].indexOf(h)>=0?"height":"width";if(f&&m){var w=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.Z)("number"!=typeof e?e:(0,l.Z)(e,d.mv))}(p.padding,n),y=(0,r.Z)(f),b="y"===g?d.we:d.t$,_="y"===g?d.I:d.F2,E=n.rects.reference[v]+n.rects.reference[g]-m[g]-n.rects.popper[v],x=m[g]-n.rects.reference[g],k=(0,s.Z)(f),S=k?"y"===g?k.clientHeight||0:k.clientWidth||0:0,Z=E/2-x/2,C=w[b],O=S-y[v]-w[_],P=S/2-y[v]/2+Z,F=(0,c.Z)(C,P,O),M=g;n.modifiersData[i]=((t={})[M]=F,t.centerOffset=F-P,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,i.Z)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},917:function(e,t,n){"use strict";var o=n(6166),r=n(7936),i=n(3189),s=n(2021),a=n(9546),c=n(7677),u=n(4531),l=n(8072),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,c=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,w=!0===v?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,l.NM)((0,l.NM)(t*o)/o)||0,y:(0,l.NM)((0,l.NM)(n*o)/o)||0}}(f):"function"==typeof v?v(f):f,y=w.x,b=void 0===y?0:y,_=w.y,E=void 0===_?0:_,x=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),S=o.t$,Z=o.we,C=window;if(g){var O=(0,r.Z)(n),P="clientHeight",F="clientWidth";O===(0,i.Z)(n)&&(O=(0,s.Z)(n),"static"!==(0,a.Z)(O).position&&"absolute"===m&&(P="scrollHeight",F="scrollWidth")),O=O,u!==o.we&&(u!==o.t$&&u!==o.F2||p!==o.ut)||(Z=o.I,E-=O[P]-c.height,E*=h?1:-1),u!==o.t$&&(u!==o.we&&u!==o.I||p!==o.ut)||(S=o.F2,b-=O[F]-c.width,b*=h?1:-1)}var M,L=Object.assign({position:m},g&&d);return h?Object.assign({},L,((M={})[Z]=k?"0":"",M[S]=x?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+E+"px)":"translate3d("+b+"px, "+E+"px, 0)",M)):Object.assign({},L,((t={})[Z]=k?E+"px":"",t[S]=x?b+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,d={placement:(0,c.Z)(t.placement),variation:(0,u.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},3191:function(e,t,n){"use strict";var o=n(3189),r={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=void 0===s||s,c=i.resize,u=void 0===c||c,l=(0,o.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,r)})),u&&l.addEventListener("resize",n.update,r),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),u&&l.removeEventListener("resize",n.update,r)}},data:{}}},5207:function(e,t,n){"use strict";var o=n(942),r=n(7677),i=n(12),s=n(9356),a=n(7826),c=n(6166),u=n(4531);t.Z={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var d=n.mainAxis,p=void 0===d||d,f=n.altAxis,m=void 0===f||f,h=n.fallbackPlacements,g=n.padding,v=n.boundary,w=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,_=void 0===b||b,E=n.allowedAutoPlacements,x=t.options.placement,k=(0,r.Z)(x),S=h||(k===x||!_?[(0,o.Z)(x)]:function(e){if((0,r.Z)(e)===c.d7)return[];var t=(0,o.Z)(e);return[(0,i.Z)(e),t,(0,i.Z)(t)]}(x)),Z=[x].concat(S).reduce((function(e,n){return e.concat((0,r.Z)(n)===c.d7?(0,a.Z)(t,{placement:n,boundary:v,rootBoundary:w,padding:g,flipVariations:_,allowedAutoPlacements:E}):n)}),[]),C=t.rects.reference,O=t.rects.popper,P=new Map,F=!0,M=Z[0],L=0;L<Z.length;L++){var R=Z[L],j=(0,r.Z)(R),N=(0,u.Z)(R)===c.BL,T=[c.we,c.I].indexOf(j)>=0,A=T?"width":"height",I=(0,s.Z)(t,{placement:R,boundary:v,rootBoundary:w,altBoundary:y,padding:g}),W=T?N?c.F2:c.t$:N?c.I:c.we;C[A]>O[A]&&(W=(0,o.Z)(W));var D=(0,o.Z)(W),z=[];if(p&&z.push(I[j]<=0),m&&z.push(I[W]<=0,I[D]<=0),z.every((function(e){return e}))){M=R,F=!1;break}P.set(R,z)}if(F)for(var G=function(e){var t=Z.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},B=_?3:1;B>0;B--){if("break"===G(B))break}t.placement!==M&&(t.modifiersData[l]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},2883:function(e,t,n){"use strict";var o=n(6166),r=n(9356);function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[o.we,o.F2,o.I,o.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,u=(0,r.Z)(t,{elementContext:"reference"}),l=(0,r.Z)(t,{altBoundary:!0}),d=i(u,o),p=i(l,a,c),f=s(d),m=s(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},3108:function(e,t,n){"use strict";var o=n(7677),r=n(6166);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,c=r.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var i=(0,o.Z)(e),s=[r.t$,r.we].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=a[0],u=a[1];return c=c||0,u=(u||0)*s,[r.t$,r.F2].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,a),e}),{}),u=c[t.placement],l=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=c}}},5435:function(e,t,n){"use strict";var o=n(6919);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},6998:function(e,t,n){"use strict";var o=n(6166),r=n(7677),i=n(1505),s=n(5754),a=n(964),c=n(6249),u=n(7936),l=n(9356),d=n(4531),p=n(3046),f=n(8072);t.Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,m=e.name,h=n.mainAxis,g=void 0===h||h,v=n.altAxis,w=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,_=n.altBoundary,E=n.padding,x=n.tether,k=void 0===x||x,S=n.tetherOffset,Z=void 0===S?0:S,C=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:E,altBoundary:_}),O=(0,r.Z)(t.placement),P=(0,d.Z)(t.placement),F=!P,M=(0,i.Z)(O),L=(0,s.Z)(M),R=t.modifiersData.popperOffsets,j=t.rects.reference,N=t.rects.popper,T="function"==typeof Z?Z(Object.assign({},t.rects,{placement:t.placement})):Z,A={x:0,y:0};if(R){if(g||w){var I="y"===M?o.we:o.t$,W="y"===M?o.I:o.F2,D="y"===M?"height":"width",z=R[M],G=R[M]+C[I],B=R[M]-C[W],U=k?-N[D]/2:0,$=P===o.BL?j[D]:N[D],H=P===o.BL?-N[D]:-j[D],V=t.elements.arrow,q=k&&V?(0,c.Z)(V):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.Z)(),K=Y[I],X=Y[W],J=(0,a.Z)(0,j[D],q[D]),Q=F?j[D]/2-U-J-K-T:$-J-K-T,ee=F?-j[D]/2+U+J+X+T:H+J+X+T,te=t.elements.arrow&&(0,u.Z)(t.elements.arrow),ne=te?"y"===M?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][M]:0,re=R[M]+Q-oe-ne,ie=R[M]+ee-oe;if(g){var se=(0,a.Z)(k?(0,f.VV)(G,re):G,z,k?(0,f.Fp)(B,ie):B);R[M]=se,A[M]=se-z}if(w){var ae="x"===M?o.we:o.t$,ce="x"===M?o.I:o.F2,ue=R[L],le=ue+C[ae],de=ue-C[ce],pe=(0,a.Z)(k?(0,f.VV)(le,re):le,ue,k?(0,f.Fp)(de,ie):de);R[L]=pe,A[L]=pe-ue}}t.modifiersData[m]=A}},requiresIfExists:["offset"]}},7295:function(e,t,n){"use strict";n.d(t,{fi:function(){return m}});var o=n(7566),r=n(3191),i=n(5435),s=n(917),a=n(1414),c=n(3108),u=n(5207),l=n(6998),d=n(335),p=n(2883),f=[r.Z,i.Z,s.Z,a.Z,c.Z,u.Z,l.Z,d.Z,p.Z],m=(0,o.kZ)({defaultModifiers:f})},7826:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(4531),r=n(6166),i=n(9356),s=n(7677);function a(e,t){void 0===t&&(t={});var n=t,a=n.placement,c=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?r.Ct:p,m=(0,o.Z)(a),h=m?d?r.bw:r.bw.filter((function(e){return(0,o.Z)(e)===m})):r.mv,g=h.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=h);var v=g.reduce((function(t,n){return t[n]=(0,i.Z)(e,{placement:n,boundary:c,rootBoundary:u,padding:l})[(0,s.Z)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}},6919:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7677),r=n(4531),i=n(1505),s=n(6166);function a(e){var t,n=e.reference,a=e.element,c=e.placement,u=c?(0,o.Z)(c):null,l=c?(0,r.Z)(c):null,d=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2;switch(u){case s.we:t={x:d,y:n.y-a.height};break;case s.I:t={x:d,y:n.y+n.height};break;case s.F2:t={x:n.x+n.width,y:p};break;case s.t$:t={x:n.x-a.width,y:p};break;default:t={x:n.x,y:n.y}}var f=u?(0,i.Z)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(l){case s.BL:t[f]=t[f]-(n[m]/2-a[m]/2);break;case s.ut:t[f]=t[f]+(n[m]/2-a[m]/2)}}return t}},4806:function(e,t,n){"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,{Z:function(){return o}})},9356:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(889),r=n(2021),i=n(2881),s=n(6919),a=n(7365),c=n(6166),u=n(8555),l=n(6713),d=n(315);function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,f=void 0===p?e.placement:p,m=n.boundary,h=void 0===m?c.zV:m,g=n.rootBoundary,v=void 0===g?c.Pj:g,w=n.elementContext,y=void 0===w?c.k5:w,b=n.altBoundary,_=void 0!==b&&b,E=n.padding,x=void 0===E?0:E,k=(0,l.Z)("number"!=typeof x?x:(0,d.Z)(x,c.mv)),S=y===c.k5?c.YP:c.k5,Z=e.rects.popper,C=e.elements[_?S:y],O=(0,o.Z)((0,u.kK)(C)?C:C.contextElement||(0,r.Z)(e.elements.popper),h,v),P=(0,i.Z)(e.elements.reference),F=(0,s.Z)({reference:P,element:Z,strategy:"absolute",placement:f}),M=(0,a.Z)(Object.assign({},Z,F)),L=y===c.k5?M:P,R={top:O.top-L.top+k.top,bottom:L.bottom-O.bottom+k.bottom,left:O.left-L.left+k.left,right:L.right-O.right+k.right},j=e.modifiersData.offset;if(y===c.k5&&j){var N=j[f];Object.keys(R).forEach((function(e){var t=[c.F2,c.I].indexOf(e)>=0?1:-1,n=[c.we,c.I].indexOf(e)>=0?"y":"x";R[e]+=N[n]*t}))}return R}},315:function(e,t,n){"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:function(){return o}})},5754:function(e,t,n){"use strict";function o(e){return"x"===e?"y":"x"}n.d(t,{Z:function(){return o}})},7677:function(e,t,n){"use strict";function o(e){return e.split("-")[0]}n.d(t,{Z:function(){return o}})},3046:function(e,t,n){"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:function(){return o}})},1505:function(e,t,n){"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:function(){return o}})},942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},12:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},4531:function(e,t,n){"use strict";function o(e){return e.split("-")[1]}n.d(t,{Z:function(){return o}})},8072:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},VV:function(){return r},NM:function(){return i}});var o=Math.max,r=Math.min,i=Math.round},3352:function(e,t,n){"use strict";function o(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,{Z:function(){return o}})},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3046);function r(e){return Object.assign({},(0,o.Z)(),e)}},421:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(6166);function r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function i(e){var t=r(e);return o.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},7365:function(e,t,n){"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.d(t,{Z:function(){return o}})},964:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8072);function r(e,t,n){return(0,o.Fp)(e,(0,o.VV)(t,n))}},7266:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(5854),r=n(730);function i(e){var t=(0,o.Z)(e);return function(e){return(0,r.Z)(t,e)}}},730:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function r(e,t){var n,r,i,s,a,c,u=[];for(n=0;n<e.length;n++){if(a=e[n],s=o[a]){for(r=s.length,i=Array(r);r--;)i[r]=u.pop();try{c=s.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;u.push(c)}return u[0]}},1184:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(7266);function r(e){var t=(0,o.Z)(e);return function(e){return+t({n:e})}}},5854:function(e,t,n){"use strict";var o,r,i,s;function a(e){for(var t,n,a,c,u=[],l=[];t=e.match(s);){for(n=t[0],(a=e.substr(0,t.index).trim())&&u.push(a);c=l.pop();){if(i[n]){if(i[n][0]===c){n=i[n][1]||n;break}}else if(r.indexOf(c)>=0||o[c]<o[n]){l.push(c);break}u.push(c)}i[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&u.push(e),u.concat(l.reverse())}n.d(t,{Z:function(){return a}}),o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},6668:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function r(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(o,(function(){var e,o,r,i,s;return e=arguments[3],o=arguments[5],"%"===(i=arguments[9])?"%":("*"===(r=arguments[7])&&(r=t[n-1],n++),void 0!==o?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(o)&&(s=t[0][o]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===i?s=parseFloat(s)||0:"d"===i&&(s=parseInt(s)||0),void 0!==r&&("f"===i?s=s.toFixed(r):"s"===i&&(s=s.substr(0,r))),null!=s?s:"")}))}},5869:function(e,t,n){"use strict";var o=n(9307);t.Z=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})}},8565:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{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"}));t.Z=i},2779:function(e,t){var n;
2
  /*!
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)o.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,o=encodeURIComponent,r=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,o){function r(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,r),o(n)},e.once("error",i)),e.once(t,r)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,o){var r,i,s,u;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(r=c(e))>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(o);return r.listener=n,o.wrapFn=r,r}function p(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=m(c,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,o,r,i,s;if(a(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var o=n(212),r=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=o.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,o=new Array(n+this.padLength);o[0]=128;for(var r=1;r<n;r++)o[r]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)o[r++]=0;o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=e>>>24&255,o[r++]=e>>>16&255,o[r++]=e>>>8&255,o[r++]=255&e}else for(o[r++]=255&e,o[r++]=e>>>8&255,o[r++]=e>>>16&255,o[r++]=e>>>24&255,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,i=8;i<this.padLength;i++)o[r++]=0;return o}},5079:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=o.rotl32,a=o.sum32,c=o.sum32_5,u=i.ft_1,l=r.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o.inherits(p,l),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=s(n[o-3]^n[o-8]^n[o-14]^n[o-16],1);var r=this.h[0],i=this.h[1],l=this.h[2],p=this.h[3],f=this.h[4];for(o=0;o<n.length;o++){var m=~~(o/20),h=c(s(r,5),u(m,i,l,p),f,n[o],d[m]);f=p,p=l,l=s(i,30),i=r,r=h}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],p),this.h[4]=a(this.h[4],f)},p.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},8032:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=n(9561),a=o.sum32,c=o.sum32_4,u=o.sum32_5,l=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,m=i.g0_256,h=i.g1_256,g=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}o.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=c(h(n[o-2]),n[o-7],m(n[o-15]),n[o-16]);var r=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),o=0;o<n.length;o++){var E=u(_,f(w),l(w,y,b),this.k[o],n[o]),x=a(p(r),d(r,i,g));_=b,b=y,y=w,w=a(v,E),v=g,g=i,i=r,r=a(E,x)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},713:function(e,t,n){"use strict";var o=n(212).rotr32;function r(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,o){return 0===e?r(t,n,o):1===e||3===e?s(t,n,o):2===e?i(t,n,o):void 0},t.ch32=r,t.maj32=i,t.p32=s,t.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},t.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},t.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},t.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},212:function(e,t,n){"use strict";var o=n(9561),r=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);s<128?n[o++]=s:s<2048?(n[o++]=s>>6|192,n[o++]=63&s|128):i(e,r)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),n[o++]=s>>18|240,n[o++]=s>>12&63|128,n[o++]=s>>6&63|128,n[o++]=63&s|128):(n[o++]=s>>12|224,n[o++]=s>>6&63|128,n[o++]=63&s|128)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",o=0;o<e.length;o++){var r=e[o];"little"===t&&(r=s(r)),n+=c(r.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,r){var i=n-t;o(i%4==0);for(var s=new Array(i/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===r?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),o=0,r=0;o<e.length;o++,r+=4){var i=e[o];"big"===t?(n[r]=i>>>24,n[r+1]=i>>>16&255,n[r+2]=i>>>8&255,n[r+3]=255&i):(n[r+3]=i>>>24,n[r+2]=i>>>16&255,n[r+1]=i>>>8&255,n[r]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,o){return e+t+n+o>>>0},t.sum32_5=function(e,t,n,o,r){return e+t+n+o+r>>>0},t.sum64=function(e,t,n,o){var r=e[t],i=o+e[t+1]>>>0,s=(i<o?1:0)+n+r;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,o){return(t+o>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,o){return t+o>>>0},t.sum64_4_hi=function(e,t,n,o,r,i,s,a){var c=0,u=t;return c+=(u=u+o>>>0)<t?1:0,c+=(u=u+i>>>0)<i?1:0,e+n+r+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,o,r,i,s,a){return t+o+i+a>>>0},t.sum64_5_hi=function(e,t,n,o,r,i,s,a,c,u){var l=0,d=t;return l+=(d=d+o>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+r+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,o,r,i,s,a,c,u){return t+o+i+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7839:function(e,t,n){var o=n(2699),r=n(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),o.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,r(i,o.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},3186:function(){},8005:function(){},5773:function(){},4373:function(){},7777:function(){},7710:function(){},2014:function(){},6372:function(){},4422:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,o=60*n,r=24*o,i=7*r,s=365.25*r;function a(e,t,n,o){var r=t>=1.5*n;return Math.round(e/n)+" "+o+(r?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;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)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return a(e,i,r,"day");if(i>=o)return a(e,i,o,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=o)return Math.round(e/o)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8650:function(e){var t,n=window.ProgressEvent,o=!!n;try{t=new n("loaded"),o="loaded"===t.type,t=null}catch(r){o=!1}e.exports=o?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,c,u,l;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(!i(e[c],s[c]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],s.get(c.value[0])))return!1;return!0}if(o&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(e[c]!==s[c])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(s,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],s[u[c]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var o=n(9196),r=n(7295),i=n(8435),s=n.n(i),a=n(855),c=[],u=function(e,t,n){void 0===n&&(n={});var i=o.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||c},l=o.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],p=l[1],f=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p({styles:(0,a.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,a.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=o.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=o.useRef();return(0,a.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,a.LI)((function(){if(null!=e&&null!=t){var o=(n.createPopper||r.fi)(e,t,m);return h.current=o,function(){o.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return r},LI:function(){return i}});var o=n(9196),r=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(1184),r={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},r)this.options[n]=void 0!==t&&n in t?t[n]:r[n]}i.prototype.getPluralForm=function(e,t){var n,r,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,o;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(o=t[n].trim()).indexOf("plural="))return o.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,o.Z)(r)),s=this.pluralForms[e]=i),s(t)},i.prototype.dcnpgettext=function(e,t,n,o,r){var i,s,a;return i=void 0===r?0:this.getPluralForm(e,r),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:o)}},3133:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)("");return(0,i.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>t(e.has_seen_seller_celebration_modal))).catch((()=>t(!1)))})),{hasSeenSellerCelebrationModal:e,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{t(e)}))}}}},5262:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)(""),n=(0,i.useCallback)((()=>{r()({path:"/wpcom/v2/site-intent"}).then((e=>t(e.site_intent))).catch((()=>t("")))}),[]);return(0,i.useEffect)((()=>{n()}),[n]),e}},7542:function(e,t,n){"use strict";var o=n(9307),r=n(9196),i=n(8552);t.Z=e=>{const[t,n]=(0,o.useState)({}),s=(0,r.useCallback)((async()=>{const t=await(0,i.ZP)({path:`/sites/${e}?http_envelope=1`,apiVersion:"1.1"});null!=t&&t.plan&&n(t.plan)}),[e]);return(0,o.useEffect)((()=>{s()}),[s]),t}},7869:function(e,t,n){"use strict";var o=n(9307),r=(n(3945),n(849)),i=n(4655),s=n(5609),a=n(9818),c=n(8817),u=n(6483),l=n(3867),d=n(9935),p=n(1258),f=n(1970),m=n(374),h=n(7203);function g(){var e;const[t]=(0,o.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:c,variant:d,isManuallyOpened:p,isNewPageLayoutModalOpen:g}=(0,a.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,a.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{c||w()}),[w,c]),!n||g?null:d===f.yn&&!p&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===f.Sz?(0,o.createElement)(r.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,o.createElement)(l.Z,null):(0,o.createElement)(h.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,o.createElement)(m.Z,null):null}(0,c.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g,null),(0,o.createElement)(d.Z,null),(0,o.createElement)(p.Z,null))})},1568:function(e,t,n){"use strict";var o=n(9818);n(462);const r=(0,o.subscribe)((()=>{var e,t;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),r()}));(0,o.subscribe)((()=>{var e,t;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0})),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(2694),c=n(5736),u=n(3634),l=n(3790);n(3186);const __=c.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[c,p]=(0,o.useState)(!0),f=()=>p(!1);return(0,o.createElement)(u.Z,{isOpen:c,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{isPrimary:!0,onClick:f},__("Start writing","full-site-editing")),(0,o.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,a.hasAction)(d)?(0,a.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:f,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:a,imageSrc:c,actionButtons:u,onRequestClose:l,onOpen:d}=e;const p=(0,o.useRef)(null);return(0,o.useEffect)((()=>{!p.current&&t&&(null==d||d()),p.current=t}),[p,t,d]),t?(0,o.createElement)(r.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,o.createElement)("img",{src:c,alt:i})),(0,o.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,o.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},a),(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=n(3634),u=n(5275);n(5773);const __=a.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),a=(0,o.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,p]=(0,o.useState)(!1),{fetchShouldShowFirstPostPublishedModal:f,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{f()}),[f]),(0,o.useEffect)((()=>{l&&!a.current&&n&&"post"===t&&(a.current=n,m(!1),window.setTimeout((()=>{p(!0)})))}),[t,l,n,m]),(0,o.createElement)(c.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,o.createElement)(i.Button,{isPrimary:!0,href:e},__("View Post","full-site-editing")),onRequestClose:()=>p(!1),onOpen:()=>(0,r.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1258:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=n(3133),u=n(5262),l=n(3634),d=n(4242);n(4373);const __=a.__;t.Z=()=>{const{addEntities:e}=(0,s.useDispatch)("core");(0,o.useEffect)((()=>{e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);const[t,n]=(0,o.useState)(!1),[a,p]=(0,o.useState)(!1),f=(0,s.useSelect)((e=>!!e("core/edit-site"))),m=(0,o.useRef)(!1),{isEditorSaving:h,hasPaymentsBlock:g,linkUrl:v}=(0,s.useSelect)((e=>{if(f){var t,n,o;const r=e("core").isSavingEntityRecord("root","site"),i=e("core/edit-site").getPage(),s=parseInt(null==i||null===(t=i.context)||void 0===t?void 0:t.postId),a=e("core").isSavingEntityRecord("postType","page",s),c=e("core").getEntityRecord("postType","page",s);return{isEditorSaving:r||a,hasPaymentsBlock:(null==c||null===(n=c.content)||void 0===n||null===(o=n.raw)||void 0===o?void 0:o.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e"))??!1,linkUrl:null==c?void 0:c.link}}const r=e("core/editor").getCurrentPost();return{isEditorSaving:e("core").isSavingEntityRecord("postType",null==r?void 0:r.type,null==r?void 0:r.id),hasPaymentsBlock:e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,linkUrl:r.link}})),w=(0,u.Z)(),{hasSeenSellerCelebrationModal:y,updateHasSeenSellerCelebrationModal:b}=(0,c.Z)();(0,o.useEffect)((()=>{h||!m.current||a||"sell"!==w||!g||y||(n(!0),p(!0),b(!0)),m.current=h}),[h,a,w,g,y,b]);const _=()=>n(!1);return(0,o.createElement)(l.Z,{isOpen:t,className:"wpcom-site-editor-seller-celebration-modal",title:__("You've added your first product!","full-site-editing"),description:__("Preview your product on your site before launching and sharing with others.","full-site-editing"),imageSrc:d,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{onClick:_},__("Continue editing","full-site-editing")),(0,o.createElement)(i.Button,{isPrimary:!0,href:v,target:"__blank",rel:"noopener noreferrer"},__("View your product","full-site-editing"))),onRequestClose:_,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_seller_celebration_modal_show")})}},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return a},yn:function(){return c},z2:function(){return p}});var o=n(6989),r=n.n(o),i=n(9818),s=n(3418);n(3288);const a="tour",c="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?a:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return a;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t,onlyLocal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n||r()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}},setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?a:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function p(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6115),s=n(5609),a=n(9818),c=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(7777);const __=c.__;function f(e){let{pageNumber:t,isLastPage:n,alignBottom:o=!1,heading:a,description:c,imgSrc:u}=e;return(0,r.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,r.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,r.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,r.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},a),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__description"},c)),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,r.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(o?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),{setShowWelcomeGuide:c}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{var o;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:p,alignBottom:!0}];return(0,r.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),c(!1,{openedManually:!1})}},m.map(((e,t)=>(0,r.createElement)(f,(0,o.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},7203:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(849),s=n(5585),a=n(8038),c=n(9818),u=n(5262),l=n(7542),d=n(6505);n(7710);function p(){var e;const t=(0,l.Z)(window._currentSiteId),n=(0,u.Z)(),s=(0,i.bU)(),{setShowWelcomeGuide:p}=(0,c.useDispatch)("automattic/wpcom-welcome-guide"),f=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,m=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),h=(0,d.Z)(s,m());if("sell"!==n||!t||"ecommerce-bundle"===t.product_slug){const e=h.findIndex((e=>"payment-block"===e.slug));h.splice(e,1)}const g={steps:h,closeHandler:(e,t,n)=>{(0,r.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:f,slide_number:t+1,action:n}),p(!1,{openedManually:!1})},options:{tourRating:{enabled:!0,useTourRating:()=>(0,c.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),onTourRate:e=>{(0,c.dispatch)("automattic/wpcom-welcome-guide").setTourRating(e),(0,r.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:"thumbs-up"===e,is_gutenboarding:!1})}},callbacks:{onMinimize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:f,slide_number:e+1})},onMaximize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:f,slide_number:e+1})},onStepViewOnce:e=>{const t=h.length-1,{heading:n}=h[e].meta;(0,r.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:e+1,is_last_slide:e===t,slide_heading:n,is_gutenboarding:f})}},effects:{spotlight:m()?{styles:{minWidth:"50px",minHeight:"50px",borderRadius:"2px"}}:void 0,arrowIndicator:!1},popperModifiers:[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header");if(!e)return;const t=e.getBoundingClientRect();return[0,t.height+t.y-(n.height+n.y)+16]}return[0,0]}}})),[])],classNames:"wpcom-editor-welcome-tour"}};return(0,o.createElement)(a.Z,{config:g})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),a=(0,i.bU)();return(0,s.Z)([(0,d.Z)(a,!1)[0]]),(0,o.useEffect)((()=>{var o;(e||t)&&(0,r.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,o.createElement)(p,null)}},6505:function(e,t,n){"use strict";var o=n(9307),r=n(7498),i=n(9321),s=n(5609),a=n(5736);const __=a.__;function c(e){const t="https://s0.wp.com/i/editor-welcome-tour";return{addBlock:{desktop:{src:`${t}/slide-add-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-add-block_mobile.gif`,type:"image/gif"}},allBlocks:{desktop:{src:`${t}/slide-all-blocks.gif`,type:"image/gif"}},finish:{desktop:{src:`${t}/slide-finish.png`,type:"image/gif"}},makeBold:{desktop:{src:`${t}/slide-make-bold.gif`,type:"image/gif"}},moreOptions:{desktop:{src:`${t}/slide-more-options.gif`,type:"image/gif"},mobile:{src:`${t}/slide-more-options_mobile.gif`,type:"image/gif"}},moveBlock:{desktop:{src:`${t}/slide-move-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-move-block_mobile.gif`,type:"image/gif"}},findYourWay:{desktop:{src:`${t}/slide-find-your-way.gif`,type:"image/gif"}},undo:{desktop:{src:`${t}/slide-undo.gif`,type:"image/gif"}},welcome:{desktop:{src:`${t}/slide-welcome.png`,type:"image/png"},mobile:{src:`${t}/slide-welcome_mobile.jpg`,type:"image/jpeg"}}}[e]}t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[{slug:"welcome",meta:{heading:__("Welcome to WordPress!","full-site-editing"),descriptions:{desktop:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"everything-is-a-block",meta:{heading:__("Everything is a block","full-site-editing"),descriptions:{desktop:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),mobile:null},imgSrc:c("allBlocks")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"add-block",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle",desktop:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle"}},meta:{heading:__("Adding a new block","full-site-editing"),descriptions:{desktop:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),mobile:__("Tap + to open the inserter. Then tap the block you want to add.","full-site-editing")},imgSrc:c("addBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"edit-block",meta:{heading:__("Click a block to change it","full-site-editing"),descriptions:{desktop:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),mobile:null},imgSrc:c("makeBold")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"settings",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)",desktop:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)"}},meta:{heading:__("More Options","full-site-editing"),descriptions:{desktop:__("Click the settings icon to see even more options.","full-site-editing"),mobile:__("Tap the settings icon to see even more options.","full-site-editing")},imgSrc:c("moreOptions")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},...(0,i.tq)()?[]:[{slug:"find-your-way",meta:{heading:__("Find your way","full-site-editing"),descriptions:{desktop:__("Use List View to see all the blocks you've added. Click and drag any block to move it around.","full-site-editing"),mobile:null},imgSrc:c("findYourWay")},options:{classNames:{desktop:["is-with-extra-padding","wpcom-editor-welcome-tour__step"],mobile:"wpcom-editor-welcome-tour__step"}}}],...(0,i.tq)()?[]:[{slug:"undo",...t&&{referenceElements:{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"}},meta:{heading:__("Undo any mistake","full-site-editing"),descriptions:{desktop:__("Click the Undo button if you've made a mistake.","full-site-editing"),mobile:null},imgSrc:c("undo")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}],{slug:"drag-drop",meta:{heading:__("Drag & drop","full-site-editing"),descriptions:{desktop:__("To move blocks around, click and drag the handle.","full-site-editing"),mobile:__("To move blocks around, tap the up and down arrows.","full-site-editing")},imgSrc:c("moveBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"payment-block",meta:{heading:__("The Payments block","full-site-editing"),descriptions:{desktop:(0,o.createElement)(o.Fragment,null,__("The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website","full-site-editing"),(0,o.createElement)("br",null),(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video",e),target:"_blank",rel:"noopener noreferrer"},__("Learn more","full-site-editing"))),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"congratulations",meta:{heading:__("Congratulations!","full-site-editing"),descriptions:{desktop:(0,o.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),mobile:null},imgSrc:c("finish")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return o.jN}});n(1694),n(6209),n(9377);var o=n(9792);n(3722)},9377:function(e,t,n){"use strict";let o=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){o=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var o=n(2699),r=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let c,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,r.ve)("//stats.wp.com/w.js?63"));const d=new o.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(a,e)){if(c){const e=c(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var o=n(8049),r=n.n(o);t.Z=r()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3668:function(e,t,n){"use strict";var o=n(9307),r=n(5736),i=n(2779),s=n.n(i),a=n(2819);n(2014);const __=r.__;t.Z=e=>{let{activePageIndex:t,numberOfPages:n,onChange:i,classNames:c,children:u}=e;const l=s()("pagination-control",c);return(0,o.createElement)("ul",{className:l,"aria-label":__("Pagination control")},(0,a.times)(n,(e=>(0,o.createElement)("li",{key:`${n}-${e}`,"aria-current":e===t?"page":void 0},(0,o.createElement)("button",{className:s()("pagination-control__page",{"is-current":e===t}),disabled:e===t,"aria-label":(0,r.sprintf)(__("Page %1$d of %2$d"),e+1,n),onClick:()=>i(e)})))),u&&(0,o.createElement)("li",{className:"pagination-control__last-item"},u))}},4724:function(e,t,n){"use strict";var o=n(914);t.Z=new o.Z},914:function(e,t,n){"use strict";var o=n(2699),r=n(2594),i=n(6668),s=n(8049),a=n.n(s),c=n(5079),u=n.n(c),l=n(7839),d=n.n(l),p=n(9830),f=n(3);const m=a()("i18n-calypso"),h="number_format_decimals",g="number_format_thousands_sep",v="messages",w=[function(e){return e}],y={};function b(){S.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function _(e){return Array.prototype.slice.call(e)}function E(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",_(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",_(e));let n={};for(let o=0;o<e.length;o++)"object"==typeof e[o]&&(n=e[o]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(v,t.context,t.original,t.plural,t.count)}function k(e,t){for(let n=w.length-1;n>=0;n--){const o=w[n](Object.assign({},t)),r=o.context?o.context+""+o.original:o.original;if(e.state.locale[r])return x(e.state.tannin,o)}return null}function S(){if(!(this instanceof S))return new S;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new o.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}S.throwErrors=!1,S.prototype.on=function(){this.stateObserver.on(...arguments)},S.prototype.off=function(){this.stateObserver.off(...arguments)},S.prototype.emit=function(){this.stateObserver.emit(...arguments)},S.prototype.numberFormat=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="number"==typeof t?t:t.decimals||0,o=t.decPoint||this.state.numberFormatSettings.decimal_point||".",r=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,f.Z)(e,n,o,r)},S.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},S.prototype.setLocale=function(e){var t,n,o;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==y[n+e])return y[n+e];const o=u()().update(e).digest("hex");return y[n+e]=t?o.substr(0,t):o},o=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)w.push(o(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));w.push(o(e))}else{const n=Number(t.substr(5,e)),r=Number(t.substr(6+e));for(let e=n;e<=r;e++)w.push(o(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(o=n.momentjs_locale)||void 0===o?void 0:o.textDirection),this.state.tannin=new p.Z({[v]:this.state.locale}),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,E([h])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,E([g])),this.state.numberFormatSettings.decimal_point===h&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===g&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},S.prototype.getLocale=function(){return this.state.locale},S.prototype.getLocaleSlug=function(){return this.state.localeSlug},S.prototype.getLocaleVariant=function(){return this.state.localeVariant},S.prototype.isRtl=function(){return"rtl"===this.state.textDirection},S.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},S.prototype.hasTranslation=function(){return!!k(this,E(arguments))},S.prototype.translate=function(){const e=E(arguments);let t=k(this,e);if(t||(t=x(this.state.tannin,e)),e.args){const o=Array.isArray(e.args)?e.args.slice(0):[e.args];o.unshift(t);try{t=(0,i.Z)(...o)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",o)}}return e.components&&(t=(0,r.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},S.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},S.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},S.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=S},1481:function(e,t,n){"use strict";n.d(t,{Yj:function(){return r}});var o=n(4724);o.Z.numberFormat.bind(o.Z),o.Z.translate.bind(o.Z),o.Z.configure.bind(o.Z),o.Z.setLocale.bind(o.Z),o.Z.getLocale.bind(o.Z);const r=o.Z.getLocaleSlug.bind(o.Z);o.Z.getLocaleVariant.bind(o.Z),o.Z.isRtl.bind(o.Z),o.Z.addTranslations.bind(o.Z),o.Z.reRenderTranslations.bind(o.Z),o.Z.registerComponentUpdateHook.bind(o.Z),o.Z.registerTranslateHook.bind(o.Z),o.Z.state,o.Z.stateObserver,o.Z.on.bind(o.Z),o.Z.off.bind(o.Z),o.Z.emit.bind(o.Z)},3:function(e,t,n){"use strict";function o(e,t,n,o){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let c="";return c=(i?
7
+ /*
8
+ * Exposes number format capability
9
+ *
10
+ * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
11
+ * @license See CREDITS.md
12
+ * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
13
+ */
14
+ function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(r,i):""+Math.round(r)).split("."),c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}n.d(t,{Z:function(){return o}})},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var o=n(7896),r=n(9307),i=n(4333),s=n(5736),a=n(9196);const c=(0,a.createContext)(null),u=e=>{let{children:t,localeSlug:n}=e;return(0,r.createElement)(c.Provider,{value:n},t)};function l(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,a.useContext)(c),t=!!e,[n,o]=(0,a.useState)(l());return(0,a.useEffect)((()=>{if(!t)return o(l()),s.subscribe((()=>{o(l())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,r.createElement)(e,(0,o.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return o},GG:function(){return r},iT:function(){return i},xn:function(){return s},Xb:function(){return a},hI:function(){return c},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const o="en",r=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return v}});var o=n(7896),r=n(9307),i=n(4333),s=n(1481),a=n(9196),c=n(849),u=n(4655);const l="http://__domain__.invalid";function d(){return(null===s.Yj||void 0===s.Yj?void 0:(0,s.Yj)())??"en"}const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,o)=>(t.includes(o)&&"en"!==o&&n.pathname.substr(0,o.length+2)!=="/"+o+"/"&&(n.host=`${u.Xb[o]||o}.${e}`),n)},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(o,r)=>(o.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(o.pathname)&&(t=[]),o.pathname=e+o.pathname,t.includes(r)&&"en"!==r&&(o.pathname=r+o.pathname),o)},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(o,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(o.pathname)?o:e.includes(r)&&"en"!==r?("prefix"===n?o.pathname=r+o.pathname:"suffix"===n&&(o.pathname.endsWith("/")?o.pathname+=r+"/":o.pathname+="/"+r),o):o},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>m(e,t,"prefix")(n,o)},g={"wordpress.com/support/":h(u.hI),"wordpress.com/forums/":h(u.mL),"wordpress.com/blog/":h(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":h(u.vS),"wordpress.com/wp-admin/":p("wordpress.com",u.vS),"wordpress.com/wp-login.php":p("wordpress.com",u.vS),"jetpack.com":p("jetpack.com",u._r),"en.support.wordpress.com":f("/support",u.hI),"en.blog.wordpress.com":f("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":f("/forums",u.mL),"automattic.com/privacy/":h(u.iT),"automattic.com/cookies/":h(u.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),h(u.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:h(u.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:h(u.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:h(u.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>m(e,t,"suffix")(n,o)}(u.vS)(e,t)};function v(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d(),o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{t=new URL(String(e),l)}catch(s){return e}if(t.origin===l)return e;t.protocol="https:",t.hostname="",t.pathname.endsWith(".php")||(t.pathname=(t.pathname+"/").replace(/\/+$/,"/"));const r=t.pathname.substr(0,1+t.pathname.indexOf("/",1));if("en.wordpress.com"===t.host&&(t.host="wordpress.com"),"/"+n+"/"===r)return e;const i=[t.host,t.host+r,t.host+t.pathname];for(let a=i.length-1;a>=0;a--)if(i[a]in g)return g[i[a]](t,n,o).href;return e}function w(){const e=(0,c.bU)();return(0,a.useCallback)(((t,n,o)=>v(t,n||e,o)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=w();return(0,r.createElement)(e,(0,o.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},2594:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(9196),r=n(1310);function i(e,t){let n,r,s=[];for(let o=0;o<e.length;o++){const i=e[o];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],r=o;break}s.push(t[i.value])}else s.push(i.value)}if(n){const a=function(e,t){const n=t[e];let o=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===n.value){if("componentOpen"===e.type){o++;continue}if("componentClose"===e.type){if(0===o)return r;o--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),c=i(e.slice(r+1,a),t),u=(0,o.cloneElement)(n,{},c);if(s.push(u),a<e.length-1){const n=i(e.slice(a+1),t);s=s.concat(n)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,o.createElement)(o.Fragment,null,...s)}function s(e){const{mixedString:t,components:n,throwErrors:o}=e;if(!n)return t;if("object"!=typeof n){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const s=(0,r.Z)(t);try{return i(s,n)}catch(a){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${a.message}\``);return t}}},1310:function(e,t,n){"use strict";function o(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function r(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}n.d(t,{Z:function(){return r}})},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return d}});var o=n(8049);const r=n.n(o)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function a(e){return s().has(e)}function c(e,t){const n=s();a(e)?(r(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(r(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),o=n.get(e);if(o){r(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),o.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");r(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");r(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return a},k:function(){return c}});var o=n(8049),r=n.n(o),i=n(3340);const s=r()("lib/load-script/dom-operations");function a(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return a}});var o=n(8049),r=n.n(o),i=n(3340),s=n(5606);r()("package/load-script");function a(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:a,onPreviousStepProgression:c,tourContainerRef:u,isMinimized:l}=e;return(0,r.Z)(u)?l?(0,o.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,o.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:a,onArrowLeft:c}),(0,i.Z)(u),null}),null):null}},9549:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var o=n(9307);const r=(0,o.createContext)({}),i=()=>(0,o.useContext)(r);t.Z=e=>{let{config:t,children:n}=e;return(0,o.createElement)(r.Provider,{value:{config:t}},n)}},4065:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6951),s=n(2779),a=n.n(s),c=n(6194),u=n(9207),l=n(2036),d=n(8626),p=n(6165),f=n(7858),m=n(8074),h=n(301);const g=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,v,w,y,b,_,E,x,k,S,Z,C,O,P,F,M,L,R,j,N,T,A;let{config:I}=e;const[W,D]=(0,r.useState)(0),[z,G]=(0,r.useState)(null),[B,U]=(0,r.useState)(!1),[$,H]=(0,r.useState)(null),[V,q]=(0,r.useState)(!1),Y=(0,r.useRef)(null),K=(0,i._z)(),X=I.steps.length-1,J=(null===(t=I.steps[W].referenceElements)||void 0===t?void 0:t[K?"mobile":"desktop"])||null,Q=J?document.querySelector(J):null,ee=(0,r.useCallback)((()=>{var e,t;return!1!==(null===(e=I.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!Q||B||!V)}),[null===(n=I.options)||void 0===n||null===(s=n.effects)||void 0===s?void 0:s.arrowIndicator,B,Q,V]),te=(0,r.useCallback)((()=>{var e,t;return!(null===(e=I.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.spotlight)&&!B}),[null===(v=I.options)||void 0===v||null===(w=v.effects)||void 0===w?void 0:w.spotlight,B]),ne=(0,r.useCallback)((()=>{var e,t;return!(te()||null===(e=I.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!B}),[null===(y=I.options)||void 0===y||null===(b=y.effects)||void 0===b?void 0:b.overlay,B,te]),oe=(0,r.useCallback)((e=>()=>{I.closeHandler(I.steps,W,e)}),[I,W]),re=(0,r.useCallback)((()=>{var e,t;X>W&&D(W+1),g(W,null===(e=I.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(_=I.options)||void 0===_||null===(E=_.callbacks)||void 0===E?void 0:E.onNextStep,W,X]),ie=(0,r.useCallback)((()=>{var e,t;W&&D(W-1),g(W,null===(e=I.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(x=I.options)||void 0===x||null===(k=x.callbacks)||void 0===k?void 0:k.onPreviousStep,W]),se=(0,r.useCallback)((e=>{var t,n;D(e),g(W,null===(t=I.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(S=I.options)||void 0===S||null===(Z=S.callbacks)||void 0===Z?void 0:Z.onGoToStep,W]),ae=(0,r.useCallback)((()=>{var e,t;U(!0),g(W,null===(e=I.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(C=I.options)||void 0===C||null===(O=C.callbacks)||void 0===O?void 0:O.onMinimize,W]),ce=(0,r.useCallback)((()=>{var e,t;U(!1),g(W,null===(e=I.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(P=I.options)||void 0===P||null===(F=P.callbacks)||void 0===F?void 0:F.onMaximize,W]),{styles:ue,attributes:le,update:de}=(0,c.D)(Q,$,{strategy:"fixed",placement:"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,ee()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},...(null===(M=I.options)||void 0===M?void 0:M.popperModifiers)||[]]}),pe=!B&&Q&&V?{style:null==ue?void 0:ue.popper,...null==le?void 0:le.popper}:null,fe=!B&&Q&&V?{style:null==ue?void 0:ue.arrow,...null==le?void 0:le.arrow}:null;(0,r.useEffect)((()=>{setTimeout((()=>null==z?void 0:z.focus()))}),[z]),(0,r.useEffect)((()=>{Q?(q(!1),de&&de().then((()=>q(!0))).catch((()=>q(!0)))):q(!0)}),[de,Q]);const me=a()("tour-kit-frame",K?"is-mobile":"is-desktop",{"is-visible":V},(0,l.s)(null===(L=I.options)||void 0===L?void 0:L.classNames));return(0,u.Z)(W,null===(R=I.options)||void 0===R||null===(j=R.callbacks)||void 0===j?void 0:j.onStepViewOnce),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.Z,{onMinimize:ae,onDismiss:oe,onNextStepProgression:re,onPreviousStepProgression:ie,tourContainerRef:Y,isMinimized:B}),(0,r.createElement)("div",{className:me,ref:Y},ne()&&(0,r.createElement)(f.Z,{visible:!0}),te()&&(0,r.createElement)(m.Z,{referenceElement:Q,styles:null===(N=I.options)||void 0===N||null===(T=N.effects)||void 0===T||null===(A=T.spotlight)||void 0===A?void 0:A.styles}),(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__container",ref:H},pe),ee()&&(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},fe)),B?(0,r.createElement)(p.Z,{config:I,steps:I.steps,currentStepIndex:W,onMaximize:ce,onDismiss:oe}):(0,r.createElement)(h.Z,{config:I,steps:I.steps,currentStepIndex:W,onMinimize:ae,onDismiss:oe,onNextStep:re,onPreviousStep:ie,onGoToStep:se,setInitialFocusedElement:G}))))}},6165:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{config:t,steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}=e;return(0,o.createElement)("div",{className:"tour-kit-minimized"},(0,o.createElement)(t.renderers.tourMinimized,{steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}))}},7858:function(e,t,n){"use strict";var o=n(9307),r=n(2779),i=n.n(r);t.Z=e=>{let{visible:t}=e;return(0,o.createElement)("div",{className:i()("tour-kit-overlay",{"is-visible":t})})}},8074:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(2779),s=n.n(i),a=n(6194),c=n(7858);t.Z=e=>{let{referenceElement:t,styles:n}=e;const[i,u]=(0,r.useState)(null),l=null==t?void 0:t.getBoundingClientRect(),d=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:o}=e;return"bottom"===t?[0,-(n.height+(o.height-n.height)/2)]:[0,0]}}})),[])],{styles:p,attributes:f}=(0,a.D)(t,i,{strategy:"fixed",placement:"bottom",modifiers:d}),m=l?{width:`${l.width}px`,height:`${l.height}px`}:null,h=t?{style:{...m&&m,...null==p?void 0:p.popper,...n&&n},...null==f?void 0:f.popper}:null;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.Z,{visible:!h}),(0,r.createElement)("div",(0,o.Z)({className:s()("tour-kit-spotlight",{"is-visible":!!h}),ref:u},h)))}},301:function(e,t,n){"use strict";var o=n(9307),r=n(6951),i=n(2779),s=n.n(i),a=n(2036);t.Z=e=>{var t,n;let{config:i,steps:c,currentStepIndex:u,onMinimize:l,onDismiss:d,onNextStep:p,onPreviousStep:f,setInitialFocusedElement:m,onGoToStep:h}=e;const g=(0,r._z)(),v=s()("tour-kit-step",`is-step-${u}`,(0,a.s)(null===(t=i.steps[u].options)||void 0===t||null===(n=t.classNames)||void 0===n?void 0:n[g?"mobile":"desktop"]));return(0,o.createElement)("div",{className:v},(0,o.createElement)(i.renderers.tourStep,{steps:c,currentStepIndex:u,onDismiss:d,onNextStep:p,onPreviousStep:f,onMinimize:l,setInitialFocusedElement:m,onGoToStep:h}))}},2313:function(e,t,n){"use strict";var o=n(9307),r=n(1415),i=n(9549),s=n(4065);n(6372);t.Z=e=>{let{config:t,__temp__className:n}=e;const a=(0,o.useRef)(document.createElement("div")).current;return(0,o.useEffect)((()=>{const e=["tour-kit",...n?[n]:[]];return a.classList.add(...e),document.body.appendChild(a),()=>{document.body.removeChild(a)}}),[n,a]),(0,o.createElement)(r.Z,null,(0,o.createElement)(i.Z,{config:t},(0,o.createElement)("div",null,(0,o.createPortal)((0,o.createElement)(s.Z,{config:t}),a))))}},1415:function(e,t,n){"use strict";var o=n(6666),r=n(9307),i=n(9196),s=n.n(i);class a extends s().Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?(0,r.createElement)("h1",null,"Something went wrong."):this.props.children}}t.Z=a},7474:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{const[t,n]=(0,o.useState)(!1),r=(0,o.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,o.useCallback)((t=>{var o;null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,o.useCallback)((t=>{var o;"Tab"===t.key&&(null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1))}),[e]);return(0,o.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,r,s,i]),t}},5386:function(e,t,n){"use strict";var o=n(5904),r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[i,s]=(0,r.useState)(),a=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==i||i.focus(),n=!0):document.activeElement===i&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,i]);(0,r.useEffect)((()=>{const t=o.focus.focusable.find(e.current);return t&&t.length&&(n(t[0]),s(t[t.length-1])),document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}),[e,a])}},9946:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:r}=e;const i=(0,o.useCallback)((e=>{let o=!1;switch(e.key){case"Escape":t&&(t(),o=!0);break;case"ArrowRight":n&&(n(),o=!0);break;case"ArrowLeft":r&&(r(),o=!0)}o&&(e.preventDefault(),e.stopPropagation())}),[t,n,r]);(0,o.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},9207:function(e,t,n){"use strict";var o=n(9307);t.Z=(e,t)=>{const[n,r]=(0,o.useState)([]);(0,o.useEffect)((()=>{n.includes(e)||(r((t=>[...t,e])),null==t||t(e))}),[e,t,n])}},2036:function(e,t,n){"use strict";function o(e){return null!=e&&e.length?e.toString().split(","):null}n.d(t,{s:function(){return o}})},2639:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(5869),a=n(8565),c=n(9045);const __=i.__;t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:u,currentStepIndex:l}=e;const d=l+1,p=t.length-1+1;return(0,o.createElement)(r.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},(0,o.createElement)(r.Button,{onClick:n,"aria-label":__("Resume Tour")},(0,o.createElement)(r.Flex,{gap:13},(0,o.createElement)("p",null,(0,o.createInterpolateElement)((0,i.sprintf)(__("Resume tour <span>(%1$d/%2$d)</span>"),d,p),{span:(0,o.createElement)("span",{className:"wpcom-tour-kit-minimized__tour-index"})})),(0,o.createElement)(s.Z,{icon:c.Z,size:24}))),(0,o.createElement)(r.Button,{onClick:u("close-btn-minimized"),"aria-label":__("Close Tour")},(0,o.createElement)(s.Z,{icon:a.Z,size:24})))}},8428:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(2779),a=n.n(s),c=n(9549),u=n(658),l=n(5168);const __=i.__;t.Z=()=>{var e,t,n,i,s;const[d,p]=(0,o.useState)(),f=(0,c.S)().config,m=(null===(e=f.options)||void 0===e||null===(t=e.tourRating)||void 0===t||null===(n=t.useTourRating)||void 0===n?void 0:n.call(t))??d;let h=!1;if(null===(i=f.options)||void 0===i||null===(s=i.tourRating)||void 0===s||!s.enabled)return null;h||void 0===d||(h=!0);const g=e=>{if(h)return;const t=e?"thumbs-up":"thumbs-down";var n,o,r;t!==m&&(h=!0,p(t),null===(n=f.options)||void 0===n||null===(o=n.tourRating)||void 0===o||null===(r=o.onTourRate)||void 0===r||r.call(o,t))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"wpcom-tour-kit-rating__end-text"},__("Did you find this guide helpful?")),(0,o.createElement)("div",null,(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs up"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-up"===m}),disabled:h,icon:l.Z,onClick:()=>g(!0),iconSize:24}),(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs down"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-down"===m}),disabled:h,icon:u.Z,onClick:()=>g(!1),iconSize:24})))}},6827:function(e,t,n){"use strict";var o=n(9307),r=n(3668),i=n(5609),s=n(5736);const __=s.__;t.Z=e=>{let{currentStepIndex:t,onDismiss:n,onGoToStep:s,onNextStep:a,onPreviousStep:c,setInitialFocusedElement:u,steps:l}=e;const d=0===t,p=l.length-1;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.Z,{activePageIndex:t,numberOfPages:p+1,onChange:s},d?(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:a,ref:u},__("Try it out!"))):(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:c},__("Back")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:a,ref:u},__("Next")))))}},7208:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(8565),a=n(6920);const __=i.__;t.Z=e=>{let{onMinimize:t,onDismiss:n}=e;return(0,o.createElement)("div",{className:"wpcom-tour-kit-step-card-overlay-controls"},(0,o.createElement)(r.Flex,null,(0,o.createElement)(r.Button,{label:__("Minimize Tour"),isPrimary:!0,className:"wpcom-tour-kit-step-card-overlay-controls__minimize-icon",icon:a.Z,iconSize:24,onClick:t}),(0,o.createElement)(r.Button,{label:__("Close Tour"),isPrimary:!0,icon:s.Z,iconSize:24,onClick:n("close-btn")})))}},809:function(e,t,n){"use strict";var o=n(9307),r=n(9321),i=n(5609),s=n(5736),a=n(8428),c=n(6827),u=n(7208);const __=s.__;t.Z=e=>{var t;let{steps:n,currentStepIndex:s,onMinimize:l,onDismiss:d,onGoToStep:p,onNextStep:f,onPreviousStep:m,setInitialFocusedElement:h}=e;const g=n.length-1,{descriptions:v,heading:w,imgSrc:y}=n[s].meta,b=s===g,_=v[(0,r.tq)()?"mobile":"desktop"]??v.desktop,E=(0,r.O9)(r.Gh);return(0,o.createElement)(i.Card,{className:"wpcom-tour-kit-step-card",isElevated:!0},(0,o.createElement)(u.Z,{onDismiss:d,onMinimize:l}),y&&(0,o.createElement)(i.CardMedia,{className:"wpcom-tour-kit-step-card__media"},(0,o.createElement)("picture",null,y.mobile&&(0,o.createElement)("source",{srcSet:y.mobile.src,type:y.mobile.type,media:null==E?void 0:E.media}),(0,o.createElement)("img",{alt:__("Tour Media"),src:null===(t=y.desktop)||void 0===t?void 0:t.src}))),(0,o.createElement)(i.CardBody,null,(0,o.createElement)("h2",{className:"wpcom-tour-kit-step-card__heading"},w),(0,o.createElement)("p",{className:"wpcom-tour-kit-step-card__description"},_,b?(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card__description",isTertiary:!0,onClick:()=>p(0),ref:h},__("Restart tour")):null)),(0,o.createElement)(i.CardFooter,null,b?(0,o.createElement)(a.Z,null):(0,o.createElement)(c.Z,{currentStepIndex:s,onDismiss:d,onGoToStep:p,onNextStep:f,onPreviousStep:m,setInitialFocusedElement:h,steps:n})))}},825:function(e,t,n){"use strict";var o=n(9307),r=n(809);t.Z=e=>{let{steps:t,currentStepIndex:n,onDismiss:i,onNextStep:s,onPreviousStep:a,onMinimize:c,setInitialFocusedElement:u,onGoToStep:l}=e;return(0,o.createElement)(r.Z,{steps:t,currentStepIndex:n,onDismiss:i,onMinimize:c,onGoToStep:l,onNextStep:s,onPreviousStep:a,setInitialFocusedElement:u})}},8038:function(e,t,n){"use strict";var o=n(9307),r=n(2313),i=n(5585),s=n(2639),a=n(825);n(4422);t.Z=e=>{let{config:t}=e;return(0,i.Z)(t.steps),(0,o.createElement)(r.Z,{__temp__className:"wpcom-tour-kit",config:{...t,renderers:{tourStep:a.Z,tourMinimized:s.Z}}})}},5585:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9307);function r(e){(0,o.useEffect)((()=>{e.forEach((e=>{var t,n;(null===(t=e.meta.imgSrc)||void 0===t?void 0:t.mobile)&&((new window.Image).src=e.meta.imgSrc.mobile.src),(null===(n=e.meta.imgSrc)||void 0===n?void 0:n.desktop)&&((new window.Image).src=e.meta.imgSrc.desktop.src)}))}),[e])}},9045:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z"}));t.Z=i},6920:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=i},658:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=i},5168:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=i},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var o=n(7896),r=n(9307),i=n(9321),s=n(4333),a=n(9196);function c(e){const[t,n]=(0,a.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,a.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return c(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.Gh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.oh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return r},oh:function(){return i},O9:function(){return d},kV:function(){return p},Sp:function(){return f},tq:function(){return m}});const o=769,r="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,a=()=>null;function c(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?c({matches:o>t&&o<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?c({matches:o>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?c({matches:o<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function p(e){const t=d(e);return t?t.matches:void 0}function f(e,t){if(!t)return a;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return a}function m(){return p(r)}},8552:function(e,t,n){"use strict";var o=n(8049),r=n.n(o),i=n(8650),s=n.n(i),a=n(8767),c=n(2884),u=n.n(c);const l=r()("wpcom-proxy-request"),d="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host,f=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),m=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let h,g=null,v=!1;const w={},y=!!window.ProgressEvent&&!!window.FormData;l('using "origin": %o',p);const b=(e,t)=>{const n=Object.assign({},e);l("request(%o)",n),g||S();const o=(0,a.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=y,n.method=String(n.method||"GET").toUpperCase(),l("params object: %o",n);const r=new window.XMLHttpRequest;if(r.params=n,w[o]=r,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const o=n.response||r.response;l("body: ",o),l("headers: ",n.headers),t(null,o,n.headers)},o=n=>{if(e)return;e=!0;const o=n.error||n.err||n;l("error: ",o),l("headers: ",n.headers),t(o,null,n.headers)};r.addEventListener("load",n),r.addEventListener("abort",o),r.addEventListener("error",o)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,v?E(n):(l("buffering API request since proxying <iframe> is not yet loaded"),h.push(n)),r},_=(e,t)=>"function"==typeof t?b(e,t):new Promise(((t,n)=>{b(e,((e,o)=>{e?n(e):t(o)}))}));function E(e){l("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(let t=0;t<e.length;t++){const n=k(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),g.contentWindow.postMessage(f?JSON.stringify(e):e,d)}function x(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function k(e){return x(e)?e:"object"==typeof e&&x(e.fileContents)?e.fileContents:null}function S(){l("install()"),g&&(l("uninstall()"),window.removeEventListener("message",Z),document.body.removeChild(g),v=!1,g=null),h=[],window.addEventListener("message",Z),g=document.createElement("iframe"),g.src=d+"/wp-admin/rest-proxy/?v=2.0#"+p,g.style.display="none",document.body.appendChild(g)}function Z(e){if(l("onmessage"),e.origin!==d)return void l("ignoring message... %o !== %o",e.origin,d);if(e.source!==g.contentWindow)return void l("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return l("no `data`, bailing");if("ready"===t)return void function(){if(l('proxy <iframe> "load" event'),v=!0,h){for(let e=0;e<h.length;e++)E(h[e]);h=null}}();if(f&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){l('got "progress" event: %o',e);const t=w[e.callbackId];if(t){const n=new(s())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return l("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in w))return l("bailing, no matching request with callback: %o",n);const o=w[n],{params:r}=o,i=t[0];let a=t[1];const c=t[2];if(207===a||delete w[n],r.metaAPI?a="metaAPIupdated"===i?200:500:l("got %o status code for URL: %o",a,r.path),"object"==typeof c&&(c.status=a,p=c["Content-Type"],/^application[/]x-ndjson($|;)/.test(p))){C(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),c)}else{var p;if(a&&2===Math.floor(a/100))!function(e,t,n){const o=new(s())("load");o.data=o.body=o.response=t,o.headers=n,e.dispatchEvent(o)}(o,i,c);else{C(o,u()(r,a,i),c)}}}function C(e,t,n){const o=new(s())("error");o.error=o.err=t,o.headers=n,e.dispatchEvent(o)}t.ZP=_},8049:function(e,t,n){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 o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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(2632)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,r,i,s=null;function a(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];if(!a.enabled)return;const i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");let u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const r=t.formatters[n];if("function"==typeof r){const t=o[u];e=r.call(i,t),o.splice(u,1),u--}return e})),t.formatArgs.call(i,o);const l=i.log||t.log;l.apply(i,o)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),r=o.length;for(n=0;n<r;n++)o[n]&&("-"===(e=o[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,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),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}},3830:function(e,t,n){"use strict";var o=n(956);e.exports=function(){var e=o.apply(o,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},2686:function(e,t){"use strict";t.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(e,t,n){"use strict";var o;n.d(t,{Z:function(){return i}});var r=new Uint8Array(16);function i(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(r)}},708:function(e,t,n){"use strict";for(var o=n(6525),r=[],i=0;i<256;++i)r.push((i+256).toString(16).substr(1));t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,o.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(e,t,n){"use strict";var o=n(5302),r=n(708);t.Z=function(e,t,n){var i=(e=e||{}).random||(e.rng||o.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return(0,r.Z)(i)}},6525:function(e,t,n){"use strict";var o=n(2686);t.Z=function(e){return"string"==typeof e&&o.Z.test(e)}},2884:function(e,t,n){var o=n(3830),r=n(7260);function i(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)i(e,n.length?n[0]:n);for(var o in t)e[o]=t[o];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=c(r[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,o=e.path,r=t+" status code",i=n||o;i&&(r+=' for "'),n&&(r+=n),i&&(r+=" "),o&&(r+=o),i&&(r+='"'),e.message=r}function c(e){return o(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},4242:function(e,t,n){"use strict";e.exports=n.p+"images/product-published-f8461fe85ee7eb5713c8.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},5904:function(e){"use strict";e.exports=window.wp.dom},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},6666:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},7896:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:function(){return o}})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var o={};!function(){"use strict";n.r(o);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=o}();
wpcom-block-editor-nux/src/welcome-tour/tour-launch.tsx CHANGED
@@ -3,6 +3,8 @@ import { useLocale } from '@automattic/i18n-utils';
3
  import { WpcomTourKit, usePrefetchTourAssets } from '@automattic/tour-kit';
4
  import { useDispatch, useSelect, dispatch } from '@wordpress/data';
5
  import { useEffect, useMemo } from '@wordpress/element';
 
 
6
  import getTourSteps from './tour-steps';
7
  import './style-tour.scss';
8
  import type { WpcomConfig } from '@automattic/tour-kit';
@@ -42,6 +44,8 @@ function LaunchWpcomWelcomeTour() {
42
  }
43
 
44
  function WelcomeTour() {
 
 
45
  const localeSlug = useLocale();
46
  const { setShowWelcomeGuide } = useDispatch( 'automattic/wpcom-welcome-guide' );
47
  const isGutenboarding = window.calypsoifyGutenberg?.isGutenboarding;
@@ -50,6 +54,12 @@ function WelcomeTour() {
50
  };
51
  const tourSteps = getTourSteps( localeSlug, isWelcomeTourNext() );
52
 
 
 
 
 
 
 
53
  const tourConfig: WpcomConfig = {
54
  steps: tourSteps,
55
  closeHandler: ( _steps, currentStepIndex, source ) => {
3
  import { WpcomTourKit, usePrefetchTourAssets } from '@automattic/tour-kit';
4
  import { useDispatch, useSelect, dispatch } from '@wordpress/data';
5
  import { useEffect, useMemo } from '@wordpress/element';
6
+ import useSiteIntent from '../../../dotcom-fse/lib/site-intent/use-site-intent';
7
+ import useSitePlan from '../../../dotcom-fse/lib/site-plan/use-site-plan';
8
  import getTourSteps from './tour-steps';
9
  import './style-tour.scss';
10
  import type { WpcomConfig } from '@automattic/tour-kit';
44
  }
45
 
46
  function WelcomeTour() {
47
+ const sitePlan = useSitePlan( window._currentSiteId );
48
+ const intent = useSiteIntent();
49
  const localeSlug = useLocale();
50
  const { setShowWelcomeGuide } = useDispatch( 'automattic/wpcom-welcome-guide' );
51
  const isGutenboarding = window.calypsoifyGutenberg?.isGutenboarding;
54
  };
55
  const tourSteps = getTourSteps( localeSlug, isWelcomeTourNext() );
56
 
57
+ // Only keep Payment block step if user comes from seller simple flow
58
+ if ( ! ( 'sell' === intent && sitePlan && 'ecommerce-bundle' !== sitePlan.product_slug ) ) {
59
+ const paymentBlockIndex = tourSteps.findIndex( ( step ) => step.slug === 'payment-block' );
60
+ tourSteps.splice( paymentBlockIndex, 1 );
61
+ }
62
+
63
  const tourConfig: WpcomConfig = {
64
  steps: tourSteps,
65
  closeHandler: ( _steps, currentStepIndex, source ) => {
wpcom-block-editor-nux/src/welcome-tour/tour-steps.tsx CHANGED
@@ -44,6 +44,7 @@ function getTourAssets( key: string ): TourAsset | undefined {
44
  function getTourSteps( localeSlug: string, referencePositioning = false ): WpcomStep[] {
45
  return [
46
  {
 
47
  meta: {
48
  heading: __( 'Welcome to WordPress!', 'full-site-editing' ),
49
  descriptions: {
@@ -63,6 +64,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
63
  },
64
  },
65
  {
 
66
  meta: {
67
  heading: __( 'Everything is a block', 'full-site-editing' ),
68
  descriptions: {
@@ -82,6 +84,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
82
  },
83
  },
84
  {
 
85
  ...( referencePositioning && {
86
  referenceElements: {
87
  mobile:
@@ -112,6 +115,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
112
  },
113
  },
114
  {
 
115
  meta: {
116
  heading: __( 'Click a block to change it', 'full-site-editing' ),
117
  descriptions: {
@@ -131,6 +135,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
131
  },
132
  },
133
  {
 
134
  ...( referencePositioning && {
135
  referenceElements: {
136
  mobile:
@@ -157,6 +162,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
157
  ...( ! isMobile()
158
  ? [
159
  {
 
160
  meta: {
161
  heading: __( 'Find your way', 'full-site-editing' ),
162
  descriptions: {
@@ -180,6 +186,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
180
  ...( ! isMobile()
181
  ? [
182
  {
 
183
  ...( referencePositioning && {
184
  referenceElements: {
185
  desktop:
@@ -207,6 +214,7 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
207
  ]
208
  : [] ),
209
  {
 
210
  meta: {
211
  heading: __( 'Drag & drop', 'full-site-editing' ),
212
  descriptions: {
@@ -223,6 +231,42 @@ function getTourSteps( localeSlug: string, referencePositioning = false ): Wpcom
223
  },
224
  },
225
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  meta: {
227
  heading: __( 'Congratulations!', 'full-site-editing' ),
228
  descriptions: {
44
  function getTourSteps( localeSlug: string, referencePositioning = false ): WpcomStep[] {
45
  return [
46
  {
47
+ slug: 'welcome',
48
  meta: {
49
  heading: __( 'Welcome to WordPress!', 'full-site-editing' ),
50
  descriptions: {
64
  },
65
  },
66
  {
67
+ slug: 'everything-is-a-block',
68
  meta: {
69
  heading: __( 'Everything is a block', 'full-site-editing' ),
70
  descriptions: {
84
  },
85
  },
86
  {
87
+ slug: 'add-block',
88
  ...( referencePositioning && {
89
  referenceElements: {
90
  mobile:
115
  },
116
  },
117
  {
118
+ slug: 'edit-block',
119
  meta: {
120
  heading: __( 'Click a block to change it', 'full-site-editing' ),
121
  descriptions: {
135
  },
136
  },
137
  {
138
+ slug: 'settings',
139
  ...( referencePositioning && {
140
  referenceElements: {
141
  mobile:
162
  ...( ! isMobile()
163
  ? [
164
  {
165
+ slug: 'find-your-way',
166
  meta: {
167
  heading: __( 'Find your way', 'full-site-editing' ),
168
  descriptions: {
186
  ...( ! isMobile()
187
  ? [
188
  {
189
+ slug: 'undo',
190
  ...( referencePositioning && {
191
  referenceElements: {
192
  desktop:
214
  ]
215
  : [] ),
216
  {
217
+ slug: 'drag-drop',
218
  meta: {
219
  heading: __( 'Drag & drop', 'full-site-editing' ),
220
  descriptions: {
231
  },
232
  },
233
  {
234
+ slug: 'payment-block',
235
+ meta: {
236
+ heading: __( 'The Payments block', 'full-site-editing' ),
237
+ descriptions: {
238
+ desktop: (
239
+ <>
240
+ { __(
241
+ 'The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website',
242
+ 'full-site-editing'
243
+ ) }
244
+ <br />
245
+ <ExternalLink
246
+ href={ localizeUrl(
247
+ 'https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video',
248
+ localeSlug
249
+ ) }
250
+ target="_blank"
251
+ rel="noopener noreferrer"
252
+ >
253
+ { __( 'Learn more', 'full-site-editing' ) }
254
+ </ExternalLink>
255
+ </>
256
+ ),
257
+ mobile: null,
258
+ },
259
+ imgSrc: getTourAssets( 'welcome' ),
260
+ },
261
+ options: {
262
+ classNames: {
263
+ desktop: 'wpcom-editor-welcome-tour__step',
264
+ mobile: 'wpcom-editor-welcome-tour__step',
265
+ },
266
+ },
267
+ },
268
+ {
269
+ slug: 'congratulations',
270
  meta: {
271
  heading: __( 'Congratulations!', 'full-site-editing' ),
272
  descriptions: {