summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js')
-rw-r--r--plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js b/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js
index c8a04c5d..5dfeba6d 100644
--- a/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js
+++ b/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection-ui/build/index.js
@@ -1,4 +1,4 @@
/*! For license information please see index.js.LICENSE.txt */
-!function(){var e={4728:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return i[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},6078:function(e,t,n){"use strict";n.d(t,{LR:function(){return c}});var i=n(2141),o=n(3807),r=n(4728);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(0,r.X)(t);if(!c||isNaN(e))return null;var s=(0,i.Z)({},c,n),a=s.decimal,u=s.grouping,l=s.precision,p=s.symbol,d=e<0?"-":"",g=Math.abs(e),m=Math.floor(g),f=(0,o.Y4)(m,{decimals:0,thousandsSep:u,decPoint:a}),h=l>0?(0,o.Y4)(g-m,{decimals:l,thousandsSep:u,decPoint:a}).slice(1):"";return{sign:d,symbol:p,integer:f,fraction:h}}},8772:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(9196),o=n(5592);function r(e,t){let n,o,c=[];for(let i=0;i<e.length;i++){const r=e[i];if("string"!==r.type){if(void 0===t[r.value])throw new Error(`Invalid interpolation, missing component node: \`${r.value}\``);if("object"!=typeof t[r.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${r.value}\``);if("componentClose"===r.type)throw new Error(`Missing opening component token: \`${r.value}\``);if("componentOpen"===r.type){n=t[r.value],o=i;break}c.push(t[r.value])}else c.push(r.value)}if(n){const s=function(e,t){const n=t[e];let i=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===n.value){if("componentOpen"===e.type){i++;continue}if("componentClose"===e.type){if(0===i)return o;i--}}}throw new Error("Missing closing component token `"+n.value+"`")}(o,e),a=r(e.slice(o+1,s),t),u=(0,i.cloneElement)(n,{},a);if(c.push(u),s<e.length-1){const n=r(e.slice(s+1),t);c=c.concat(n)}}return c=c.filter(Boolean),0===c.length?null:1===c.length?c[0]:(0,i.createElement)(i.Fragment,null,...c)}function c(e){const{mixedString:t,components:n,throwErrors:i}=e;if(!n)return t;if("object"!=typeof n){if(i)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const c=(0,o.Z)(t);try{return r(c,n)}catch(e){if(i)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}},5592:function(e,t,n){"use strict";function i(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 o(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(i)}n.d(t,{Z:function(){return o}})},7538:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},9183:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},8172:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(1354),o=n(4803);function r(e){var t=(0,i.Z)(e);return function(e){return(0,o.Z)(t,e)}}},4803:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i={"!":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 o(e,t){var n,o,r,c,s,a,u=[];for(n=0;n<e.length;n++){if(s=e[n],c=i[s]){for(o=c.length,r=Array(o);o--;)r[o]=u.pop();try{a=c.apply(null,r)}catch(e){return e}}else a=t.hasOwnProperty(s)?t[s]:+s;u.push(a)}return u[0]}},7478:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(8172);function o(e){var t=(0,i.Z)(e);return function(e){return+t({n:e})}}},1354:function(e,t,n){"use strict";var i,o,r,c;function s(e){for(var t,n,s,a,u=[],l=[];t=e.match(c);){for(n=t[0],(s=e.substr(0,t.index).trim())&&u.push(s);a=l.pop();){if(r[n]){if(r[n][0]===a){n=r[n][1]||n;break}}else if(o.indexOf(a)>=0||i[a]<i[n]){l.push(a);break}u.push(a)}r[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 s}}),i={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],r={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},702:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function o(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(i,(function(){var e,i,o,r,c;return e=arguments[3],i=arguments[5],"%"===(r=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==i?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(i)&&(c=t[0][i]):(void 0===e&&(e=n),n++,c=t[e-1]),"f"===r?c=parseFloat(c)||0:"d"===r&&(c=parseInt(c)||0),void 0!==o&&("f"===r?c=c.toFixed(o):"s"===r&&(c=c.substr(0,o))),null!=c?c:"")}))}},9105:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},5771: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 i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!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(1244)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1244:function(e,t,n){e.exports=function(e){function t(e){let n,o,r,c=null;function s(...e){if(!s.enabled)return;const i=s,o=Number(new Date),r=o-(n||o);i.diff=r,i.prev=n,i.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let c=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";c++;const r=t.formatters[o];if("function"==typeof r){const t=e[c];n=r.call(i,t),e.splice(c,1),c--}return n})),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==c?c:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{c=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function o(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(o),...t.skips.map(o).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 i=("string"==typeof e?e:"").split(/[\s,]+/),o=i.length;for(n=0;n<o;n++)i[n]&&("-"===(e=i[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,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(2002),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}},2571:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=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 o=Number.isNaN||function(e){return e!=e};function r(){r.init.call(this)}e.exports=r,e.exports.once=function(e,t){return new Promise((function(n,i){function o(n){e.removeListener(t,r),i(n)}function r(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}f(e,t,r,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,o,{once:!0})}))},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var c=10;function s(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?r.defaultMaxListeners:e._maxListeners}function u(e,t,n,i){var o,r,c,u;if(s(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),c=r[t]),void 0===c)c=r[t]=n,++e._eventsCount;else if("function"==typeof c?c=r[t]=i?[n,c]:[c,n]:i?c.unshift(n):c.push(n),(o=a(e))>0&&c.length>o&&!c.warned){c.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=c.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 p(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(i);return o.listener=n,i.wrapFn=o,o}function d(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):m(o,o.length)}function g(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),i=0;i<t;++i)n[i]=e[i];return n}function f(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(r){i.once&&e.removeEventListener(t,o),n(r)}))}}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),r.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},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(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},r.prototype.getMaxListeners=function(){return a(this)},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,r=this._events;if(void 0!==r)o=o&&void 0===r.error;else if(!o)return!1;if(o){var c;if(t.length>0&&(c=t[0]),c instanceof Error)throw c;var s=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw s.context=c,s}var a=r[e];if(void 0===a)return!1;if("function"==typeof a)i(a,this,t);else{var u=a.length,l=m(a,u);for(n=0;n<u;++n)i(l[n],this,t)}return!0},r.prototype.addListener=function(e,t){return u(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return u(this,e,t,!0)},r.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,i,o,r,c;if(s(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){c=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,c||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,i;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 o,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);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(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},r.prototype.listeners=function(e){return d(this,e,!0)},r.prototype.rawListeners=function(e){return d(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},r.prototype.listenerCount=g,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5949:function(e,t,n){"use strict";var i=n(3566),o=n(8282);function r(){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=r,r.prototype.update=function(e,t){if(e=i.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=i.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(e<<=3,"big"===this.endian){for(var r=8;r<this.padLength;r++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=e>>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=255&e}else for(i[o++]=255&e,i[o++]=e>>>8&255,i[o++]=e>>>16&255,i[o++]=e>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,r=8;r<this.padLength;r++)i[o++]=0;return i}},9016:function(e,t,n){"use strict";var i=n(3566),o=n(5949),r=n(7574),c=i.rotl32,s=i.sum32,a=i.sum32_5,u=r.ft_1,l=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=c(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],r=this.h[1],l=this.h[2],d=this.h[3],g=this.h[4];for(i=0;i<n.length;i++){var m=~~(i/20),f=a(c(o,5),u(m,r,l,d),g,n[i],p[m]);g=d,d=l,l=c(r,30),r=o,o=f}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],g)},d.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},7574:function(e,t,n){"use strict";var i=n(3566).rotr32;function o(e,t,n){return e&t^~e&n}function r(e,t,n){return e&t^e&n^t&n}function c(e,t,n){return e^t^n}t.ft_1=function(e,t,n,i){return 0===e?o(t,n,i):1===e||3===e?c(t,n,i):2===e?r(t,n,i):void 0},t.ch32=o,t.maj32=r,t.p32=c,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},3566:function(e,t,n){"use strict";var i=n(8282),o=n(9503);function r(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function c(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(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=o,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),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var i=0,o=0;o<e.length;o++){var c=e.charCodeAt(o);c<128?n[i++]=c:c<2048?(n[i++]=c>>6|192,n[i++]=63&c|128):r(e,o)?(c=65536+((1023&c)<<10)+(1023&e.charCodeAt(++o)),n[i++]=c>>18|240,n[i++]=c>>12&63|128,n[i++]=c>>6&63|128,n[i++]=63&c|128):(n[i++]=c>>12|224,n[i++]=c>>6&63|128,n[i++]=63&c|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=c,t.toHex32=function(e,t){for(var n="",i=0;i<e.length;i++){var o=e[i];"little"===t&&(o=c(o)),n+=a(o.toString(16))}return n},t.zero2=s,t.zero8=a,t.join32=function(e,t,n,o){var r=n-t;i(r%4==0);for(var c=new Array(r/4),s=0,a=t;s<c.length;s++,a+=4){var u;u="big"===o?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],c[s]=u>>>0}return c},t.split32=function(e,t){for(var n=new Array(4*e.length),i=0,o=0;i<e.length;i++,o+=4){var r=e[i];"big"===t?(n[o]=r>>>24,n[o+1]=r>>>16&255,n[o+2]=r>>>8&255,n[o+3]=255&r):(n[o+3]=r>>>24,n[o+2]=r>>>16&255,n[o+1]=r>>>8&255,n[o]=255&r)}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,i){return e+t+n+i>>>0},t.sum32_5=function(e,t,n,i,o){return e+t+n+i+o>>>0},t.sum64=function(e,t,n,i){var o=e[t],r=i+e[t+1]>>>0,c=(r<i?1:0)+n+o;e[t]=c>>>0,e[t+1]=r},t.sum64_hi=function(e,t,n,i){return(t+i>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,i){return t+i>>>0},t.sum64_4_hi=function(e,t,n,i,o,r,c,s){var a=0,u=t;return a+=(u=u+i>>>0)<t?1:0,a+=(u=u+r>>>0)<r?1:0,e+n+o+c+(a+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,i,o,r,c,s){return t+i+r+s>>>0},t.sum64_5_hi=function(e,t,n,i,o,r,c,s,a,u){var l=0,p=t;return l+=(p=p+i>>>0)<t?1:0,l+=(p=p+r>>>0)<r?1:0,l+=(p=p+s>>>0)<s?1:0,e+n+o+c+a+(l+=(p=p+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,i,o,r,c,s,a,u){return t+i+r+s+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}},8617:function(e,t,n){"use strict";var i=n(9128),o=n(8086),r=n(5771),c=n.n(r),s=n(8772),a=n(8090),u=n(5565),l=n.n(u),p=n(9016),d=n.n(p),g=n(2571),m=n(702),f=n(2846),h=c()("i18n-calypso"),y="number_format_decimals",v="number_format_thousands_sep",b="messages",_=[function(e){return e}],k={};function w(){N.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function j(e){return Array.prototype.slice.call(e)}function C(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&w("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",j(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&w("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",j(e));for(var n={},i=0;i<e.length;i++)"object"==typeof e[i]&&(n=e[i]);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 E(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function S(e,t){for(var n=_.length-1;n>=0;n--){var i=_[n](Object.assign({},t)),o=i.context?i.context+""+i.original:i.original;if(e.state.locale[o])return E(e.state.tannin,i)}return null}function N(){if(!(this instanceof N))return new N;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:l()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}N.throwErrors=!1,N.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},N.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},N.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},N.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,i=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,f.Z)(e,n,i,o)},N.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},N.prototype.setLocale=function(e){var t,n,i;if(e&&e[""]&&e[""]["key-hash"]){var r=e[""]["key-hash"],c=function(e,t){var n=!1===t?"":String(t);if(void 0!==k[n+e])return k[n+e];var i=d()().update(e).digest("hex");return k[n+e]=t?i.substr(0,t):i},s=function(e){return function(t){return t.context?(t.original=c(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=c(t.original,e),t}};if("sha1"===r.substr(0,4))if(4===r.length)_.push(s(!1));else{var u=r.substr(5).indexOf("-");if(u<0){var l=Number(r.substr(5));_.push(s(l))}else for(var p=Number(r.substr(5,u)),g=Number(r.substr(6+u)),m=p;m<=g;m++)_.push(s(m))}}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.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(i=n.momentjs_locale)||void 0===i?void 0:i.textDirection),this.state.tannin=new a.Z((0,o.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=E(this.state.tannin,C([y])),this.state.numberFormatSettings.thousands_sep=E(this.state.tannin,C([v])),this.state.numberFormatSettings.decimal_point===y&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===v&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},N.prototype.getLocale=function(){return this.state.locale},N.prototype.getLocaleSlug=function(){return this.state.localeSlug},N.prototype.isRtl=function(){return"rtl"===this.state.textDirection},N.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},N.prototype.hasTranslation=function(){return!!S(this,C(arguments))},N.prototype.translate=function(){var e=C(arguments),t=S(this,e);if(t||(t=E(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,i.Z)(n))}catch(e){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof e?window.console[o](e):window.console[o]("i18n sprintf error:",n)}}return e.components&&(t=(0,s.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},N.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},N.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},N.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=N},3807:function(e,t,n){"use strict";n.d(t,{Y4:function(){return a}});var i=n(8617),o=n(2928),r=n(975),c=n(4531),s=new i.Z,a=s.numberFormat.bind(s),u=(s.translate.bind(s),s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,o.Z)(s),(0,r.Z)(s),(0,c.Z)(s));u.useRtl,u.withRtl},2928:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var i=n(9591),o=n(1687),r=n(3772),c=n(5200),s=n(2104),a=n(9057),u=n(8086),l=n(9196),p=n.n(l);function d(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var l,d,g=n.displayName||n.name||"";return d=l=function(l){(0,s.Z)(g,l);var d=(0,a.Z)(g);function g(){var e;(0,o.Z)(this,g);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e=d.call.apply(d,[this].concat(n)),(0,u.Z)((0,c.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,c.Z)(e))),e}return(0,r.Z)(g,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var o=(0,i.Z)({locale:e.getLocaleSlug()},this.props,{},t);return p().createElement(n,o)}}]),g}(p().Component),(0,u.Z)(l,"displayName","Localized("+g+")"),d}}},2846:function(e,t,n){"use strict";function i(e,t,n,i){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,r=isFinite(+t)?Math.abs(t):0,c=void 0===i?",":i,s=void 0===n?".":n,a="";return a=(r?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,r):""+Math.round(o)).split("."),a[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(a[1]||"").length<r&&(a[1]=a[1]||"",a[1]+=new Array(r-a[1].length+1).join("0")),a.join(s)}n.d(t,{Z:function(){return i}})},4531:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(5672),o=n(9196),r=n.n(o),c=n(36),s=n(4333);function a(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,c.useSubscription)(t)}var a=(0,s.createHigherOrderComponent)((function(e){return(0,o.forwardRef)((function(t,o){var c=n();return r().createElement(e,(0,i.Z)({},t,{isRtl:c,ref:o}))}))}),"WithRTL");return{useRtl:n,withRtl:a}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(572),o=n(9196),r=n.n(o);function c(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){var n=r().useState(t),o=(0,i.Z)(n,2),c=o[0],s=o[1];return r().useEffect((function(){var n=function(){return s(t)};return e.on("change",n),function(){return e.off("change",n)}}),[]),c}}},9503: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}}},5565:function(e,t,n){var i=n(2571),o=n(9503);function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),i.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=r,o(r,i.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.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}},r.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)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.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},r.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)},r.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}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},4125:function(){},8776:function(){},7394:function(){},6212:function(){},4959:function(){},2961:function(){},404:function(){},1294:function(){},1545:function(){},843:function(){},8282: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)}},2002:function(e){var t=1e3,n=60*t,i=60*n,o=24*i,r=7*o,c=365.25*o;function s(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"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 s=/^(-?(?:\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(!s)return;var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"weeks":case"week":case"w":return a*r;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;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 r=Math.abs(e);if(r>=o)return s(e,r,o,"day");if(r>=i)return s(e,r,i,"hour");if(r>=n)return s(e,r,n,"minute");if(r>=t)return s(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=o)return Math.round(e/o)+"d";if(r>=i)return Math.round(e/i)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=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))}},1625:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var c,s,a=o(e),u=1;u<arguments.length;u++){for(var l in c=Object(arguments[u]))n.call(c,l)&&(a[l]=c[l]);if(t){s=t(c);for(var p=0;p<s.length;p++)i.call(c,s[p])&&(a[s[p]]=c[s[p]])}}return a}},9587:function(e,t,n){"use strict";var i=n(5843);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,c){if(c!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},1268:function(e,t,n){e.exports=n(9587)()},5843:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8090:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(7478),o={contextDelimiter:"",onMissingKey:null};function r(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},o)this.options[n]=void 0!==t&&n in t?t[n]:o[n]}r.prototype.getPluralForm=function(e,t){var n,o,r,c=this.pluralForms[e];return c||("function"!=typeof(r=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(e){var t,n,i;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(i=t[n].trim()).indexOf("plural="))return i.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),r=(0,i.Z)(o)),c=this.pluralForms[e]=r),c(t)},r.prototype.dcnpgettext=function(e,t,n,i,o){var r,c,s;return r=void 0===o?0:this.getPluralForm(e,o),c=n,t&&(c=t+this.options.contextDelimiter+n),(s=this.data[e][c])&&s[r]?s[r]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===r?n:i)}},816:function(e,t,n){"use strict";var i=n(5771),o=n.n(i),r=n(2819);const c=o()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const u={initialize:function(e,t,n){u.setUser(e,t),u.setSuperProps(n),u.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){s=e},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);c("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),c('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);c("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),c('Built stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){u.tracks.recordPageView(e),u.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,i,o,r,c){u.ga.recordPurchase(e,t,n,i,o,r,c)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(c("- Super Props: %o",s),t=(0,r.assign)(t,s)),c('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):c('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};u.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){u.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){c("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};u.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),u.ga.initialized=!0)},recordPageView:function(e,t){u.ga.initialize(),c("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,i){u.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==i&&(o+=" [Option Value: "+i+"]"),c(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,i)},recordPurchase:function(e,t,n,i,o,r,c){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:i,currency:c}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:r}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.Z=u},9570:function(e,t,n){"use strict";var i=n(2819),o=n(6483),r=n(6251);function c(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const s=c("JsonParseError"),a=c("JsonParseAfterRedirectError"),u=c("Api404Error"),l=c("Api404AfterRedirectError"),p=c("FetchNetworkError");const d=new function(e,t){let n=e,c={"X-WP-Nonce":t},s={credentials:"same-origin",headers:c},a={method:"post",credentials:"same-origin",headers:(0,i.assign)({},c,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",i=n.length?n.split("&"):[];return i.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+i.join("&")};const l={setApiRoot(e){n=e},setApiNonce(e){c={"X-WP-Nonce":e},s={credentials:"same-origin",headers:c},a={method:"post",credentials:"same-origin",headers:(0,i.assign)({},c,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t)=>{const i={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),d(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(i)}).then(g).then(m)},fetchAuthorizationUrl:e=>p((0,o.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(g).then(m),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,s).then(m),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,s).then(m),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,s).then(g).then(m),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,s).then(m),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,s).then(g).then(m),updateUserTrackingSettings:e=>d(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),disconnectSite:()=>d(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(g).then(m),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,s).then(g).then(m),unlinkUser:()=>d(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(g).then(m),reconnect:()=>d(`${n}jetpack/v4/connection/reconnect`,a).then(g).then(m),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,s).then(g).then(m),setHasSeenWCConnectionModal:()=>d(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(g).then(m),fetchModules:()=>p(`${n}jetpack/v4/module/all`,s).then(g).then(m),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,s).then(g).then(m),activateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(g).then(m),deactivateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>d(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(g).then(m),updateSettings:e=>d(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,s).then(g).then(m),resetOptions:e=>d(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(g).then(m),activateVaultPress:()=>d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(g).then(m),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,s).then(g).then(m),installPlugin:(e,t)=>{const i={slug:e,status:"active"};return t&&(i.source=t),d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(i)}).then(g).then(m)},activateAkismet:()=>d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(g).then(m),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,s).then(g).then(m),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,s).then(g).then(m),checkAkismetKeyTyped:e=>d(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(g).then(m),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(g).then(m).then(f),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,s).then(g).then(m),getPlans:()=>p(`${n}jetpack/v4/plans`,s).then(g).then(m),fetchSettings:()=>p(`${n}jetpack/v4/settings`,s).then(g).then(m),updateSetting:e=>d(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),fetchSiteData:()=>p(`${n}jetpack/v4/site`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,s).then(g).then(m),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,s).then(g).then(m),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,s).then(g).then(m),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,s).then(g).then(m),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,s).then(g).then(m),saveRecommendationsData:e=>d(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(g),fetchProducts:()=>p(`${n}jetpack/v4/products`,s).then(g).then(m),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,s).then(g).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>d(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(g).then(m),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,s).then(g).then(m),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,s).then(g).then(m),verifySiteGoogle:e=>d(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(g).then(m),sendMobileLoginEmail:()=>d(`${n}jetpack/v4/mobile/send-login-email`,a).then(g).then(m),submitSurvey:e=>d(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(g).then(m),saveSetupQuestionnaire:e=>d(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(g).then(m),updateLicensingError:e=>d(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(g).then(m),updateLicenseKey:e=>d(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(g).then(m),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,s).then(g).then(m),updateLicensingActivationNoticeDismiss:e=>d(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(g).then(m),updateRecommendationsStep:e=>d(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(g),confirmIDCSafeMode:()=>d(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(g),startIDCFresh:e=>d(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(g).then(m),migrateIDC:()=>d(`${n}jetpack/v4/identity-crisis/migrate`,a).then(g),attachLicenses:e=>d(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(g).then(m),fetchSearchPlanInfo:()=>p(`${n}jetpack/v4/search/plan`,s).then(g).then(m),fetchSearchSettings:()=>p(`${n}jetpack/v4/search/settings`,s).then(g).then(m),updateSearchSettings:e=>d(`${n}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(g).then(m)};function p(e,t){return fetch(u(e),t)}function d(e,t,n){return fetch(e,(0,i.assign)({},t,n)).catch(h)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}(0,i.assign)(this,l)};function g(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new l(e.redirected):new u})):e.json().catch((e=>f(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function m(e){return e.json().catch((t=>f(t,e.redirected,e.url)))}function f(e,t,n){throw t?new a(n):new s}function h(){throw new p}t.ZP=d},1583:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(5736),c=n(5609),s=n(1268),a=n.n(s),u=(n(4125),n(7262));const __=r.__,l=e=>{const{label:t,onClick:n,isLoading:i,displayError:r,errorMessage:s}=e;return o().createElement("div",{className:"jp-action-button"},o().createElement(c.Button,{className:"jp-action-button--button",label:t,onClick:n,isPrimary:!0,disabled:i},i?o().createElement(u.Z,null):t),r&&o().createElement("p",{className:"jp-action-button__error"},s))};l.propTypes={label:a().string.isRequired,onClick:a().func,isLoading:a().bool,displayError:a().bool,errorMessage:a().string},l.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack-connection-ui")},t.Z=l},9697:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r);n(8776);const s=e=>{const{format:t,icon:n,imageUrl:i}=e;return o().createElement("div",{className:"jp-components__decorative-card "+(t?"jp-components__decorative-card--"+t:"")},o().createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:i?`url( ${i} )`:""}}),o().createElement("div",{className:"jp-components__decorative-card__content"},o().createElement("div",{className:"jp-components__decorative-card__lines"})),(()=>{if(n)return o().createElement("div",{className:"jp-components__decorative-card__icon-container"},o().createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n}))})())};s.propTypes={format:c().oneOf(["horizontal","vertical"]),icon:c().oneOf(["unlink"]),imageUrl:c().string},s.defaultProps={format:"horizontal"},t.Z=s},1546:function(e,t,n){"use strict";var i=n(9183),o=n.n(i),r=n(7538),c=n.n(r),s=n(1268),a=n.n(s),u=n(9196),l=n.n(u),p=n(9105),d=n.n(p),g=n(5736);const __=g.__;class m extends l().Component{render(){const{logoColor:e,showText:t,className:n,...i}=this.props,r=t?"0 0 118 32":"0 0 32 32";return l().createElement("svg",o()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:r,className:d()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title"},i),l().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-connection-ui")),l().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&l().createElement(u.Fragment,null,l().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),l().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),l().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),l().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),l().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),l().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),l().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}c()(m,"propTypes",{className:a().string,width:a().number,height:a().number,showText:a().bool,logoColor:a().string}),c()(m,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"}),t.Z=m},2678:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5609),a=n(6078),u=n(5736);n(7394);const __=u.__,l=e=>-1===e.fraction.indexOf("00"),p=e=>{const t=(0,a.LR)(e.priceBefore,e.currencyCode),n=(0,a.LR)(e.priceAfter,e.currencyCode);return o().createElement("div",{className:"jp-components__pricing-card"},e.icon&&o().createElement("div",{className:"jp-components__pricing-card__icon"},o().createElement("img",{src:e.icon,alt:(0,u.sprintf)(
+!function(){var e={9487:function(e,n,t){"use strict";t.d(n,{X:function(){return o}});const i={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return i[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},8899:function(e,n,t){"use strict";t.d(n,{LR:function(){return c}});var i=t(9487),o=t(2003);function c(e,n,t={}){const c=(0,i.X)(n);if(!c||isNaN(e))return null;const{decimal:r,grouping:s,precision:a,symbol:l}={...c,...t},u=e<0?"-":"",p=Math.abs(e),d=Math.floor(p);return{sign:u,symbol:l,integer:(0,o.Z)(p,a,r,s).split(r)[0],fraction:a>0?(0,o.Z)(p-d,a,r,s).slice(1):""}}},2003:function(e,n,t){"use strict";function i(e,n=0,t=".",i=","){const o=(e+"").replace(/[^0-9+\-Ee.]/g,""),c=isFinite(+o)?+o:0,r=isFinite(+n)?Math.abs(n):0,s=(r?function(e,n){const t=Math.pow(10,n);return""+(Math.round(e*t)/t).toFixed(n)}(c,r):""+Math.round(c)).split(".");return s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(s[1]||"").length<r&&(s[1]=s[1]||"",s[1]+=new Array(r-s[1].length+1).join("0")),s.join(t)}t.d(n,{Z:function(){return i}})},8294:function(e){e.exports=function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},e.exports.__esModule=!0,e.exports.default=e.exports},2402:function(e){function n(){return e.exports=n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1074:function(e,n,t){"use strict";var i=t(9307);n.Z=function(e){let{icon:n,size:t=24,...o}=e;return(0,i.cloneElement)(n,{width:t,height:t,...o})}},5381:function(e,n,t){"use strict";var i=t(9307),o=t(444);const c=(0,i.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));n.Z=c},5235:function(e,n){var t;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],n=0;n<arguments.length;n++){var t=arguments[n];if(t){var c=typeof t;if("string"===c||"number"===c)e.push(t);else if(Array.isArray(t)){if(t.length){var r=o.apply(null,t);r&&e.push(r)}}else if("object"===c)if(t.toString===Object.prototype.toString)for(var s in t)i.call(t,s)&&t[s]&&e.push(s);else e.push(t.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(n,[]))||(e.exports=t)}()},951:function(e,n,t){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let i=0,o=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),n.splice(o,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},n.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+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.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`."))}})(),n.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"],n.log=console.debug||console.log||(()=>{}),e.exports=t(1741)(n);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1741:function(e,n,t){e.exports=function(e){function n(e){let t,o,c,r=null;function s(...e){if(!s.enabled)return;const i=s,o=Number(new Date),c=o-(t||o);i.diff=c,i.prev=t,i.curr=o,t=o,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if("%%"===t)return"%";r++;const c=n.formatters[o];if("function"==typeof c){const n=e[r];t=c.call(i,n),e.splice(r,1),r--}return t})),n.formatArgs.call(i,e);(i.log||n.log).apply(i,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=i,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==n.namespaces&&(o=n.namespaces,c=n.enabled(e)),c),set:e=>{r=e}}),"function"==typeof n.init&&n.init(s),s}function i(e,t){const i=n(this.namespace+(void 0===t?":":t)+e);return i.log=this.log,i}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(o),...n.skips.map(o).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),o=i.length;for(t=0;t<o;t++)i[t]&&("-"===(e=i[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,i;for(t=0,i=n.skips.length;t<i;t++)if(n.skips[t].test(e))return!1;for(t=0,i=n.names.length;t<i;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(3171),n.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((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},9710:function(){},3466:function(e,n){"use strict";n.Z={button:"zI5tJ_qhWE6Oe6Lk75GY",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",small:"Na39I683LAaSA99REg14",regular:"lZAo6_oGfclXOO9CC6Rd",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},2404:function(){},9478:function(){},3280:function(e,n){"use strict";n.Z={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},9610:function(){},2917:function(){},2427:function(){},4220:function(){},287:function(){},9823:function(){},3171:function(e){var n=1e3,t=60*n,i=60*t,o=24*i,c=7*o,r=365.25*o;function s(e,n,t,i){var o=n>=1.5*t;return Math.round(e/t)+" "+i+(o?"s":"")}e.exports=function(e,a){a=a||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\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(!s)return;var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*r;case"weeks":case"week":case"w":return a*c;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===l&&isFinite(e))return a.long?function(e){var c=Math.abs(e);if(c>=o)return s(e,c,o,"day");if(c>=i)return s(e,c,i,"hour");if(c>=t)return s(e,c,t,"minute");if(c>=n)return s(e,c,n,"second");return e+" ms"}(e):function(e){var c=Math.abs(e);if(c>=o)return Math.round(e/o)+"d";if(c>=i)return Math.round(e/i)+"h";if(c>=t)return Math.round(e/t)+"m";if(c>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},469:function(e,n,t){"use strict";var i=t(758);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,c,r){if(r!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:c,resetWarningCache:o};return t.PropTypes=t,t}},5162:function(e,n,t){e.exports=t(469)()},758:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6975:function(e,n,t){"use strict";var i=t(951),o=t.n(i),c=t(2819);const r=o()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const l={initialize:function(e,n,t){l.setUser(e,n),l.setSuperProps(t),l.identifyUser()},setGoogleAnalyticsEnabled:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=n},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,n){a={ID:e,username:n}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=(0,c.assign)(s,e)},mc:{bumpStat:function(e,n){const t=function(e,n){let t="";if("object"==typeof e){for(const n in e)t+="&x_"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]);r("Bumping stats %o",e)}else t="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(n),r('Bumping stat "%s" in group "%s"',n,e);return t}(e,n);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+t+"&t="+Math.random())},bumpStatWithPageView:function(e,n){const t=function(e,n){let t="";if("object"==typeof e){for(const n in e)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]);r("Built stats %o",e)}else t="&"+encodeURIComponent(e)+"="+encodeURIComponent(n),r('Built stat "%s" in group "%s"',n,e);return t}(e,n);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+t+"&t="+Math.random())}},pageView:{record:function(e,n){l.tracks.recordPageView(e),l.ga.recordPageView(e,n)}},purchase:{record:function(e,n,t,i,o,c,r){l.ga.recordPurchase(e,n,t,i,o,c,r)}},tracks:{recordEvent:function(e,n){n=n||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(r("- Super Props: %o",s),n=(0,c.assign)(n,s)),r('Record event "%s" called with props %s',e,JSON.stringify(n)),window._tkq.push(["recordEvent",e,n])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const n="object"==typeof e?e:{target:e};l.tracks.recordEvent("jetpack_wpa_click",n)},recordPageView:function(e){l.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};l.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),l.ga.initialized=!0)},recordPageView:function(e,n){l.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+n+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:n}))},recordEvent:function(e,n,t,i){l.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+n+"]";void 0!==t&&(o+=" [Option Label: "+t+"]"),void 0!==i&&(o+=" [Option Value: "+i+"]"),r(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,n,t,i)},recordPurchase:function(e,n,t,i,o,c,r){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:i,currency:r}),window.ga("ecommerce:addItem",{id:e,name:n,sku:t,price:o,quantity:c}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};n.Z=l},4743:function(e,n,t){"use strict";var i=t(2819),o=t(6483),c=t(1132);function r(e){class n extends Error{constructor(){super(...arguments),this.name=e}}return n}const s=r("JsonParseError"),a=r("JsonParseAfterRedirectError"),l=r("Api404Error"),u=r("Api404AfterRedirectError"),p=r("FetchNetworkError");const d=new function(e,n){let t=e,r={"X-WP-Nonce":n},s={credentials:"same-origin",headers:r},a={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})},l=function(e){const n=e.split("?"),t=n.length>1?n[1]:"",i=t.length?t.split("&"):[];return i.push("_cacheBuster="+(new Date).getTime()),n[0]+"?"+i.join("&")};const u={setApiRoot(e){t=e},setApiNonce(e){r={"X-WP-Nonce":e},s={credentials:"same-origin",headers:r},a={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,n)=>{const i={registration_nonce:e,no_iframe:!0};return(0,c.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,c.jetpackConfigGet)("consumer_slug")),null!==n&&(i.redirect_uri=n),d(`${t}jetpack/v4/connection/register`,a,{body:JSON.stringify(i)}).then(g).then(m)},fetchAuthorizationUrl:e=>p((0,o.addQueryArgs)(`${t}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(g).then(m),fetchSiteConnectionData:()=>p(`${t}jetpack/v4/connection/data`,s).then(m),fetchSiteConnectionStatus:()=>p(`${t}jetpack/v4/connection`,s).then(m),fetchSiteConnectionTest:()=>p(`${t}jetpack/v4/connection/test`,s).then(g).then(m),fetchUserConnectionData:()=>p(`${t}jetpack/v4/connection/data`,s).then(m),fetchUserTrackingSettings:()=>p(`${t}jetpack/v4/tracking/settings`,s).then(g).then(m),updateUserTrackingSettings:e=>d(`${t}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),disconnectSite:()=>d(`${t}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(g).then(m),fetchConnectUrl:()=>p(`${t}jetpack/v4/connection/url`,s).then(g).then(m),unlinkUser:()=>d(`${t}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(g).then(m),reconnect:()=>d(`${t}jetpack/v4/connection/reconnect`,a).then(g).then(m),fetchConnectedPlugins:()=>p(`${t}jetpack/v4/connection/plugins`,s).then(g).then(m),setHasSeenWCConnectionModal:()=>d(`${t}jetpack/v4/seen-wc-connection-modal`,a).then(g).then(m),fetchModules:()=>p(`${t}jetpack/v4/module/all`,s).then(g).then(m),fetchModule:e=>p(`${t}jetpack/v4/module/${e}`,s).then(g).then(m),activateModule:e=>d(`${t}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(g).then(m),deactivateModule:e=>d(`${t}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,n)=>d(`${t}jetpack/v4/module/${e}`,a,{body:JSON.stringify(n)}).then(g).then(m),updateSettings:e=>d(`${t}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),getProtectCount:()=>p(`${t}jetpack/v4/module/protect/data`,s).then(g).then(m),resetOptions:e=>d(`${t}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(g).then(m),activateVaultPress:()=>d(`${t}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(g).then(m),getVaultPressData:()=>p(`${t}jetpack/v4/module/vaultpress/data`,s).then(g).then(m),installPlugin:(e,n)=>{const i={slug:e,status:"active"};return n&&(i.source=n),d(`${t}jetpack/v4/plugins`,a,{body:JSON.stringify(i)}).then(g).then(m)},activateAkismet:()=>d(`${t}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(g).then(m),getAkismetData:()=>p(`${t}jetpack/v4/module/akismet/data`,s).then(g).then(m),checkAkismetKey:()=>p(`${t}jetpack/v4/module/akismet/key/check`,s).then(g).then(m),checkAkismetKeyTyped:e=>d(`${t}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(g).then(m),fetchStatsData:e=>p(function(e){let n=`${t}jetpack/v4/module/stats/data`;-1!==n.indexOf("?")?n+=`&range=${encodeURIComponent(e)}`:n+=`?range=${encodeURIComponent(e)}`;return n}(e),s).then(g).then(m).then(f),getPluginUpdates:()=>p(`${t}jetpack/v4/updates/plugins`,s).then(g).then(m),getPlans:()=>p(`${t}jetpack/v4/plans`,s).then(g).then(m),fetchSettings:()=>p(`${t}jetpack/v4/settings`,s).then(g).then(m),updateSetting:e=>d(`${t}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),fetchSiteData:()=>p(`${t}jetpack/v4/site`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${t}jetpack/v4/site/features`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${t}jetpack/v4/site/products`,s).then(g).then(m),fetchSitePurchases:()=>p(`${t}jetpack/v4/site/purchases`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${t}jetpack/v4/site/benefits`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${t}jetpack/v4/site/discount`,s).then(g).then(m).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${t}jetpack/v4/setup/questionnaire`,s).then(g).then(m),fetchRecommendationsData:()=>p(`${t}jetpack/v4/recommendations/data`,s).then(g).then(m),fetchRecommendationsProductSuggestions:()=>p(`${t}jetpack/v4/recommendations/product-suggestions`,s).then(g).then(m),fetchRecommendationsUpsell:()=>p(`${t}jetpack/v4/recommendations/upsell`,s).then(g).then(m),fetchRecommendationsConditional:()=>p(`${t}jetpack/v4/recommendations/conditional`,s).then(g).then(m),saveRecommendationsData:e=>d(`${t}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(g),fetchProducts:()=>p(`${t}jetpack/v4/products`,s).then(g).then(m),fetchRewindStatus:()=>p(`${t}jetpack/v4/rewind`,s).then(g).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${t}jetpack/v4/scan`,s).then(g).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>d(`${t}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(g).then(m),fetchPluginsData:()=>p(`${t}jetpack/v4/plugins`,s).then(g).then(m),fetchIntroOffers:()=>p(`${t}jetpack/v4/intro-offers`,s).then(g).then(m),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${t}jetpack/v4/verify-site/google/${e}`:`${t}jetpack/v4/verify-site/google`,s).then(g).then(m),verifySiteGoogle:e=>d(`${t}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(g).then(m),sendMobileLoginEmail:()=>d(`${t}jetpack/v4/mobile/send-login-email`,a).then(g).then(m),submitSurvey:e=>d(`${t}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(g).then(m),saveSetupQuestionnaire:e=>d(`${t}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(g).then(m),updateLicensingError:e=>d(`${t}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(g).then(m),updateLicenseKey:e=>d(`${t}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(g).then(m),getUserLicensesCounts:()=>p(`${t}jetpack/v4/licensing/user/counts`,s).then(g).then(m),getUserLicenses:()=>p(`${t}jetpack/v4/licensing/user/licenses`,s).then(g).then(m),updateLicensingActivationNoticeDismiss:e=>d(`${t}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(g).then(m),updateRecommendationsStep:e=>d(`${t}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(g),confirmIDCSafeMode:()=>d(`${t}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(g),startIDCFresh:e=>d(`${t}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(g).then(m),migrateIDC:()=>d(`${t}jetpack/v4/identity-crisis/migrate`,a).then(g),attachLicenses:e=>d(`${t}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(g).then(m),fetchSearchPlanInfo:()=>p(`${t}jetpack/v4/search/plan`,s).then(g).then(m),fetchSearchSettings:()=>p(`${t}jetpack/v4/search/settings`,s).then(g).then(m),updateSearchSettings:e=>d(`${t}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(g).then(m),fetchSearchStats:()=>p(`${t}jetpack/v4/search/stats`,s).then(g).then(m),fetchWafSettings:()=>p(`${t}jetpack/v4/waf`,s).then(g).then(m),fetchWordAdsSettings:()=>p(`${t}jetpack/v4/wordads/settings`,s).then(g).then(m),updateWordAdsSettings:e=>d(`${t}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${t}jetpack/v4/search/pricing`,s).then(g).then(m)};function p(e,n){return fetch(l(e),n)}function d(e,n,t){return fetch(e,(0,i.assign)({},n,t)).catch(h)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}(0,i.assign)(this,u)};function g(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new l})):e.json().catch((e=>f(e))).then((n=>{const t=new Error(`${n.message} (Status ${e.status})`);throw t.response=n,t.name="ApiError",t}))}function m(e){return e.json().catch((n=>f(n,e.redirected,e.url)))}function f(e,n,t){throw n?new a(t):new s}function h(){throw new p}n.ZP=d},7121:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5736),r=t(5609),s=t(5162),a=t.n(s);t(9710);const __=c.__,l=e=>{const{label:n,onClick:t,isLoading:i,displayError:c,errorMessage:s}=e;return o().createElement("div",{className:"jp-action-button"},o().createElement(r.Button,{className:"jp-action-button--button",label:n,onClick:t,variant:"primary",disabled:i},i?o().createElement(r.Spinner,null):n),c&&o().createElement("p",{className:"jp-action-button__error"},s))};l.propTypes={label:a().string.isRequired,onClick:a().func,isLoading:a().bool,displayError:a().bool,errorMessage:a().string},l.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack-connection-ui")},n.Z=l},526:function(e,n,t){"use strict";var i=t(2402),o=t.n(i),c=t(5609),r=t(1074),s=t(5381),a=t(5235),l=t.n(a),u=t(3466);n.Z=e=>{let{children:n,variant:t="primary",size:i="normal",weight:a="bold",icon:p,iconSize:d,disabled:g,isDestructive:m,isLoading:f,isExternalLink:h,className:y,text:b,..._}=e;const k=l()(u.Z.button,y,{[u.Z.normal]:"normal"===i,[u.Z.small]:"small"===i,[u.Z.icon]:Boolean(p),[u.Z.loading]:f,[u.Z.regular]:"regular"===a}),v="normal"===i?20:16,C=h&&React.createElement(r.Z,{size:v,icon:s.Z,className:u.Z["external-icon"]}),E=h?"_blank":void 0;return React.createElement(c.Button,o()({target:E,variant:t,className:k,icon:h?void 0:p,iconSize:d,disabled:g,isDestructive:m,text:b},_),f&&React.createElement(c.Spinner,null),React.createElement("span",null,n),C)}},1133:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c);t(2404);const s=e=>{const{format:n,icon:t,imageUrl:i}=e;return o().createElement("div",{className:"jp-components__decorative-card "+(n?"jp-components__decorative-card--"+n:"")},o().createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:i?`url( ${i} )`:""}}),o().createElement("div",{className:"jp-components__decorative-card__content"},o().createElement("div",{className:"jp-components__decorative-card__lines"})),(()=>{if(t)return o().createElement("div",{className:"jp-components__decorative-card__icon-container"},o().createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+t}))})())};s.propTypes={format:r().oneOf(["horizontal","vertical"]),icon:r().oneOf(["unlink"]),imageUrl:r().string},s.defaultProps={format:"horizontal"},n.Z=s},1202:function(e,n,t){"use strict";var i=t(2402),o=t.n(i),c=t(8294),r=t.n(c),s=t(5162),a=t.n(s),l=t(9196),u=t.n(l),p=t(5235),d=t.n(p),g=t(5736);const __=g.__;class m extends u().Component{render(){const{logoColor:e,showText:n,className:t,...i}=this.props,c=n?"0 0 118 32":"0 0 32 32";return u().createElement("svg",o()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:d()("jetpack-logo",t),"aria-labelledby":"jetpack-logo-title"},i),u().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-connection-ui")),u().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),n&&u().createElement(l.Fragment,null,u().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),u().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),u().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),u().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),u().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),u().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),u().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}r()(m,"propTypes",{className:a().string,width:a().number,height:a().number,showText:a().bool,logoColor:a().string}),r()(m,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"}),n.Z=m},667:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5609),a=t(8899),l=t(5736);t(9478);const __=l.__,u=e=>-1===e.fraction.indexOf("00"),p=e=>{const n=(0,a.LR)(e.priceBefore,e.currencyCode),t=(0,a.LR)(e.priceAfter,e.currencyCode);return o().createElement("div",{className:"jp-components__pricing-card"},e.icon&&o().createElement("div",{className:"jp-components__pricing-card__icon"},o().createElement("img",{src:e.icon,alt:(0,l.sprintf)(
/* translators: placeholder is a product name */
-__("Icon for the product %s","jetpack-connection-ui"),e.title)})),o().createElement("h1",{className:"jp-components__pricing-card__title"},e.title),o().createElement("div",{className:"jp-components__pricing-card__pricing"},e.priceBefore!==e.priceAfter&&o().createElement("div",{className:"jp-components__pricing-card__price-before"},o().createElement("span",{className:"jp-components__pricing-card__currency"},t.symbol),o().createElement("span",{className:"jp-components__pricing-card__price"},t.integer),l(t)&&o().createElement("span",{className:"jp-components__pricing-card__price-decimal"}," ",t.fraction),o().createElement("div",{className:"jp-components__pricing-card__price-strikethrough"})),o().createElement("div",{className:"jp-components__pricing-card__price-after"},o().createElement("span",{className:"jp-components__pricing-card__currency"},n.symbol),o().createElement("span",{className:"jp-components__pricing-card__price"},n.integer),l(n)&&o().createElement("span",{className:"jp-components__pricing-card__price-decimal"},n.fraction)),o().createElement("span",{className:"jp-components__pricing-card__price-details"},e.priceDetails)),e.children&&o().createElement("div",{className:"jp-components__pricing-card__extra-content-wrapper"},e.children),e.ctaText&&o().createElement("div",{className:"jp-components__pricing-card__cta"},o().createElement(s.Button,{className:"jp-components__pricing-card__button",label:e.ctaText,onClick:e.onCtaClick},e.ctaText)),e.infoText&&o().createElement("div",{className:"jp-components__pricing-card__info"},e.infoText))};p.propTypes={title:c().string.isRequired,icon:c().string,priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,priceDetails:c().string,currencyCode:c().string,ctaText:c().string,onCtaClick:c().func,infoText:c().oneOfType([c().string,c().object])},p.defaultProps={currencyCode:"USD",priceDetails:__("/month, paid yearly","jetpack-connection-ui")},t.Z=p},7262:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r);n(6212);const s=e=>{const t=e.className+" jp-components-spinner",n={width:e.size,height:e.size,fontSize:e.size,borderTopColor:e.color},i={borderTopColor:e.color,borderRightColor:e.color};return o().createElement("div",{className:t},o().createElement("div",{className:"jp-components-spinner__outer",style:n},o().createElement("div",{className:"jp-components-spinner__inner",style:i})))};s.propTypes={color:c().string,className:c().string,size:c().number},s.defaultProps={color:"#FFFFFF",className:"",size:20},t.Z=s},1415:function(e,t,n){"use strict";function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let i;if("undefined"!=typeof window&&(i=window.Initial_State?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);Object.keys(t).map((e=>{n[e]=encodeURIComponent(t[e])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),i&&(n.calypso_env=i);const o=Object.keys(n).map((e=>e+"="+n[e])).join("&");return"https://jetpack.com/redirect/?"+o}n.d(t,{Z:function(){return i}})},6251:function(e,t,n){let i={};try{i=n(Object(function(){var e=new Error("Cannot find module 'jetpackConfig'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}const o=e=>i.hasOwnProperty(e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return i[e]}}},4254:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r);const s=e=>{const{images:t,assetBaseUrl:n}=e;if(!t.length)return null;const i=t.map(((e,t)=>o().createElement(o().Fragment,{key:t},o().createElement("img",{src:n+e,alt:""}))));return o().createElement("div",{className:"jp-connection__connect-screen__image-slider"},i)};s.propTypes={images:c().arrayOf(c().string).isRequired,assetBaseUrl:c().string},s.defaultProps={assetBaseUrl:""},t.Z=s},7865:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(1546),a=n(4254);n(4959);const u=e=>{const{title:t,children:n,className:i,assetBaseUrl:r,images:c}=e,u=c?.length;return o().createElement("div",{className:"jp-connection__connect-screen-layout"+(u?" jp-connection__connect-screen-layout__two-columns":"")+(i?" "+i:"")},o().createElement("div",{className:"jp-connection__connect-screen-layout__left"},o().createElement(s.Z,null),o().createElement("h2",null,t),n),u?o().createElement("div",{className:"jp-connection__connect-screen-layout__right"},o().createElement(a.Z,{images:c,assetBaseUrl:r})):null)};u.propTypes={title:c().string,className:c().string,images:c().arrayOf(c().string),assetBaseUrl:c().string},t.Z=u},1213:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(9818),a=n(5736),u=n(5731),l=n(2199),p=n(1631);const __=a.__,d=e=>{const{title:t,autoTrigger:n,buttonLabel:i,apiRoot:r,apiNonce:c,registrationNonce:a,from:d,redirectUri:g,children:m,priceBefore:f,priceAfter:h,pricingIcon:y,pricingTitle:v,pricingCurrencyCode:b}=e,{handleRegisterSite:_,isRegistered:k,isUserConnected:w,siteIsRegistering:j,userIsConnecting:C,registrationError:E}=(0,p.Z)({registrationNonce:a,redirectUri:g,apiRoot:r,apiNonce:c,autoTrigger:n,from:d}),S=!k||!w,N=(0,s.useSelect)((e=>e(l.t).getConnectionStatusIsFetching())),O=Boolean(E),P=j||C;return o().createElement(u.Z,{title:t,buttonLabel:i,priceBefore:f,priceAfter:h,pricingIcon:y,pricingTitle:v,pricingCurrencyCode:b,isLoading:N,handleButtonClick:_,showConnectButton:S,displayButtonError:O,buttonIsLoading:P},m)};d.propTypes={title:c().string,buttonLabel:c().string,apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,registrationNonce:c().string.isRequired,from:c().string,redirectUri:c().string.isRequired,autoTrigger:c().bool,pricingTitle:c().string.isRequired,icon:c().string,priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,pricingCurrencyCode:c().string},d.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack-connection-ui"),buttonLabel:__("Set up Jetpack","jetpack-connection-ui"),pricingCurrencyCode:"USD",autoTrigger:!1},t.Z=d},5731:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5736),a=n(1415),u=n(1583),l=n(2678),p=n(9307),d=n(7865);n(2961);const __=s.__,g=e=>{const{title:t,buttonLabel:n,children:i,priceBefore:r,priceAfter:c,pricingIcon:s,pricingTitle:g,pricingCurrencyCode:m,isLoading:f,handleButtonClick:h,showConnectButton:y,displayButtonError:v,buttonIsLoading:b}=e,_=(0,p.createInterpolateElement)(__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack-connection-ui"),{tosLink:o().createElement("a",{href:(0,a.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o().createElement("a",{href:(0,a.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}),k=(0,p.createInterpolateElement)(__("Already have a subscription? <connectButton/> to get started.","jetpack-connection-ui"),{connectButton:o().createElement(u.Z,{label:__("Log in","jetpack-connection-ui"),onClick:h,isLoading:b})});return o().createElement(d.Z,{title:t,className:"jp-connection__connect-screen-required-plan"+(f?" jp-connection__connect-screen-required-plan__loading":"")},o().createElement("div",{className:"jp-connection__connect-screen-required-plan__content"},i,o().createElement("div",{className:"jp-connection__connect-screen-required-plan__pricing-card"},o().createElement(l.Z,{title:g,icon:s,priceBefore:r,currencyCode:m,priceAfter:c,infoText:y?_:""},y&&o().createElement(u.Z,{label:n,onClick:h,displayError:v,isLoading:b}))),y&&o().createElement("div",{className:"jp-connection__connect-screen-required-plan__with-subscription"},k)))};g.propTypes={pricingTitle:c().string.isRequired,priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,pricingCurrencyCode:c().string,title:c().string,buttonLabel:c().string,pricingIcon:c().string,isLoading:c().bool,handleButtonClick:c().func,showConnectButton:c().bool,displayButtonError:c().bool,buttonIsLoading:c().bool},g.defaultProps={pricingCurrencyCode:"USD",showConnectButton:!0,isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,handleButtonClick:()=>{}},t.Z=g},9565:function(e,t,n){"use strict";var i=n(9196),o=n(1268),r=n.n(o),c=n(9570);const s=e=>{const{redirectFunc:t,connectUrl:n,redirectUri:o,from:r}=e,[s,a]=(0,i.useState)(null);return n&&n!==s&&a(n),(0,i.useEffect)((()=>{s||c.ZP.fetchAuthorizationUrl(o).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(t(s+(r?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(r):"")),null):null};s.propTypes={connectUrl:r().string,redirectUri:r().string.isRequired,from:r().string,redirectFunc:r().func},s.defaultProps={redirectFunc:e=>window.location.assign(e),redirectUri:null},t.Z=s},3593:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5736),a=n(2332);const __=s.__,u=e=>{const{connectedPlugins:t,disconnectingPlugin:n}=e,r=(0,i.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>n!==e.slug))}return[]}),[t,n]);return t&&r.length>0?o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-connection-ui"))),o().createElement("div",{className:"jp-connection__disconnect-card__group"},r.map((e=>o().createElement(a.Z,{title:e.name}))))):null};u.PropTypes={connectedPlugins:c().object,disconnectingPlugin:c().string},t.Z=u},7132:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(5736),c=n(5609),s=n(1268),a=n.n(s),u=n(9570),l=n(9818),p=n(9565),d=n(5628),g=n(2199),m=n(1631);n(404);const __=r.__,f=e=>{const{apiRoot:t,apiNonce:n,redirectUri:r,title:s,connectionInfoText:a,onDisconnected:f,connectedPlugins:h,connectedSiteId:y,context:v}=e,{isRegistered:b,isUserConnected:_}=(0,m.Z)({apiRoot:t,apiNonce:n}),[k,w]=(0,i.useState)(!1),[j,C]=(0,i.useState)({}),[E,S]=(0,i.useState)(!1),N=(0,l.useSelect)((e=>e(g.t).getUserIsConnecting()),[]),{setConnectionStatus:O,setUserIsConnecting:P}=(0,l.useDispatch)(g.t),Z=(0,i.useRef)();(0,i.useEffect)((()=>{u.ZP.setApiRoot(t),u.ZP.setApiNonce(n)}),[t,n]),(0,i.useEffect)((()=>{w(!0),u.ZP.fetchSiteConnectionData().then((e=>{w(!1),C(e.currentUser?.wpcomUser);const t=e.currentUser?.wpcomUser?.avatar;t&&(Z.current.style.backgroundImage=`url('${t}')`)})).catch((e=>{throw w(!1),e}))}),[w,C]);const R=(0,i.useCallback)((e=>{e&&e.preventDefault(),S(!0)}),[S]),x=(0,i.useCallback)((e=>{e&&e.preventDefault(),S(!1)}),[S]),F=(0,i.useCallback)((e=>{e&&e.preventDefault(),O({isActive:!1,isRegistered:!1,isUserConnected:!1}),f&&"[object Function]"==={}.toString.call(f)&&f()}),[f,O]);return b?o().createElement("div",{className:"jp-connection-status-card"},o().createElement("h3",null,s),o().createElement("p",null,a),o().createElement("div",{className:"jp-connection-status-card--status"},o().createElement("div",{className:"jp-connection-status-card--cloud"}),o().createElement("div",{className:"jp-connection-status-card--line"+(_?"":" jp-connection-status-card--site-only")}),o().createElement("div",{className:"jp-connection-status-card--jetpack-logo"}),o().createElement("div",{className:"jp-connection-status-card--avatar",ref:Z})),o().createElement("ul",{className:"jp-connection-status-card--list"},o().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Site connected.","jetpack-connection-ui")," ",o().createElement(c.Button,{variant:"link",onClick:R,className:"jp-connection__disconnect-dialog__link"},__("Disconnect","jetpack-connection-ui")),o().createElement(d.Z,{apiRoot:t,apiNonce:n,onDisconnected:F,connectedPlugins:h,connectedSiteId:y,connectedUser:j,isOpen:E,onClose:x,context:v})),_&&!k&&o().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Logged in as","jetpack-connection-ui")," ",j?.display_name),!_&&!k&&o().createElement("li",{className:"jp-connection-status-card--list-item-error"},__("Your WordPress.com account is not connected.","jetpack-connection-ui"))),!_&&!k&&o().createElement(c.Button,{isPrimary:!0,disabled:N,onClick:P,className:"jp-connection-status-card--btn-connect-user"},__("Connect your WordPress.com account","jetpack-connection-ui")),N&&o().createElement(p.Z,{redirectUri:r})):null};f.propTypes={apiRoot:a().string.isRequired,apiNonce:a().string.isRequired,redirectUri:a().string.isRequired,connectedPlugins:a().object,connectedSiteId:a().number,title:a().string,connectionInfoText:a().string,onDisconnected:a().func,context:a().string},f.defaultProps={title:__("Connection","jetpack-connection-ui"),connectionInfoText:__("Leverages the Jetpack Cloud for more features on your side.","jetpack-connection-ui")},t.Z=f},2332:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r);n(1294);const s=e=>{const{title:t,value:n,description:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-card card"},o().createElement("div",{className:"jp-connection__disconnect-card__card-content"},o().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(n||i)&&o().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},o().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},n),o().createElement("div",{className:"jp-connection__disconnect-card__card-description"},i))))};s.propTypes={title:c().string,value:c().string|c().number,description:c().number},t.Z=s},5628:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5736),a=n(5609),u=n(9570),l=n(816),p=n(6251),d=(n(1545),n(163)),g=n(1496),m=n(4130),f=n(5700);const __=s.__,h=e=>{const[t,n]=(0,i.useState)(!1),[r,c]=(0,i.useState)(!1),[s,h]=(0,i.useState)(!1),[y,v]=(0,i.useState)(!1),[b,_]=(0,i.useState)(!1),[k,w]=(0,i.useState)(!1),{apiRoot:j,apiNonce:C,connectedPlugins:E,title:S,pluginScreenDisconnectCallback:N,onDisconnected:O,onError:P,disconnectStepComponent:Z,context:R,connectedUser:x,connectedSiteId:F,isOpen:T,onClose:I}=e;let A="";(0,p.jetpackConfigHas)("consumer_slug")&&(A=(0,p.jetpackConfigGet)("consumer_slug"));const L=(0,i.useMemo)((()=>({context:R,plugin:A})),[R,A]);(0,i.useEffect)((()=>{u.ZP.setApiRoot(j),u.ZP.setApiNonce(C)}),[j,C]),(0,i.useEffect)((()=>{x&&x.ID&&x.login&&l.Z.initialize(x.ID,x.login)}),[x,x.ID,x.login]),(0,i.useEffect)((()=>{T&&l.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",L)}),[T,L]),(0,i.useEffect)((()=>{T&&(r?!r||y||b?y&&!b?l.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},L)):b&&l.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},L)):l.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},L)):l.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},L)))}),[T,r,y,b,L]);const U=(0,i.useCallback)((()=>{u.ZP.disconnectSite().then((()=>{n(!1),c(!0)})).catch((e=>{n(!1),h(e),P&&P(e)}))}),[n,c,h,P]),D=(0,i.useCallback)(((e,t)=>{w(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);l.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),_(!0),w(!1)})).catch((e=>{l.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),_(!0),w(!1)}))}),[w,_]),$=(0,i.useCallback)((e=>{e&&e.preventDefault(),h(!1),n(!0),"plugins"!==R?U():N&&N(e)}),[h,n,N,R,U]),B=(0,i.useCallback)((()=>x.ID&&F),[x,F]),M=(0,i.useCallback)(((e,t,n)=>{if(n&&n.preventDefault(),!B())return void _(!0);const i={site_id:F,user_id:x.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},o=Object.assign({},L,{disconnect_reason:e});D(i,o)}),[D,_,B,F,x,L]),z=(0,i.useCallback)((e=>{e&&e.preventDefault(),O&&O(),I()}),[O,I]),J=(0,i.useCallback)((e=>{e&&e.preventDefault(),v(!0)}),[v]);return o().createElement(o().Fragment,null,T&&o().createElement(a.Modal,{title:"",contentLabel:S,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:I,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(r?" jp-connection__disconnect-dialog__success":"")},r?!r||y||b?y&&!b?o().createElement(m.Z,{isSubmittingFeedback:k,onFeedBackProvided:M,onExit:z}):b?o().createElement(f.Z,{onExit:z}):void 0:o().createElement(g.Z,{canProvideFeedback:B(),onProvideFeedback:J,onExit:z}):o().createElement(d.Z,{title:S,connectedPlugins:E,disconnectStepComponent:Z,isDisconnecting:t,closeModal:I,onDisconnect:$,disconnectError:s,context:R,disconnectingPlugin:A})))};h.propTypes={apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,title:c().string,onDisconnected:c().func,onError:c().func,context:c().string,connectedPlugins:c().object,pluginScreenDisconnectCallback:c().func,disconnectStepComponent:c().element,connectedUser:c().object,connectedSiteId:c().number,isOpen:c().bool,onClose:c().func},h.defaultProps={title:__("Are you sure you want to disconnect?","jetpack-connection-ui"),context:"jetpack-dashboard",connectedUser:{}},t.Z=h},1496:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(9307),a=n(5736),u=n(5609),l=n(9697),p=n(2042);const __=a.__,d=e=>{const{onExit:t,canProvideFeedback:n,onProvideFeedback:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement(l.Z,{icon:"unlink",imageUrl:p}),o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},o().createElement("h1",null,(0,s.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack-connection-ui"),{br:o().createElement("br",null)})),n&&o().createElement(o().Fragment,null,o().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-connection-ui")),o().createElement("p",null,o().createElement(u.Button,{isPrimary:!0,onClick:i,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-connection-ui"))),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack-connection-ui"))),!n&&o().createElement(o().Fragment,null,o().createElement("p",null,o().createElement(u.Button,{isPrimary:!0,onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection-ui"))))))};d.PropTypes={onExit:c().func,onProvideFeedback:c().func,canProvideFeedback:c().bool},t.Z=d},163:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(9307),c=n(5736),s=n(1415),a=n(5609),u=n(1268),l=n.n(u),p=n(3593);const __=c.__,d=e=>{const{title:t,isDisconnecting:n,onDisconnect:i,disconnectError:c,disconnectStepComponent:u,connectedPlugins:l,disconnectingPlugin:d,closeModal:g,context:m}=e;return o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),o().createElement(p.Z,{connectedPlugins:l,disconnectingPlugin:d}),u,(()=>{if(!l&&!u)return o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-connection-ui"),o().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-connection-ui")))})()),o().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},o().createElement("div",{className:"jp-row"},o().createElement("div",{className:"lg-col-span-7 md-col-span-8 sm-col-span-4"},o().createElement("p",null,(0,r.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack-connection-ui"),{strong:o().createElement("strong",null),jpConnectionInfoLink:o().createElement("a",{href:(0,s.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link"}),jpSupportLink:o().createElement("a",{href:(0,s.Z)("jetpack-support"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link"})}))),o().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-5 md-col-span-8 sm-col-span-4"},o().createElement(a.Button,{isPrimary:!0,disabled:n,onClick:g,className:"jp-connection__disconnect-dialog__btn-dismiss"},__("Stay connected","jetpack-connection-ui")),(()=>{let e=__("Disconnect","jetpack-connection-ui");return n?e=__("Disconnecting…","jetpack-connection-ui"):"plugins"===m&&(e=__("Disconnect and Deactivate","jetpack-connection-ui")),o().createElement(a.Button,{isPrimary:!0,disabled:n,onClick:i,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),c&&o().createElement("p",{className:"jp-connection__disconnect-dialog__error"},c)))};d.propTypes={title:l().string,isDisconnecting:l().bool,onDisconnect:l().func,disconnectError:l().bool,disconnectStepComponent:l().elementType,connectedPlugins:l().array,disconnectingPlugin:l().string,closeModal:l().func,context:l().string},t.Z=d},4130:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5736),a=(n(843),n(1194));const __=s.__,u=e=>{const{onExit:t,onFeedBackProvided:n,isSubmittingFeedback:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-connection-ui")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-connection-ui")),o().createElement(a.Z,{onSubmit:n,isSubmittingFeedback:i}),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack-connection-ui")))};u.PropTypes={onExit:c().func,onFeedBackProvided:c().func,isSubmittingFeedback:c().bool},t.Z=u},5700:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(9697),a=n(5736),u=n(5609),l=n(9307),p=n(724);const __=a.__,d=e=>{const{onExit:t}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement(s.Z,{format:"vertical",imageUrl:p}),o().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},o().createElement("h1",null,__("Thank you!","jetpack-connection-ui")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,l.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack-connection-ui"),{br:o().createElement("br",null)})),o().createElement(u.Button,{isPrimary:!0,onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection-ui"))))};d.PropTypes={onExit:c().func,assetBaseUrl:c().string},t.Z=d},1194:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(1268),c=n.n(r),s=n(5609),a=n(5736),u=n(7215);const __=a.__,l=e=>{const{onSubmit:t,isSubmittingFeedback:n}=e,[r,c]=(0,i.useState)(),[a,l]=(0,i.useState)(),p=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-connection-ui")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-connection-ui")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-connection-ui")},{id:"buggy",answerText:__("It's buggy.","jetpack-connection-ui")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-connection-ui")}],d="another-reason",g=(0,i.useCallback)((()=>{t(r,r===d?a:"")}),[t,d,a,r]),m=(0,i.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),l(t)}),[l]),f=e=>e===r?"jp-connect__disconnect-survey-card--selected":"",h=(0,i.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":c(e)}}),[c]);return o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},p.map((e=>o().createElement(u.Z,{id:e.id,onClick:c,onKeyDown:h,className:"card jp-connect__disconnect-survey-card "+f(e.id)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),o().createElement(u.Z,{id:d,onClick:c,onKeyDown:h,className:"card jp-connect__disconnect-survey-card "+f(d)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-connection-ui")," ",o().createElement("input",{placeholder:__("share your experience","jetpack-connection-ui"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:a,onChange:m,maxLength:1e3})))),o().createElement("p",null,o().createElement(s.Button,{disabled:!r||n,isPrimary:!0,onClick:g,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},n?__("Submitting…","jetpack-connection-ui"):__("Submit Feedback","jetpack-connection-ui",0))))};l.PropTypes={onSubmit:c().func,isSubmittingFeedback:c().bool},t.Z=l},7215:function(e,t,n){"use strict";var i=n(9196),o=n.n(i);n(843);t.Z=e=>{const{id:t,onClick:n,onKeyDown:r,children:c,className:s}=e,a=(0,i.useCallback)((()=>{n(t)}),[t,n]),u=(0,i.useCallback)((e=>{r(t,e)}),[t,r]);return o().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:u,className:"card jp-connect__disconnect-survey-card "+s},c)}},1631:function(e,t,n){"use strict";var i=n(9196),o=n(9818),r=n(9570),c=n(2199);t.Z=e=>{let{registrationNonce:t,redirectUri:n,apiRoot:s,apiNonce:a,autoTrigger:u,from:l}=e;const{registerSite:p,connectUser:d}=(0,o.useDispatch)(c.t),g=(0,o.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:f,isRegistered:h,isUserConnected:y}=(0,o.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),...e(c.t).getConnectionStatus()}))),v=()=>d({from:l}),b=e=>{e&&e.preventDefault(),h?v():p({registrationNonce:t,redirectUri:n}).then((()=>{v()}))};return(0,i.useEffect)((()=>{r.ZP.setApiRoot(s),r.ZP.setApiNonce(a)}),[s,a]),(0,i.useEffect)((()=>{!u||m||f||b()}),[]),{handleRegisterSite:b,handleConnectUser:v,isRegistered:h,isUserConnected:y,siteIsRegistering:m,userIsConnecting:f,registrationError:g}}},6973:function(e,t,n){"use strict";n.d(t,{i6:function(){return i},LI:function(){return o},r7:function(){return r},N4:function(){return c},qV:function(){return s},T1:function(){return a},TS:function(){return u},ZP:function(){return y}});const i="SET_CONNECTION_STATUS",o="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",s="SET_REGISTRATION_ERROR",a="CLEAR_REGISTRATION_ERROR",u="SET_AUTHORIZATION_URL",l="CONNECT_USER",p=e=>({type:i,connectionStatus:e}),d=e=>({type:r,isRegistering:e}),g=e=>({type:c,isConnecting:e}),m=e=>({type:s,registrationError:e}),f=()=>({type:a}),h=e=>({type:u,authorizationUrl:e});const y={setConnectionStatus:p,setConnectionStatusIsFetching:e=>({type:o,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:d,setUserIsConnecting:g,setRegistrationError:m,clearRegistrationError:f,setAuthorizationUrl:h,registerSite:function*(e){let{registrationNonce:t,redirectUri:n}=e;yield f(),yield d(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield p({isRegistered:!0}),yield h(e.authorizeUrl),yield d(!1),Promise.resolve(e)}catch(e){return yield m(e),yield d(!1),Promise.reject(e)}},connectUser:function*(){let{from:e,redirectFunc:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yield g(!0),yield{type:l,from:e,redirectFunc:t}}}},4213:function(e,t,n){"use strict";var i=n(9570),o=n(9818),r=n(2199);const c=(0,o.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((i,o)=>{t(r.t).getAuthorizationUrl().then((t=>{const o=n||(e=>window.location.assign(e)),r=new URL(t);e&&r.searchParams.set("from",encodeURIComponent(e));const c=r.toString();o(c),i(c)})).catch((e=>{o(e)}))}))}}));t.Z={FETCH_CONNECTION_STATUS:()=>new Promise(((e,t)=>{i.ZP.fetchSiteConnectionStatus().then((t=>e(t))).catch((e=>t(e)))})),FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return i.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return i.ZP.registerSite(t,n)},CONNECT_USER:c}},1147:function(e,t,n){"use strict";var i=n(9818),o=n(6973);const r=(0,i.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===o.i6?{...e,...t.connectionStatus}:e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===o.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===o.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===o.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case o.T1:return!1;case o.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===o.TS?t.authorizationUrl:e});t.Z=r},8310:function(e,t,n){"use strict";var i=n(9818),o=n(6973),r=n(2199);const c={*getConnectionStatus(){yield o.ZP.setConnectionStatusIsFetching(!0);const e=yield o.ZP.fetchConnectionStatus();return yield o.ZP.setConnectionStatusIsFetching(!1),o.ZP.setConnectionStatus(e)},getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];const s=(0,i.select)(r.t).hasFinishedResolution("getAuthorizationUrl",o);return t&&!s&&(0,i.dispatch)(r.t).finishResolution("getAuthorizationUrl",o),t},*fulfill(e){const t=yield o.ZP.fetchAuthorizationUrl(e);yield o.ZP.setAuthorizationUrl(t.authorizeUrl)}}};t.Z={...c}},387:function(e,t){"use strict";const n={getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:e=>e.connectionStatusIsFetching||!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1};t.Z=n},5333:function(e,t,n){"use strict";var i=n(7538),o=n.n(i),r=n(9818);class c{static mayBeInit(e,t){null===c.store&&(c.store=(0,r.createReduxStore)(e,t),(0,r.register)(c.store),c.resolveResolvers(e,t.initialState))}static resolveResolvers(e,t){t.connectionStatus&&t.connectionStatus.hasOwnProperty("isRegistered")&&(0,r.dispatch)(e).finishResolution("getConnectionStatus",[])}}o()(c,"store",null),t.Z=c},2199:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var i=n(1147),o=n(6973),r=n(387),c=n(5333),s=n(8310),a=n(4213);const u="jetpack-connection";c.Z.mayBeInit(u,{reducer:i.Z,actions:o.ZP,selectors:r.Z,resolvers:s.Z,controls:a.Z,initialState:window.JP_CONNECTION_INITIAL_STATE||{}})},8509:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(9818),c=n(5736),s=n(9570),a=n(7132),u=n(1213),l=n(2199),p=n(682),d=n(8547);const __=c.__;t.Z=(0,r.withSelect)((e=>({connectionStatus:e(l.t).getConnectionStatus()})))((e=>{const t=(0,r.useSelect)((e=>e(p.t).getAPINonce()),[]),n=(0,r.useSelect)((e=>e(p.t).getAPIRoot()),[]),c=(0,r.useSelect)((e=>e(p.t).getRegistrationNonce()),[]),{hasIDC:l,canManageConnection:g,isSafeModeConfirmed:m}=(0,r.useSelect)((e=>e(p.t).getIDCData()),[]),{connectionStatus:f}=e;return(0,i.useEffect)((()=>{s.ZP.setApiRoot(n),s.ZP.setApiNonce(t)}),[n,t]),o().createElement(o().Fragment,null,(!l||m)&&o().createElement(d.Z,null),(!l||m)&&g&&f.isRegistered&&o().createElement(a.Z,{apiRoot:n,apiNonce:t,redirectUri:"tools.php?page=wpcom-connection-manager"}),(!l||m)&&g&&!f.isRegistered&&o().createElement(u.Z,{connectionStatus:f,apiRoot:n,apiNonce:t,registrationNonce:c,from:"connection-ui",redirectUri:"tools.php?page=wpcom-connection-manager",pricingIcon:"data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m21.092 15.164.019-1.703v-.039c0-1.975-1.803-3.866-4.4-3.866-2.17 0-3.828 1.351-4.274 2.943l-.426 1.524-1.581-.065a2.92 2.92 0 0 0-.12-.002c-1.586 0-2.977 1.344-2.977 3.133 0 1.787 1.388 3.13 2.973 3.133H22.399c1.194 0 2.267-1.016 2.267-2.4 0-1.235-.865-2.19-1.897-2.368l-1.677-.29Zm-10.58-3.204a4.944 4.944 0 0 0-.201-.004c-2.75 0-4.978 2.298-4.978 5.133s2.229 5.133 4.978 5.133h12.088c2.357 0 4.267-1.97 4.267-4.4 0-2.18-1.538-3.99-3.556-4.339v-.06c0-3.24-2.865-5.867-6.4-5.867-2.983 0-5.49 1.871-6.199 4.404Z' fill='%23000'/%3E%3C/svg%3E",priceBefore:9,priceAfter:4.5,pricingTitle:__("Jetpack Backup","jetpack-connection-ui"),buttonLabel:__("Get Jetpack Backup","jetpack-connection-ui")},o().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack-connection-ui")),o().createElement("ul",null,o().createElement("li",null,__("Measure your impact with beautiful stats","jetpack-connection-ui")),o().createElement("li",null,__("Speed up your site with optimized images","jetpack-connection-ui")),o().createElement("li",null,__("Protect your site against bot attacks","jetpack-connection-ui")),o().createElement("li",null,__("Get notifications if your site goes offline","jetpack-connection-ui")),o().createElement("li",null,__("Enhance your site with dozens of other features","jetpack-connection-ui")))),(!l||m)&&!g&&o().createElement("p",null,"You need to be an admin to access this page."))}))},8547:function(e,t,n){"use strict";var i=n(9196),o=n.n(i),r=n(5736);const __=r.__;t.Z=()=>o().createElement("div",{className:"jetpack-cui__header"},o().createElement("h1",null,__("Connection Manager","jetpack-connection-ui")))},5472:function(e,t){"use strict";t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},3379:function(e,t){"use strict";t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},2310:function(e,t){"use strict";t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},4665:function(e,t,n){"use strict";var i=n(9818),o=n(5472),r=n(3379),c=n(2310);const s=(0,i.combineReducers)({API:o.Z,assets:r.Z,IDC:c.Z});t.Z=s},6931:function(e,t){"use strict";t.Z={getAPIRoot:e=>e.API.WP_API_root||null,getAPINonce:e=>e.API.WP_API_nonce||null,getRegistrationNonce:e=>e.API.registrationNonce||null}},4447:function(e,t){"use strict";t.Z={getAssetBuildUrl:e=>e.assets.buildUrl||null}},9546:function(e,t){"use strict";t.Z={getIDCData:e=>e.IDC||{}}},246:function(e,t,n){"use strict";var i=n(6931),o=n(4447),r=n(9546);const c={...i.Z,...o.Z,...r.Z};t.Z=c},682:function(e,t,n){"use strict";n.d(t,{t:function(){return r},i:function(){return c}});var i=n(4665),o=n(246);const r="jetpack-connection-ui",c={reducer:i.Z,selectors:o.Z,initialState:window.CUI_INITIAL_STATE||{}}},1043:function(e,t,n){"use strict";var i=n(1625),o=n(9196);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,r=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=r[0];var c=r[1];return r=e.value,e.getCurrentValue===t&&e.subscribe===n||(r=t(),c({getCurrentValue:t,subscribe:n,value:r})),o.useDebugValue(r),o.useEffect((function(){function e(){if(!o){var e=t();c((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:i({},o,{value:e})}))}}var o=!1,r=n(e);return e(),function(){o=!0,r()}}),[t,n]),r}},36:function(e,t,n){"use strict";e.exports=n(1043)},2042:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},724:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},9196:function(e){"use strict";e.exports=window.React},1850:function(e){"use strict";e.exports=window.ReactDOM},2819:function(e){"use strict";e.exports=window.lodash},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},9307:function(e){"use strict";e.exports=window.wp.element},5736:function(e){"use strict";e.exports=window.wp.i18n},6483:function(e){"use strict";e.exports=window.wp.url},8134:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{Z:function(){return i}})},4316:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return i}})},7024:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(8134);function o(e){if(Array.isArray(e))return(0,i.Z)(e)}},5200:function(e,t,n){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return i}})},1687:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return i}})},3772:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,{Z:function(){return o}})},9057:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(2406),o=n(8189),r=n(4621);function c(e){var t=(0,o.Z)();return function(){var n,o=(0,i.Z)(e);if(t){var c=(0,i.Z)(this).constructor;n=Reflect.construct(o,arguments,c)}else n=o.apply(this,arguments);return(0,r.Z)(this,n)}}},8086:function(e,t,n){"use strict";function i(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 i}})},5672:function(e,t,n){"use strict";function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}n.d(t,{Z:function(){return i}})},2406:function(e,t,n){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},2104:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(3051);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,i.Z)(e,t)}},8189:function(e,t,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return i}})},613:function(e,t,n){"use strict";function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return i}})},120:function(e,t,n){"use strict";function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],_n=!0,c=!1;try{for(n=n.call(e);!(_n=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);_n=!0);}catch(e){c=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(c)throw o}}return r}}n.d(t,{Z:function(){return i}})},1722:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return i}})},6083:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return i}})},2141:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(8086);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){(0,i.Z)(e,t,n[t])}))}return e}},9591:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(8086);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4621:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(9504),o=n(5200);function r(e,t){if(t&&("object"===(0,i.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},3051:function(e,t,n){"use strict";function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}n.d(t,{Z:function(){return i}})},572:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(4316),o=n(120),r=n(3611),c=n(1722);function s(e,t){return(0,i.Z)(e)||(0,o.Z)(e,t)||(0,r.Z)(e,t)||(0,c.Z)()}},9128:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(7024),o=n(613),r=n(3611),c=n(6083);function s(e){return(0,i.Z)(e)||(0,o.Z)(e)||(0,r.Z)(e)||(0,c.Z)()}},9504:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{Z:function(){return i}})},3611:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(8134);function o(e,t){if(e){if("string"==typeof e)return(0,i.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(e,t):void 0}}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.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 i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){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 i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){"use strict";var e=n(1850),t=n.n(e),i=n(9196),o=n.n(i),r=n(9818),c=n(8509),s=n(682);const a=(0,r.createReduxStore)(s.t,s.i);(0,r.register)(a),function(){const e=document.getElementById("jetpack-connection-ui-container");null!==e&&t().render(o().createElement(c.Z,null),e)}()}()}(); \ No newline at end of file
+__("Icon for the product %s","jetpack-connection-ui"),e.title)})),o().createElement("h1",{className:"jp-components__pricing-card__title"},e.title),o().createElement("div",{className:"jp-components__pricing-card__pricing"},e.priceBefore!==e.priceAfter&&o().createElement("div",{className:"jp-components__pricing-card__price-before"},o().createElement("span",{className:"jp-components__pricing-card__currency"},n.symbol),o().createElement("span",{className:"jp-components__pricing-card__price"},n.integer),u(n)&&o().createElement("span",{className:"jp-components__pricing-card__price-decimal"}," ",n.fraction),o().createElement("div",{className:"jp-components__pricing-card__price-strikethrough"})),o().createElement("div",{className:"jp-components__pricing-card__price-after"},o().createElement("span",{className:"jp-components__pricing-card__currency"},t.symbol),o().createElement("span",{className:"jp-components__pricing-card__price"},t.integer),u(t)&&o().createElement("span",{className:"jp-components__pricing-card__price-decimal"},t.fraction)),o().createElement("span",{className:"jp-components__pricing-card__price-details"},e.priceDetails)),e.children&&o().createElement("div",{className:"jp-components__pricing-card__extra-content-wrapper"},e.children),e.ctaText&&o().createElement("div",{className:"jp-components__pricing-card__cta"},o().createElement(s.Button,{className:"jp-components__pricing-card__button",label:e.ctaText,onClick:e.onCtaClick},e.ctaText)),e.infoText&&o().createElement("div",{className:"jp-components__pricing-card__info"},e.infoText))};p.propTypes={title:r().string.isRequired,icon:r().string,priceBefore:r().number.isRequired,priceAfter:r().number.isRequired,priceDetails:r().string,currencyCode:r().string,ctaText:r().string,onCtaClick:r().func,infoText:r().oneOfType([r().string,r().object])},p.defaultProps={currencyCode:"USD",priceDetails:__("/month, paid yearly","jetpack-connection-ui")},n.Z=p},6017:function(e,n,t){"use strict";t.d(n,{h:function(){return i},s:function(){return o}});const i={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p",label:"p"},o=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},5106:function(e,n,t){"use strict";t.d(n,{H3:function(){return d}});var i=t(2402),o=t.n(i),c=t(9196),r=t.n(c),s=t(5235),a=t.n(s),l=t(3280),u=t(6017);const p=e=>{let{variant:n="body",children:t,component:i,className:s,...p}=e;const d=i||u.h[n]||"span",g=(0,c.useMemo)((()=>u.s.reduce(((e,n)=>(void 0!==p[n]&&(e+=l.Z[`${n}-${p[n]}`]+" ",delete p[n]),e)),"")),[p]);return r().createElement(d,o()({className:a()(l.Z.reset,l.Z[n],s,g)},p),t)};n.ZP=p;const d=e=>{let{children:n,weight:t="bold",...i}=e;const c="headline-small"+("bold"===t?"":`-${t}`);return r().createElement(p,o()({variant:c,mb:3},i),n)}},9922:function(e,n,t){"use strict";function i(e,n,t,i){const o=new URL("https://wordpress.com/checkout/"),c=new URL(`${o}${n}/${e}`);return c.searchParams.set("redirect_to",t),i||c.searchParams.set("unlinked",1),c.searchParams.set("site",n),c.toString()}t.d(n,{Z:function(){return i}})},6324:function(e,n,t){"use strict";function i(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t={};let i;var o;"undefined"!=typeof window&&(i=null===(o=window.Initial_State)||void 0===o?void 0:o.calypsoEnv);if(0===e.search("https://")){const n=new URL(e);e=`https://${n.host}${n.pathname}`,t.url=encodeURIComponent(e)}else t.source=encodeURIComponent(e);Object.keys(n).map((e=>{t[e]=encodeURIComponent(n[e])})),!Object.keys(t).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(t.site=jetpack_redirects.currentSiteRawUrl),i&&(t.calypso_env=i);const c=Object.keys(t).map((e=>e+"="+t[e])).join("&");return"https://jetpack.com/redirect/?"+c}t.d(n,{Z:function(){return i}})},1132:function(e,n,t){let i={};try{i=t(Object(function(){var e=new Error("Cannot find module 'jetpackConfig'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}const o=e=>i.hasOwnProperty(e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return i[e]}}},2458:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c);const s=e=>{const{images:n,assetBaseUrl:t}=e;if(!n.length)return null;const i=n.map(((e,n)=>o().createElement(o().Fragment,{key:n},o().createElement("img",{src:t+e,alt:""}))));return o().createElement("div",{className:"jp-connection__connect-screen__image-slider"},i)};s.propTypes={images:r().arrayOf(r().string).isRequired,assetBaseUrl:r().string},s.defaultProps={assetBaseUrl:""},n.Z=s},8524:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(1202),a=t(2458);t(9610);const l=e=>{const{title:n,children:t,className:i,assetBaseUrl:c,images:r}=e,l=null==r?void 0:r.length;return o().createElement("div",{className:"jp-connection__connect-screen-layout"+(l?" jp-connection__connect-screen-layout__two-columns":"")+(i?" "+i:"")},o().createElement("div",{className:"jp-connection__connect-screen-layout__left"},o().createElement(s.Z,null),o().createElement("h2",null,n),t),l?o().createElement("div",{className:"jp-connection__connect-screen-layout__right"},o().createElement(a.Z,{images:r,assetBaseUrl:c})):null)};l.propTypes={title:r().string,className:r().string,images:r().arrayOf(r().string),assetBaseUrl:r().string},n.Z=l},7710:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5736),a=t(4082),l=t(1294),u=t(8258);const __=s.__,p=e=>{const{title:n,autoTrigger:t,buttonLabel:i,apiRoot:c,apiNonce:r,registrationNonce:s,from:p,redirectUri:d,children:g,priceBefore:m,priceAfter:f,pricingIcon:h,pricingTitle:y,pricingCurrencyCode:b,wpcomProductSlug:_,siteProductAvailabilityHandler:k}=e,{handleRegisterSite:v,isRegistered:C,isUserConnected:E,siteIsRegistering:j,userIsConnecting:w,registrationError:S}=(0,l.Z)({registrationNonce:s,redirectUri:d,apiRoot:c,apiNonce:r,autoTrigger:t,from:p}),N=_||"",{run:P,hasCheckoutStarted:R}=(0,u.Z)({productSlug:N,redirectUrl:d,siteProductAvailabilityHandler:k,from:p}),T=!C||!E,I=Boolean(S),U=j||w||R,Z=N?P:v;return o().createElement(a.Z,{title:n,buttonLabel:i,priceBefore:m,priceAfter:f,pricingIcon:h,pricingTitle:y,pricingCurrencyCode:b,handleButtonClick:Z,showConnectButton:T,displayButtonError:I,buttonIsLoading:U},g)};p.propTypes={title:r().string,buttonLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,registrationNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,autoTrigger:r().bool,pricingTitle:r().string.isRequired,icon:r().string,priceBefore:r().number.isRequired,priceAfter:r().number.isRequired,pricingCurrencyCode:r().string,wpcomProductSlug:r().string,checkSiteHasWpcomProduct:r().func},p.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack-connection-ui"),buttonLabel:__("Set up Jetpack","jetpack-connection-ui"),pricingCurrencyCode:"USD",autoTrigger:!1},n.Z=p},4082:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5736),a=t(6324),l=t(7121),u=t(667),p=t(9307),d=t(8524);t(2917);const __=s.__,g=e=>{const{title:n,buttonLabel:t,children:i,priceBefore:c,priceAfter:r,pricingIcon:s,pricingTitle:g,pricingCurrencyCode:m,isLoading:f,handleButtonClick:h,showConnectButton:y,displayButtonError:b,buttonIsLoading:_}=e,k=(0,p.createInterpolateElement)(__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack-connection-ui"),{tosLink:o().createElement("a",{href:(0,a.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o().createElement("a",{href:(0,a.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}),v=(0,p.createInterpolateElement)(__("Already have a subscription? <connectButton/>","jetpack-connection-ui"),{connectButton:o().createElement(l.Z,{label:__("Log in to get started","jetpack-connection-ui"),onClick:h,isLoading:_})});return o().createElement(d.Z,{title:n,className:"jp-connection__connect-screen-required-plan"+(f?" jp-connection__connect-screen-required-plan__loading":"")},o().createElement("div",{className:"jp-connection__connect-screen-required-plan__content"},i,o().createElement("div",{className:"jp-connection__connect-screen-required-plan__pricing-card"},o().createElement(u.Z,{title:g,icon:s,priceBefore:c,currencyCode:m,priceAfter:r,infoText:y?k:""},y&&o().createElement(l.Z,{label:t,onClick:h,displayError:b,isLoading:_}))),y&&o().createElement("div",{className:"jp-connection__connect-screen-required-plan__with-subscription"},v)))};g.propTypes={pricingTitle:r().string.isRequired,priceBefore:r().number.isRequired,priceAfter:r().number.isRequired,pricingCurrencyCode:r().string,title:r().string,buttonLabel:r().string,pricingIcon:r().string,isLoading:r().bool,handleButtonClick:r().func,showConnectButton:r().bool,displayButtonError:r().bool,buttonIsLoading:r().bool},g.defaultProps={pricingCurrencyCode:"USD",showConnectButton:!0,isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,handleButtonClick:()=>{}},n.Z=g},9625:function(e,n,t){"use strict";var i=t(9196),o=t(5162),c=t.n(o),r=t(4743);const s=e=>{const{redirectFunc:n,connectUrl:t,redirectUri:o,from:c}=e,[s,a]=(0,i.useState)(null);return t&&t!==s&&a(t),(0,i.useEffect)((()=>{s||r.ZP.fetchAuthorizationUrl(o).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(n(s+(c?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(c):"")),null):null};s.propTypes={connectUrl:c().string,redirectUri:c().string.isRequired,from:c().string,redirectFunc:c().func},s.defaultProps={redirectFunc:e=>window.location.assign(e),redirectUri:null},n.Z=s},7879:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5736),a=t(4322);const __=s.__,l=e=>{const{connectedPlugins:n,disconnectingPlugin:t}=e,c=(0,i.useMemo)((()=>{if(n){return Object.keys(n).map((e=>Object.assign({slug:e},n[e]))).filter((e=>t!==e.slug))}return[]}),[n,t]);return n&&c.length>0?o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-connection-ui"))),o().createElement("div",{className:"jp-connection__disconnect-card__group"},c.map((e=>o().createElement(a.Z,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:r().array,disconnectingPlugin:r().string},n.Z=l},9159:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5736),r=t(5162),s=t.n(r),a=t(4743),l=t(5106),u=t(526),p=t(9818),d=t(9625),g=t(6168),m=t(428),f=t(1294);t(2427);const __=c.__,h=e=>{var n,t,c,r;const{apiRoot:s,apiNonce:h,redirectUri:y,title:b,connectionInfoText:_,onDisconnected:k,connectedPlugins:v,connectedSiteId:C,context:E,onConnectUser:j,requiresUserConnection:w}=e,{isRegistered:S,isUserConnected:N,userConnectionData:P,hasConnectedOwner:R}=(0,f.Z)({apiRoot:s,apiNonce:h}),T=w&&!R,I=(0,i.useRef)(),U=null===(n=P.currentUser)||void 0===n||null===(t=n.wpcomUser)||void 0===t?void 0:t.avatar;(0,i.useEffect)((()=>{U&&(I.current.style.backgroundImage=`url('${U}')`)}),[U]);const[Z,O]=(0,i.useState)(!1),D=(0,p.useSelect)((e=>e(m.t).getUserIsConnecting()),[]),{setConnectionStatus:x,setUserIsConnecting:F}=(0,p.useDispatch)(m.t),A=j||F;(0,i.useEffect)((()=>{a.ZP.setApiRoot(s),a.ZP.setApiNonce(h)}),[s,h]);const L=(0,i.useCallback)((e=>{e&&e.preventDefault(),O(!0)}),[O]),B=(0,i.useCallback)((e=>{e&&e.preventDefault(),O(!1)}),[O]),$=(0,i.useCallback)((e=>{e&&e.preventDefault(),x({isActive:!1,isRegistered:!1,isUserConnected:!1}),k&&"[object Function]"==={}.toString.call(k)&&k()}),[k,x]);return S?o().createElement("div",{className:"jp-connection-status-card"},o().createElement(l.H3,null,b),o().createElement(l.ZP,{variant:"body"},_),o().createElement("div",{className:"jp-connection-status-card--status"},o().createElement("div",{className:"jp-connection-status-card--cloud"}),o().createElement("div",{className:"jp-connection-status-card--line"+(N?"":" jp-connection-status-card--site-only")}),o().createElement("div",{className:"jp-connection-status-card--jetpack-logo"}),o().createElement("div",{className:"jp-connection-status-card--avatar",ref:I})),o().createElement("ul",{className:"jp-connection-status-card--list"},o().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Site connected.","jetpack-connection-ui")," ",o().createElement(u.Z,{variant:"link",weight:"regular",onClick:L,className:"jp-connection__disconnect-dialog__link"},__("Disconnect","jetpack-connection-ui")),o().createElement(g.Z,{apiRoot:s,apiNonce:h,onDisconnected:$,connectedPlugins:v,connectedSiteId:C,connectedUser:P,isOpen:Z,onClose:B,context:E})),N&&o().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Logged in as","jetpack-connection-ui")," ",null===(c=P.currentUser)||void 0===c||null===(r=c.wpcomUser)||void 0===r?void 0:r.display_name),(!N||!R)&&o().createElement("li",{className:"jp-connection-status-card--list-item-"+(T?"error":"info")},T&&__("Requires user connection.","jetpack-connection-ui")," ",o().createElement(u.Z,{variant:"link",disabled:D,onClick:A,className:"jp-connection-status-card--btn-connect-user"},__("Connect your user account","jetpack-connection-ui")))),D&&o().createElement(d.Z,{redirectUri:y})):null};h.propTypes={apiRoot:s().string.isRequired,apiNonce:s().string.isRequired,redirectUri:s().string,connectedPlugins:s().array,connectedSiteId:s().number,title:s().string,connectionInfoText:s().string,onDisconnected:s().func,context:s().string,onConnectUser:s().func,requiresUserConnection:s().bool},h.defaultProps={title:__("Connection","jetpack-connection-ui"),connectionInfoText:__("Leverages the cloud for more powerful Jetpack features.","jetpack-connection-ui"),redirectUri:null,onConnectUser:null,requiresUserConnection:!0},n.Z=h},4322:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c);t(4220);const s=e=>{const{title:n,value:t,description:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-card card"},o().createElement("div",{className:"jp-connection__disconnect-card__card-content"},o().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},n),(t||i)&&o().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},o().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},t),o().createElement("div",{className:"jp-connection__disconnect-card__card-description"},i))))};s.propTypes={title:r().string,value:r().oneOfType([r().string,r().number]),description:r().number},n.Z=s},6168:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5736),a=t(5609),l=t(4743),u=t(6975),p=t(1132),d=(t(287),t(9015)),g=t(5995),m=t(1702),f=t(1166);const __=s.__,h=e=>{const[n,t]=(0,i.useState)(!1),[c,r]=(0,i.useState)(!1),[s,h]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),[_,k]=(0,i.useState)(!1),[v,C]=(0,i.useState)(!1),{apiRoot:E,apiNonce:j,connectedPlugins:w,title:S,pluginScreenDisconnectCallback:N,onDisconnected:P,onError:R,disconnectStepComponent:T,context:I,connectedUser:U,connectedSiteId:Z,isOpen:O,onClose:D}=e;let x="";(0,p.jetpackConfigHas)("consumer_slug")&&(x=(0,p.jetpackConfigGet)("consumer_slug"));const F=(0,i.useMemo)((()=>({context:I,plugin:x})),[I,x]);(0,i.useEffect)((()=>{l.ZP.setApiRoot(E),l.ZP.setApiNonce(j)}),[E,j]),(0,i.useEffect)((()=>{U&&U.ID&&U.login&&u.Z.initialize(U.ID,U.login)}),[U,U.ID,U.login]),(0,i.useEffect)((()=>{O&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",F)}),[O,F]),(0,i.useEffect)((()=>{O&&(c?!c||y||_?y&&!_?u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},F)):_&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},F)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},F)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},F)))}),[O,c,y,_,F]);const A=(0,i.useCallback)((()=>{l.ZP.disconnectSite().then((()=>{t(!1),r(!0)})).catch((e=>{t(!1),h(e),R&&R(e)}))}),[t,r,h,R]),L=(0,i.useCallback)(((e,n)=>{C(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);u.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",n),k(!0),C(!1)})).catch((e=>{u.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},n)),k(!0),C(!1)}))}),[C,k]),B=(0,i.useCallback)((e=>{e&&e.preventDefault(),h(!1),t(!0),"plugins"!==I?A():N&&N(e)}),[h,t,N,I,A]),$=(0,i.useCallback)((e=>u.Z.tracks.recordEvent(e,F)),[F]),M=(0,i.useCallback)((()=>U.ID&&Z),[U,Z]),J=(0,i.useCallback)(((e,n,t)=>{if(t&&t.preventDefault(),!M())return void k(!0);const i={site_id:Z,user_id:U.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:n||null}}},o=Object.assign({},F,{disconnect_reason:e});L(i,o)}),[L,k,M,Z,U,F]),z=(0,i.useCallback)((e=>{e&&e.preventDefault(),P&&P(),D()}),[P,D]),q=(0,i.useCallback)((e=>{e&&e.preventDefault(),b(!0)}),[b]);return o().createElement(o().Fragment,null,O&&o().createElement(a.Modal,{title:"",contentLabel:S,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:D,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(c?" jp-connection__disconnect-dialog__success":"")},c?!c||y||_?y&&!_?o().createElement(m.Z,{isSubmittingFeedback:v,onFeedBackProvided:J,onExit:z}):_?o().createElement(f.Z,{onExit:z}):void 0:o().createElement(g.Z,{canProvideFeedback:M(),onProvideFeedback:q,onExit:z}):o().createElement(d.Z,{title:S,connectedPlugins:w,disconnectStepComponent:T,isDisconnecting:n,closeModal:D,onDisconnect:B,disconnectError:s,context:I,disconnectingPlugin:x,trackModalClick:$})))};h.propTypes={apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,title:r().string,onDisconnected:r().func,onError:r().func,context:r().string,connectedPlugins:r().oneOfType([r().array,r().object]),pluginScreenDisconnectCallback:r().func,disconnectStepComponent:r().element,connectedUser:r().object,connectedSiteId:r().number,isOpen:r().bool,onClose:r().func},h.defaultProps={title:__("Are you sure you want to disconnect?","jetpack-connection-ui"),context:"jetpack-dashboard",connectedUser:{}},n.Z=h},5995:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(9307),a=t(5736),l=t(5609),u=t(1133),p=t(2042);const __=a.__,d=e=>{const{onExit:n,canProvideFeedback:t,onProvideFeedback:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement(u.Z,{icon:"unlink",imageUrl:p}),o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},o().createElement("h1",null,(0,s.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack-connection-ui"),{br:o().createElement("br",null)})),t&&o().createElement(o().Fragment,null,o().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-connection-ui")),o().createElement("p",null,o().createElement(l.Button,{variant:"primary",onClick:i,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-connection-ui"))),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("No thank you","jetpack-connection-ui"))),!t&&o().createElement(o().Fragment,null,o().createElement("p",null,o().createElement(l.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection-ui"))))))};d.propTypes={onExit:r().func,onProvideFeedback:r().func,canProvideFeedback:r().bool},n.Z=d},9015:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(9307),r=t(5736),s=t(6324),a=t(5609),l=t(5162),u=t.n(l),p=t(7879);const __=r.__,d=e=>{const{title:n,isDisconnecting:t,onDisconnect:r,disconnectError:l,disconnectStepComponent:u,connectedPlugins:d,disconnectingPlugin:g,closeModal:m,context:f,trackModalClick:h}=e,y=(0,i.useCallback)((()=>h("jetpack_disconnect_dialog_click_learn_about")),[h]),b=(0,i.useCallback)((()=>h("jetpack_disconnect_dialog_click_support")),[h]),_=(0,i.useCallback)((()=>{h("jetpack_disconnect_dialog_click_stay_connected"),m()}),[h,m]),k=(0,i.useCallback)((e=>{h("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[h,r]);return o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},n),o().createElement(p.Z,{connectedPlugins:d,disconnectingPlugin:g}),u,(()=>{if(!(d&&Object.keys(d).filter((e=>e!==g)).length)&&!u)return o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-connection-ui"),o().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-connection-ui")))})()),o().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},o().createElement("div",{className:"jp-row"},o().createElement("div",{className:"lg-col-span-7 md-col-span-8 sm-col-span-4"},o().createElement("p",null,(0,c.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack-connection-ui"),{strong:o().createElement("strong",null),jpConnectionInfoLink:o().createElement("a",{href:(0,s.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:y}),jpSupportLink:o().createElement("a",{href:(0,s.Z)("jetpack-support"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:b})}))),o().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-5 md-col-span-8 sm-col-span-4"},o().createElement(a.Button,{variant:"primary",disabled:t,onClick:_,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===f?__("Cancel","jetpack-connection-ui"):__("Stay connected","jetpack-connection-ui",0)),(()=>{let e=__("Disconnect","jetpack-connection-ui");return t?e=__("Disconnecting…","jetpack-connection-ui"):"plugins"===f&&(e=__("Deactivate","jetpack-connection-ui")),o().createElement(a.Button,{variant:"primary",disabled:t,onClick:k,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),l&&o().createElement("p",{className:"jp-connection__disconnect-dialog__error"},l)))};d.propTypes={title:u().string,isDisconnecting:u().bool,onDisconnect:u().func,disconnectError:u().bool,disconnectStepComponent:u().elementType,connectedPlugins:u().array,disconnectingPlugin:u().string,closeModal:u().func,context:u().string,trackModalClick:u().func},n.Z=d},1702:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5736),a=(t(9823),t(6336));const __=s.__,l=e=>{const{onExit:n,onFeedBackProvided:t,isSubmittingFeedback:i}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-connection-ui")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-connection-ui")),o().createElement(a.Z,{onSubmit:t,isSubmittingFeedback:i}),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("Skip for now","jetpack-connection-ui")))};l.PropTypes={onExit:r().func,onFeedBackProvided:r().func,isSubmittingFeedback:r().bool},n.Z=l},1166:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(1133),a=t(5736),l=t(5609),u=t(9307),p=t(724);const __=a.__,d=e=>{const{onExit:n}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement(s.Z,{format:"vertical",imageUrl:p}),o().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},o().createElement("h1",null,__("Thank you!","jetpack-connection-ui")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,u.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack-connection-ui"),{br:o().createElement("br",null)})),o().createElement(l.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection-ui"))))};d.PropTypes={onExit:r().func,assetBaseUrl:r().string},n.Z=d},6336:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5162),r=t.n(c),s=t(5609),a=t(5736),l=t(4372);const __=a.__,u=e=>{const{onSubmit:n,isSubmittingFeedback:t}=e,[c,r]=(0,i.useState)(),[a,u]=(0,i.useState)(),p=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-connection-ui")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-connection-ui")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-connection-ui")},{id:"buggy",answerText:__("It's buggy.","jetpack-connection-ui")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-connection-ui")}],d="another-reason",g=(0,i.useCallback)((()=>{n(c,c===d?a:"")}),[n,d,a,c]),m=(0,i.useCallback)((e=>{const n=e.target.value;e.stopPropagation(),u(n)}),[u]),f=e=>e===c?"jp-connect__disconnect-survey-card--selected":"",h=(0,i.useCallback)(((e,n)=>{switch(n.key){case"Enter":case"Space":case"Spacebar":case" ":r(e)}}),[r]);return o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},p.map((e=>o().createElement(l.Z,{id:e.id,onClick:r,onKeyDown:h,className:"card jp-connect__disconnect-survey-card "+f(e.id)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),o().createElement(l.Z,{id:d,onClick:r,onKeyDown:h,className:"card jp-connect__disconnect-survey-card "+f(d)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-connection-ui")," ",o().createElement("input",{placeholder:__("share your experience","jetpack-connection-ui"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:a,onChange:m,maxLength:1e3})))),o().createElement("p",null,o().createElement(s.Button,{disabled:!c||t,variant:"primary",onClick:g,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},t?__("Submitting…","jetpack-connection-ui"):__("Submit Feedback","jetpack-connection-ui",0))))};u.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool},n.Z=u},4372:function(e,n,t){"use strict";var i=t(9196),o=t.n(i);t(9823);n.Z=e=>{const{id:n,onClick:t,onKeyDown:c,children:r,className:s}=e,a=(0,i.useCallback)((()=>{t(n)}),[n,t]),l=(0,i.useCallback)((e=>{c(n,e)}),[n,c]);return o().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},r)}},1294:function(e,n,t){"use strict";var i,o=t(9196),c=t(9818),r=t(4743),s=t(428);const a=null!==(i=window)&&void 0!==i&&i.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};n.Z=function(){let{registrationNonce:e=a.registrationNonce,apiRoot:n=a.apiRoot,apiNonce:t=a.apiNonce,redirectUri:i,autoTrigger:l,from:u,skipUserConnection:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{registerSite:d,connectUser:g,refreshConnectedPlugins:m}=(0,c.useDispatch)(s.t),f=(0,c.useSelect)((e=>e(s.t).getRegistrationError())),{siteIsRegistering:h,userIsConnecting:y,userConnectionData:b,connectedPlugins:_,isRegistered:k,isUserConnected:v,hasConnectedOwner:C}=(0,c.useSelect)((e=>({siteIsRegistering:e(s.t).getSiteIsRegistering(),userIsConnecting:e(s.t).getUserIsConnecting(),userConnectionData:e(s.t).getUserConnectionData(),connectedPlugins:e(s.t).getConnectedPlugins(),...e(s.t).getConnectionStatus()}))),E=()=>{p?i&&(window.location=i):g({from:u,redirectUri:i})},j=n=>{n&&n.preventDefault(),k?E():d({registrationNonce:e,redirectUri:i}).then((()=>{E()}))};return(0,o.useEffect)((()=>{r.ZP.setApiRoot(n),r.ZP.setApiNonce(t)}),[n,t]),(0,o.useEffect)((()=>{!l||h||y||j()}),[]),{handleRegisterSite:j,handleConnectUser:E,refreshConnectedPlugins:m,isRegistered:k,isUserConnected:v,siteIsRegistering:h,userIsConnecting:y,registrationError:f,userConnectionData:b,hasConnectedOwner:C,connectedPlugins:_}}},8258:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i,o=t(9196),c=t(9818),r=t(4743),s=t(9922),a=t(428),l=t(1294);const{registrationNonce:u,apiRoot:p,apiNonce:d,siteSuffix:g}=null!==(i=window)&&void 0!==i&&i.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};function m(){let{productSlug:e,redirectUrl:n,siteSuffix:t=g,siteProductAvailabilityHandler:i=null,from:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[f,h]=(0,o.useState)(!1),{registerSite:y}=(0,c.useDispatch)(a.t),{isUserConnected:b,isRegistered:_,handleConnectUser:k}=(0,l.Z)({redirectUri:n,from:m}),v=(0,s.Z)(e,t,n,b),C=()=>Promise.resolve(i&&i()).then((e=>{if(e)return k();window.location.href=v})),E=e=>{if(e&&e.preventDefault(),h(!0),_)return C();y({registrationNonce:u,redirectUri:n}).then(C)};return(0,o.useEffect)((()=>{r.ZP.setApiRoot(p),r.ZP.setApiNonce(d)}),[]),{run:E,isRegistered:_,hasCheckoutStarted:f}}},7523:function(e,n,t){"use strict";t.d(n,{LI:function(){return c},N4:function(){return s},T1:function(){return l},TS:function(){return u},ZP:function(){return k},i6:function(){return o},qV:function(){return a},r7:function(){return r},wQ:function(){return d}});var i=t(4743);const o="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",u="SET_AUTHORIZATION_URL",p="CONNECT_USER",d="SET_CONNECTED_PLUGINS",g=e=>({type:o,connectionStatus:e}),m=e=>({type:r,isRegistering:e}),f=e=>({type:s,isConnecting:e}),h=e=>({type:a,registrationError:e}),y=()=>({type:l}),b=e=>({type:u,authorizationUrl:e}),_=e=>({type:d,connectedPlugins:e});const k={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:f,setRegistrationError:h,clearRegistrationError:y,setAuthorizationUrl:b,registerSite:function*(e){let{registrationNonce:n,redirectUri:t}=e;yield y(),yield m(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:n,redirectUri:t};return yield g({isRegistered:!0}),yield b(e.authorizeUrl),yield m(!1),Promise.resolve(e)}catch(e){return yield h(e),yield m(!1),Promise.reject(e)}},connectUser:function*(){let{from:e,redirectFunc:n,redirectUri:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yield f(!0),yield{type:p,from:e,redirectFunc:n,redirectUri:t}},setConnectedPlugins:_,refreshConnectedPlugins:()=>async e=>{let{dispatch:n}=e;return await new Promise((e=>i.ZP.fetchConnectedPlugins().then((t=>{n(_(t)),e(t)}))))}}},1432:function(e,n,t){"use strict";var i=t(4743),o=t(9818),c=t(428);const r=(0,o.createRegistryControl)((e=>{let{resolveSelect:n}=e;return function(){let{from:e,redirectFunc:t,redirectUri:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((o,r)=>{n(c.t).getAuthorizationUrl(i).then((n=>{const i=t||(e=>window.location.assign(e)),c=new URL(n);e&&c.searchParams.set("from",encodeURIComponent(e));const r=c.toString();i(r),o(r)})).catch((e=>{r(e)}))}))}}));n.Z={FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:n}=e;return i.ZP.fetchAuthorizationUrl(n)},REGISTER_SITE:e=>{let{registrationNonce:n,redirectUri:t}=e;return i.ZP.registerSite(n,t)},CONNECT_USER:r}},1479:function(e,n,t){"use strict";var i=t(9818),o=t(7523);const c=(0,i.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return n.type===o.i6?{...e,...n.connectionStatus}:e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;return n.type===o.LI?n.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;return n.type===o.r7?n.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;return n.type===o.N4?n.isConnecting:e},registrationError:(e,n)=>{switch(n.type){case o.T1:return!1;case o.qV:return n.registrationError;default:return e}},authorizationUrl:(e,n)=>n.type===o.TS?n.authorizationUrl:e,userConnectionData:(e,n)=>(n.type,e),connectedPlugins:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return n.type===o.wQ?n.connectedPlugins:e}});n.Z=c},7728:function(e,n,t){"use strict";var i=t(9818),o=t(7523),c=t(428);const r={getAuthorizationUrl:{isFulfilled:function(e){const n=Boolean(e.authorizationUrl);for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];const s=(0,i.select)(c.t).hasFinishedResolution("getAuthorizationUrl",o);return n&&!s&&(0,i.dispatch)(c.t).finishResolution("getAuthorizationUrl",o),n},*fulfill(e){const n=yield o.ZP.fetchAuthorizationUrl(e);yield o.ZP.setAuthorizationUrl(n.authorizeUrl)}}};n.Z={...r}},2725:function(e,n){"use strict";const t={getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[]};n.Z=t},3535:function(e,n,t){"use strict";var i=t(8294),o=t.n(i),c=t(9818);class r{static mayBeInit(e,n){null===r.store&&(r.store=(0,c.createReduxStore)(e,n),(0,c.register)(r.store))}}o()(r,"store",null),n.Z=r},428:function(e,n,t){"use strict";t.d(n,{t:function(){return l}});var i=t(1479),o=t(7523),c=t(2725),r=t(7728),s=t(1432),a=t(3535);const l="jetpack-connection",u=window.JP_CONNECTION_INITIAL_STATE;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),a.Z.mayBeInit(l,{__experimentalUseThunks:!0,reducer:i.Z,actions:o.ZP,selectors:c.Z,resolvers:r.Z,controls:s.Z,initialState:u||{}})},934:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(9818),r=t(5736),s=t(4743),a=t(9159),l=t(7710),u=t(428),p=t(7281),d=t(245);const __=r.__;n.Z=(0,c.withSelect)((e=>({connectionStatus:e(u.t).getConnectionStatus()})))((e=>{const n=(0,c.useSelect)((e=>e(p.t).getAPINonce()),[]),t=(0,c.useSelect)((e=>e(p.t).getAPIRoot()),[]),r=(0,c.useSelect)((e=>e(p.t).getRegistrationNonce()),[]),{hasIDC:u,canManageConnection:g,isSafeModeConfirmed:m}=(0,c.useSelect)((e=>e(p.t).getIDCData()),[]),{connectionStatus:f}=e;return(0,i.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(n)}),[t,n]),o().createElement(o().Fragment,null,(!u||m)&&o().createElement(d.Z,null),(!u||m)&&g&&f.isRegistered&&o().createElement(a.Z,{apiRoot:t,apiNonce:n,redirectUri:"tools.php?page=wpcom-connection-manager"}),(!u||m)&&g&&!f.isRegistered&&o().createElement(l.Z,{connectionStatus:f,apiRoot:t,apiNonce:n,registrationNonce:r,from:"connection-ui",redirectUri:"tools.php?page=wpcom-connection-manager",pricingIcon:"data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m21.092 15.164.019-1.703v-.039c0-1.975-1.803-3.866-4.4-3.866-2.17 0-3.828 1.351-4.274 2.943l-.426 1.524-1.581-.065a2.92 2.92 0 0 0-.12-.002c-1.586 0-2.977 1.344-2.977 3.133 0 1.787 1.388 3.13 2.973 3.133H22.399c1.194 0 2.267-1.016 2.267-2.4 0-1.235-.865-2.19-1.897-2.368l-1.677-.29Zm-10.58-3.204a4.944 4.944 0 0 0-.201-.004c-2.75 0-4.978 2.298-4.978 5.133s2.229 5.133 4.978 5.133h12.088c2.357 0 4.267-1.97 4.267-4.4 0-2.18-1.538-3.99-3.556-4.339v-.06c0-3.24-2.865-5.867-6.4-5.867-2.983 0-5.49 1.871-6.199 4.404Z' fill='%23000'/%3E%3C/svg%3E",priceBefore:9,priceAfter:4.5,pricingTitle:__("Jetpack Backup","jetpack-connection-ui"),buttonLabel:__("Get Jetpack Backup","jetpack-connection-ui")},o().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack-connection-ui")),o().createElement("ul",null,o().createElement("li",null,__("Measure your impact with beautiful stats","jetpack-connection-ui")),o().createElement("li",null,__("Speed up your site with optimized images","jetpack-connection-ui")),o().createElement("li",null,__("Protect your site against bot attacks","jetpack-connection-ui")),o().createElement("li",null,__("Get notifications if your site goes offline","jetpack-connection-ui")),o().createElement("li",null,__("Enhance your site with dozens of other features","jetpack-connection-ui")))),(!u||m)&&!g&&o().createElement("p",null,"You need to be an admin to access this page."))}))},245:function(e,n,t){"use strict";var i=t(9196),o=t.n(i),c=t(5736);const __=c.__;n.Z=()=>o().createElement("div",{className:"jetpack-cui__header"},o().createElement("h1",null,__("Connection Manager","jetpack-connection-ui")))},8209:function(e,n){"use strict";n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},8610:function(e,n){"use strict";n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},8365:function(e,n){"use strict";n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}},5327:function(e,n,t){"use strict";var i=t(9818),o=t(8209),c=t(8610),r=t(8365);const s=(0,i.combineReducers)({API:o.Z,assets:c.Z,IDC:r.Z});n.Z=s},8907:function(e,n){"use strict";n.Z={getAPIRoot:e=>e.API.WP_API_root||null,getAPINonce:e=>e.API.WP_API_nonce||null,getRegistrationNonce:e=>e.API.registrationNonce||null}},4770:function(e,n){"use strict";n.Z={getAssetBuildUrl:e=>e.assets.buildUrl||null}},1483:function(e,n){"use strict";n.Z={getIDCData:e=>e.IDC||{}}},75:function(e,n,t){"use strict";var i=t(8907),o=t(4770),c=t(1483);const r={...i.Z,...o.Z,...c.Z};n.Z=r},7281:function(e,n,t){"use strict";t.d(n,{i:function(){return r},t:function(){return c}});var i=t(5327),o=t(75);const c="jetpack-connection-ui",r={reducer:i.Z,selectors:o.Z,initialState:window.CUI_INITIAL_STATE||{}}},2042:function(e,n,t){"use strict";e.exports=t.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},724:function(e,n,t){"use strict";e.exports=t.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},9196:function(e){"use strict";e.exports=window.React},1850:function(e){"use strict";e.exports=window.ReactDOM},2819:function(e){"use strict";e.exports=window.lodash},5609:function(e){"use strict";e.exports=window.wp.components},9818:function(e){"use strict";e.exports=window.wp.data},9307:function(e){"use strict";e.exports=window.wp.element},5736:function(e){"use strict";e.exports=window.wp.i18n},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url}},n={};function t(i){var o=n[i];if(void 0!==o)return o.exports;var c=n[i]={exports:{}};return e[i](c,c.exports,t),c.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var i=n.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e}(),function(){"use strict";var e=t(1850),n=t.n(e),i=t(9196),o=t.n(i),c=t(9818),r=t(934),s=t(7281);const a=(0,c.createReduxStore)(s.t,s.i);(0,c.register)(a),function(){const e=document.getElementById("jetpack-connection-ui-container");null!==e&&n().render(o().createElement(r.Z,null),e)}()}()}(); \ No newline at end of file