File Editor
Directories:
.. (Back)
externals
languages
Files:
academy.js
addon-installation.js
admin-global.js
admin-modules.js
analysis-worker.js
api-client.js
block-editor.js
bulk-editor.js
classic-editor.js
crawl-settings.js
dashboard-widget.js
dynamic-blocks.js
edit-page.js
editor-modules.js
elementor.js
externals-components.js
externals-contexts.js
externals-redux.js
faq-block.js
filter-explanation.js
frontend-inspector-resources.js
general-page.js
help-scout-beacon.js
how-to-block.js
import.js
indexation.js
installation-success.js
integrations-page.js
introductions.js
network-admin.js
new-settings.js
post-edit.js
quick-edit-handler.js
react-select.js
redirect-old-features-tab.js
reindex-links.js
settings.js
support.js
term-edit.js
used-keywords-assessment.js
wincher-dashboard-widget.js
workouts.js
Create New File
Create
Edit File: general-page.js
(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n=typeof r;if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)&&r.length){var o=s.apply(null,r);o&&e.push(o)}else if("object"===n)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)}()},8133:(e,t,r)=>{"use strict";var a="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},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),o=c(r(9196)),i=c(r(5890)),l=c(r(4184));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},m=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];if(!r.length)return e;for(var s={},n=Object.keys(e),o=0;o<n.length;o++){var i=n[o];-1===r.indexOf(i)&&(s[i]=e[i])}return s}function f(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function h(e){return"string"==typeof e&&e.search("%")===e.length-1&&y(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.animationFrameIDs=[];var a="auto",n="visible";y(e.height)?(a=e.height<0||"0"===e.height?0:e.height,n="hidden"):h(e.height)&&(a="0%"===e.height?0:e.height,n="hidden"),r.animationStateClasses=s({},u,e.animationStateClasses);var o=r.getStaticStateClasses(a);return r.state={animationStateClasses:o,height:a,overflow:n,shouldUseTransitions:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var r,a,s=this,n=this.props,o=n.delay,i=n.duration,c=n.height,u=n.onAnimationEnd,m=n.onAnimationStart;if(this.contentElement&&c!==e.height){var p;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var b=i+o,E=null,w={height:null,overflow:"hidden"},x="auto"===t.height;y(c)?(E=c<0||"0"===c?0:c,w.height=E):h(c)?(E="0%"===c?0:c,w.height=E):(E=v,w.height="auto",w.overflow=null),x&&(w.height=E,E=v);var S=(0,l.default)((d(p={},this.animationStateClasses.animating,!0),d(p,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(p,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(p,this.animationStateClasses.animatingToHeightZero,0===w.height),d(p,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),d(p,this.animationStateClasses.animatingToHeightSpecific,w.height>0),p)),_=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:S,height:E,overflow:"hidden",shouldUseTransitions:!x}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),x?(w.shouldUseTransitions=!0,f(this.animationFrameIDs),this.animationFrameIDs=(r=function(){s.setState(w),g(m,{newHeight:w.height})},(a=[])[0]=requestAnimationFrame((function(){a[1]=requestAnimationFrame((function(){r()}))})),a),this.animationClassesTimeoutID=setTimeout((function(){s.setState({animationStateClasses:_,shouldUseTransitions:!1}),s.hideContent(w.height),g(u,{newHeight:w.height})}),b)):(g(m,{newHeight:E}),this.timeoutID=setTimeout((function(){w.animationStateClasses=_,w.shouldUseTransitions=!1,s.setState(w),"auto"!==c&&s.hideContent(E),g(u,{newHeight:E})}),b))}}},{key:"componentWillUnmount",value:function(){f(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,r=this.props,a=r.animateOpacity,n=r.applyInlineTransitions,i=r.children,c=r.className,u=r.contentClassName,f=r.delay,y=r.duration,h=r.easing,g=r.id,v=r.style,b=this.state,E=b.height,w=b.overflow,x=b.animationStateClasses,S=b.shouldUseTransitions,_=s({},v,{height:E,overflow:w||v.overflow});S&&n&&(_.transition="height "+y+"ms "+h+" "+f+"ms",v.transition&&(_.transition=v.transition+", "+_.transition),_.WebkitTransition=_.transition);var k={};a&&(k.transition="opacity "+y+"ms "+h+" "+f+"ms",k.WebkitTransition=k.transition,0===E&&(k.opacity=0));var C=(0,l.default)((d(e={},x,!0),d(e,c,c),e)),N=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===E;return o.default.createElement("div",s({},p.apply(void 0,[this.props].concat(m)),{"aria-hidden":N,className:C,id:g,style:_}),o.default.createElement("div",{className:u,style:k,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,r){var s=e[t];return"number"==typeof s&&s>=0||h(s)||"auto"===s?null:new TypeError('value "'+s+'" of type "'+(void 0===s?"undefined":a(s))+'" is invalid type for '+t+" in "+r+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=v},591:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var a=r||0,s=t;return[s[e[a++]],s[e[a++]],s[e[a++]],s[e[a++]],"-",s[e[a++]],s[e[a++]],"-",s[e[a++]],s[e[a++]],"-",s[e[a++]],s[e[a++]],"-",s[e[a++]],s[e[a++]],s[e[a++]],s[e[a++]],s[e[a++]],s[e[a++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},3409:(e,t,r)=>{var a=r(9176),s=r(591);e.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||s(o)}},4530:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n=typeof r;if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)){if(r.length){var o=s.apply(null,r);o&&e.push(o)}}else if("object"===n){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)}()},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function r(a){var s=t[a];if(void 0!==s)return s.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};r.r(e),r.d(e,{DISMISS_ALERT:()=>Oy});var t=r(9196),a=r.n(t);const s=window.wp.components,n=window.wp.data,o=window.wp.domReady;var i=r.n(o);const l=window.wp.element,c=window.yoast.uiLibrary,d=window.lodash,u=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},m.apply(this,arguments)}var p;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(p||(p={}));const f="popstate";function y(e,t){if(!1===e||null==e)throw new Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function g(e,t){return{usr:e.state,key:e.key,idx:t}}function v(e,t,r,a){return void 0===r&&(r=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?E(t):t,{state:r,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function b(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function E(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function w(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:n=!1}=a,o=s.history,i=p.Pop,l=null,c=d();function d(){return(o.state||{idx:null}).idx}function u(){i=p.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:E.location,delta:t})}function h(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:b(e);return r=r.replace(/ $/,"%20"),y(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,o.replaceState(m({},o.state,{idx:c}),""));let E={get action(){return i},get location(){return e(s,o)},listen(e){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(f,u),l=e,()=>{s.removeEventListener(f,u),l=null}},createHref:e=>t(s,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=p.Push;let a=v(E.location,e,t);r&&r(a,e),c=d()+1;let u=g(a,c),m=E.createHref(a);try{o.pushState(u,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(m)}n&&l&&l({action:i,location:E.location,delta:1})},replace:function(e,t){i=p.Replace;let a=v(E.location,e,t);r&&r(a,e),c=d();let s=g(a,c),u=E.createHref(a);o.replaceState(s,"",u),n&&l&&l({action:i,location:E.location,delta:0})},go:e=>o.go(e)};return E}var x;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(x||(x={}));const S=new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,r,a){return void 0===r&&(r=[]),void 0===a&&(a={}),e.map(((e,s)=>{let n=[...r,String(s)],o="string"==typeof e.id?e.id:n.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!a[o],'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=m({},e,t(e),{id:o});return a[o]=r,r}{let r=m({},e,t(e),{id:o,children:void 0});return a[o]=r,e.children&&(r.children=_(e.children,t,n,a)),r}}))}function k(e,t,r){return void 0===r&&(r="/"),C(e,t,r,!1)}function C(e,t,r,a){let s=U(("string"==typeof t?E(t):t).pathname||"/",r);if(null==s)return null;let n=N(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(n);let o=null;for(let e=0;null==o&&e<n.length;++e){let t=j(s);o=F(n[e],t,a)}return o}function N(e,t,r,a){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a="");let s=(e,s,n)=>{let o={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};o.relativePath.startsWith("/")&&(y(o.relativePath.startsWith(a),'Absolute route path "'+o.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(a.length));let i=V([a,o.relativePath]),l=r.concat(o);e.children&&e.children.length>0&&(y(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),N(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:D(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of P(e.path))s(e,t,r);else s(e,t)})),t}function P(e){let t=e.split("/");if(0===t.length)return[];let[r,...a]=t,s=r.endsWith("?"),n=r.replace(/\?$/,"");if(0===a.length)return s?[n,""]:[n];let o=P(a.join("/")),i=[];return i.push(...o.map((e=>""===e?n:[n,e].join("/")))),s&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const R=/^:[\w-]+$/,O=3,T=2,L=1,M=10,I=-2,A=e=>"*"===e;function D(e,t){let r=e.split("/"),a=r.length;return r.some(A)&&(a+=I),t&&(a+=T),r.filter((e=>!A(e))).reduce(((e,t)=>e+(R.test(t)?O:""===t?L:M)),a)}function F(e,t,r){void 0===r&&(r=!1);let{routesMeta:a}=e,s={},n="/",o=[];for(let e=0;e<a.length;++e){let i=a[e],l=e===a.length-1,c="/"===n?t:t.slice(n.length)||"/",d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&r&&!a[a.length-1].route.index&&(d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(s,d.params),o.push({params:s,pathname:V([n,d.pathname]),pathnameBase:G(V([n,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(n=V([n,d.pathnameBase]))}return o}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),h("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(a.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(a.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let n=s[0],o=n.replace(/(.)\/+$/,"$1"),i=s.slice(1);return{params:a.reduce(((e,t,r)=>{let{paramName:a,isOptional:s}=t;if("*"===a){let e=i[r]||"";o=n.slice(0,n.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[r];return e[a]=s&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:n,pathnameBase:o,pattern:e}}function j(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function U(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&"/"!==a?null:e.slice(r)||"/"}function B(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(a)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function q(e,t){let r=$(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function H(e,t,r,a){let s;void 0===a&&(a=!1),"string"==typeof e?s=E(e):(s=m({},e),y(!s.pathname||!s.pathname.includes("?"),B("?","pathname","search",s)),y(!s.pathname||!s.pathname.includes("#"),B("#","pathname","hash",s)),y(!s.search||!s.search.includes("#"),B("#","search","hash",s)));let n,o=""===e||""===s.pathname,i=o?"/":s.pathname;if(null==i)n=r;else{let e=t.length-1;if(!a&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}n=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:a="",hash:s=""}="string"==typeof e?E(e):e,n=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:n,search:W(a),hash:Z(s)}}(s,n),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const V=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class K{constructor(e,t,r,a){void 0===a&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const J=["post","put","patch","delete"],Q=new Set(J),X=["get",...J],ee=new Set(X),te=new Set([301,302,303,307,308]),re=new Set([307,308]),ae={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},se={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),le="remix-router-transitions";function ce(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!r;let s;if(y(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;s=e=>({hasErrorBoundary:t(e)})}else s=ie;let n,o,i,l={},c=_(e.routes,s,void 0,l),d=e.basename||"/",u=e.unstable_dataStrategy||ge,f=e.unstable_patchRoutesOnNavigation,g=m({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,E=new Set,w=1e3,N=new Set,P=null,R=null,O=null,T=null!=e.hydrationData,L=k(c,e.history.location,d),M=null;if(null==L&&!f){let t=Re(404,{pathname:e.history.location.pathname}),{matches:r,route:a}=Pe(c);L=r,M={[a.id]:t}}if(L&&!e.hydrationData&&mt(L,c,e.history.location.pathname).active&&(L=null),L)if(L.some((e=>e.route.lazy)))o=!1;else if(L.some((e=>e.route.loader)))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,a=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=L.findIndex((e=>void 0!==r[e.route.id]));o=L.slice(0,e+1).every(a)}else o=L.every(a)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,L=[],g.v7_partialHydration){let t=mt(null,c,e.history.location.pathname);t.active&&t.matches&&(L=t.matches)}let I,A,D={historyAction:e.history.action,location:e.history.location,matches:L,initialized:o,navigation:ae,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||M,fetchers:new Map,blockers:new Map},F=p.Pop,z=!1,j=!1,B=new Map,$=null,q=!1,H=!1,V=[],G=new Set,W=new Map,Z=0,K=-1,J=new Map,Q=new Set,X=new Map,ee=new Map,te=new Set,ce=new Map,pe=new Map,fe=new Map;function xe(e,t){void 0===t&&(t={}),D=m({},D,e);let r=[],a=[];g.v7_fetcherPersist&&D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(te.has(t)?a.push(t):r.push(t))})),[...E].forEach((e=>e(D,{deletedFetchers:a,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),g.v7_fetcherPersist&&(r.forEach((e=>D.fetchers.delete(e))),a.forEach((e=>Xe(e))))}function Se(t,r,a){var s,o;let i,{flushSync:l}=void 0===a?{}:a,d=null!=D.actionData&&null!=D.navigation.formMethod&&ze(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==(null==(s=t.state)?void 0:s._isRedirect);i=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?D.actionData:null;let u=r.loaderData?ke(D.loaderData,r.loaderData,r.matches||[],r.errors):D.loaderData,f=D.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,ne))));let y,h=!0===z||null!=D.navigation.formMethod&&ze(D.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(n&&(c=n,n=void 0),q||F===p.Pop||(F===p.Push?e.history.push(t,t.state):F===p.Replace&&e.history.replace(t,t.state)),F===p.Pop){let e=B.get(D.location.pathname);e&&e.has(t.pathname)?y={currentLocation:D.location,nextLocation:t}:B.has(t.pathname)&&(y={currentLocation:t,nextLocation:D.location})}else if(j){let e=B.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),B.set(D.location.pathname,e)),y={currentLocation:D.location,nextLocation:t}}xe(m({},r,{actionData:i,loaderData:u,historyAction:F,location:t,initialized:!0,navigation:ae,revalidation:"idle",restoreScrollPosition:ut(t,r.matches||D.matches),preventScrollReset:h,blockers:f}),{viewTransitionOpts:y,flushSync:!0===l}),F=p.Pop,z=!1,j=!1,q=!1,H=!1,V=[]}async function Te(t,r,a){I&&I.abort(),I=null,F=t,q=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(P&&O){let r=dt(e,t);P[r]=O()}}(D.location,D.matches),z=!0===(a&&a.preventScrollReset),j=!0===(a&&a.enableViewTransition);let s=n||c,o=a&&a.overrideNavigation,i=k(s,r,d),l=!0===(a&&a.flushSync),u=mt(i,s,r.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:a}=it(r.pathname);return void Se(r,{matches:t,loaderData:{},errors:{[a.id]:e}},{flushSync:l})}if(D.initialized&&!H&&(f=D.location,y=r,f.pathname===y.pathname&&f.search===y.search&&(""===f.hash?""!==y.hash:f.hash===y.hash||""!==y.hash))&&!(a&&a.submission&&ze(a.submission.formMethod)))return void Se(r,{matches:i},{flushSync:l});var f,y;I=new AbortController;let h,v=we(e.history,r,I.signal,a&&a.submission);if(a&&a.pendingError)h=[Ne(i).route.id,{type:x.error,error:a.pendingError}];else if(a&&a.submission&&ze(a.submission.formMethod)){let t=await async function(e,t,r,a,s,n){void 0===n&&(n={}),Ke();let o,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);if(xe({navigation:i},{flushSync:!0===n.flushSync}),s){let r=await pt(a,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:a}=lt(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:x.error,error:a}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:a}=it(t.pathname);return{matches:e,pendingActionResult:[a.id,{type:x.error,error:r}]}}a=r.matches}let l=qe(a,t);if(l.route.action||l.route.lazy){if(o=(await $e("action",D,e,[l],a,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:x.error,error:Re(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Ae(o)){let t;return t=n&&null!=n.replace?n.replace:Ee(o.response.headers.get("Location"),new URL(e.url),d)===D.location.pathname+D.location.search,await Fe(e,o,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Me(o))throw Re(400,{type:"defer-action"});if(Ie(o)){let e=Ne(a,l.route.id);return!0!==(n&&n.replace)&&(F=p.Push),{matches:a,pendingActionResult:[e.route.id,o]}}return{matches:a,pendingActionResult:[l.route.id,o]}}(v,r,a.submission,i,u.active,{replace:a.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,a]=t.pendingActionResult;if(Ie(a)&&Y(a.error)&&404===a.error.status)return I=null,void Se(r,{matches:t.matches,loaderData:{},errors:{[e]:a.error}})}i=t.matches||i,h=t.pendingActionResult,o=Ve(r,a.submission),l=!1,u.active=!1,v=we(e.history,v.url,v.signal)}let{shortCircuited:b,matches:E,loaderData:w,errors:S}=await async function(t,r,a,s,o,i,l,u,p,f,y){let h=o||Ve(r,i),v=i||l||He(h),b=!(q||g.v7_partialHydration&&p);if(s){if(b){let e=De(y);xe(m({navigation:h},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await pt(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:a}=lt(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:a}}}if(!e.matches){let{error:e,notFoundMatches:t,route:a}=it(r.pathname);return{matches:t,loaderData:{},errors:{[a.id]:e}}}a=e.matches}let E=n||c,[w,x]=me(e.history,D,a,v,r,g.v7_partialHydration&&!0===p,g.v7_skipActionErrorRevalidation,H,V,G,te,X,Q,E,d,y);if(ct((e=>!(a&&a.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),K=++Z,0===w.length&&0===x.length){let e=rt();return Se(r,m({matches:a,loaderData:{},errors:y&&Ie(y[1])?{[y[0]]:y[1].error}:null},Ce(y),e?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!s){e.navigation=h;let t=De(y);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),r=Ge(void 0,t?t.data:void 0);D.fetchers.set(e.key,r)})),new Map(D.fetchers)}(x)),xe(e,{flushSync:f})}x.forEach((e=>{W.has(e.key)&&et(e.key),e.controller&&W.set(e.key,e.controller)}));let S=()=>x.forEach((e=>et(e.key)));I&&I.signal.addEventListener("abort",S);let{loaderResults:_,fetcherResults:k}=await Ze(D,a,w,x,t);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",S),x.forEach((e=>W.delete(e.key)));let C=Oe(_);if(C)return await Fe(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=Oe(k),C)return Q.add(C.key),await Fe(t,C.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:N,errors:P}=_e(D,a,0,_,y,x,k,ce);ce.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ce.delete(t)}))})),g.v7_partialHydration&&p&&D.errors&&Object.entries(D.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;P=Object.assign(P||{},{[t]:r})}));let R=rt(),O=at(K),T=R||O||x.length>0;return m({matches:a,loaderData:N,errors:P},T?{fetchers:new Map(D.fetchers)}:{})}(v,r,i,u.active,o,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,l,h);b||(I=null,Se(r,m({matches:E||i},Ce(h),{loaderData:w,errors:S})))}function De(e){return e&&!Ie(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function Fe(a,s,n,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;s.response.headers.has("X-Remix-Revalidate")&&(H=!0);let u=s.response.headers.get("Location");y(u,"Expected a Location header on the redirect Response"),u=Ee(u,new URL(a.url),d);let f=v(D.location,u,{_isRedirect:!0});if(r){let r=!1;if(s.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(oe.test(u)){const a=e.history.createURL(u);r=a.origin!==t.location.origin||null==U(a.pathname,d)}if(r)return void(c?t.location.replace(u):t.location.assign(u))}I=null;let h=!0===c||s.response.headers.has("X-Remix-Replace")?p.Replace:p.Push,{formMethod:g,formAction:b,formEncType:E}=D.navigation;!i&&!l&&g&&b&&E&&(i=He(D.navigation));let w=i||l;if(re.has(s.response.status)&&w&&ze(w.formMethod))await Te(h,f,{submission:m({},w,{formAction:u}),preventScrollReset:z,enableViewTransition:n?j:void 0});else{let e=Ve(f,i);await Te(h,f,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:z,enableViewTransition:n?j:void 0})}}async function $e(e,t,r,a,n,o){let i,c={};try{i=await async function(e,t,r,a,s,n,o,i,l,c){let d=n.map((e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let s=r[e.id];y(s,"No route found in manifest");let n={};for(let e in a){let t=void 0!==s[e]&&"hasErrorBoundary"!==e;h(!t,'Route "'+s.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||S.has(e)||(n[e]=a[e])}Object.assign(s,n),Object.assign(s,m({},t(s),{lazy:void 0}))}(e.route,l,i):void 0)),u=n.map(((e,r)=>{let n=d[r],o=s.some((t=>t.route.id===e.route.id));return m({},e,{shouldLoad:o,resolve:async r=>(r&&"GET"===a.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,r,a,s,n){let o,i,l=a=>{let o,l=new Promise(((e,t)=>o=t));i=()=>o(),t.signal.addEventListener("abort",i);let c=s=>"function"!=typeof a?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):a({request:t,params:r.params,context:n},...void 0!==s?[s]:[]),d=(async()=>{try{return{type:"data",result:await(s?s((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let s=r.route[e];if(a)if(s){let e,[t]=await Promise.all([l(s).catch((t=>{e=t})),a]);if(void 0!==e)throw e;o=t}else{if(await a,s=r.route[e],!s){if("action"===e){let e=new URL(t.url),a=e.pathname+e.search;throw Re(405,{method:t.method,pathname:a,routeId:r.route.id})}return{type:x.data,result:void 0}}o=await l(s)}else{if(!s){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}o=await l(s)}y(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:x.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,a,e,n,r,c):Promise.resolve({type:x.data,result:void 0}))})})),p=await e({matches:u,request:a,params:n[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,r,a,n,o,l,s)}catch(e){return a.forEach((t=>{c[t.route.id]={type:x.error,error:e}})),c}for(let[e,t]of Object.entries(i))if(Le(t)){let a=t.result;c[e]={type:x.redirect,response:be(a,r,e,n,d,g.v7_relativeSplatPath)}}else c[e]=await ve(t);return c}async function Ze(t,r,a,s,n){let o=t.matches,i=$e("loader",0,n,a,r,null),l=Promise.all(s.map((async t=>{if(t.matches&&t.match&&t.controller){let r=(await $e("loader",0,we(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:x.error,error:Re(404,{pathname:t.path})}})}))),c=await i,d=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([je(r,c,n.signal,o,t.loaderData),Ue(r,d,s)]),{loaderResults:c,fetcherResults:d}}function Ke(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{W.has(t)&&(G.add(t),et(t))}))}function Ye(e,t,r){void 0===r&&(r={}),D.fetchers.set(e,t),xe({fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Je(e,t,r,a){void 0===a&&(a={});let s=Ne(D.matches,t);Xe(e),xe({errors:{[s.route.id]:r},fetchers:new Map(D.fetchers)},{flushSync:!0===(a&&a.flushSync)})}function Qe(e){return g.v7_fetcherPersist&&(ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e)),D.fetchers.get(e)||se}function Xe(e){let t=D.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&J.has(e)||et(e),X.delete(e),J.delete(e),Q.delete(e),te.delete(e),G.delete(e),D.fetchers.delete(e)}function et(e){let t=W.get(e);y(t,"Expected fetch controller: "+e),t.abort(),W.delete(e)}function tt(e){for(let t of e){let e=We(Qe(t).data);D.fetchers.set(t,e)}}function rt(){let e=[],t=!1;for(let r of Q){let a=D.fetchers.get(r);y(a,"Expected fetcher: "+r),"loading"===a.state&&(Q.delete(r),e.push(r),t=!0)}return tt(e),t}function at(e){let t=[];for(let[r,a]of J)if(a<e){let e=D.fetchers.get(r);y(e,"Expected fetcher: "+r),"loading"===e.state&&(et(r),J.delete(r),t.push(r))}return tt(t),t.length>0}function st(e){D.blockers.delete(e),pe.delete(e)}function nt(e,t){let r=D.blockers.get(e)||ne;y("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let a=new Map(D.blockers);a.set(e,t),xe({blockers:a})}function ot(e){let{currentLocation:t,nextLocation:r,historyAction:a}=e;if(0===pe.size)return;pe.size>1&&h(!1,"A router only supports one blocker at a time");let s=Array.from(pe.entries()),[n,o]=s[s.length-1],i=D.blockers.get(n);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:r,historyAction:a})?n:void 0}function it(e){let t=Re(404,{pathname:e}),r=n||c,{matches:a,route:s}=Pe(r);return ct(),{notFoundMatches:a,route:s,error:t}}function lt(e,t){return{boundaryId:Ne(t.partialMatches).route.id,error:Re(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function ct(e){let t=[];return ce.forEach(((r,a)=>{e&&!e(a)||(r.cancel(),t.push(a),ce.delete(a))})),t}function dt(e,t){return R&&R(e,t.map((e=>function(e,t){let{route:r,pathname:a,params:s}=e;return{id:r.id,pathname:a,params:s,data:t[r.id],handle:r.handle}}(e,D.loaderData))))||e.key}function ut(e,t){if(P){let r=dt(e,t),a=P[r];if("number"==typeof a)return a}return null}function mt(e,t,r){if(f){if(N.has(r))return{active:!1,matches:e};if(!e)return{active:!0,matches:C(t,r,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:C(t,r,d,!0)}}return{active:!1,matches:null}}async function pt(e,t,r){let a=e;for(;;){let e=null==n,o=n||c;try{await ye(f,t,a,o,l,s,fe,r)}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&(c=[...c])}if(r.aborted)return{type:"aborted"};let i=k(o,t,d);if(i)return ft(t,N),{type:"success",matches:i};let u=C(o,t,d,!0);if(!u||a.length===u.length&&a.every(((e,t)=>e.route.id===u[t].route.id)))return ft(t,N),{type:"success",matches:null};a=u}}function ft(e,t){if(t.size>=w){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return g},get state(){return D},get routes(){return c},get window(){return t},initialize:function(){if(b=e.history.listen((t=>{let{action:r,location:a,delta:s}=t;if(A)return A(),void(A=void 0);h(0===pe.size||null!=s,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let n=ot({currentLocation:D.location,nextLocation:a,historyAction:r});if(n&&null!=s){let t=new Promise((e=>{A=e}));return e.history.go(-1*s),void nt(n,{state:"blocked",location:a,proceed(){nt(n,{state:"proceeding",proceed:void 0,reset:void 0,location:a}),t.then((()=>e.history.go(s)))},reset(){let e=new Map(D.blockers);e.set(n,ne),xe({blockers:e})}})}return Te(r,a)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(le);if(r){let e=JSON.parse(r);for(let[r,a]of Object.entries(e||{}))a&&Array.isArray(a)&&t.set(r,new Set(a||[]))}}catch(e){}}(t,B);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,a]of t)r[e]=[...a];try{e.sessionStorage.setItem(le,JSON.stringify(r))}catch(e){h(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,B);t.addEventListener("pagehide",e),$=()=>t.removeEventListener("pagehide",e)}return D.initialized||Te(p.Pop,D.location,{initialHydration:!0}),i},subscribe:function(e){return E.add(e),()=>E.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,O=t,R=r||null,!T&&D.navigation===ae){T=!0;let e=ut(D.location,D.matches);null!=e&&xe({restoreScrollPosition:e})}return()=>{P=null,O=null,R=null}},navigate:async function t(r,a){if("number"==typeof r)return void e.history.go(r);let s=de(D.location,D.matches,d,g.v7_prependBasename,r,g.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:n,submission:o,error:i}=ue(g.v7_normalizeFormMethod,!1,s,a),l=D.location,c=v(D.location,n,a&&a.state);c=m({},c,e.history.encodeLocation(c));let u=a&&null!=a.replace?a.replace:void 0,f=p.Push;!0===u?f=p.Replace:!1===u||null!=o&&ze(o.formMethod)&&o.formAction===D.location.pathname+D.location.search&&(f=p.Replace);let y=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,h=!0===(a&&a.unstable_flushSync),b=ot({currentLocation:l,nextLocation:c,historyAction:f});if(!b)return await Te(f,c,{submission:o,pendingError:i,preventScrollReset:y,replace:a&&a.replace,enableViewTransition:a&&a.unstable_viewTransition,flushSync:h});nt(b,{state:"blocked",location:c,proceed(){nt(b,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(r,a)},reset(){let e=new Map(D.blockers);e.set(b,ne),xe({blockers:e})}})},fetch:function(t,r,s,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(t)&&et(t);let i=!0===(o&&o.unstable_flushSync),l=n||c,u=de(D.location,D.matches,d,g.v7_prependBasename,s,g.v7_relativeSplatPath,r,null==o?void 0:o.relative),m=k(l,u,d),p=mt(m,l,u);if(p.active&&p.matches&&(m=p.matches),!m)return void Je(t,r,Re(404,{pathname:u}),{flushSync:i});let{path:f,submission:h,error:v}=ue(g.v7_normalizeFormMethod,!0,u,o);if(v)return void Je(t,r,v,{flushSync:i});let b=qe(m,f);z=!0===(o&&o.preventScrollReset),h&&ze(h.formMethod)?async function(t,r,a,s,o,i,l,u){function m(e){if(!e.route.action&&!e.route.lazy){let e=Re(405,{method:u.formMethod,pathname:a,routeId:r});return Je(t,r,e,{flushSync:l}),!0}return!1}if(Ke(),X.delete(t),!i&&m(s))return;let p=D.fetchers.get(t);Ye(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,p),{flushSync:l});let f=new AbortController,h=we(e.history,a,f.signal,u);if(i){let e=await pt(o,a,h.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:s}=lt(a,e);return void Je(t,r,s,{flushSync:l})}if(!e.matches)return void Je(t,r,Re(404,{pathname:a}),{flushSync:l});if(m(s=qe(o=e.matches,a)))return}W.set(t,f);let v=Z,b=(await $e("action",0,h,[s],o,t))[s.route.id];if(h.signal.aborted)return void(W.get(t)===f&&W.delete(t));if(g.v7_fetcherPersist&&te.has(t)){if(Ae(b)||Ie(b))return void Ye(t,We(void 0))}else{if(Ae(b))return W.delete(t),K>v?void Ye(t,We(void 0)):(Q.add(t),Ye(t,Ge(u)),Fe(h,b,!1,{fetcherSubmission:u}));if(Ie(b))return void Je(t,r,b.error)}if(Me(b))throw Re(400,{type:"defer-action"});let E=D.navigation.location||D.location,w=we(e.history,E,f.signal),x=n||c,S="idle"!==D.navigation.state?k(x,D.navigation.location,d):D.matches;y(S,"Didn't find any matches after fetcher action");let _=++Z;J.set(t,_);let C=Ge(u,b.data);D.fetchers.set(t,C);let[N,P]=me(e.history,D,S,u,E,!1,g.v7_skipActionErrorRevalidation,H,V,G,te,X,Q,x,d,[s.route.id,b]);P.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=D.fetchers.get(t),a=Ge(void 0,r?r.data:void 0);D.fetchers.set(t,a),W.has(t)&&et(t),e.controller&&W.set(t,e.controller)})),xe({fetchers:new Map(D.fetchers)});let R=()=>P.forEach((e=>et(e.key)));f.signal.addEventListener("abort",R);let{loaderResults:O,fetcherResults:T}=await Ze(D,S,N,P,w);if(f.signal.aborted)return;f.signal.removeEventListener("abort",R),J.delete(t),W.delete(t),P.forEach((e=>W.delete(e.key)));let L=Oe(O);if(L)return Fe(w,L.result,!1);if(L=Oe(T),L)return Q.add(L.key),Fe(w,L.result,!1);let{loaderData:M,errors:A}=_e(D,S,0,O,void 0,P,T,ce);if(D.fetchers.has(t)){let e=We(b.data);D.fetchers.set(t,e)}at(_),"loading"===D.navigation.state&&_>K?(y(F,"Expected pending action"),I&&I.abort(),Se(D.navigation.location,{matches:S,loaderData:M,errors:A,fetchers:new Map(D.fetchers)})):(xe({errors:A,loaderData:ke(D.loaderData,M,S,A),fetchers:new Map(D.fetchers)}),H=!1)}(t,r,f,b,m,p.active,i,h):(X.set(t,{routeId:r,path:f}),async function(t,r,a,s,n,o,i,l){let c=D.fetchers.get(t);Ye(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=we(e.history,a,d.signal);if(o){let e=await pt(n,a,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:s}=lt(a,e);return void Je(t,r,s,{flushSync:i})}if(!e.matches)return void Je(t,r,Re(404,{pathname:a}),{flushSync:i});s=qe(n=e.matches,a)}W.set(t,d);let m=Z,p=(await $e("loader",0,u,[s],n,t))[s.route.id];if(Me(p)&&(p=await Be(p,u.signal,!0)||p),W.get(t)===d&&W.delete(t),!u.signal.aborted){if(!te.has(t))return Ae(p)?K>m?void Ye(t,We(void 0)):(Q.add(t),void await Fe(u,p,!1)):void(Ie(p)?Je(t,r,p.error):(y(!Me(p),"Unhandled fetcher deferred data"),Ye(t,We(p.data))));Ye(t,We(void 0))}}(t,r,f,b,m,p.active,i,h))},revalidate:function(){Ke(),xe({revalidation:"loading"}),"submitting"!==D.navigation.state&&("idle"!==D.navigation.state?Te(F||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===j}):Te(D.historyAction,D.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Qe,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e)):ee.set(e,t)}else Xe(e);xe({fetchers:new Map(D.fetchers)})},dispose:function(){b&&b(),$&&$(),E.clear(),I&&I.abort(),D.fetchers.forEach(((e,t)=>Xe(t))),D.blockers.forEach(((e,t)=>st(t)))},getBlocker:function(e,t){let r=D.blockers.get(e)||ne;return pe.get(e)!==t&&pe.set(e,t),r},deleteBlocker:st,patchRoutes:function(e,t){let r=null==n;he(e,t,n||c,l,s),r&&(c=[...c],xe({}))},_internalFetchControllers:W,_internalActiveDeferreds:ce,_internalSetRoutes:function(e){l={},n=_(e,s,void 0,l)}},i}function de(e,t,r,a,s,n,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=H(s||".",q(l,n),U(e.pathname,r)||e.pathname,"path"===i);return null==s&&(d.search=e.search,d.hash=e.hash),null!=s&&""!==s&&"."!==s||!c||!c.route.index||$e(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),a&&"/"!==r&&(d.pathname="/"===d.pathname?r:V([r,d.pathname])),b(d)}function ue(e,t,r,a){if(!a||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(a))return{path:r};if(a.formMethod&&(s=a.formMethod,!ee.has(s.toLowerCase())))return{path:r,error:Re(405,{method:a.formMethod})};var s;let n,o,i=()=>({path:r,error:Re(400,{type:"invalid-body"})}),l=a.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Te(r);if(void 0!==a.body){if("text/plain"===a.formEncType){if(!ze(c))return i();let e="string"==typeof a.body?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce(((e,t)=>{let[r,a]=t;return""+e+r+"="+a+"\n"}),""):String(a.body);return{path:r,submission:{formMethod:c,formAction:d,formEncType:a.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===a.formEncType){if(!ze(c))return i();try{let e="string"==typeof a.body?JSON.parse(a.body):a.body;return{path:r,submission:{formMethod:c,formAction:d,formEncType:a.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(y("function"==typeof FormData,"FormData is not available in this environment"),a.formData)n=xe(a.formData),o=a.formData;else if(a.body instanceof FormData)n=xe(a.body),o=a.body;else if(a.body instanceof URLSearchParams)n=a.body,o=Se(n);else if(null==a.body)n=new URLSearchParams,o=new FormData;else try{n=new URLSearchParams(a.body),o=Se(n)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ze(u.formMethod))return{path:r,submission:u};let m=E(r);return t&&m.search&&$e(m.search)&&n.append("index",""),m.search="?"+n,{path:b(m),submission:u}}function me(e,t,r,a,s,n,o,i,l,c,d,u,p,f,y,h){let g=h?Ie(h[1])?h[1].error:h[1].data:void 0,v=e.createURL(t.location),b=e.createURL(s),E=h&&Ie(h[1])?h[0]:void 0,w=E?function(e,t){let r=e;if(t){let a=e.findIndex((e=>e.route.id===t));a>=0&&(r=e.slice(0,a))}return r}(r,E):r,x=h?h[1].statusCode:void 0,S=o&&x&&x>=400,_=w.filter(((e,r)=>{let{route:s}=e;if(s.lazy)return!0;if(null==s.loader)return!1;if(n)return!("function"==typeof s.loader&&!s.loader.hydrate&&(void 0!==t.loaderData[s.id]||t.errors&&void 0!==t.errors[s.id]));if(function(e,t,r){let a=!t||r.route.id!==t.route.id,s=void 0===e[r.route.id];return a||s}(t.loaderData,t.matches[r],e)||l.some((t=>t===e.route.id)))return!0;let o=t.matches[r],c=e;return fe(e,m({currentUrl:v,currentParams:o.params,nextUrl:b,nextParams:c.params},a,{actionResult:g,actionStatus:x,defaultShouldRevalidate:!S&&(i||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||pe(o,c))}))})),C=[];return u.forEach(((e,s)=>{if(n||!r.some((t=>t.route.id===e.routeId))||d.has(s))return;let o=k(f,e.path,y);if(!o)return void C.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(s),u=qe(o,e.path),h=!1;p.has(s)?h=!1:c.has(s)?(c.delete(s),h=!0):h=l&&"idle"!==l.state&&void 0===l.data?i:fe(u,m({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},a,{actionResult:g,actionStatus:x,defaultShouldRevalidate:!S&&i})),h&&C.push({key:s,routeId:e.routeId,path:e.path,matches:o,match:u,controller:new AbortController})})),[_,C]}function pe(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ye(e,t,r,a,s,n,o,i){let l=[t,...r.map((e=>e.route.id))].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:r,patch:(e,t)=>{i.aborted||he(e,t,a,s,n)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function he(e,t,r,a,s){if(e){var n;let r=a[e];y(r,"No route found to patch children into: routeId = "+e);let o=_(t,s,[e,"patch",String((null==(n=r.children)?void 0:n.length)||"0")],a);r.children?r.children.push(...o):r.children=o}else{let e=_(t,s,["patch",String(r.length||"0")],a);r.push(...e)}}async function ge(e){let{matches:t}=e,r=t.filter((e=>e.shouldLoad));return(await Promise.all(r.map((e=>e.resolve())))).reduce(((e,t,a)=>Object.assign(e,{[r[a].route.id]:t})),{})}async function ve(e){let{result:t,type:r}=e;if(Fe(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:x.error,error:e}}return r===x.error?{type:x.error,error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:x.data,data:e,statusCode:t.status,headers:t.headers}}if(r===x.error){if(De(t)){var a,s;if(t.data instanceof Error)return{type:x.error,error:t.data,statusCode:null==(s=t.init)?void 0:s.status};t=new K((null==(a=t.init)?void 0:a.status)||500,void 0,t.data)}return{type:x.error,error:t,statusCode:Y(t)?t.status:void 0}}var n,o,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:x.deferred,deferredData:t,statusCode:null==(n=t.init)?void 0:n.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:De(t)?{type:x.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:x.data,data:t}}function be(e,t,r,a,s,n){let o=e.headers.get("Location");if(y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!oe.test(o)){let i=a.slice(0,a.findIndex((e=>e.route.id===r))+1);o=de(new URL(t.url),i,s,!0,o,n),e.headers.set("Location",o)}return e}function Ee(e,t,r){if(oe.test(e)){let a=e,s=a.startsWith("//")?new URL(t.protocol+a):new URL(a),n=null!=U(s.pathname,r);if(s.origin===t.origin&&n)return s.pathname+s.search+s.hash}return e}function we(e,t,r,a){let s=e.createURL(Te(t)).toString(),n={signal:r};if(a&&ze(a.formMethod)){let{formMethod:e,formEncType:t}=a;n.method=e.toUpperCase(),"application/json"===t?(n.headers=new Headers({"Content-Type":t}),n.body=JSON.stringify(a.json)):"text/plain"===t?n.body=a.text:"application/x-www-form-urlencoded"===t&&a.formData?n.body=xe(a.formData):n.body=a.formData}return new Request(s,n)}function xe(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,"string"==typeof a?a:a.name);return t}function Se(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function _e(e,t,r,a,s,n,o,i){let{loaderData:l,errors:c}=function(e,t,r,a,s){let n,o={},i=null,l=!1,c={},d=r&&Ie(r[1])?r[1].error:void 0;return e.forEach((r=>{if(!(r.route.id in t))return;let u=r.route.id,m=t[u];if(y(!Ae(m),"Cannot handle redirect results in processLoaderData"),Ie(m)){let t=m.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},s)i[u]=t;else{let r=Ne(e,u);null==i[r.route.id]&&(i[r.route.id]=t)}o[u]=void 0,l||(l=!0,n=Y(m.error)?m.error.status:500),m.headers&&(c[u]=m.headers)}else Me(m)?(a.set(u,m.deferredData),o[u]=m.deferredData.data,null==m.statusCode||200===m.statusCode||l||(n=m.statusCode),m.headers&&(c[u]=m.headers)):(o[u]=m.data,m.statusCode&&200!==m.statusCode&&!l&&(n=m.statusCode),m.headers&&(c[u]=m.headers))})),void 0!==d&&r&&(i={[r[0]]:d},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:n||200,loaderHeaders:c}}(t,a,s,i,!1);return n.forEach((t=>{let{key:r,match:a,controller:s}=t,n=o[r];if(y(n,"Did not find corresponding fetcher result"),!s||!s.signal.aborted)if(Ie(n)){let t=Ne(e.matches,null==a?void 0:a.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:n.error})),e.fetchers.delete(r)}else if(Ae(n))y(!1,"Unhandled fetcher revalidation redirect");else if(Me(n))y(!1,"Unhandled fetcher deferred data");else{let t=We(n.data);e.fetchers.set(r,t)}})),{loaderData:l,errors:c}}function ke(e,t,r,a){let s=m({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(s[r]=t[r]):void 0!==e[r]&&n.route.loader&&(s[r]=e[r]),a&&a.hasOwnProperty(r))break}return s}function Ce(e){return e?Ie(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ne(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Pe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Re(e,t){let{pathname:r,routeId:a,method:s,type:n,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===n?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o:s&&r&&a?l="You made a "+s+' request to "'+r+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===n?l="defer() is not supported in actions":"invalid-body"===n&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+a+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",s&&r&&a?l="You made a "+s.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':s&&(l='Invalid request method "'+s.toUpperCase()+'"')),new K(e||500,i,new Error(l),!0)}function Oe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,a]=t[e];if(Ae(a))return{key:r,result:a}}}function Te(e){return b(m({},"string"==typeof e?E(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&te.has(e.result.status)}function Me(e){return e.type===x.deferred}function Ie(e){return e.type===x.error}function Ae(e){return(e&&e.type)===x.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return Q.has(e.toLowerCase())}async function je(e,t,r,a,s){let n=Object.entries(t);for(let o=0;o<n.length;o++){let[i,l]=n[o],c=e.find((e=>(null==e?void 0:e.route.id)===i));if(!c)continue;let d=a.find((e=>e.route.id===c.route.id)),u=null!=d&&!pe(d,c)&&void 0!==(s&&s[c.route.id]);Me(l)&&u&&await Be(l,r,!1).then((e=>{e&&(t[i]=e)}))}}async function Ue(e,t,r){for(let a=0;a<r.length;a++){let{key:s,routeId:n,controller:o}=r[a],i=t[s];e.find((e=>(null==e?void 0:e.route.id)===n))&&Me(i)&&(y(o,"Expected an AbortController for revalidating fetcher deferred result"),await Be(i,o.signal,!0).then((e=>{e&&(t[s]=e)})))}}async function Be(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:x.data,data:e.deferredData.unwrappedData}}catch(e){return{type:x.error,error:e}}return{type:x.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function qe(e,t){let r="string"==typeof t?E(t).search:t.search;if(e[e.length-1].route.index&&$e(r||""))return e[e.length-1];let a=$(e);return a[a.length-1]}function He(e){let{formMethod:t,formAction:r,formEncType:a,text:s,formData:n,json:o}=e;if(t&&r&&a)return null!=s?{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:s}:null!=n?{formMethod:t,formAction:r,formEncType:a,formData:n,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:o,text:void 0}:void 0}function Ve(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ge(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function We(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ze.apply(this,arguments)}Symbol("deferred");const Ke=t.createContext(null),Ye=t.createContext(null),Je=t.createContext(null),Qe=t.createContext(null),Xe=t.createContext({outlet:null,matches:[],isDataRoute:!1}),et=t.createContext(null);function tt(){return null!=t.useContext(Qe)}function rt(){return tt()||y(!1),t.useContext(Qe).location}function at(e){t.useContext(Je).static||t.useLayoutEffect(e)}function st(){let{isDataRoute:e}=t.useContext(Xe);return e?function(){let{router:e}=ft(mt.UseNavigateStable),r=ht(pt.UseNavigateStable),a=t.useRef(!1);return at((()=>{a.current=!0})),t.useCallback((function(t,s){void 0===s&&(s={}),a.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Ze({fromRouteId:r},s)))}),[e,r])}():function(){tt()||y(!1);let e=t.useContext(Ke),{basename:r,future:a,navigator:s}=t.useContext(Je),{matches:n}=t.useContext(Xe),{pathname:o}=rt(),i=JSON.stringify(q(n,a.v7_relativeSplatPath)),l=t.useRef(!1);return at((()=>{l.current=!0})),t.useCallback((function(t,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof t)return void s.go(t);let n=H(t,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==r&&(n.pathname="/"===n.pathname?r:V([r,n.pathname])),(a.replace?s.replace:s.push)(n,a.state,a)}),[r,s,i,o,e])}()}const nt=t.createContext(null);function ot(e,r){let{relative:a}=void 0===r?{}:r,{future:s}=t.useContext(Je),{matches:n}=t.useContext(Xe),{pathname:o}=rt(),i=JSON.stringify(q(n,s.v7_relativeSplatPath));return t.useMemo((()=>H(e,JSON.parse(i),o,"path"===a)),[e,i,o,a])}function it(e,r,a,s){tt()||y(!1);let{navigator:n}=t.useContext(Je),{matches:o}=t.useContext(Xe),i=o[o.length-1],l=i?i.params:{},c=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let d,u=rt();if(r){var m;let e="string"==typeof r?E(r):r;"/"===c||(null==(m=e.pathname)?void 0:m.startsWith(c))||y(!1),d=e}else d=u;let f=d.pathname||"/",h=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=k(e,{pathname:h}),v=function(e,r,a,s){var n;if(void 0===r&&(r=[]),void 0===a&&(a=null),void 0===s&&(s=null),null==e){var o;if(!a)return null;if(a.errors)e=a.matches;else{if(!(null!=(o=s)&&o.v7_partialHydration&&0===r.length&&!a.initialized&&a.matches.length>0))return null;e=a.matches}}let i=e,l=null==(n=a)?void 0:n.errors;if(null!=l){let e=i.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||y(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(a&&s&&s.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=a,s=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||s){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight(((e,s,n)=>{let o,u=!1,m=null,p=null;var f;a&&(o=l&&s.route.id?l[s.route.id]:void 0,m=s.route.errorElement||ct,c&&(d<0&&0===n?(bt[f="route-fallback"]||(bt[f]=!0),u=!0,p=null):d===n&&(u=!0,p=s.route.hydrateFallbackElement||null)));let y=r.concat(i.slice(0,n+1)),h=()=>{let r;return r=o?m:u?p:s.route.Component?t.createElement(s.route.Component,null):s.route.element?s.route.element:e,t.createElement(ut,{match:s,routeContext:{outlet:e,matches:y,isDataRoute:null!=a},children:r})};return a&&(s.route.ErrorBoundary||s.route.errorElement||0===n)?t.createElement(dt,{location:a.location,revalidation:a.revalidation,component:m,error:o,children:h(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):h()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:V([c,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:V([c,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,a,s);return r&&v?t.createElement(Qe.Provider,{value:{location:Ze({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:p.Pop}},v):v}function lt(){let e=gt(),r=Y(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),a?t.createElement("pre",{style:s},a):null,null)}const ct=t.createElement(lt,null);class dt extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(Xe.Provider,{value:this.props.routeContext},t.createElement(et.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ut(e){let{routeContext:r,match:a,children:s}=e,n=t.useContext(Ke);return n&&n.static&&n.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=a.route.id),t.createElement(Xe.Provider,{value:r},s)}var mt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mt||{}),pt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(pt||{});function ft(e){let r=t.useContext(Ke);return r||y(!1),r}function yt(e){let r=t.useContext(Ye);return r||y(!1),r}function ht(e){let r=function(e){let r=t.useContext(Xe);return r||y(!1),r}(),a=r.matches[r.matches.length-1];return a.route.id||y(!1),a.route.id}function gt(){var e;let r=t.useContext(et),a=yt(pt.UseRouteError),s=ht(pt.UseRouteError);return void 0!==r?r:null==(e=a.errors)?void 0:e[s]}let vt=0;const bt={};function Et(e){let{to:r,replace:a,state:s,relative:n}=e;tt()||y(!1);let{future:o,static:i}=t.useContext(Je),{matches:l}=t.useContext(Xe),{pathname:c}=rt(),d=st(),u=H(r,q(l,o.v7_relativeSplatPath),c,"path"===n),m=JSON.stringify(u);return t.useEffect((()=>d(JSON.parse(m),{replace:a,state:s,relative:n})),[d,m,n,a,s]),null}function wt(e){return function(e){let r=t.useContext(Xe).outlet;return r?t.createElement(nt.Provider,{value:e},r):r}(e.context)}function xt(e){y(!1)}function St(e){let{basename:r="/",children:a=null,location:s,navigationType:n=p.Pop,navigator:o,static:i=!1,future:l}=e;tt()&&y(!1);let c=r.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:c,navigator:o,static:i,future:Ze({v7_relativeSplatPath:!1},l)})),[c,l,o,i]);"string"==typeof s&&(s=E(s));let{pathname:u="/",search:m="",hash:f="",state:h=null,key:g="default"}=s,v=t.useMemo((()=>{let e=U(u,c);return null==e?null:{location:{pathname:e,search:m,hash:f,state:h,key:g},navigationType:n}}),[c,u,m,f,h,g,n]);return null==v?null:t.createElement(Je.Provider,{value:d},t.createElement(Qe.Provider,{children:a,value:v}))}function _t(e,r){void 0===r&&(r=[]);let a=[];return t.Children.forEach(e,((e,s)=>{if(!t.isValidElement(e))return;let n=[...r,s];if(e.type===t.Fragment)return void a.push.apply(a,_t(e.props.children,n));e.type!==xt&&y(!1),e.props.index&&e.props.children&&y(!1);let o={id:e.props.id||n.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=_t(e.props.children,n)),a.push(o)})),a}function kt(e){let r={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(r,{element:t.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(r,{hydrateFallbackElement:t.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(r,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),r}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ct.apply(this,arguments)}t.startTransition,new Promise((()=>{})),t.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Nt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Ei){}function Pt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ct({},t,{errors:Rt(t.errors)})),t}function Rt(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[e]=new K(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){let t=window[a.__subType];if("function"==typeof t)try{let s=new t(a.message);s.stack="",r[e]=s}catch(e){}}if(null==r[e]){let t=new Error(a.message);t.stack="",r[e]=t}}else r[e]=a;return r}const Ot=t.createContext({isTransitioning:!1}),Tt=t.createContext(new Map),Lt=t.startTransition,Mt=u.flushSync;function It(e){Mt?Mt(e):e()}t.useId;class At{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Dt(e){let{fallbackElement:r,router:a,future:s}=e,[n,o]=t.useState(a.state),[i,l]=t.useState(),[c,d]=t.useState({isTransitioning:!1}),[u,m]=t.useState(),[p,f]=t.useState(),[y,h]=t.useState(),g=t.useRef(new Map),{v7_startTransition:v}=s||{},b=t.useCallback((e=>{v?function(e){Lt?Lt(e):e()}(e):e()}),[v]),E=t.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:s,unstable_viewTransitionOpts:n}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let i=null==a.window||null==a.window.document||"function"!=typeof a.window.document.startViewTransition;if(n&&!i){if(s){It((()=>{p&&(u&&u.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:n.currentLocation,nextLocation:n.nextLocation})}));let t=a.window.document.startViewTransition((()=>{It((()=>o(e)))}));return t.finished.finally((()=>{It((()=>{m(void 0),f(void 0),l(void 0),d({isTransitioning:!1})}))})),void It((()=>f(t)))}p?(u&&u.resolve(),p.skipTransition(),h({state:e,currentLocation:n.currentLocation,nextLocation:n.nextLocation})):(l(e),d({isTransitioning:!0,flushSync:!1,currentLocation:n.currentLocation,nextLocation:n.nextLocation}))}else s?It((()=>o(e))):b((()=>o(e)))}),[a.window,p,u,g,b]);t.useLayoutEffect((()=>a.subscribe(E)),[a,E]),t.useEffect((()=>{c.isTransitioning&&!c.flushSync&&m(new At)}),[c]),t.useEffect((()=>{if(u&&i&&a.window){let e=i,t=u.promise,r=a.window.document.startViewTransition((async()=>{b((()=>o(e))),await t}));r.finished.finally((()=>{m(void 0),f(void 0),l(void 0),d({isTransitioning:!1})})),f(r)}}),[b,i,u,a.window]),t.useEffect((()=>{u&&i&&n.location.key===i.location.key&&u.resolve()}),[u,p,n.location,i]),t.useEffect((()=>{!c.isTransitioning&&y&&(l(y.state),d({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),h(void 0))}),[c.isTransitioning,y]),t.useEffect((()=>{}),[]);let w=t.useMemo((()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:e=>a.navigate(e),push:(e,t,r)=>a.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>a.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[a]),x=a.basename||"/",S=t.useMemo((()=>({router:a,navigator:w,static:!1,basename:x})),[a,w,x]),_=t.useMemo((()=>({v7_relativeSplatPath:a.future.v7_relativeSplatPath})),[a.future.v7_relativeSplatPath]);return t.createElement(t.Fragment,null,t.createElement(Ke.Provider,{value:S},t.createElement(Ye.Provider,{value:n},t.createElement(Tt.Provider,{value:g.current},t.createElement(Ot.Provider,{value:c},t.createElement(St,{basename:x,location:n.location,navigationType:n.historyAction,navigator:w,future:_},n.initialized||a.future.v7_partialHydration?t.createElement(Ft,{routes:a.routes,future:a.future,state:n}):r))))),null)}const Ft=t.memo(zt);function zt(e){let{routes:t,future:r,state:a}=e;return it(t,void 0,a,r)}const jt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ut=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bt=t.forwardRef((function(e,r){let a,{onClick:s,relative:n,reloadDocument:o,replace:i,state:l,target:c,to:d,preventScrollReset:u,unstable_viewTransition:m}=e,p=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,Nt),{basename:f}=t.useContext(Je),h=!1;if("string"==typeof d&&Ut.test(d)&&(a=d,jt))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),r=U(t.pathname,f);t.origin===e.origin&&null!=r?d=r+t.search+t.hash:h=!0}catch(e){}let g=function(e,r){let{relative:a}=void 0===r?{}:r;tt()||y(!1);let{basename:s,navigator:n}=t.useContext(Je),{hash:o,pathname:i,search:l}=ot(e,{relative:a}),c=i;return"/"!==s&&(c="/"===i?s:V([s,i])),n.createHref({pathname:c,search:l,hash:o})}(d,{relative:n}),v=function(e,r){let{target:a,replace:s,state:n,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===r?{}:r,c=st(),d=rt(),u=ot(e,{relative:i});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,a)){t.preventDefault();let r=void 0!==s?s:b(d)===b(u);c(e,{replace:r,state:n,preventScrollReset:o,relative:i,unstable_viewTransition:l})}}),[d,c,u,s,n,a,e,o,i,l])}(d,{replace:i,state:l,target:c,preventScrollReset:u,relative:n,unstable_viewTransition:m});return t.createElement("a",Ct({},p,{href:a||g,onClick:h||o?s:function(e){s&&s(e),e.defaultPrevented||v(e)},ref:r,target:c}))}));var $t,qt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($t||($t={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(qt||(qt={}));const Ht=window.wp.i18n;var Vt=r(5890),Gt=r.n(Vt);const Wt=({link:e})=>{const r=(0,l.useMemo)((()=>(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ (0,Ht.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,t.createElement)("a",{href:e,target:"_blank",rel:"noopener"},"Yoast SEO academy")})),[]);return(0,t.createElement)(c.Paper,{as:"div",className:"yst-p-6 yst-space-y-3"},(0,t.createElement)(c.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500"},(0,Ht.__)("Learn SEO","wordpress-seo")),(0,t.createElement)("p",null,r,(0,t.createElement)("br",null),(0,Ht.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")),(0,t.createElement)(c.Link,{href:e,className:"yst-block",target:"_blank",rel:"noopener"},(0,Ht.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,Ht.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy")))};Wt.propTypes={link:Gt().string.isRequired};const Zt=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Kt=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yt=({learnMoreLink:e,thumbnail:r,wistiaEmbedPermission:a,upsellLink:s,isProductCopy:n,title:o,upsellLabel:i,newToText:d,bundleNote:u})=>{const{onClose:m,initialFocus:p}=(0,c.useModalContext)(),f={a:(0,t.createElement)(nr,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,t.createElement)(Kt,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,t.createElement)("div",{className:"yst-relative yst-w-full"},(0,t.createElement)(zr,{videoId:"vmrahpfjxp",thumbnail:r,wistiaEmbedPermission:a}),(0,t.createElement)(c.Badge,{className:"yst-absolute yst-top-2 yst-end-4",variant:"info"},"Beta")),(0,t.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,t.createElement)("span",{className:"yst-logo-icon"}),d))),(0,t.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,t.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},o),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},n?(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */ (0,Ht.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for product titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),f):(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */ (0,Ht.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),f))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,t.createElement)(c.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:s,target:"_blank",ref:p},(0,t.createElement)(Zt,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),i,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,Ht.__)("(Opens in a new browser tab)","wordpress-seo")))),u,(0,t.createElement)(c.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:m},(0,Ht.__)("Close","wordpress-seo"))))};Yt.propTypes={learnMoreLink:Gt().string.isRequired,upsellLink:Gt().string.isRequired,thumbnail:Gt().shape({src:Gt().string.isRequired,width:Gt().string,height:Gt().string}).isRequired,wistiaEmbedPermission:Gt().shape({value:Gt().bool.isRequired,status:Gt().string.isRequired,set:Gt().func.isRequired}).isRequired,title:Gt().string,upsellLabel:Gt().string,newToText:Gt().string,isProductCopy:Gt().bool,bundleNote:Gt().oneOfType([Gt().string,Gt().element])},Yt.defaultProps={title:(0,Ht.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,Ht.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,Ht.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",isProductCopy:!1,bundleNote:""};const Jt=({learnMoreLink:e,thumbnail:r,wistiaEmbedPermission:a,upsellLink:s,upsellLabel:n})=>{const{onClose:o,initialFocus:i}=(0,c.useModalContext)(),d={a:(0,t.createElement)(nr,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,t.createElement)(Kt,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,t.createElement)("br",null)};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,t.createElement)("div",{className:"yst-relative yst-w-full"},(0,t.createElement)(zr,{videoId:"vun9z1dpfh",thumbnail:r,wistiaEmbedPermission:a}),(0,t.createElement)(c.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,Ht.__)("Beta","wordpress-seo-premium"))),(0,t.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,t.createElement)("span",{className:"yst-logo-icon"}),"Yoast SEO Premium"))),(0,t.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,t.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,Ht.sprintf)(/* translators: %s: Expands to "Yoast AI" */ (0,Ht.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ (0,Ht.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,t.createElement)(c.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:s,target:"_blank",ref:i},(0,t.createElement)(Zt,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),n,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,Ht.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)(c.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,Ht.__)("Close","wordpress-seo"))))};Jt.propTypes={learnMoreLink:Gt().string.isRequired,upsellLink:Gt().string.isRequired,thumbnail:Gt().shape({src:Gt().string.isRequired,width:Gt().string,height:Gt().string}).isRequired,wistiaEmbedPermission:Gt().shape({value:Gt().bool.isRequired,status:Gt().string.isRequired,set:Gt().func.isRequired}).isRequired,upsellLabel:Gt().string},Jt.defaultProps={upsellLabel:(0,Ht.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,Ht.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")};const Qt=({handleRefreshClick:e,supportLink:r})=>(0,t.createElement)("div",{className:"yst-flex yst-gap-2"},(0,t.createElement)(c.Button,{onClick:e},(0,Ht.__)("Refresh this page","wordpress-seo")),(0,t.createElement)(c.Button,{variant:"secondary",as:"a",href:r,target:"_blank",rel:"noopener"},(0,Ht.__)("Contact support","wordpress-seo")));Qt.propTypes={handleRefreshClick:Gt().func.isRequired,supportLink:Gt().string.isRequired};const Xt=({handleRefreshClick:e,supportLink:r})=>(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,t.createElement)(c.Button,{className:"yst-order-last",onClick:e},(0,Ht.__)("Refresh this page","wordpress-seo")),(0,t.createElement)(c.Button,{variant:"secondary",as:"a",href:r,target:"_blank",rel:"noopener"},(0,Ht.__)("Contact support","wordpress-seo")));Xt.propTypes={handleRefreshClick:Gt().func.isRequired,supportLink:Gt().string.isRequired};const er=({error:e,children:r})=>(0,t.createElement)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},(0,t.createElement)(c.Title,null,(0,Ht.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,t.createElement)("p",null,(0,Ht.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,t.createElement)(c.Alert,{variant:"error"},(null==e?void 0:e.message)||(0,Ht.__)("Undefined error message.","wordpress-seo")),(0,t.createElement)("p",null,(0,Ht.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")),r);er.propTypes={error:Gt().object.isRequired,children:Gt().node},er.VerticalButtons=Xt,er.HorizontalButtons=Qt;var tr;function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},rr.apply(this,arguments)}Gt().string,Gt().node.isRequired,Gt().node.isRequired,Gt().node,Gt().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const ar=e=>t.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),tr||(tr=t.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),sr=({to:e,idSuffix:r="",...a})=>{const s=(0,l.useMemo)((()=>(0,d.replace)((0,d.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,t.createElement)(c.SidebarNavigation.SubmenuItem,{as:Bt,pathProp:"to",id:`${s}${r}`,to:e,...a})};sr.propTypes={to:Gt().string.isRequired,idSuffix:Gt().string};const nr=({href:e,children:r,...a})=>(0,t.createElement)(c.Link,{target:"_blank",rel:"noopener noreferrer",...a,href:e},r,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,Ht.__)("(Opens in a new browser tab)","wordpress-seo")));nr.propTypes={href:Gt().string.isRequired,children:Gt().node},nr.defaultProps={children:null};const or=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var ir,lr,cr;function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},dr.apply(this,arguments)}const ur=e=>t.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),ir||(ir=t.createElement("defs",null,t.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),lr||(lr=t.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),cr||(cr=t.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),t.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},mr.apply(this,arguments)}const pr=e=>t.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),t.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var fr,yr,hr,gr,vr,br,Er,wr,xr;function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sr.apply(this,arguments)}const _r=e=>t.createElement("svg",Sr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),fr||(fr=t.createElement("path",{fill:"#a4286a",d:"M80 0h340a80 80 0 0 1 80 80v420H80a80 80 0 0 1-80-80V80A80 80 0 0 1 80 0z"})),yr||(yr=t.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),hr||(hr=t.createElement("path",{fill:"#fff",d:"M74.4 337.3v34.9c21.6-.9 38.5-8 52.8-22.5s27.4-38 39.9-72.9l92.6-248h-44.8L140.3 236l-37-116.2h-41l54.4 139.8a57.54 57.54 0 0 1 0 41.8c-5.5 14.2-15.4 30.9-42.3 35.9z"})),gr||(gr=t.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),vr||(vr=t.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),br||(br=t.createElement("path",{fill:"#fec228",d:"m294.78 254.75-.15-.08-.13-.07a63.6 63.6 0 0 0-62.56 110.76h.13a63.6 63.6 0 0 0 62.71-110.67z"})),Er||(Er=t.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),wr||(wr=t.createElement("path",{fill:"#ff4e47",d:"M222.31 450.07A38.16 38.16 0 0 0 203 416.83a38.18 38.18 0 1 0 19.41 33.27z"})),xr||(xr=t.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),kr=({link:e,linkProps:r,isPromotionActive:a})=>{let s=(0,l.useMemo)((()=>(0,Ht.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),n=(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Ht.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,t.createElement)("span",{className:"yst-whitespace-nowrap"})});const o=a("black-friday-2024-promotion");return o&&(s=(0,l.useMemo)((()=>(0,Ht.__)("If you were thinking about upgrading, now's the time! 30% OFF ends 3rd Dec 11am (CET)","wordpress-seo")),[]),n=(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Ht.__)("%1$sBuy%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,t.createElement)("span",{className:"yst-whitespace-nowrap"})})),(0,t.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,t.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-border yst-border-white yst-rounded-xl yst-rounded-br-none yst-relative yst-z-10 yst-mt-[-2.6rem]"},(0,t.createElement)(_r,null)),o&&(0,t.createElement)("div",{className:"sidebar__sale_banner_container"},(0,t.createElement)("div",{className:"sidebar__sale_banner"},(0,t.createElement)("span",{className:"banner_text"},(0,Ht.__)("30% OFF - BLACK FRIDAY","wordpress-seo")))),(0,t.createElement)(c.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},n),(0,t.createElement)("p",{className:"yst-mt-2"},s),(0,t.createElement)(c.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...r},(0,t.createElement)("span",null,o?(0,Ht.__)("Buy now","wordpress-seo"):n),(0,t.createElement)(or,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,t.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},!o&&(0,t.createElement)(t.Fragment,null,(0,Ht.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,t.createElement)("br",null)),(0,Ht.__)("30-day money back guarantee.","wordpress-seo")),(0,t.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,t.createElement)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer"},(0,t.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,Ht.__)("Read reviews from real users","wordpress-seo")),(0,t.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,t.createElement)(ar,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)("span",{className:"yst-flex yst-gap-1"},(0,t.createElement)(pr,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(pr,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(pr,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(pr,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(ur,{className:"yst-w-5 yst-h-5"})),(0,t.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};kr.propTypes={link:Gt().string.isRequired,linkProps:Gt().object,isPromotionActive:Gt().func},kr.defaultProps={linkProps:{},isPromotionActive:d.noop};const Cr=({premiumLink:e,premiumUpsellConfig:r,isPromotionActive:a})=>{const s=a("black-friday-2024-promotion");return(0,t.createElement)(c.Paper,{as:"div",className:"xl:yst-max-w-3xl"},s&&(0,t.createElement)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-semibold"},(0,t.createElement)("div",null,(0,Ht.__)("30% OFF","wordpress-seo")),(0,t.createElement)("div",null,(0,Ht.__)("BLACK FRIDAY","wordpress-seo"))),(0,t.createElement)("div",{className:"yst-p-6 yst-flex yst-flex-col"},(0,t.createElement)(c.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,Ht.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Ht.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")),(0,t.createElement)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-disc yst-ps-[1em] yst-list-outside yst-text-slate-800 yst-mt-6"},[(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,Ht.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */ (0,Ht.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")].map(((e,r)=>(0,t.createElement)("li",{key:`upsell-benefit-${r}`},(0,l.createInterpolateElement)(e,{strong:(0,t.createElement)("span",{className:"yst-font-semibold"})}))))),(0,t.createElement)(c.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...r},s?(0,Ht.__)("Claim your 30% off now!","wordpress-seo"):(0,Ht.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Ht.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium"),(0,t.createElement)(or,{className:"yst-w-4 yst-h-4 yst-icon-rtl"}))))};Cr.propTypes={premiumLink:Gt().string.isRequired,premiumUpsellConfig:Gt().object,isPromotionActive:Gt().func},Cr.defaultProps={premiumUpsellConfig:{},isPromotionActive:d.noop};const Nr=({premiumLink:e,premiumUpsellConfig:r,academyLink:a,isPromotionActive:s})=>(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4"},(0,t.createElement)(kr,{link:e,linkProps:r,isPromotionActive:s}),(0,t.createElement)(Wt,{link:a}));Nr.propTypes={premiumLink:Gt().string.isRequired,premiumUpsellConfig:Gt().object.isRequired,academyLink:Gt().string.isRequired,isPromotionActive:Gt().func.isRequired};const Pr=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Rr=({isOpen:e,onClose:r=d.noop,onDiscard:a=d.noop,title:s,description:n,dismissLabel:o,discardLabel:i})=>{const l=(0,c.useSvgAria)();return(0,t.createElement)(c.Modal,{isOpen:e,onClose:r},(0,t.createElement)(c.Modal.Panel,{closeButtonScreenReaderText:(0,Ht.__)("Close","wordpress-seo")},(0,t.createElement)("div",{className:"sm:yst-flex sm:yst-items-start"},(0,t.createElement)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10"},(0,t.createElement)(Pr,{className:"yst-h-6 yst-w-6 yst-text-red-600",...l})),(0,t.createElement)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start"},(0,t.createElement)(c.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3"},s),(0,t.createElement)(c.Modal.Description,{className:"yst-text-sm yst-text-slate-500"},n))),(0,t.createElement)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6"},(0,t.createElement)(c.Button,{type:"button",variant:"error",onClick:a,className:"yst-block"},i),(0,t.createElement)(c.Button,{type:"button",variant:"secondary",onClick:r,className:"yst-block"},o))))};Rr.propTypes={isOpen:Gt().bool.isRequired,onClose:Gt().func,onDiscard:Gt().func,title:Gt().string.isRequired,description:Gt().string.isRequired,dismissLabel:Gt().string.isRequired,discardLabel:Gt().string.isRequired};const Or=window.yoast.reactHelmet,Tr="request",Lr="success",Mr="error",Ir="loading",Ar="showPlay",Dr="askPermission",Fr="isPlaying",zr=({videoId:e,thumbnail:r,wistiaEmbedPermission:a})=>{const[s,n]=(0,l.useState)(a.value?Fr:Ar),o=(0,l.useCallback)((()=>n(Fr)),[n]),i=(0,l.useCallback)((()=>{a.value?o():n(Dr)}),[a.value,o,n]),d=(0,l.useCallback)((()=>n(Ar)),[n]),u=(0,l.useCallback)((()=>{a.set(!0),o()}),[a.set,o]);return(0,t.createElement)(t.Fragment,null,a.value&&(0,t.createElement)(Or.Helmet,null,(0,t.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,t.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},s===Ar&&(0,t.createElement)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:i},(0,t.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...r})),s===Dr&&(0,t.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,t.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},a.status===Ir&&(0,t.createElement)(c.Spinner,null),a.status!==Ir&&(0,Ht.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,Ht.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,t.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,t.createElement)(c.Button,{type:"button",variant:"secondary",onClick:d,disabled:a.status===Ir},(0,Ht.__)("Deny","wordpress-seo")),(0,t.createElement)(c.Button,{type:"button",variant:"primary",onClick:u,disabled:a.status===Ir},(0,Ht.__)("Allow","wordpress-seo")))),a.value&&s===Fr&&(0,t.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0"},null===e&&(0,t.createElement)(c.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,t.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};var jr,Ur;function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Br.apply(this,arguments)}zr.propTypes={videoId:Gt().string.isRequired,thumbnail:Gt().shape({src:Gt().string.isRequired,width:Gt().string,height:Gt().string}).isRequired,wistiaEmbedPermission:Gt().shape({value:Gt().bool.isRequired,status:Gt().string.isRequired,set:Gt().func.isRequired}).isRequired};const $r=e=>t.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),jr||(jr=t.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),Ur||(Ur=t.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),qr=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));var Hr,Vr,Gr,Wr,Zr,Kr,Yr,Jr,Qr,Xr,ea,ta,ra,aa,sa,na,oa,ia,la,ca,da,ua,ma,pa,fa,ya,ha,ga,va,ba,Ea,wa,xa,Sa,_a,ka,Ca,Na,Pa,Ra,Oa,Ta,La,Ma,Ia,Aa,Da,Fa,za,ja,Ua,Ba,$a,qa,Ha,Va,Ga,Wa,Za,Ka,Ya,Ja,Qa,Xa,es,ts,rs,as,ss;function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ns.apply(this,arguments)}const os=e=>t.createElement("svg",ns({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),Hr||(Hr=t.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},t.createElement("stop",{offset:0,stopColor:"#570732"}),t.createElement("stop",{offset:.04,stopColor:"#610b39"}),t.createElement("stop",{offset:.15,stopColor:"#79164b"}),t.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),t.createElement("stop",{offset:.44,stopColor:"#9a2463"}),t.createElement("stop",{offset:.63,stopColor:"#a22768"}),t.createElement("stop",{offset:1,stopColor:"#a4286a"}))),Vr||(Vr=t.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),Gr||(Gr=t.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),Wr||(Wr=t.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),Zr||(Zr=t.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),Kr||(Kr=t.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:0,stopColor:"#77b227"}),t.createElement("stop",{offset:.47,stopColor:"#75b027"}),t.createElement("stop",{offset:.64,stopColor:"#6eab27"}),t.createElement("stop",{offset:.75,stopColor:"#63a027"}),t.createElement("stop",{offset:.85,stopColor:"#529228"}),t.createElement("stop",{offset:.93,stopColor:"#3c8028"}),t.createElement("stop",{offset:1,stopColor:"#246b29"}))),Yr||(Yr=t.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},t.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),Jr||(Jr=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),Qr||(Qr=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),Xr||(Xr=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),ea||(ea=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),ta||(ta=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),ra||(ra=t.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),aa||(aa=t.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),sa||(sa=t.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),na||(na=t.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),oa||(oa=t.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),ia||(ia=t.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),la||(la=t.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),ca||(ca=t.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),da||(da=t.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),ua||(ua=t.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),ma||(ma=t.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),pa||(pa=t.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),fa||(fa=t.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),ya||(ya=t.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),ha||(ha=t.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),ga||(ga=t.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),va||(va=t.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),ba||(ba=t.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),Ea||(Ea=t.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),wa||(wa=t.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),xa||(xa=t.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),Sa||(Sa=t.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),_a||(_a=t.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),ka||(ka=t.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),Ca||(Ca=t.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),Na||(Na=t.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Pa||(Pa=t.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),Ra||(Ra=t.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Oa||(Oa=t.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Ta||(Ta=t.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),La||(La=t.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),Ma||(Ma=t.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Ia||(Ia=t.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),Aa||(Aa=t.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Da||(Da=t.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),Fa||(Fa=t.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),za||(za=t.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),ja||(ja=t.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),Ua||(Ua=t.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),Ba||(Ba=t.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),$a||($a=t.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),qa||(qa=t.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),Ha||(Ha=t.createElement("g",{fill:"#ffc399"},t.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),t.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),t.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),t.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),t.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),Va||(Va=t.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),Ga||(Ga=t.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),Wa||(Wa=t.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),Za||(Za=t.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),Ka||(Ka=t.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),Ya||(Ya=t.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),Ja||(Ja=t.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),Qa||(Qa=t.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),Xa||(Xa=t.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),es||(es=t.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),ts||(ts=t.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),rs||(rs=t.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),as||(as=t.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),ss||(ss=t.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},t.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),t.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),t.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),t.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),is=({isOpen:e,onClose:r,onGrantConsent:a,learnMoreLink:s=""})=>{const n=(0,c.useSvgAria)();return(0,t.createElement)(c.Modal,{isOpen:e,onClose:r},(0,t.createElement)(c.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1},(0,t.createElement)(c.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:r,screenReaderText:(0,Ht.__)("Close","wordpress-seo")}),(0,t.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]"},(0,t.createElement)(os,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})),(0,t.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,t.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,Ht.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,Ht.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,t.createElement)(nr,{className:"yst-no-underline yst-font-medium",variant:"primary",href:s},(0,Ht.__)("Learn more","wordpress-seo"),(0,t.createElement)(qr,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,t.createElement)(c.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:a||r},(0,Ht.__)("Grant consent","wordpress-seo"))),(0,t.createElement)(c.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:r},(0,Ht.__)("Close","wordpress-seo")))))};is.propTypes={isOpen:Gt().bool.isRequired,onClose:Gt().func.isRequired,onGrantConsent:Gt().func,learnMoreLink:Gt().string};const ls=({userName:e,features:r,links:a,sitekitFeatureEnabled:s})=>{ /** * translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page. * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. **/ const n=(0,Ht.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. Get even more insights by enabling the ‘SEO analysis’ and the ‘Readability analysis’ in your %1$sSite features%2$s or your %3$suser profile settings%4$s.","wordpress-seo"),o=(0,Ht.__)("It looks like the ‘SEO analysis’ and the ‘Readability analysis’ are currently disabled in your %1$sSite features%2$s or your %3$suser profile settings%4$s. Enable these features to start seeing all the insights you need right here!","wordpress-seo"),i=s?n:o,d=s?(0,Ht.__)("Oops! You can’t see the overview of your SEO insights right now because you’re in a non-production environment.","wordpress-seo"):(0,Ht.__)("Oops! You can’t see the overview of your SEO scores and readability scores right now because you’re in a non-production environment.","wordpress-seo"); /** * translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page. * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. **/return(0,t.createElement)(c.Paper,{className:"yst-shadow-md"},(0,t.createElement)(c.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm"},(0,t.createElement)(c.Title,{as:"h1"},(0,Ht.sprintf)(/* translators: %s expands to the username */ (0,Ht.__)("Hi %s,","wordpress-seo"),e)),(0,t.createElement)("p",{className:"yst-text-tiny"},!r.indexables||r.seoAnalysis||r.readabilityAnalysis?(0,l.createInterpolateElement)((0,Ht.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing anchor tag. */ (0,Ht.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. %1$sLearn more about the dashboard%2$s.","wordpress-seo"),"<link>","</link>"),{link:(0,t.createElement)(nr,{href:a.dashboardLearnMore}," ")}):(0,l.createInterpolateElement)((0,Ht.sprintf)(i,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,t.createElement)(c.Link,{href:"admin.php?page=wpseo_page_settings#/site-features"}," "),profilelink:(0,t.createElement)(c.Link,{href:"profile.php"}," ")})),!r.indexables&&(0,t.createElement)(c.Alert,{type:"info"},d)))};function cs(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function ds(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,cs(e,t,"get"))}function us(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,cs(e,t,"set"),r),r}var ms=r(4530),ps=r.n(ms);const fs=(e,t)=>{try{return(0,l.createInterpolateElement)((0,Ht.sprintf)(e,"<link>","</link>"),{link:t})}catch(t){return(0,Ht.sprintf)(e,"","")}},ys=({error:e,supportLink:r,className:a=""})=>{if(!e)return null;const s=(0,t.createElement)(c.Link,{variant:"error",href:r}," ");return(0,t.createElement)(c.Alert,{variant:"error",className:ps()("yst-max-w-2xl",a)},((e,t)=>{switch(!0){case 408===e.status||"TimeoutError"===e.name:return fs(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ (0,Ht.__)("The request timed out. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t);case 403===e.status:return fs(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ (0,Ht.__)("You don’t have permission to access this resource. Please contact your admin for access. In case you need further help, please check our %1$sSupport page%2$s.","wordpress-seo"),t);default:return fs(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ (0,Ht.__)("Something went wrong. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t)}})(e,s))},hs=({className:e="yst-mt-4"})=>(0,t.createElement)("p",{className:e},(0,Ht.__)("No data to display: Your site hasn't received any visitors yet.","wordpress-seo")),gs=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7l4-4m0 0l4 4m-4-4v18"}))})),vs=({value:e,formattedValue:r})=>{if(!e)return null;const a=e>=0;return(0,t.createElement)("div",{className:ps()("yst-flex yst-items-center yst-font-semibold",a?"yst-text-green-600":"yst-text-red-600")},(0,t.createElement)(gs,{className:ps()("yst-w-4 yst-shrink-0",!a&&"yst-rotate-180")}),[a?"+":"",r].join(""))},bs=window.yoast.reduxJsToolkit,Es=(0,bs.createSlice)({name:"data",initialState:{data:void 0,error:void 0,isPending:!0},reducers:{setData(e,t){e.data=t.payload,e.error=void 0,e.isPending=!1},setError(e,t){e.error=t.payload,e.isPending=!1},setIsPending(e,t){e.isPending=Boolean(t.payload)}}}),ws=(e,t=d.identity)=>{const[r,a]=(0,l.useReducer)(Es.reducer,{},Es.getInitialState),s=(0,l.useRef)();return(0,l.useEffect)((()=>{var r,n;return null===(r=s.current)||void 0===r||r.abort(),s.current=new AbortController,a(Es.actions.setIsPending(!0)),e({signal:null===(n=s.current)||void 0===n?void 0:n.signal}).then((e=>a(Es.actions.setData(t(e))))).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&a(Es.actions.setError(e))})),()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.abort()}}),[e]),r},xs=e=>!e&&0!==e,Ss=(e,t)=>xs(e)||xs(t)?NaN:e===t?0:0===t?1:(e-t)/t,_s=({children:e})=>(0,t.createElement)("div",{className:"yst-flex yst-flex-col yst-gap-1"},(0,t.createElement)("div",{className:"yst-flex yst-gap-3"},e),(0,t.createElement)("span",null,(0,Ht.__)("Last 28 days","wordpress-seo"))),ks=({data:e,isPending:r,error:a,supportLink:s})=>r?(0,t.createElement)(_s,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-title yst-title--1"},"10_000"),(0,t.createElement)(c.SkeletonLoader,null,"^ +100%")):a?(0,t.createElement)(ys,{error:a,supportLink:s}):(0,t.createElement)(_s,null,(0,t.createElement)(c.Title,{as:"h2",size:"1",className:"yst-font-bold"},e.sessions),(0,t.createElement)(vs,{value:e.difference,formattedValue:e.formattedDifference})),Cs=window.yoast["chart.js"],Ns="label";function Ps(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Rs(e,t){e.labels=t}function Os(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ns;const a=[];e.datasets=t.map((t=>{const s=e.datasets.find((e=>e[r]===t[r]));return s&&t.data&&!a.includes(s)?(a.push(s),Object.assign(s,t),s):{...t}}))}function Ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ns;const r={labels:[],datasets:[]};return Rs(r,e.labels),Os(r,e.datasets,t),r}function Ls(e,r){const{height:a=150,width:s=300,redraw:n=!1,datasetIdKey:o,type:i,data:l,options:c,plugins:d=[],fallbackContent:u,updateMode:m,...p}=e,f=(0,t.useRef)(null),y=(0,t.useRef)(),h=()=>{f.current&&(y.current=new Cs.Chart(f.current,{type:i,data:Ts(l,o),options:c&&{...c},plugins:d}),Ps(r,y.current))},g=()=>{Ps(r,null),y.current&&(y.current.destroy(),y.current=null)};return(0,t.useEffect)((()=>{!n&&y.current&&c&&function(e,t){const r=e.options;r&&t&&Object.assign(r,t)}(y.current,c)}),[n,c]),(0,t.useEffect)((()=>{!n&&y.current&&Rs(y.current.config.data,l.labels)}),[n,l.labels]),(0,t.useEffect)((()=>{!n&&y.current&&l.datasets&&Os(y.current.config.data,l.datasets,o)}),[n,l.datasets]),(0,t.useEffect)((()=>{y.current&&(n?(g(),setTimeout(h)):y.current.update(m))}),[n,c,l.labels,l.datasets,m]),(0,t.useEffect)((()=>{y.current&&(g(),setTimeout(h))}),[i]),(0,t.useEffect)((()=>(h(),()=>g())),[]),t.createElement("canvas",Object.assign({ref:f,role:"img",height:a,width:s},p),u)}const Ms=(0,t.forwardRef)(Ls);function Is(e,r){return Cs.Chart.register(r),(0,t.forwardRef)(((r,a)=>t.createElement(Ms,Object.assign({},r,{ref:a,type:e}))))}const As=Is("line",Cs.LineController),Ds=Is("doughnut",Cs.DoughnutController);var Fs,zs;Cs.Chart.register(Cs.Filler,Cs.CategoryScale,Cs.LinearScale,Cs.LineElement,Cs.PointElement,Cs.Tooltip);const js="rgba(166, 30, 105, 1)",Us="transparent",Bs=null===(Fs=document.createElement("canvas"))||void 0===Fs||null===(zs=Fs.getContext("2d"))||void 0===zs?void 0:zs.createLinearGradient(0,0,0,225);null==Bs||Bs.addColorStop(0,"rgba(166, 30, 105, 0.2)"),null==Bs||Bs.addColorStop(1,"rgba(166, 30, 105, 0)");const $s={parsing:{xAxisKey:"date",yAxisKey:"sessions"},elements:{point:{radius:5,borderWidth:2,borderColor:"white",backgroundColor:js},line:{tension:.3,borderWidth:3,borderColor:js,backgroundColor:Bs||Us}},layout:{padding:{left:-20}},scales:{x:{grid:{color:"oklch(0.869 0.022 252.894)",drawTicks:!1},ticks:{font:{size:12,weight:400},padding:12,maxRotation:0,maxTicksLimit:14}},y:{grid:{color:e=>e.tick.value%1?Us:"oklch(0.929 0.013 255.508)",drawTicks:!1},ticks:{color:"oklch(0.554 0.046 257.417)",font:{size:14,weight:400},padding:20,callback:function(e){return e%1?"":this.getLabelForValue(e)}}}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}}},qs=({data:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-w-full yst-h-60"},(0,t.createElement)(As,{"aria-hidden":!0,options:$s,data:e})),(0,t.createElement)("table",{className:"yst-sr-only"},(0,t.createElement)("caption",null,(0,Ht.__)("Organic sessions chart","wordpress-seo")),(0,t.createElement)("thead",null,(0,t.createElement)("tr",null,e.labels.map((e=>(0,t.createElement)("th",{key:e},e))))),(0,t.createElement)("tbody",null,(0,t.createElement)("tr",null,e.datasets[0].data.map((({date:e,sessions:r})=>(0,t.createElement)("td",{key:e},String(r)))))))),Hs=({data:e,isPending:r,error:a,supportLink:s})=>r?(0,t.createElement)(c.SkeletonLoader,{className:"yst-w-full yst-h-52 yst-mt-8"}):a?(0,t.createElement)(ys,{className:"yst-mt-4",error:a,supportLink:s}):(0,t.createElement)(qs,{data:e}),Vs=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Gs=({children:e})=>(0,t.createElement)(c.TooltipContainer,{as:"div",className:"yst-h-fit yst-leading-[0]"},(0,t.createElement)(c.TooltipTrigger,null,(0,t.createElement)(Vs,{className:"yst-w-5 yst-h-5 yst-text-slate-400"})),(0,t.createElement)(c.TooltipWithContext,{variant:"light",className:"yst-leading-normal yst-max-w-80 yst-p-4 yst-shadow-md",position:"left"},e)),Ws=({children:e,...r})=>(0,t.createElement)(c.Title,{as:"h2",...r},e);Ws.displayName="Widget.Title";const Zs=({content:e,children:r})=>(0,t.createElement)(Gs,null,(0,t.createElement)("p",{className:"yst-mb-2 yst-text-slate-600"},e),r);Zs.displayName="Widget.Tooltip";const Ks=({dataSources:e})=>(0,t.createElement)("div",{className:"yst-border-t yst-mt-3 yst-border-slate-200 yst-italic yst-text-xxs"},(0,t.createElement)("div",{className:"yst-mt-3 yst-font-semibold yst-text-slate-800"},(0,Ht.__)("Data provided by:","wordpress-seo")),(0,t.createElement)("ul",null,e.map(((e,r)=>(0,t.createElement)("li",{className:"yst-text-slate-500",key:r},e.feature?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"yst-font-medium"},e.source," - "),e.feature):e.source)))));Ks.displayName="Widget.DataSources";const Ys=({className:e="yst-mt-4",supportLink:r,children:a,...s})=>{const n=(0,l.useCallback)((({error:a})=>(0,t.createElement)(ys,{error:a,className:e,supportLink:r})),[e,r]);return(0,t.createElement)(c.ErrorBoundary,{...s,FallbackComponent:n},a)};Ys.displayName="Widget.ErrorBoundary";const Js=({className:e="yst-paper__content",title:r,tooltip:a,dataSources:s,children:n,errorSupportLink:o})=>(0,t.createElement)(c.Paper,{className:ps()("yst-shadow-md",e)},(r||a)&&(0,t.createElement)("div",{className:"yst-flex yst-justify-between"},r&&(0,t.createElement)(Ws,null,r),a&&(0,t.createElement)(Zs,{content:a},s&&s.length>0&&(0,t.createElement)(Ks,{dataSources:s}))),o?(0,t.createElement)(Ys,{supportLink:o},n):n),Qs=({dataProvider:e,remoteDataProvider:r,dataFormatter:a})=>{var s;const n=e.getLink("errorSupport"),o=((e,t,r)=>{const a=(0,l.useCallback)((r=>t.fetchJson(e.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsDaily"}},r)),[e]),s=(0,l.useMemo)((()=>(e=[])=>{return t=(e=>(t=[])=>t.map((t=>({date:e.format(t.date,"date",{widget:"organicSessions"}),sessions:Number(t.sessions)}))))(r)(e),{labels:t.map((({date:e})=>e)),datasets:[{fill:"origin",data:t}]};var t}),[r]);return ws(a,s)})(e,r,a),i=((e,t,r)=>{const a=(0,l.useCallback)((r=>t.fetchJson(e.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsCompare"}},r)),[e]),s=(0,l.useMemo)((()=>(e=>([t])=>{var r,a;const s=(null==t||null===(r=t.current)||void 0===r?void 0:r.sessions)||NaN,n=Ss(s,(null==t||null===(a=t.previous)||void 0===a?void 0:a.sessions)||NaN);return{sessions:e.format(s,"sessions",{widget:"organicSessions"}),difference:n,formattedDifference:e.format(n,"difference",{widget:"organicSessions"})}})(r)),[r]);return ws(a,s)})(e,r,a);return i.error&&o.error&&(0,d.isEqual)(i.error,o.error)?(0,t.createElement)(ys,{className:"yst-mt-4",error:i.error,supportLink:n}):0===(null===(s=o.data)||void 0===s?void 0:s.labels.length)?(0,t.createElement)(hs,null):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-flex yst-justify-between yst-mt-4"},(0,t.createElement)(ks,{data:i.data,error:i.error,isPending:i.isPending,supportLink:n})),(0,t.createElement)(Hs,{data:o.data,error:o.error,isPending:o.isPending,supportLink:n}))},Xs=({dataProvider:e,remoteDataProvider:r,dataFormatter:a})=>(0,t.createElement)(Js,{className:"yst-paper__content yst-col-span-4",title:(0,Ht.__)("Organic sessions","wordpress-seo"),tooltip:(0,Ht.__)("The number of organic sessions that began on your website.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},(0,t.createElement)(Qs,{dataProvider:e,remoteDataProvider:r,dataFormatter:a})),en={good:{label:(0,Ht.__)("Good","wordpress-seo"),color:"yst-bg-analysis-good",hex:"#7ad03a"},ok:{label:(0,Ht.__)("OK","wordpress-seo"),color:"yst-bg-analysis-ok",hex:"#ee7c1b"},bad:{label:(0,Ht.__)("Needs improvement","wordpress-seo"),color:"yst-bg-analysis-bad",hex:"#dc3232"},notAnalyzed:{label:(0,Ht.__)("Not analyzed","wordpress-seo"),color:"yst-bg-analysis-na",hex:"#cbd5e1",tooltip:(0,Ht.__)("We haven’t analyzed this content yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")}},tn={seo:{good:(0,Ht.__)("Most of your content has a good SEO score. Well done!","wordpress-seo"),ok:(0,Ht.__)("Your content has an average SEO score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,Ht.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,Ht.__)("Some of your content hasn't been analyzed yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")},readability:{good:(0,Ht.__)("Most of your content has a good readability score. Well done!","wordpress-seo"),ok:(0,Ht.__)("Your content has an average readability score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,Ht.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,Ht.__)("Some of your content hasn't been analyzed yet. Please open it and save it in your editor so we can start the analysis.","wordpress-seo")}},rn=new RegExp("�?39;","g");function an(e){return(0,d.replace)((0,d.unescape)(e),rn,"'")}const sn=({idSuffix:e,contentTypes:r,selected:a,onChange:s})=>{const[n,o]=(0,l.useState)((()=>r)),i=(0,l.useCallback)((e=>{s(r.find((({name:t})=>t===e)))}),[r]),d=(0,l.useCallback)((e=>{const t=e.target.value.trim().toLowerCase();o(t?r.filter((({name:e,label:r})=>r.toLowerCase().includes(t)||e.toLowerCase().includes(t))):r)}),[r]);return(0,t.createElement)(c.AutocompleteField,{id:`content-type--${e}`,label:(0,Ht.__)("Content type","wordpress-seo"),value:null==a?void 0:a.name,selectedLabel:an(null==a?void 0:a.label)||"",onChange:i,onQueryChange:d},n.map((({name:e,label:r})=>{const a=an(r);return(0,t.createElement)(c.AutocompleteField.Option,{key:e,value:e},a)})))},nn=({scores:e,descriptions:r})=>{const a=(0,d.maxBy)(e,"amount");return(0,t.createElement)("p",{className:"yst-max-w-2xl"},r[null==a?void 0:a.name]||"")};Cs.Chart.register(Cs.ArcElement,Cs.Tooltip);const on=e=>({labels:e.map((({name:e})=>en[e].label)),datasets:[{cutout:"82%",data:e.map((({amount:e})=>e)),backgroundColor:e.map((({name:e})=>en[e].hex)),borderWidth:0,offset:0,hoverOffset:5,spacing:1,weight:1,animation:{animateRotate:!0}}]}),ln={plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}},layout:{padding:5}},cn=({className:e})=>(0,t.createElement)("div",{className:ps()(e,"yst-relative")},(0,t.createElement)(c.SkeletonLoader,{className:"yst-w-full yst-aspect-square yst-rounded-full"}),(0,t.createElement)("div",{className:"yst-absolute yst-inset-5 yst-aspect-square yst-bg-white yst-rounded-full"})),dn=({className:e,scores:r})=>(0,t.createElement)("div",{className:e},(0,t.createElement)(Ds,{options:ln,data:on(r)})),un="yst-flex yst-items-center yst-py-3 first:yst-pt-0 last:yst-pb-0 yst-border-b last:yst-border-b-0",mn="yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",pn="yst-ms-3 yst-me-2",fn=({className:e})=>(0,t.createElement)("ul",{className:e},Object.entries(en).map((([e,{label:r}])=>(0,t.createElement)("li",{key:`skeleton-loader--${e}`,className:un},(0,t.createElement)(c.SkeletonLoader,{className:mn}),(0,t.createElement)(c.SkeletonLoader,{className:pn},r),(0,t.createElement)(c.SkeletonLoader,{className:"yst-w-7 yst-me-3"},"1"),(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto yst-button yst-button--small"},(0,Ht.__)("View","wordpress-seo")))))),yn=({score:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:ps()(mn,en[e.name].color)}),(0,t.createElement)(c.Label,{as:"span",className:ps()(pn,"yst-leading-4 yst-py-1.5")},en[e.name].label),(0,t.createElement)(c.Badge,{variant:"plain",className:ps()(e.links.view&&"yst-me-3")},e.amount)),hn=({score:e,idSuffix:r})=>{const a=`tooltip--${r}__${e.name}`;return(0,t.createElement)(c.TooltipContainer,null,(0,t.createElement)(c.TooltipTrigger,{className:"yst-flex yst-items-center",ariaDescribedby:a},(0,t.createElement)(yn,{score:e})),(0,t.createElement)(c.TooltipWithContext,{id:a,className:"max-[784px]:yst-max-w-full"},en[e.name].tooltip))},gn=({score:e,idSuffix:r})=>{const a=en[e.name].tooltip?hn:yn;return(0,t.createElement)("li",{className:un},(0,t.createElement)(a,{score:e,idSuffix:r}),e.links.view&&(0,t.createElement)(c.Button,{as:"a",variant:"secondary",size:"small",href:e.links.view,className:"yst-ms-auto"},(0,Ht.__)("View","wordpress-seo")))},vn=({className:e,scores:r,idSuffix:a})=>(0,t.createElement)("ul",{className:e},r.map((e=>(0,t.createElement)(gn,{key:e.name,score:e,idSuffix:a})))),bn="yst-flex yst-flex-col @md:yst-flex-row yst-gap-12 yst-mt-6",En="yst-grow",wn="yst-w-[calc(11.5rem+3px)] yst-aspect-square",xn=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-w-full"}," "),(0,t.createElement)("div",{className:bn},(0,t.createElement)(fn,{className:En}),(0,t.createElement)(cn,{className:wn}))),Sn=({scores:e=[],isLoading:r,descriptions:a,idSuffix:s})=>r?(0,t.createElement)(xn,null):(0,t.createElement)(t.Fragment,null,(0,t.createElement)(nn,{scores:e,descriptions:a}),(0,t.createElement)("div",{className:bn},e&&(0,t.createElement)(vn,{className:En,scores:e,idSuffix:s}),e&&(0,t.createElement)(dn,{className:wn,scores:e}))),kn=async(e,t)=>{try{const r=await fetch(e,t);if(!r.ok){const e=new Error(r.statusText);throw e.status=r.status,e}return r.json()}catch(e){return Promise.reject(e)}},Cn=(e,t)=>{const r=new URL(e);return r.searchParams.set("search",t),r.searchParams.set("_fields",["id","name"]),r},Nn=e=>({name:String(e.id),label:(0,d.unescape)(e.name)}),Pn=({terms:e})=>0===e.length?(0,t.createElement)("div",{className:"yst-autocomplete__option"},(0,Ht.__)("Nothing found","wordpress-seo")):e.map((({name:e,label:r})=>(0,t.createElement)(c.AutocompleteField.Option,{key:e,value:e},r))),Rn=({idSuffix:e,taxonomy:r,selected:a,onChange:s})=>{const[n,o]=(0,l.useState)(""),{data:i=[],error:u,isPending:m}=(({dependencies:e,url:t,options:r,prepareData:a=d.identity,doFetch:s=kn,fetchDelay:n=200})=>{const[o,i]=(0,l.useState)(!0),[c,u]=(0,l.useState)(),[m,p]=(0,l.useState)(),f=(0,l.useRef)(),y=(0,l.useCallback)((0,d.debounce)(((...e)=>{s(...e).then((e=>{p(a(e)),u(void 0)})).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&u(e)})).finally((()=>{i(!1)}))}),n),[]);return(0,l.useEffect)((()=>{var e;return i(!0),null===(e=f.current)||void 0===e||e.abort(),f.current=new AbortController,y(t,{signal:f.current.signal,...r}),()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.abort()}}),e),{data:m,error:c,isPending:o}})({dependencies:[r.links.search,n],url:Cn(r.links.search,n),options:{headers:{"Content-Type":"application/json"}},prepareData:e=>e.map(Nn)}),p=(0,l.useCallback)((e=>{null===e&&o(""),s(i.find((({name:t})=>t===e)))}),[i]),f=(0,l.useCallback)((e=>{var t,r,a;o((null==e||null===(t=e.target)||void 0===t||null===(r=t.value)||void 0===r||null===(a=r.trim())||void 0===a?void 0:a.toLowerCase())||"")}),[]);return(0,t.createElement)(c.AutocompleteField,{id:`term--${e}`,label:r.label,value:(null==a?void 0:a.name)||"",selectedLabel:(null==a?void 0:a.label)||n,onChange:p,onQueryChange:f,placeholder:(0,Ht.__)("All","wordpress-seo"),nullable:!0,clearButtonScreenReaderText:(0,Ht.__)("Clear filter","wordpress-seo"),validation:u&&{variant:"error",message:(0,Ht.__)("Something went wrong.","wordpress-seo")}},m&&(0,t.createElement)("div",{className:"yst-autocomplete__option"},(0,t.createElement)(c.Spinner,null)),!m&&(0,t.createElement)(Pn,{terms:i}))},On=e=>null==e?void 0:e.scores,Tn=({analysisType:e,contentTypes:r,dataProvider:a,remoteDataProvider:s})=>{var n,o;const[i,c]=(0,l.useState)(r[0]),[d,u]=(0,l.useState)(),m=(0,l.useCallback)((t=>s.fetchJson(a.getEndpoint(e+"Scores"),((e,t)=>{var r;const a={contentType:null==e?void 0:e.name};return null!=e&&null!==(r=e.taxonomy)&&void 0!==r&&r.name&&null!=t&&t.name&&(a.taxonomy=e.taxonomy.name,a.term=t.name),a})(i,d),t)),[a,e,i,d]),{data:p,error:f,isPending:y}=ws(m,On);return(0,l.useEffect)((()=>{u(void 0)}),[null==i?void 0:i.name]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 @md:yst-grid-cols-2 yst-gap-6 yst-mt-4"},(0,t.createElement)(sn,{idSuffix:e,contentTypes:r,selected:i,onChange:c}),i.taxonomy&&(null===(n=i.taxonomy)||void 0===n||null===(o=n.links)||void 0===o?void 0:o.search)&&(0,t.createElement)(Rn,{idSuffix:e,taxonomy:i.taxonomy,selected:d,onChange:u})),(0,t.createElement)("div",{className:"yst-mt-6"},(0,t.createElement)(ys,{error:f,supportLink:a.getLink("errorSupport")}),!f&&(0,t.createElement)(Sn,{scores:p,isLoading:y,descriptions:tn[e],idSuffix:e})))},Ln=({analysisType:e,dataProvider:r,remoteDataProvider:a})=>{const[s,n]=(0,l.useState)((()=>r.getContentTypes()));return(0,l.useEffect)((()=>{n(r.getContentTypes())}),[r]),null!=s&&s.length?(0,t.createElement)(Js,{className:"yst-paper__content yst-@container @3xl:yst-col-span-2 yst-col-span-4",title:"readability"===e?(0,Ht.__)("Readability scores","wordpress-seo"):(0,Ht.__)("SEO scores","wordpress-seo"),errorSupportLink:r.getLink("errorSupport")},(0,t.createElement)(Tn,{analysisType:e,contentTypes:s,dataProvider:r,remoteDataProvider:a})):null},Mn=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),In=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),An=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Dn,Fn,zn,jn,Un,Bn,$n,qn,Hn,Vn;function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Gn.apply(this,arguments)}const Wn=e=>t.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),Dn||(Dn=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__a)",fillRule:"evenodd",d:"M36.962 29.643c0-3.42 1.83-6.49 6.405-6.49 4.403 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624Zm8.432-2.74c-1.173-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.317.039 3.093-5.067 2.027-6.562Z",clipRule:"evenodd"})),Fn||(Fn=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__b)",d:"M80.475 33.094v-6.63h2.369v-2.875h-2.369v-3.475h-3.659v3.475H74.96v2.877h1.856v6.258c0 3.552 2.477 5.665 5.092 6.102L83 35.877c-1.524-.193-2.51-1.332-2.525-2.783Z"})),zn||(zn=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__c)",fillRule:"evenodd",d:"M62.008 27.062v4.981c0 .7.196 1.67.425 2.803.089.436.182.897.27 1.376H59.18l-.611-1.472c-4.117 2.994-8.052.974-8.052-2.168 0-4.131 4.01-4.632 7.776-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007c-.01-.014-.022-.027-.034-.04l-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.144-1.555 10.461 2.47.018.174.028.347.029.52Zm-6.521 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284Z",clipRule:"evenodd"})),jn||(jn=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__d)",d:"M67.636 26.794c0-1.227 1.966-1.801 5.065-.386l1.071-2.606c-4.17-1.262-9.866-1.37-9.904 2.992-.016 2.09 1.324 3.216 3.255 3.933 1.337.498 3.269.755 3.263 1.82-.007 1.392-3.001 1.605-5.726-.267l-1.1 2.823c3.715 1.85 10.627 1.901 10.59-2.734-.03-4.583-6.514-3.798-6.514-5.575Z"})),Un||(Un=t.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__e)",d:"M35.415 16.875 30.11 31.609l-2.54-7.956h-3.779l4.23 10.866a3.957 3.957 0 0 1 0 2.877c-.473 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924h-4.043Z"})),Bn||(Bn=t.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),$n||($n=t.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),qn||(qn=t.createElement("path",{fill:"#5F6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074l6.002-7.027Zm5.892 1.084c0 .339-.124.637-.364.877a1.19 1.19 0 0 1-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878Zm-.355 3.22v9.328h-1.755v-9.329h1.755Zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249Zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.777-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.537 2.367-.537 1.275 0 2.293.305 3.046.927.761.62 1.266 1.307 1.522 2.086l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53-.662 0-1.224.166-1.68.505-.455.34-.679.77-.679 1.3 0 .505.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05Zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.438c.422 0 .779.149 1.067.438.291.29.439.646.439 1.068 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44Zm-.05 1.937h2.234v10.362h-2.234V26.834Zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224Zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756a5.157 5.157 0 0 1 1.838-2.02c.786-.497 1.68-.754 2.682-.754 1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695Zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.713h5.637Z"})),Hn||(Hn=t.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit-success_svg__f)",clipRule:"evenodd"},t.createElement("path",{fill:"#FBBC05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394Z"}),t.createElement("path",{fill:"#EA4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.102Z"}),t.createElement("path",{fill:"#34A853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268Z"}),t.createElement("path",{fill:"#4285F4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.283 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753Z"}))),Vn||(Vn=t.createElement("defs",null,t.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__a",x1:49.753,x2:49.753,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#570732"}),t.createElement("stop",{offset:.04,stopColor:"#610B39"}),t.createElement("stop",{offset:.15,stopColor:"#79164B"}),t.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),t.createElement("stop",{offset:.44,stopColor:"#9A2463"}),t.createElement("stop",{offset:.63,stopColor:"#A22768"}),t.createElement("stop",{offset:1,stopColor:"#A4286A"})),t.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__b",x1:82.999,x2:82.999,y1:38.82,y2:20.114,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#570732"}),t.createElement("stop",{offset:.04,stopColor:"#610B39"}),t.createElement("stop",{offset:.15,stopColor:"#79164B"}),t.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),t.createElement("stop",{offset:.44,stopColor:"#9A2463"}),t.createElement("stop",{offset:.63,stopColor:"#A22768"}),t.createElement("stop",{offset:1,stopColor:"#A4286A"})),t.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__c",x1:62.701,x2:62.701,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#570732"}),t.createElement("stop",{offset:.04,stopColor:"#610B39"}),t.createElement("stop",{offset:.15,stopColor:"#79164B"}),t.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),t.createElement("stop",{offset:.44,stopColor:"#9A2463"}),t.createElement("stop",{offset:.63,stopColor:"#A22768"}),t.createElement("stop",{offset:1,stopColor:"#A4286A"})),t.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__d",x1:74.149,x2:74.149,y1:36.275,y2:23.046,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#570732"}),t.createElement("stop",{offset:.04,stopColor:"#610B39"}),t.createElement("stop",{offset:.15,stopColor:"#79164B"}),t.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),t.createElement("stop",{offset:.44,stopColor:"#9A2463"}),t.createElement("stop",{offset:.63,stopColor:"#A22768"}),t.createElement("stop",{offset:1,stopColor:"#A4286A"})),t.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__e",x1:25.434,x2:25.434,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#77B227"}),t.createElement("stop",{offset:.47,stopColor:"#75B027"}),t.createElement("stop",{offset:.64,stopColor:"#6EAB27"}),t.createElement("stop",{offset:.75,stopColor:"#63A027"}),t.createElement("stop",{offset:.85,stopColor:"#529228"}),t.createElement("stop",{offset:.93,stopColor:"#3C8028"}),t.createElement("stop",{offset:1,stopColor:"#246B29"})),t.createElement("clipPath",{id:"yoast-connect-google-site-kit-success_svg__f"},t.createElement("path",{fill:"#fff",d:"M169.334 22h14.973v15.909h-14.973z"}))))),Zn=({href:e,as:r=c.Link,...a})=>(0,t.createElement)(r,{href:e,variant:"primary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener",...a},(0,Ht.__)("Learn more","wordpress-seo"),(0,t.createElement)(or,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,Ht.__)("(Opens in a new browser tab)","wordpress-seo"))),Kn=[(0,Ht.__)("INSTALL","wordpress-seo"),(0,Ht.__)("ACTIVATE","wordpress-seo"),(0,Ht.__)("SET UP","wordpress-seo"),(0,Ht.__)("CONNECT","wordpress-seo")],Yn=({isSiteKitConnectionCompleted:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(c.Title,{size:"2",className:"yst-mb-4"},e?(0,Ht.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Ht.__)("Expand your dashboard with insights from Google!","wordpress-seo")),!e&&(0,t.createElement)("p",{className:"yst-mb-4"},(0,Ht.__)("Bring together powerful tools like Google Analytics and Search Console for a complete overview of your website's performance, all in one seamless dashboard.","wordpress-seo"))),Jn=({capabilities:e,currentStep:r,isVersionSupported:a,isConsentGranted:s})=>{const n="yst-mt-6";return a?-1===r?null:!e.installPlugins&&r<3?(0,t.createElement)(c.Alert,{className:n},(0,Ht.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")):e.viewSearchConsoleData||3!==r?void 0:(0,t.createElement)(c.Alert,{className:n},(0,Ht.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")):s?(0,t.createElement)(c.Alert,{className:n,variant:"error"},(0,Ht.__)("Your current version of the Site Kit by Google plugin is no longer compatible with Yoast SEO. Please update to the latest version to restore the connection.","wordpress-seo")):(0,t.createElement)(c.Alert,{className:n},(0,Ht.__)("You are using an outdated version of the Site Kit by Google plugin. Please update to the latest version to connect Yoast SEO with Site Kit by Google.","wordpress-seo"))},Qn=({currentStep:e,config:r,isConnectionCompleted:a,onDismissWidget:s,onShowConsent:n})=>{const o=(0,l.useCallback)(((e,t="installPlugins")=>{var a;return null!==(a=r.capabilities)&&void 0!==a&&a[t]?e:null}),[r.capabilities]);if(!r.isVersionSupported)return(0,t.createElement)(c.Button,{as:"a",href:r.updateUrl},(0,Ht.__)("Update Site Kit by Google","wordpress-seo"));if(a)return(0,t.createElement)(c.Button,{onClick:s},(0,Ht.__)("Got it!","wordpress-seo"));switch(e){case 0:return(0,t.createElement)(c.Button,{as:"a",href:o(r.installUrl),disabled:!r.capabilities.installPlugins,"aria-disabled":!r.capabilities.installPlugins},(0,Ht.__)("Install Site Kit by Google","wordpress-seo"));case 1:return(0,t.createElement)(c.Button,{as:"a",href:o(r.activateUrl),disabled:!r.capabilities.installPlugins,"aria-disabled":!r.capabilities.installPlugins},(0,Ht.__)("Activate Site Kit by Google","wordpress-seo"));case 2:return(0,t.createElement)(c.Button,{as:"a",href:o(r.setupUrl),disabled:!r.capabilities.installPlugins,"aria-disabled":!r.capabilities.installPlugins},(0,Ht.__)("Set up Site Kit by Google","wordpress-seo"));case 3:return(0,t.createElement)(c.Button,{disabled:!r.capabilities.viewSearchConsoleData,onClick:n},(0,Ht.__)("Connect Site Kit by Google","wordpress-seo"))}return null},Xn=({dataProvider:e,remoteDataProvider:r})=>{const a=(0,l.useCallback)((()=>{e.setSiteKitConfigurationDismissed(!0)}),[e]),{grantConsent:s,dismissPermanently:n}=((e,t)=>({grantConsent:(0,l.useCallback)((r=>{t.fetchJson(e.getEndpoint("siteKitConsentManagement"),{consent:String(!0)},{...r,method:"POST"}).then((({success:t})=>{t&&e.setSiteKitConsentGranted(!0)})).catch(d.noop)}),[e,t]),dismissPermanently:(0,l.useCallback)((r=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...r,method:"POST"}).catch(d.noop),e.setSiteKitConfigurationDismissed(!0)}),[t,e])}))(e,r),[o,,,i,u]=(0,c.useToggleState)(!1),m=(0,l.useCallback)((()=>{n()}),[n]),p=e.getLink("siteKitLearnMore"),f=e.getLink("siteKitConsentLearnMore"),y=e.getSiteKitConfiguration(),h=e.getSiteKitCurrentConnectionStep(),g=e.isSiteKitConnectionCompleted()&&y.isVersionSupported;return(0,t.createElement)(Js,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4"},(0,t.createElement)(c.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4"},(0,t.createElement)(c.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Ht.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,t.createElement)(c.DropdownMenu.List,{className:"yst-mt-8 yst-w-56"},(0,t.createElement)(c.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:a},(0,t.createElement)(Mn,{className:"yst-w-4 yst-text-slate-400"}),(0,Ht.__)("Remove until next visit","wordpress-seo")),(0,t.createElement)(c.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:m},(0,t.createElement)(In,{className:"yst-w-4"}),(0,Ht.__)("Remove permanently","wordpress-seo")))),(0,t.createElement)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4"},g?(0,t.createElement)(Wn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,t.createElement)(os,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})),y.isVersionSupported&&(0,t.createElement)(c.Stepper,{steps:Kn,currentStep:h,className:"yst-mb-6"},Kn.map(((e,r)=>(0,t.createElement)(c.Stepper.Step,{key:e,isActive:h===r,isComplete:h>r||g},e)))),(0,t.createElement)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),(0,t.createElement)("div",{className:"yst-max-w-2xl"},(0,t.createElement)(Yn,{isSiteKitConnectionCompleted:g}),(0,t.createElement)("span",{className:"yst-text-slate-800 yst-font-medium"},g?(0,Ht.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Ht.__)("Here's what you'll unlock:","wordpress-seo")),(0,t.createElement)("ul",null,(0,t.createElement)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start"},(0,t.createElement)(An,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Ht.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")),(0,t.createElement)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start"},(0,t.createElement)(An,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Ht.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo"))),(0,t.createElement)(Jn,{capabilities:y.capabilities,currentStep:h,isVersionSupported:y.isVersionSupported,isConsentGranted:y.connectionStepsStatuses.isConsentGranted})),(0,t.createElement)("div",{className:"yst-flex yst-gap-1 yst-mt-6 yst-items-center"},(0,t.createElement)(Qn,{currentStep:h,config:y,isConnectionCompleted:g,onDismissWidget:a,onShowConsent:i}),!g&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Zn,{as:c.Button,variant:"tertiary",href:p}),(0,t.createElement)(is,{isOpen:3===h&&o,onClose:u,onGrantConsent:s,learnMoreLink:f}))))},eo=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))})),to=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),ro=({tooltip:e,id:r})=>(0,t.createElement)(c.TooltipContainer,{className:"yst-h-4"},(0,t.createElement)(c.TooltipTrigger,{ariaDescribedby:r},(0,t.createElement)(to,{className:"yst-w-4 yst-h-4 yst-text-slate-400"}),(0,t.createElement)("span",{className:"yst-sr-only"},(0,Ht.__)("Disabled","wordpress-seo"))),e&&(0,t.createElement)(c.TooltipWithContext,{position:"left",id:r},e)),ao=({score:e,id:r})=>{var a;return(0,t.createElement)(c.TooltipContainer,{className:"yst-h-4 yst-flex yst-items-center yst-justify-center"},(0,t.createElement)(c.TooltipTrigger,{ariaDescribedby:r},(0,t.createElement)("div",{className:ps()("yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",en[e].color)},(0,t.createElement)("span",{className:"yst-sr-only"},en[e].label))),(null===(a=en[e])||void 0===a?void 0:a.tooltip)&&(0,t.createElement)(c.TooltipWithContext,{position:"left",id:r},"notAnalyzed"===e?(0,Ht.__)("Content analysis hasn't started. Please open this page in your editor, enter a focus keyphrase and save.","wordpress-seo"):en[e].tooltip))},so=({score:e,isIndexablesEnabled:r,isSeoAnalysisEnabled:a,isEditable:s,id:n})=>r&&a?s?(0,t.createElement)(ao,{score:e,id:n}):(0,t.createElement)(ro,{id:n,tooltip:(0,Ht.__)("We can’t provide an SEO score for this page.","wordpress-seo")}):(0,t.createElement)(ro,{id:n}),no=({children:e})=>(0,t.createElement)("div",{className:"yst-overflow-auto"},(0,t.createElement)(c.Table,{variant:"minimal"},e));no.Head=({children:e})=>(0,t.createElement)(c.Table.Head,null,(0,t.createElement)(c.Table.Row,null,(0,t.createElement)(c.Table.Header,{className:"yst-px-0 yst-w-5"},""),e)),no.Row=({children:e,index:r})=>(0,t.createElement)(c.Table.Row,null,(0,t.createElement)(c.Table.Cell,{className:"yst-px-0 yst-text-slate-500"},r+1,". "),e),no.Cell=c.Table.Cell,no.Header=c.Table.Header,no.Body=c.Table.Body;const oo=({isIndexablesEnabled:e,isSeoAnalysisEnabled:r})=>{if(e&&r)return(0,t.createElement)(t.Fragment,null,"Yoast",(0,t.createElement)("br",null),(0,Ht.__)("SEO score","wordpress-seo"));let a;return e?r||(a=(0,Ht.__)("We can’t provide SEO scores, because the SEO analysis is disabled for your site.","wordpress-seo")):a=(0,Ht.__)("We can’t analyze your content, because you’re in a non-production environment.","wordpress-seo"),(0,t.createElement)(c.TooltipContainer,{className:"yst-inline-block"},(0,t.createElement)(c.TooltipTrigger,{ariaDescribedby:"yst-disabled-score-header-tooltip",className:"yst-cursor-help yst-underline yst-decoration-dotted yst-underline-offset-4"},"Yoast",(0,t.createElement)("br",null),(0,Ht.__)("SEO score","wordpress-seo")),(0,t.createElement)(c.TooltipWithContext,{position:"bottom",id:"yst-disabled-score-header-tooltip",className:"yst-w-52"},a))},io=({index:e})=>(0,t.createElement)(no.Row,{index:e},(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,null,"https://example.com/page")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"10")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"100")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"12.34")),(0,t.createElement)(no.Cell,null,(0,t.createElement)("div",{className:"yst-flex yst-justify-center"},(0,t.createElement)(c.SkeletonLoader,{className:"yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full"}))),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"Edit"))),lo=({data:e,children:r,isIndexablesEnabled:a=!0,isSeoAnalysisEnabled:s=!0})=>(0,t.createElement)(no,null,(0,t.createElement)(no.Head,null,(0,t.createElement)(no.Header,null,(0,Ht.__)("Landing page","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Clicks","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Impressions","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("CTR","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Average position","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-center"},(0,t.createElement)(oo,{isIndexablesEnabled:a,isSeoAnalysisEnabled:s})),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Actions","wordpress-seo"))),(0,t.createElement)(no.Body,null,r||e.map((({subject:e,clicks:r,impressions:n,ctr:o,position:i,seoScore:l,links:d},u)=>(0,t.createElement)(no.Row,{key:`most-popular-content-${u}`,index:u},(0,t.createElement)(no.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),(0,t.createElement)(no.Cell,{className:"yst-text-end"},r),(0,t.createElement)(no.Cell,{className:"yst-text-end"},n),(0,t.createElement)(no.Cell,{className:"yst-text-end"},o),(0,t.createElement)(no.Cell,{className:"yst-text-end"},i),(0,t.createElement)(no.Cell,null,(0,t.createElement)("div",{className:"yst-flex yst-justify-center"},(0,t.createElement)(so,{id:`yst-top-pages-widget__seo-score-${u}`,score:l,isIndexablesEnabled:a,isSeoAnalysisEnabled:s,isEditable:null==d?void 0:d.edit}))),(0,t.createElement)(no.Cell,{className:"yst-text-end"},(0,t.createElement)(c.Button,{variant:"tertiary",size:"small",as:"a",href:null==d?void 0:d.edit,className:"yst-px-0 yst-me-1",disabled:!(null!=d&&d.edit),"aria-disabled":!(null!=d&&d.edit),role:"link"},(0,t.createElement)(eo,{className:"yst-w-4 yst-h-4 yst-me-1.5"}),(0,Ht.__)("Edit","wordpress-seo")))))))),co=({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s})=>{const{data:n,isPending:o,error:i}=(({dataProvider:e,remoteDataProvider:t,dataFormatter:r,limit:a=5})=>{const s=(0,l.useCallback)((r=>t.fetchJson(e.getEndpoint("timeBasedSeoMetrics"),{limit:a.toString(10),options:{widget:"page"}},r)),[e,a]),n=(0,l.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topPages"}),clicks:e.format(t.clicks,"clicks",{widget:"topPages"}),impressions:e.format(t.impressions,"impressions",{widget:"topPages"}),ctr:e.format(t.ctr,"ctr",{widget:"topPages"}),position:e.format(t.position,"position",{widget:"topPages"}),seoScore:e.format(t.seoScore,"seoScore",{widget:"topPages"}),links:e.format(t.links,"links",{widget:"topPages"})}))))(r)),[r]);return ws(s,n)})({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s});return o?(0,t.createElement)(lo,null,Array.from({length:s},((e,r)=>(0,t.createElement)(io,{key:`top-pages-table--row__${r}`,index:r})))):i?(0,t.createElement)(ys,{error:i,supportLink:e.getLink("errorSupport"),className:"yst-mt-4"}):0===n.length?(0,t.createElement)(hs,null):(0,t.createElement)(lo,{data:n,isIndexablesEnabled:e.hasFeature("indexables"),isSeoAnalysisEnabled:e.hasFeature("seoAnalysis")})},uo=({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s=5})=>(0,t.createElement)(Js,{className:"yst-paper__content yst-col-span-4",title:(0,Ht.__)("Top 5 most popular content","wordpress-seo"),tooltip:(0,Ht.__)("The top 5 URLs on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google",feature:(0,Ht.__)("Clicks, Impressions, CTR, Position","wordpress-seo")},{source:"Yoast SEO",feature:(0,Ht.sprintf)(/* translators: 1: Yoast SEO. */ (0,Ht.__)("%1$s score","wordpress-seo"),"Yoast SEO")}],errorSupportLink:e.getLink("errorSupport")},(0,t.createElement)(co,{dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s})),mo=({index:e})=>(0,t.createElement)(no.Row,{index:e},(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,null,"focus keyphrase")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"10")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"100")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),(0,t.createElement)(no.Cell,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-ms-auto"},"12.34"))),po=({data:e,children:r})=>(0,t.createElement)(no,null,(0,t.createElement)(no.Head,null,(0,t.createElement)(no.Header,null,(0,Ht.__)("Query","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Clicks","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("Impressions","wordpress-seo")),(0,t.createElement)(no.Header,{className:"yst-text-end"},(0,Ht.__)("CTR","wordpress-seo")),(0,t.createElement)(no.Header,null,(0,t.createElement)("div",{className:"yst-flex yst-justify-end"},(0,t.createElement)("div",{className:"yst-w-min yst-text-end"},(0,Ht.__)("Average position","wordpress-seo"))))),(0,t.createElement)(no.Body,null,r||e.map((({subject:e,clicks:r,impressions:a,ctr:s,position:n},o)=>(0,t.createElement)(no.Row,{key:`most-popular-content-${o}`,index:o},(0,t.createElement)(no.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),(0,t.createElement)(no.Cell,{className:"yst-text-end"},r),(0,t.createElement)(no.Cell,{className:"yst-text-end"},a),(0,t.createElement)(no.Cell,{className:"yst-text-end"},s),(0,t.createElement)(no.Cell,{className:"yst-text-end"},n)))))),fo=({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s=5})=>{const{data:n,error:o,isPending:i}=(({dataProvider:e,remoteDataProvider:t,dataFormatter:r,limit:a})=>{const s=(0,l.useCallback)((r=>t.fetchJson(e.getEndpoint("timeBasedSeoMetrics"),{limit:a.toString(10),options:{widget:"query"}},r)),[e,a]),n=(0,l.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topQueries"}),clicks:e.format(t.clicks,"clicks",{widget:"topQueries"}),impressions:e.format(t.impressions,"impressions",{widget:"topQueries"}),ctr:e.format(t.ctr,"ctr",{widget:"topQueries"}),position:e.format(t.position,"position",{widget:"topQueries"})}))))(r)),[r]);return ws(s,n)})({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s});return i?(0,t.createElement)(po,null,Array.from({length:s},((e,r)=>(0,t.createElement)(mo,{key:`top-queries-table--row__${r}`,index:r})))):o?(0,t.createElement)(ys,{error:o,supportLink:e.getLink("errorSupport"),className:"yst-mt-4"}):0===n.length?(0,t.createElement)(hs,null):(0,t.createElement)(po,{data:n})},yo=({dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s=5})=>(0,t.createElement)(Js,{className:"yst-paper__content yst-col-span-4",title:(0,Ht.__)("Top 5 search queries","wordpress-seo"),tooltip:(0,Ht.__)("The top 5 search queries on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},(0,t.createElement)(fo,{dataProvider:e,remoteDataProvider:r,dataFormatter:a,limit:s})),ho=({className:e,children:r})=>(0,t.createElement)("div",{className:ps()("yst-flex yst-gap-4 yst-justify-center yst-bg-white","yst-col-span-4 @lg:yst-col-span-2 @3xl:yst-col-span-1","yst-ps-0 yst-pe-0 yst-pt-4 yst-pb-4 first:yst-pt-0 last:yst-pb-0","@lg:yst-ps-0 @lg:yst-pe-0 @lg:yst-pt-0 @lg:yst-pb-0","@3xl:yst-ps-4 @3xl:yst-pe-4 @3xl:yst-pt-0 @3xl:yst-pb-0 @3xl:first:yst-ps-0 @3xl:last:yst-pe-0",e)},r),go=({children:e})=>(0,t.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-min-w-28 @3xl:yst-min-w-0"},e),vo=({className:e,tooltipLocalizedContent:r,dataSources:a})=>(0,t.createElement)(ho,{className:e},(0,t.createElement)("div",{className:"yst-w-5"}),(0,t.createElement)(go,null,(0,t.createElement)(c.SkeletonLoader,{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},"12345"),(0,t.createElement)(c.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2"},"Dummy"),(0,t.createElement)(c.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2 yst-font-semibold"},"- 13%")),(0,t.createElement)("div",{className:"yst-mt-2"},(0,t.createElement)(Zs,{content:r},(0,t.createElement)(Ks,{dataSources:a})))),bo=({className:e,metricName:r,data:a,dataSources:s,tooltipLocalizedContent:n})=>(0,t.createElement)(ho,{className:e},(0,t.createElement)("div",{className:"yst-w-5"}),(0,t.createElement)(go,null,(0,t.createElement)("div",{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},a.formattedValue),(0,t.createElement)("div",{className:"yst-text-center"},r),(0,t.createElement)("div",{className:"yst-text-center yst-mt-2"},(0,t.createElement)(vs,{value:a.delta,formattedValue:a.formattedDelta}))),(0,t.createElement)("div",{className:"yst-mt-2"},(0,t.createElement)(Zs,{content:n},(0,t.createElement)(Ks,{dataSources:s})))),Eo={impressions:{name:(0,Ht._x)("Impressions","The number of times your website appeared in the Google search results","wordpress-seo"),tooltip:(0,Ht.__)("The number of times your website appeared in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,Ht.__)("Site Kit by Google","wordpress-seo")}]},clicks:{name:(0,Ht._x)("Clicks","The number of times users clicked on your website's link in the Google search results","wordpress-seo"),tooltip:(0,Ht.__)("The number of times users clicked on your website's link in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,Ht.__)("Site Kit by Google","wordpress-seo")}]},ctr:{name:(0,Ht._x)("Average CTR","Click-through-rate for your website in the Google search results","wordpress-seo"),tooltip:(0,Ht.__)("The average click-through-rate for your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,Ht.__)("Site Kit by Google","wordpress-seo")}]},position:{name:(0,Ht._x)("Average position","Average position of your website in the Google search results","wordpress-seo"),tooltip:(0,Ht.__)("The average position of your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,Ht.__)("Site Kit by Google","wordpress-seo")}]}},wo=({children:e})=>(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-4 yst-gap-px yst-bg-slate-200"},e),xo=()=>(0,t.createElement)(wo,null,(0,t.createElement)(vo,{className:"@lg:yst-pe-4 @lg:yst-pb-4",tooltipLocalizedContent:Eo.impressions.tooltip,dataSources:Eo.impressions.dataSources}),(0,t.createElement)(vo,{className:"@lg:yst-ps-4 @lg:yst-pb-4",tooltipLocalizedContent:Eo.clicks.tooltip,dataSources:Eo.clicks.dataSources}),(0,t.createElement)(vo,{className:"@lg:yst-pe-4 @lg:yst-pt-4",tooltipLocalizedContent:Eo.ctr.tooltip,dataSources:Eo.ctr.dataSources}),(0,t.createElement)(vo,{className:"@lg:yst-ps-4 @lg:yst-pt-4",tooltipLocalizedContent:Eo.position.tooltip,dataSources:Eo.position.dataSources})),So=({dataProvider:e,remoteDataProvider:r,dataFormatter:a,setShowTitle:s})=>{const{data:n,error:o,isPending:i}=(({dataProvider:e,remoteDataProvider:t,dataFormatter:r})=>{const a=(0,l.useCallback)((r=>t.fetchJson(e.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"searchRankingCompare"}},r)),[e]),s=(0,l.useMemo)((()=>e=>(e=>t=>null===t?null:{impressions:e.format(t.impressions,"impressions"),clicks:e.format(t.clicks,"clicks"),ctr:e.format(t.ctr,"ctr"),position:e.format(t.position,"position")})(r)((e=>{if(0===e.length)return null;const t={impressions:{value:e[0].current.total_impressions,delta:Ss(e[0].current.total_impressions,e[0].previous.total_impressions)},clicks:{value:e[0].current.total_clicks,delta:Ss(e[0].current.total_clicks,e[0].previous.total_clicks)},ctr:null,position:null};return e[0].current.average_ctr&&(t.ctr={value:e[0].current.average_ctr,delta:Ss(e[0].current.average_ctr,e[0].previous.average_ctr)}),e[0].current.average_position&&(t.position={value:e[0].current.average_position,delta:Ss(e[0].current.average_position,e[0].previous.average_position)}),t})(e))),[r]);return ws(a,s)})({dataProvider:e,remoteDataProvider:r,dataFormatter:a});return(0,l.useEffect)((()=>{s(!i&&(o||null===n))}),[n,o,i,s]),i?(0,t.createElement)(xo,null):o?(0,t.createElement)(ys,{error:o,supportLink:e.getLink("errorSupport"),className:"yst-mt-4"}):null===n?(0,t.createElement)(hs,null):(0,t.createElement)(wo,null,(0,t.createElement)(bo,{className:"@lg:yst-pe-4 @lg:yst-pb-4",metricName:Eo.impressions.name,data:n.impressions,tooltipLocalizedContent:Eo.impressions.tooltip,dataSources:Eo.impressions.dataSources}),(0,t.createElement)(bo,{className:"@lg:yst-ps-4 @lg:yst-pb-4",metricName:Eo.clicks.name,data:n.clicks,tooltipLocalizedContent:Eo.clicks.tooltip,dataSources:Eo.clicks.dataSources}),(0,t.createElement)(bo,{className:"@lg:yst-pe-4 @lg:yst-pt-4",metricName:Eo.ctr.name,data:n.ctr,tooltipLocalizedContent:Eo.ctr.tooltip,dataSources:Eo.ctr.dataSources}),(0,t.createElement)(bo,{className:"@lg:yst-ps-4 @lg:yst-pt-4",metricName:Eo.position.name,data:n.position,tooltipLocalizedContent:Eo.position.tooltip,dataSources:Eo.position.dataSources}))},_o=({dataProvider:e,remoteDataProvider:r,dataFormatter:a})=>{const[s,n]=(0,l.useState)(!1),[o,,,i]=(0,c.useToggleState)(!1);return(0,t.createElement)(Js,{className:"yst-paper__content yst-col-span-4",title:(s||o)&&(0,Ht.__)("Impressions, Clicks, Site CTR, Average position","wordpress-seo")},(0,t.createElement)(Ys,{supportLink:e.getLink("errorSupport"),onError:i},(0,t.createElement)(So,{dataProvider:e,remoteDataProvider:r,dataFormatter:a,setShowTitle:n})))};function ko(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}var Co=new WeakMap,No=new WeakMap,Po=new WeakMap;class Ro{constructor(e,t,r){ko(this,Co,{writable:!0,value:void 0}),ko(this,No,{writable:!0,value:void 0}),ko(this,Po,{writable:!0,value:void 0}),us(this,Co,e),us(this,No,t),us(this,Po,r)}static get types(){return{siteKitSetup:"siteKitSetup",searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){const{isFeatureEnabled:r,isSetupWidgetDismissed:a,isAnalyticsConnected:s,capabilities:n,isVersionSupported:o}=ds(this,Co).getSiteKitConfiguration(),i=ds(this,Co).isSiteKitConnectionCompleted(),l=r&&i&&o,c=l&&n.viewSearchConsoleData,d=l&&s&&n.viewAnalyticsData;switch(e.type){case Ro.types.seoScores:return ds(this,Co).hasFeature("indexables")&&ds(this,Co).hasFeature("seoAnalysis")?(0,t.createElement)(Ln,{key:e.id,analysisType:"seo",dataProvider:ds(this,Co),remoteDataProvider:ds(this,No)}):null;case Ro.types.readabilityScores:return ds(this,Co).hasFeature("indexables")&&ds(this,Co).hasFeature("readabilityAnalysis")?(0,t.createElement)(Ln,{key:e.id,analysisType:"readability",dataProvider:ds(this,Co),remoteDataProvider:ds(this,No)}):null;case Ro.types.topPages:return c?(0,t.createElement)(uo,{key:e.id,dataProvider:ds(this,Co),remoteDataProvider:ds(this,No),dataFormatter:ds(this,Po).plainMetricsDataFormatter}):null;case Ro.types.siteKitSetup:return!r||a?null:(0,t.createElement)(Xn,{key:e.id,dataProvider:ds(this,Co),remoteDataProvider:ds(this,No)});case Ro.types.topQueries:return c?(0,t.createElement)(yo,{key:e.id,dataProvider:ds(this,Co),remoteDataProvider:ds(this,No),dataFormatter:ds(this,Po).plainMetricsDataFormatter}):null;case Ro.types.searchRankingCompare:return c?(0,t.createElement)(_o,{key:e.id,dataProvider:ds(this,Co),remoteDataProvider:ds(this,No),dataFormatter:ds(this,Po).comparisonMetricsDataFormatter}):null;case Ro.types.organicSessions:return d?(0,t.createElement)(Xs,{key:e.id,dataProvider:ds(this,Co),remoteDataProvider:ds(this,No),dataFormatter:ds(this,Po).comparisonMetricsDataFormatter}):null;default:return null}}}const Oo=({widgetFactory:e,userName:r,features:a,links:s,sitekitFeatureEnabled:n,dataProvider:o})=>{const i=(0,l.useCallback)((()=>o.getSiteKitConfiguration()),[o]),c=(0,l.useCallback)((e=>o.subscribe(e)),[o]);return(0,l.useSyncExternalStore)(c,i),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(ls,{userName:r,features:a,links:s,sitekitFeatureEnabled:n}),(0,t.createElement)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6"},(0,d.values)(Ro.types).map((t=>{return e.createWidget({id:`widget--${r=t}__${Date.now()}`,type:r});var r}))))};function To(e){return To="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},To(e)}function Lo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=To(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=To(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==To(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mo(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}var Io=new WeakMap,Ao=new WeakMap;class Do{constructor({locale:e="en-US"}={}){if(Mo(this,Io,{writable:!0,value:void 0}),Mo(this,Ao,{writable:!0,value:{}}),new.target===Do)throw new Error("DataFormatterInterface cannot be instantiated directly.");us(this,Io,e),ds(this,Ao).nonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0}),ds(this,Ao).compactNonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0,notation:"compact",compactDisplay:"short"}),ds(this,Ao).percentage=new Intl.NumberFormat(e,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),ds(this,Ao).twoFractions=new Intl.NumberFormat(e,{maximumFractionDigits:2,minimumFractionDigits:2})}get numberFormat(){return ds(this,Ao)}get locale(){return ds(this,Io)}format(e,t,r={}){throw new Error("You must implement the format() method before using it.")}}Lo(Do,"safeUrl",(e=>{try{return new URL(e)}catch{return null}})),Lo(Do,"safeNumberFormat",((e,t)=>{try{return t.format(e)}catch{return e.toString(10)}}));class Fo extends Do{format(e,t,r={}){switch(t){case"impressions":case"clicks":return{formattedValue:Do.safeNumberFormat(e.value,this.numberFormat.nonFractional),delta:e.delta,formattedDelta:Do.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"ctr":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:Do.safeNumberFormat(e.value,this.numberFormat.percentage),delta:e.delta,formattedDelta:Do.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"position":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:Do.safeNumberFormat(e.value,this.numberFormat.twoFractions),delta:e.delta,formattedDelta:Do.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"date":return new Date(Date.UTC(e.slice(0,4),e.slice(4,6)-1,e.slice(6,8))).toLocaleDateString(this.locale,{month:"short",day:"numeric"});case"sessions":return Do.safeNumberFormat(e||0,this.numberFormat.nonFractional);case"difference":return Do.safeNumberFormat(e,this.numberFormat.percentage);default:return e}}}class zo extends Do{formatLandingPage(e){const t=Do.safeUrl(e);return null===t?e:t.pathname}format(e,t,r={}){switch(t){case"subject":switch(r.widget){case"topPages":return this.formatLandingPage(e);case"topQueries":return String(e);default:return e}case"clicks":case"impressions":return Do.safeNumberFormat(e,this.numberFormat.nonFractional);case"ctr":return Do.safeNumberFormat(e,this.numberFormat.percentage);case"position":return Do.safeNumberFormat(e,this.numberFormat.twoFractions);case"seoScore":return Object.keys(en).includes(e)?e:"notAnalyzed";default:return e}}}function jo(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}var Uo=new WeakMap,Bo=new WeakMap,$o=new WeakMap,qo=new WeakMap,Ho=new WeakMap,Vo=new WeakMap,Go=new WeakMap,Wo=new WeakMap;class Zo{constructor({contentTypes:e,userName:t,features:r,endpoints:a,headers:s,links:n,siteKitConfiguration:o}){jo(this,Uo,{writable:!0,value:void 0}),jo(this,Bo,{writable:!0,value:void 0}),jo(this,$o,{writable:!0,value:void 0}),jo(this,qo,{writable:!0,value:void 0}),jo(this,Ho,{writable:!0,value:void 0}),jo(this,Vo,{writable:!0,value:void 0}),jo(this,Go,{writable:!0,value:void 0}),jo(this,Wo,{writable:!0,value:new Set}),us(this,Uo,e),us(this,Bo,t),us(this,$o,r),us(this,qo,a),us(this,Ho,s),us(this,Vo,n),us(this,Go,o)}subscribe(e){return ds(this,Wo).add(e),()=>ds(this,Wo).delete(e)}notifySubscribers(){ds(this,Wo).forEach((e=>e()))}getContentTypes(){return ds(this,Uo)}getUserName(){return ds(this,Bo)}getStepsStatuses(){return[ds(this,Go).connectionStepsStatuses.isInstalled,ds(this,Go).connectionStepsStatuses.isActive,ds(this,Go).connectionStepsStatuses.isSetupCompleted,ds(this,Go).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=ds(this,$o))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=ds(this,qo))||void 0===t?void 0:t[e]}getHeaders(){return ds(this,Ho)}getLink(e){var t;return null===(t=ds(this,Vo))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return ds(this,Go)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,d.cloneDeep)(ds(this,Go));t.connectionStepsStatuses.isConsentGranted=e,us(this,Go,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){us(this,Go,{...ds(this,Go),isSetupWidgetDismissed:e}),this.notifySubscribers()}}var Ko=new WeakMap;class Yo{constructor(e){var t,r,a;a={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,r=Ko),r.set(t,a),us(this,Ko,e)}getUrl(e,t){const r=new URL(e);return(0,d.forEach)(t,((e,t)=>{"object"==typeof e?(0,d.forEach)(e,((e,a)=>{r.searchParams.append(`${t}[${a}]`,e)})):r.searchParams.append(t,e)})),r}async fetchJson(e,t,r){return kn(this.getUrl(e,t),(0,d.defaultsDeep)(r,ds(this,Ko),{headers:{"Content-Type":"application/json"}}))}}const Jo="adminUrl",Qo=(0,bs.createSlice)({name:Jo,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Xo=Qo.getInitialState,ei={selectAdminUrl:e=>(0,d.get)(e,Jo,"")};ei.selectAdminLink=(0,bs.createSelector)([ei.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const ti=Qo.actions,ri=Qo.reducer,ai=window.wp.url,si="linkParams",ni=(0,bs.createSlice)({name:si,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),oi=ni.getInitialState,ii={selectLinkParam:(e,t,r={})=>(0,d.get)(e,`${si}.${t}`,r),selectLinkParams:e=>(0,d.get)(e,si,{})};ii.selectLink=(0,bs.createSelector)([ii.selectLinkParams,(e,t)=>t,(e,t,r={})=>r],((e,t,r)=>(0,ai.addQueryArgs)(t,{...e,...r})));const li=ni.actions,ci=ni.reducer,di=(0,bs.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:r="default",title:a,description:s})=>({payload:{id:e||(0,bs.nanoid)(),variant:t,size:r,title:a||"",description:s}})},removeNotification:(e,{payload:t})=>(0,d.omit)(e,t)}}),ui=(di.getInitialState,di.actions,di.reducer,"pluginUrl"),mi=(0,bs.createSlice)({name:ui,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),pi=(mi.getInitialState,{selectPluginUrl:e=>(0,d.get)(e,ui,"")});pi.selectImageLink=(0,bs.createSelector)([pi.selectPluginUrl,(e,t,r="images")=>r,(e,t)=>t],((e,t,r)=>[(0,d.trimEnd)(e,"/"),(0,d.trim)(t,"/"),(0,d.trimStart)(r,"/")].join("/"))),mi.actions,mi.reducer;const fi=window.wp.apiFetch;var yi=r.n(fi);const hi="wistiaEmbedPermission",gi=(0,bs.createSlice)({name:hi,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${hi}/${Tr}`,(e=>{e.status=Ir})),e.addCase(`${hi}/${Lr}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${hi}/${Mr}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,d.get)(t,"error.code",500),message:(0,d.get)(t,"error.message","Unknown")}}))}});function vi(...e){return e.filter(Boolean).join(" ")}function bi(e,t,...r){if(e in t){let a=t[e];return"function"==typeof a?a(...r):a}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,bi),a}gi.getInitialState,gi.actions,gi.reducer;var Ei,wi,xi=((wi=xi||{})[wi.None=0]="None",wi[wi.RenderStrategy=1]="RenderStrategy",wi[wi.Static=2]="Static",wi),Si=((Ei=Si||{})[Ei.Unmount=0]="Unmount",Ei[Ei.Hidden=1]="Hidden",Ei);function _i({ourProps:e,theirProps:t,slot:r,defaultTag:a,features:s,visible:n=!0,name:o}){let i=Ci(t,e);if(n)return ki(i,r,a,o);let l=null!=s?s:0;if(2&l){let{static:e=!1,...t}=i;if(e)return ki(t,r,a,o)}if(1&l){let{unmount:e=!0,...t}=i;return bi(e?0:1,{0:()=>null,1:()=>ki({...t,hidden:!0,style:{display:"none"}},r,a,o)})}return ki(i,r,a,o)}function ki(e,r={},a,s){var n;let{as:o=a,children:i,refName:l="ref",...c}=Ri(e,["unmount","static"]),d=void 0!==e.ref?{[l]:e.ref}:{},u="function"==typeof i?i(r):i;c.className&&"function"==typeof c.className&&(c.className=c.className(r));let m={};if(r){let e=!1,t=[];for(let[a,s]of Object.entries(r))"boolean"==typeof s&&(e=!0),!0===s&&t.push(a);e&&(m["data-headlessui-state"]=t.join(" "))}if(o===t.Fragment&&Object.keys(Pi(c)).length>0){if(!(0,t.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${s} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=vi(null==(n=u.props)?void 0:n.className,c.className),r=e?{className:e}:{};return(0,t.cloneElement)(u,Object.assign({},Ci(u.props,Pi(Ri(c,["ref"]))),m,d,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(u.ref,d.ref),r))}return(0,t.createElement)(o,Object.assign({},Ri(c,["ref"]),o!==t.Fragment&&d,o!==t.Fragment&&m),u)}function Ci(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let a of e)for(let e in a)e.startsWith("on")&&"function"==typeof a[e]?(null!=r[e]||(r[e]=[]),r[e].push(a[e])):t[e]=a[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...a){let s=r[e];for(let e of s){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...a)}}});return t}function Ni(e){var r;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(r=e.displayName)?r:e.name})}function Pi(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ri(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let Oi=(0,t.createContext)(null);Oi.displayName="OpenClosedContext";var Ti=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ti||{});function Li(){return(0,t.useContext)(Oi)}function Mi({value:e,children:r}){return t.createElement(Oi.Provider,{value:e},r)}var Ii=Object.defineProperty,Ai=(e,t,r)=>(((e,t,r)=>{t in e?Ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Di=new class{constructor(){Ai(this,"current",this.detect()),Ai(this,"handoffState","pending"),Ai(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Fi=(e,r)=>{Di.isServer?(0,t.useEffect)(e,r):(0,t.useLayoutEffect)(e,r)};function zi(){let e=(0,t.useRef)(!1);return Fi((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ji(e){let r=(0,t.useRef)(e);return Fi((()=>{r.current=e}),[e]),r}function Ui(){let[e,r]=(0,t.useState)(Di.isHandoffComplete);return e&&!1===Di.isHandoffComplete&&r(!1),(0,t.useEffect)((()=>{!0!==e&&r(!0)}),[e]),(0,t.useEffect)((()=>Di.handoff()),[]),e}let Bi=function(e){let r=ji(e);return t.useCallback(((...e)=>r.current(...e)),[r])},$i=Symbol();function qi(e,t=!0){return Object.assign(e,{[$i]:t})}function Hi(...e){let r=(0,t.useRef)(e);(0,t.useEffect)((()=>{r.current=e}),[e]);let a=Bi((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[$i])))?void 0:a}function Vi(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,a,s)=>(e.addEventListener(t,a,s),r.add((()=>e.removeEventListener(t,a,s)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function Gi(e,...t){e&&t.length>0&&e.classList.add(...t)}function Wi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Zi(){let[e]=(0,t.useState)(Vi);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}function Ki({container:e,direction:t,classes:r,onStart:a,onStop:s}){let n=zi(),o=Zi(),i=ji(t);Fi((()=>{let t=Vi();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&n.current)return t.dispose(),a.current(i.current),t.add(function(e,t,r,a){let s=r?"enter":"leave",n=Vi(),o=void 0!==a?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(a):()=>{};"enter"===s&&(e.removeAttribute("hidden"),e.style.display="");let i=bi(s,{enter:()=>t.enter,leave:()=>t.leave}),l=bi(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=bi(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Wi(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gi(e,...i,...c),n.nextFrame((()=>{Wi(e,...c),Gi(e,...l),function(e,t){let r=Vi();if(!e)return r.dispose;let{transitionDuration:a,transitionDelay:s}=getComputedStyle(e),[n,o]=[a,s].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(n+o!==0){let a=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),a())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Wi(e,...i),Gi(e,...t.entered),o())))})),n.dispose}(l,r.current,"enter"===i.current,(()=>{t.dispose(),s.current(i.current)}))),t.dispose}),[t])}function Yi(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ji=(0,t.createContext)(null);Ji.displayName="TransitionContext";var Qi=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Qi||{});let Xi=(0,t.createContext)(null);function el(e){return"children"in e?el(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function tl(e,r){let a=ji(e),s=(0,t.useRef)([]),n=zi(),o=Zi(),i=Bi(((e,t=Si.Hidden)=>{let r=s.current.findIndex((({el:t})=>t===e));-1!==r&&(bi(t,{[Si.Unmount](){s.current.splice(r,1)},[Si.Hidden](){s.current[r].state="hidden"}}),o.microTask((()=>{var e;!el(s)&&n.current&&(null==(e=a.current)||e.call(a))})))})),l=Bi((e=>{let t=s.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):s.current.push({el:e,state:"visible"}),()=>i(e,Si.Unmount)})),c=(0,t.useRef)([]),d=(0,t.useRef)(Promise.resolve()),u=(0,t.useRef)({enter:[],leave:[],idle:[]}),m=Bi(((e,t,a)=>{c.current.splice(0),r&&(r.chains.current[t]=r.chains.current[t].filter((([t])=>t!==e))),null==r||r.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==r||r.chains.current[t].push([e,new Promise((e=>{Promise.all(u.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?d.current=d.current.then((()=>null==r?void 0:r.wait.current)).then((()=>a(t))):a(t)})),p=Bi(((e,t,r)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return(0,t.useMemo)((()=>({children:s,register:l,unregister:i,onStart:m,onStop:p,wait:d,chains:u})),[l,i,s,m,p,u,d])}function rl(){}Xi.displayName="NestingContext";let al=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function sl(e){var t;let r={};for(let a of al)r[a]=null!=(t=e[a])?t:rl;return r}let nl=xi.RenderStrategy,ol=Ni((function(e,r){let{beforeEnter:a,afterEnter:s,beforeLeave:n,afterLeave:o,enter:i,enterFrom:l,enterTo:c,entered:d,leave:u,leaveFrom:m,leaveTo:p,...f}=e,y=(0,t.useRef)(null),h=Hi(y,r),g=f.unmount?Si.Unmount:Si.Hidden,{show:v,appear:b,initial:E}=function(){let e=(0,t.useContext)(Ji);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,x]=(0,t.useState)(v?"visible":"hidden"),S=function(){let e=(0,t.useContext)(Xi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:_,unregister:k}=S,C=(0,t.useRef)(null);(0,t.useEffect)((()=>_(y)),[_,y]),(0,t.useEffect)((()=>{if(g===Si.Hidden&&y.current)return v&&"visible"!==w?void x("visible"):bi(w,{hidden:()=>k(y),visible:()=>_(y)})}),[w,y,_,k,v,g]);let N=ji({enter:Yi(i),enterFrom:Yi(l),enterTo:Yi(c),entered:Yi(d),leave:Yi(u),leaveFrom:Yi(m),leaveTo:Yi(p)}),P=function(e){let r=(0,t.useRef)(sl(e));return(0,t.useEffect)((()=>{r.current=sl(e)}),[e]),r}({beforeEnter:a,afterEnter:s,beforeLeave:n,afterLeave:o}),R=Ui();(0,t.useEffect)((()=>{if(R&&"visible"===w&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,w,R]);let O=E&&!b,T=!R||O||C.current===v?"idle":v?"enter":"leave",L=Bi((e=>bi(e,{enter:()=>P.current.beforeEnter(),leave:()=>P.current.beforeLeave(),idle:()=>{}}))),M=Bi((e=>bi(e,{enter:()=>P.current.afterEnter(),leave:()=>P.current.afterLeave(),idle:()=>{}}))),I=tl((()=>{x("hidden"),k(y)}),S);Ki({container:y,classes:N,direction:T,onStart:ji((e=>{I.onStart(y,e,L)})),onStop:ji((e=>{I.onStop(y,e,M),"leave"===e&&!el(I)&&(x("hidden"),k(y))}))}),(0,t.useEffect)((()=>{!O||(g===Si.Hidden?C.current=null:C.current=v)}),[v,O,w]);let A=f,D={ref:h};return b&&v&&Di.isServer&&(A={...A,className:vi(f.className,...N.current.enter,...N.current.enterFrom)}),t.createElement(Xi.Provider,{value:I},t.createElement(Mi,{value:bi(w,{visible:Ti.Open,hidden:Ti.Closed})},_i({ourProps:D,theirProps:A,defaultTag:"div",features:nl,visible:"visible"===w,name:"Transition.Child"})))})),il=Ni((function(e,r){let{show:a,appear:s=!1,unmount:n,...o}=e,i=(0,t.useRef)(null),l=Hi(i,r);Ui();let c=Li();if(void 0===a&&null!==c&&(a=bi(c,{[Ti.Open]:!0,[Ti.Closed]:!1})),![!0,!1].includes(a))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=(0,t.useState)(a?"visible":"hidden"),m=tl((()=>{u("hidden")})),[p,f]=(0,t.useState)(!0),y=(0,t.useRef)([a]);Fi((()=>{!1!==p&&y.current[y.current.length-1]!==a&&(y.current.push(a),f(!1))}),[y,a]);let h=(0,t.useMemo)((()=>({show:a,appear:s,initial:p})),[a,s,p]);(0,t.useEffect)((()=>{if(a)u("visible");else if(el(m)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[a,m]);let g={unmount:n};return t.createElement(Xi.Provider,{value:m},t.createElement(Ji.Provider,{value:h},_i({ourProps:{...g,as:t.Fragment,children:t.createElement(ol,{ref:l,...g,...o})},theirProps:{},defaultTag:t.Fragment,features:nl,visible:"visible"===d,name:"Transition"})))})),ll=Ni((function(e,r){let a=null!==(0,t.useContext)(Ji),s=null!==Li();return t.createElement(t.Fragment,null,!a&&s?t.createElement(il,{ref:r,...e}):t.createElement(ol,{ref:r,...e}))})),cl=Object.assign(il,{Child:ll,Root:il});const dl=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))})),ul=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))})),ml=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),pl=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})),fl=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})),yl=(0,l.createContext)({Icon:null,bulletClass:"",iconClass:""}),hl="@yoast/general",gl=({id:e,nonce:r,dismissed:a,message:s})=>{const{bulletClass:o=""}=(0,l.useContext)(yl),{toggleAlertStatus:i}=(0,n.useDispatch)(hl),d=a?pl:fl,u=(0,l.useCallback)((async()=>{i(e,r,a)}),[e,r,a,i]);return(0,t.createElement)("li",{key:e,className:"yst-flex yst-justify-between yst-gap-x-5 yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0"},(0,t.createElement)("div",{className:ps()("yst-mt-1",a&&"yst-opacity-50")},(0,t.createElement)("svg",{width:"11",height:"11",className:o},(0,t.createElement)("circle",{cx:"5.5",cy:"5.5",r:"5.5"}))),(0,t.createElement)("div",{className:ps()("yst-text-sm yst-text-slate-600 yst-grow",a&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:s}}),(0,t.createElement)(c.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:u},(0,t.createElement)(d,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})))};gl.propTypes={id:Gt().string,nonce:Gt().string,dismissed:Gt().bool,message:Gt().string};const vl=({className:e="",items:r=[]})=>0===r.length?null:(0,t.createElement)("ul",{className:e},r.map((e=>(0,t.createElement)(gl,{key:e.id,id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message}))));vl.propTypes={className:Gt().string,items:Gt().arrayOf(Gt().shape({message:Gt().string}))};const bl=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),El=({title:e,counts:r=0,children:a=null})=>{const{Icon:s=bl,iconClass:n=""}=(0,l.useContext)(yl);return(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center"},(0,t.createElement)(s,{className:ps()("yst-w-6 yst-h-6",n)}),(0,t.createElement)(c.Title,{className:"yst-grow",as:"h2",size:"2"},e," ",`(${r})`)),a)};var wl;El.propTypes={title:Gt().string,counts:Gt().number,children:Gt().node};let xl=null!=(wl=t.useId)?wl:function(){let e=Ui(),[r,a]=t.useState(e?()=>Di.nextId():null);return Fi((()=>{null===r&&a(Di.nextId())}),[r]),null!=r?""+r:void 0};var Sl=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Sl||{});function _l(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let a=""===(null==t?void 0:t.getAttribute("disabled"));return(!a||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&a}function kl(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function Cl(e,r){let[a,s]=(0,t.useState)((()=>kl(e)));return Fi((()=>{s(kl(e))}),[e.type,e.as]),Fi((()=>{a||!r.current||r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&s("button")}),[a,r]),a}function Nl(e){return Di.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Pl,Rl=((Pl=Rl||{})[Pl.Open=0]="Open",Pl[Pl.Closed=1]="Closed",Pl),Ol=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Ol||{});let Tl={0:e=>({...e,disclosureState:bi(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},Ll=(0,t.createContext)(null);function Ml(e){let r=(0,t.useContext)(Ll);if(null===r){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ml),t}return r}Ll.displayName="DisclosureContext";let Il=(0,t.createContext)(null);function Al(e){let r=(0,t.useContext)(Il);if(null===r){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Al),t}return r}Il.displayName="DisclosureAPIContext";let Dl=(0,t.createContext)(null);function Fl(e,t){return bi(t.type,Tl,e,t)}Dl.displayName="DisclosurePanelContext";let zl=t.Fragment,jl=Ni((function(e,r){let{defaultOpen:a=!1,...s}=e,n=(0,t.useRef)(null),o=Hi(r,qi((e=>{n.current=e}),void 0===e.as||e.as===t.Fragment)),i=(0,t.useRef)(null),l=(0,t.useRef)(null),c=(0,t.useReducer)(Fl,{disclosureState:a?0:1,linkedPanel:!1,buttonRef:l,panelRef:i,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:u},m]=c,p=Bi((e=>{m({type:1});let t=Nl(n);if(!t||!u)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==r||r.focus()})),f=(0,t.useMemo)((()=>({close:p})),[p]),y=(0,t.useMemo)((()=>({open:0===d,close:p})),[d,p]),h={ref:o};return t.createElement(Ll.Provider,{value:c},t.createElement(Il.Provider,{value:f},t.createElement(Mi,{value:bi(d,{0:Ti.Open,1:Ti.Closed})},_i({ourProps:h,theirProps:s,slot:y,defaultTag:zl,name:"Disclosure"}))))})),Ul=Ni((function(e,r){let a=xl(),{id:s=`headlessui-disclosure-button-${a}`,...n}=e,[o,i]=Ml("Disclosure.Button"),l=(0,t.useContext)(Dl),c=null!==l&&l===o.panelId,d=(0,t.useRef)(null),u=Hi(d,r,c?null:o.buttonRef);(0,t.useEffect)((()=>{if(!c)return i({type:2,buttonId:s}),()=>{i({type:2,buttonId:null})}}),[s,i,c]);let m=Bi((e=>{var t;if(c){if(1===o.disclosureState)return;switch(e.key){case Sl.Space:case Sl.Enter:e.preventDefault(),e.stopPropagation(),i({type:0}),null==(t=o.buttonRef.current)||t.focus()}}else switch(e.key){case Sl.Space:case Sl.Enter:e.preventDefault(),e.stopPropagation(),i({type:0})}})),p=Bi((e=>{e.key===Sl.Space&&e.preventDefault()})),f=Bi((t=>{var r;_l(t.currentTarget)||e.disabled||(c?(i({type:0}),null==(r=o.buttonRef.current)||r.focus()):i({type:0}))})),y=(0,t.useMemo)((()=>({open:0===o.disclosureState})),[o]),h=Cl(e,d);return _i({ourProps:c?{ref:u,type:h,onKeyDown:m,onClick:f}:{ref:u,id:s,type:h,"aria-expanded":e.disabled?void 0:0===o.disclosureState,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:m,onKeyUp:p,onClick:f},theirProps:n,slot:y,defaultTag:"button",name:"Disclosure.Button"})})),Bl=xi.RenderStrategy|xi.Static,$l=Ni((function(e,r){let a=xl(),{id:s=`headlessui-disclosure-panel-${a}`,...n}=e,[o,i]=Ml("Disclosure.Panel"),{close:l}=Al("Disclosure.Panel"),c=Hi(r,o.panelRef,(e=>{i({type:e?4:5})}));(0,t.useEffect)((()=>(i({type:3,panelId:s}),()=>{i({type:3,panelId:null})})),[s,i]);let d=Li(),u=null!==d?d===Ti.Open:0===o.disclosureState,m=(0,t.useMemo)((()=>({open:0===o.disclosureState,close:l})),[o,l]),p={ref:c,id:s};return t.createElement(Dl.Provider,{value:o.panelId},_i({ourProps:p,theirProps:n,slot:m,defaultTag:"div",features:Bl,visible:u,name:"Disclosure.Panel"}))})),ql=Object.assign(jl,{Button:Ul,Panel:$l});const Hl=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),Vl=({label:e,children:r})=>(0,t.createElement)(ql,null,(({open:a})=>(0,t.createElement)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border"},(0,t.createElement)(ql.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center"},(0,t.createElement)("div",{className:"yst-font-medium"},e),(0,t.createElement)(Hl,{className:ps()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",a?"yst-rotate-180":"")})),(0,t.createElement)(ql.Panel,{className:"yst-px-6"},r))));function Gl({title:e,id:r,isDismissable:a,children:s,className:o}){const i=(0,c.useSvgAria)(),{dismissNotice:d}=(0,n.useDispatch)(hl),u=(0,l.useCallback)((()=>{setTimeout((()=>{d(r)}),0)}),[d,r]);return(0,t.createElement)("div",{id:r,className:ps()("yst-p-3 yst-rounded-md yoast-general-page-notice",o)},(0,t.createElement)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]"},(0,t.createElement)("span",{className:"yoast-icon"}),e&&(0,t.createElement)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),a&&(0,t.createElement)("div",{className:"yst-relative yst-ms-auto"},(0,t.createElement)("button",{type:"button",className:"notice-dismiss",onClick:u},(0,t.createElement)("span",{className:"yst-sr-only"},(0,Ht.__)("Close","wordpress-seo")),(0,t.createElement)(Mn,{className:"yst-h-5 yst-w-5",...i})))),s&&(0,t.createElement)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:s}}))}Vl.propTypes={label:Gt().string,children:Gt().node},Gl.propTypes={title:Gt().string.isRequired,id:Gt().string.isRequired,isDismissable:Gt().bool.isRequired,children:Gt().string.isRequired,className:Gt().string};const Wl=()=>{const e=(0,n.useSelect)((e=>e(hl).selectActiveNotifications()),[]),r=(0,n.useSelect)((e=>e(hl).selectDismissedNotifications()),[]),a=r.length,s=(0,Ht._n)("hidden notification","hidden notifications",a,"wordpress-seo"),o={Icon:ul,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,t.createElement)(c.Paper,null,(0,t.createElement)(c.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6"},(0,t.createElement)(yl.Provider,{value:{...o}},(0,t.createElement)(El,{counts:e.length,title:(0,Ht.__)("Notifications","wordpress-seo")},0===e.length&&(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm"},(0,Ht.__)("No new notifications.","wordpress-seo"))),(0,t.createElement)(vl,{items:e}),a>0&&(0,t.createElement)(Vl,{label:`${a} ${s}`},(0,t.createElement)(vl,{className:"yst-pb-6",items:r})))))},Zl=()=>{const e=(0,n.useSelect)((e=>e(hl).selectActiveProblems()),[]),r=(0,n.useSelect)((e=>e(hl).selectDismissedProblems()),[]),a=r.length,s=(0,Ht._n)("hidden problem","hidden problems",a,"wordpress-seo"),o={Icon:bl,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,t.createElement)(c.Paper,null,(0,t.createElement)(c.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6"},(0,t.createElement)(yl.Provider,{value:{...o}},(0,t.createElement)(El,{title:(0,Ht.__)("Problems","wordpress-seo"),counts:e.length},(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm"},e.length>0?(0,Ht.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Ht.__)("Good job! We could detect no serious SEO problems.","wordpress-seo"))),(0,t.createElement)(vl,{items:e}),a>0&&(0,t.createElement)(Vl,{label:`${a} ${s}`},(0,t.createElement)(vl,{className:"yst-pb-6",items:r})))))},Kl=(e,t,r)=>{const a=e.querySelector(t);return a&&(a.textContent=r),a},Yl=(e,t=[],...r)=>(0,n.useSelect)((t=>{var a,s;return null===(a=(s=t(hl))[e])||void 0===a?void 0:a.call(s,...r)}),t),Jl=({className:e})=>{const r=(0,l.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),a=Yl("selectLink",[],"https://yoa.st/general-error-support"),s=gt();return(0,t.createElement)(c.Paper,{className:e},(0,t.createElement)(er,{error:s},(0,t.createElement)(er.HorizontalButtons,{handleRefreshClick:r,supportLink:a})))};Jl.propTypes={className:Gt().string};var Ql={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Xl=function(e){var t=e.message,r=e["aria-live"];return a().createElement("div",{style:Ql,role:"log","aria-live":r},t||"")};Xl.propTypes={};const ec=Xl;function tc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var rc=function(e){function t(){var r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,n=Array(s),o=0;o<s;o++)n[o]=arguments[o];return r=a=tc(this,e.call.apply(e,[this].concat(n))),a.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},tc(a,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.oldPolitemessage,a=t.oldPoliteMessageId,s=t.oldAssertiveMessage,n=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return r!==o||a!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:s!==l||n!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,r=e.assertiveMessage2,s=e.politeMessage1,n=e.politeMessage2;return a().createElement("div",null,a().createElement(ec,{"aria-live":"assertive",message:t}),a().createElement(ec,{"aria-live":"assertive",message:r}),a().createElement(ec,{"aria-live":"polite",message:s}),a().createElement(ec,{"aria-live":"polite",message:n}))},t}(t.Component);rc.propTypes={};const ac=rc;function sc(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const nc=a().createContext({announceAssertive:sc,announcePolite:sc}),oc=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return a.announcePolite=function(e,t){a.setState({announcePoliteMessage:e,politeMessageId:t||""})},a.announceAssertive=function(e,t){a.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},a.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:a.announcePolite,announceAssertive:a.announceAssertive}},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,r=e.politeMessageId,s=e.announceAssertiveMessage,n=e.assertiveMessageId,o=e.updateFunctions;return a().createElement(nc.Provider,{value:o},this.props.children,a().createElement(ac,{assertiveMessage:s,assertiveMessageId:n,politeMessage:t,politeMessageId:r}))},t}(t.Component);var ic=r(3409),lc=r.n(ic);function cc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var dc=function(e){function t(){var r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,n=Array(s),o=0;o<s;o++)n[o]=arguments[o];return r=a=cc(this,e.call.apply(e,[this].concat(n))),a.announce=function(){var e=a.props,t=e.message,r=e["aria-live"],s=e.announceAssertive,n=e.announcePolite;"assertive"===r&&s(t||"",lc()()),"polite"===r&&n(t||"",lc()())},cc(a,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,r=e.announceAssertive,a=e.announcePolite;!0!==t&&"true"!==t||(r(""),a(""))},t.prototype.render=function(){return null},t}(t.Component);dc.propTypes={};const uc=dc;var mc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pc=function(e){return a().createElement(nc.Consumer,null,(function(t){return a().createElement(uc,mc({},t,e))}))};pc.propTypes={};const fc=pc;const yc=({children:e,title:r,description:a})=>{const s=(0,Ht.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ (0,Ht.__)("%1$s Dashboard - %2$s","wordpress-seo"),r,"Yoast SEO");return(0,t.createElement)(oc,null,(0,t.createElement)(fc,{message:s,"aria-live":"polite"}),(0,t.createElement)(Or.Helmet,null,(0,t.createElement)("title",null,"Dashboard")),(0,t.createElement)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200"},(0,t.createElement)("div",{className:"yst-max-w-screen-sm"},(0,t.createElement)(c.Title,null,r),a&&(0,t.createElement)("p",{className:"yst-text-tiny yst-mt-3"},a))),e)};yc.propTypes={children:Gt().node.isRequired,title:Gt().string.isRequired,description:Gt().node};const hc=(0,window.wp.compose.compose)([(0,n.withSelect)(((e,t)=>{const{isAlertDismissed:r}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:r(t.alertKey)}})),(0,n.withDispatch)(((e,t)=>{const{dismissAlert:r}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>r(t.alertKey)}}))]),gc=hc,vc=({children:e,id:r,hasIcon:a=!0,title:s,image:n=null,isAlertDismissed:o,onDismissed:i})=>o?null:(0,t.createElement)("div",{id:r,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices"},(0,t.createElement)("div",{className:"notice-yoast__container"},(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"notice-yoast__header"},a&&(0,t.createElement)("span",{className:"yoast-icon"}),(0,t.createElement)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header"},s)),(0,t.createElement)("div",{className:"notice-yoast-content"},(0,t.createElement)("p",null,e))),n&&(0,t.createElement)(n,{height:"60"})),(0,t.createElement)("button",{type:"button",className:"notice-dismiss",onClick:i},(0,t.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */ (0,Ht.__)("Dismiss this notice.","wordpress-seo"))));vc.propTypes={children:Gt().node.isRequired,id:Gt().string.isRequired,hasIcon:Gt().bool,title:Gt().any.isRequired,image:Gt().elementType,isAlertDismissed:Gt().bool.isRequired,onDismissed:Gt().func.isRequired};const bc=gc(vc);var Ec,wc,xc,Sc,_c,kc,Cc,Nc,Pc,Rc,Oc,Tc,Lc,Mc,Ic,Ac,Dc,Fc,zc,jc,Uc,Bc,$c,qc,Hc,Vc,Gc,Wc,Zc,Kc,Yc,Jc,Qc,Xc,ed,td,rd,ad,sd,nd,od,id,ld,cd,dd,ud,md;function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pd.apply(this,arguments)}const fd=e=>t.createElement("svg",pd({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Ec||(Ec=t.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),wc||(wc=t.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),xc||(xc=t.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),Sc||(Sc=t.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),_c||(_c=t.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),kc||(kc=t.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Cc||(Cc=t.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Nc||(Nc=t.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Pc||(Pc=t.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Rc||(Rc=t.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Oc||(Oc=t.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),Tc||(Tc=t.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Lc||(Lc=t.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Mc||(Mc=t.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Ic||(Ic=t.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Ac||(Ac=t.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Dc||(Dc=t.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Fc||(Fc=t.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),zc||(zc=t.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),jc||(jc=t.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Uc||(Uc=t.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),Bc||(Bc=t.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),$c||($c=t.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),qc||(qc=t.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Hc||(Hc=t.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Vc||(Vc=t.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Gc||(Gc=t.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Wc||(Wc=t.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Zc||(Zc=t.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Kc||(Kc=t.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Yc||(Yc=t.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Jc||(Jc=t.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Qc||(Qc=t.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Xc||(Xc=t.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),ed||(ed=t.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),td||(td=t.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),rd||(rd=t.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),ad||(ad=t.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),sd||(sd=t.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),nd||(nd=t.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),od||(od=t.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),id||(id=t.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),ld||(ld=t.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),cd||(cd=t.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),dd||(dd=t.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),ud||(ud=t.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),md||(md=t.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),yd=({store:e="yoast-seo/editor",image:r=fd,url:a,...s})=>(0,n.useSelect)((t=>t(e).getIsPremium()))?null:(0,t.createElement)(bc,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Ht.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:r,url:a,...s},(0,Ht.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,t.createElement)("a",{href:a,target:"_blank",rel:"noreferrer"},(0,Ht.__)("Sign up today!","wordpress-seo")));yd.propTypes={store:Gt().string,image:Gt().elementType,url:Gt().string.isRequired};const hd=yd,gd=((0,Ht.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Ht.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),vd=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":gd(e)}:{};function bd({active:e,selected:t}){return ps()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function Ed(e,t){const r=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:r}}function wd(e,t){let r=(0,d.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return r=Ed(r,2),r.companyOrPerson=t.payload,r.companyOrPersonLabel=r.companyOrPersonOptions.filter((e=>e.value===t.payload)).pop().label,r;case"CHANGE_COMPANY_NAME":return r=Ed(r,2),r.companyName=t.payload,r;case"SET_COMPANY_LOGO":return r=Ed(r,2),r.companyLogo=t.payload.url,r.companyLogoId=t.payload.id,r;case"REMOVE_COMPANY_LOGO":return r=Ed(r,2),r.companyLogo="",r.companyLogoId="",r;case"CHANGE_WEBSITE_NAME":return r=Ed(r,2),r.websiteName=t.payload,r;case"SET_PERSON_LOGO":return r=Ed(r,2),r.personLogo=t.payload.url,r.personLogoId=t.payload.id,r;case"REMOVE_PERSON_LOGO":return r=Ed(r,2),r.personLogo="",r.personLogoId="",r;case"SET_PERSON":return r=Ed(r,2),r.personId=t.payload.value,r.personName=t.payload.label,r;case"SET_CAN_EDIT_USER":return r=Ed(r,2),r.canEditUser=!0===t.payload?1:0,r;case"CHANGE_SOCIAL_PROFILE":return r=Ed(r,3),r.socialProfiles[t.payload.socialMedium]=t.payload.value,r.errorFields=r.errorFields.filter((e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e)),r;case"CHANGE_OTHERS_SOCIAL_PROFILE":return r=Ed(r,3),r.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,r.errorFields=r.errorFields.filter((e=>e!==`other_social_urls-${t.payload.index}`)),r;case"ADD_OTHERS_SOCIAL_PROFILE":return r=Ed(r,3),r.socialProfiles.otherSocialUrls=[...r.socialProfiles.otherSocialUrls,t.payload.value],r;case"REMOVE_OTHERS_SOCIAL_PROFILE":return r=Ed(r,3),r.socialProfiles.otherSocialUrls.splice(t.payload.index,1),r.errorFields=(a=r.errorFields,s=t.payload.index,a.map((e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===s?"remove":t>s?"other_social_urls-"+(t-1):e})).filter((e=>"remove"!==e))),r;case"SET_ERROR_FIELDS":return r.errorFields=t.payload,r;case"SET_STEP_ERROR":return r.stepErrors[t.payload.step]=t.payload.message,r;case"REMOVE_STEP_ERROR":return r.stepErrors=(0,d.pickBy)(r.stepErrors,((e,r)=>r!==t.payload)),r;case"SET_TRACKING":return r=Ed(r,4),r.tracking=t.payload,r;default:return r}var a,s}const xd=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Sd=({items:e,onAddProfile:r,onRemoveProfile:a,onChangeProfile:s,errorFields:n,fieldType:o,addButtonChildren:i})=>{const d=(0,l.useCallback)((e=>{a(parseInt(e.currentTarget.dataset.index,10))}),[a]);return(0,t.createElement)("div",null,e.map(((e,r)=>(0,t.createElement)("div",{key:`url-${r}`},(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4"},(0,t.createElement)(o,{className:"yst-grow",label:(0,Ht.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${r}`,value:e,socialMedium:"other",index:r,onChange:s,placeholder:(0,Ht.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+r),message:[(0,Ht.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,t.createElement)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${r}`,"data-index":r,onClick:d},(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,Ht.__)("Delete item","wordpress-seo")),(0,t.createElement)(In,{className:"yst-w-5 yst-h-5"})))))),(0,t.createElement)(c.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:r,"data-hiive-event-name":"clicked_add_profile"},(0,t.createElement)(xd,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i))};Sd.propTypes={fieldType:Gt().elementType.isRequired,items:Gt().array.isRequired,onAddProfile:Gt().func.isRequired,onRemoveProfile:Gt().func.isRequired,onChangeProfile:Gt().func.isRequired,errorFields:Gt().array,addButtonChildren:Gt().node},Sd.defaultProps={errorFields:[],addButtonChildren:(0,Ht.__)("Add another profile","wordpress-seo")};const _d=Sd,kd=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),Cd=({texts:e,id:r,as:a,...s})=>{const n=(0,l.useMemo)((()=>(0,d.last)(e)),[e]);return(0,t.createElement)(a,{id:r,...s},e.map(((e,a)=>(0,t.createElement)(l.Fragment,{key:`${r}-text-${a}`},e,n!==e&&(0,t.createElement)("br",null)))))};Cd.defaultProps={as:"p"},Cd.propTypes={texts:Gt().arrayOf(Gt().string).isRequired,id:Gt().string.isRequired,as:Gt().oneOfType([Gt().string,Gt().elementType])};const Nd=Cd;function Pd({hasError:e,hasSuccess:r}){return e?(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3"},(0,t.createElement)(kd,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})):r?(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3"},(0,t.createElement)(An,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})):null}function Rd({className:e,id:r,label:a,description:s,value:n,onChange:o,placeholder:i,feedback:c,type:d,...u}){const m=d||"text",p=(0,l.useMemo)((()=>c.isVisible&&"error"===c.type),[c.isVisible,c.type]),f=(0,l.useMemo)((()=>c.isVisible&&"success"===c.type),[c.isVisible,c.type]);return(0,t.createElement)("div",{className:e},a&&(0,t.createElement)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700",htmlFor:r},a),(0,t.createElement)("div",{className:"yst-relative"},(0,t.createElement)("input",{id:r,type:m,value:n,className:ps()("yst-block yst-w-full yst-h-[45px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":p,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":f,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!p&&!f}),onChange:o,placeholder:i,...vd(r,c),...u}),(0,t.createElement)(Pd,{hasError:p,hasSuccess:f})),c.isVisible&&(0,t.createElement)(Nd,{id:`${p?"error-":"success-"}${r}`,className:ps()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":f}),texts:c.message}),s)}function Od({id:e,onChange:r,socialMedium:a,isDisabled:s,...n}){const o=(0,l.useCallback)((e=>{r(e.target.value,"other"===a?n.index:a)}),[a,n.index]);return(0,t.createElement)(Rd,{onChange:o,disabled:s,id:e,...n})}function Td({socialProfiles:e,errorFields:r,dispatch:a}){const s=(0,l.useCallback)(((e,t)=>{a({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),n=(0,l.useCallback)(((e,t)=>{a({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),o=(0,l.useCallback)((()=>{a({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,l.useCallback)((e=>{a({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,t.createElement)(Ld,{socialProfiles:e,onChangeHandler:s,onChangeOthersHandler:n,onAddProfileHandler:o,onRemoveProfileHandler:i,errorFields:r})}function Ld({socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:a,onAddProfileHandler:s,onRemoveProfileHandler:n,errorFields:o}){return(0,t.createElement)("div",{id:"social-input-section"},(0,t.createElement)(Od,{className:"yst-mt-4",label:(0,Ht.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:r,placeholder:(0,Ht.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Ht.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:o.includes("facebook_site"),type:"error"}}),(0,t.createElement)(Od,{className:"yst-mt-4",label:(0,Ht.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:r,placeholder:(0,Ht.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Ht.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:o.includes("twitter_site"),type:"error"}}),(0,t.createElement)(_d,{items:e.otherSocialUrls,onAddProfile:s,onRemoveProfile:n,onChangeProfile:a,errorFields:o,fieldType:Od}))}Pd.propTypes={hasError:Vt.PropTypes.bool,hasSuccess:Vt.PropTypes.bool},Pd.defaultProps={hasError:!1,hasSuccess:!1},Rd.propTypes={className:Vt.PropTypes.string,id:Vt.PropTypes.string.isRequired,label:Vt.PropTypes.string,description:Vt.PropTypes.node,value:Vt.PropTypes.string,onChange:Vt.PropTypes.func.isRequired,placeholder:Vt.PropTypes.string,feedback:Vt.PropTypes.shape({type:Vt.PropTypes.string,message:Vt.PropTypes.array,isVisible:Vt.PropTypes.bool}),type:Vt.PropTypes.string},Rd.defaultProps={value:"",className:"",label:"",description:null,placeholder:"",feedback:{message:[],isVisible:!1},type:"text"},Od.propTypes={id:Gt().string.isRequired,onChange:Gt().func.isRequired,socialMedium:Gt().string,isDisabled:Gt().bool},Od.defaultProps={socialMedium:"",isDisabled:!1},Td.propTypes={socialProfiles:Gt().object.isRequired,dispatch:Gt().func.isRequired,errorFields:Gt().array},Td.defaultProps={errorFields:[]},Ld.propTypes={socialProfiles:Gt().object.isRequired,onChangeHandler:Gt().func.isRequired,onChangeOthersHandler:Gt().func.isRequired,onAddProfileHandler:Gt().func.isRequired,onRemoveProfileHandler:Gt().func.isRequired,errorFields:Gt().array.isRequired};const Md=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),Id=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),Ad=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}));var Dd=r(8133);function Fd({type:e,children:r,className:a}){let s,n;switch(e){case"info":s=(0,t.createElement)(Md,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":s=(0,t.createElement)(Id,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":s=(0,t.createElement)(Ad,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":s=(0,t.createElement)(An,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return(0,t.createElement)("div",{className:ps()("yst-flex yst-p-4 yst-rounded-md",n,a)},s,(0,t.createElement)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm"},r))}function zd({id:e,isVisible:r,expandDuration:a,type:s,children:n,className:o}){const[i,c]=(0,l.useState)(r?"yst-opacity-100":"yst-opacity-0"),d=(0,l.useCallback)((()=>{c("yst-opacity-100")}),[]);return(0,t.createElement)(Dd.Z,{id:e,height:r?"auto":0,easing:"linear",duration:a,onAnimationEnd:d},(0,t.createElement)(Fd,{type:s,className:ps()("yst-transition-opacity yst-duration-300 yst-mt-4",i,o)},n))}function jd({state:e,dispatch:r,setErrorFields:a}){const s=(0,Ht.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),n=(0,l.createInterpolateElement)((0,Ht.sprintf)( // translators: %1$s is replaced by the selected person's username. (0,Ht.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,t.createElement)("b",null)}),o=(0,l.createInterpolateElement)((0,Ht.sprintf)( // translators: %1$s and %2$s is replaced by a link to the selected person's profile page. (0,Ht.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,t.createElement)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Ht.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,(0,Ht.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")),(0,t.createElement)(Td,{socialProfiles:e.socialProfiles,dispatch:r,errorFields:e.errorFields,setErrorFields:a})):0===e.personId?(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,s),(0,t.createElement)(Fd,{type:"info",className:"yst-mt-5"}, /* translators: please note that "Site representation" here refers to the name of a step in the first-time configuration, * so this occurrence needs to be translated in the same manner as that step's heading. */ (0,Ht.__)("Please select a user in the Site representation step.","wordpress-seo"))):(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,n," ",e.canEditUser?o:i))}Fd.propTypes={type:Gt().oneOf(["info","warning","error","success"]),children:Gt().oneOfType([Gt().arrayOf(Gt().node),Gt().node]).isRequired,className:Gt().string},Fd.defaultProps={type:"info",className:""},zd.propTypes={id:Gt().string.isRequired,isVisible:Gt().bool.isRequired,type:Gt().oneOf(["info","warning","error","success"]),children:Gt().oneOfType([Gt().arrayOf(Gt().node),Gt().node]).isRequired,expandDuration:Gt().number,className:Gt().string},zd.defaultProps={expandDuration:400,type:"info",className:""},jd.propTypes={state:Gt().object.isRequired,dispatch:Gt().func.isRequired,setErrorFields:Gt().func.isRequired};const Ud={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},Bd={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},$d=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),{slideDuration:qd,delayUntilStepFaded:Hd}=Bd,Vd=`yst-transition-opacity ${qd} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function Gd(e){return`${Vd} ${e?"yst-opacity-100":`${Hd} yst-opacity-0`}`}function Wd({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-white yst-border-primary-500 ${Gd(e)}`},(0,t.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"}))}function Zd({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${Gd(e)}`},(0,t.createElement)($d,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"}))}function Kd({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-white yst-border-slate-300 ${Gd(e)}`},(0,t.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"}))}function Yd({activationDelay:e,deactivationDelay:r,isFinished:a}){const{activeStepIndex:s,stepIndex:n,lastStepIndex:o}=iu(),i=n===o,c=s===n,[d,u]=(0,l.useState)((()=>!!c&&!i));return(0,l.useEffect)((()=>{if(c){const t=setTimeout((()=>{u(!0)}),e);return()=>clearTimeout(t)}const t=setTimeout((()=>{u(!1)}),r);return()=>clearTimeout(t)}),[c,i,e,r]),(0,t.createElement)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full"},(0,t.createElement)(Kd,{isVisible:!0}),(0,t.createElement)(Zd,{isVisible:a}),(0,t.createElement)(Wd,{isVisible:d&&!i}))}function Jd(e,t,r){return t&&!r?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function Qd({name:e,description:r,isFinished:a,children:s}){const{stepIndex:n,activeStepIndex:o,lastStepIndex:i}=iu(),c=o===n,d=i===n,[u,m]=(0,l.useState)(Jd(a,c,d));return(0,l.useEffect)((()=>{if(c){const e=Jd(a,c,d),t=setTimeout((()=>m(e)),Ud.delayBeforeOpening);return()=>clearTimeout(t)}const e=Jd(a,c,d);m(e)}),[o,a,d,Jd]),(0,t.createElement)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":c?"step":null},(0,t.createElement)("span",{className:"yst-flex yst-items-center","aria-hidden":c?"true":null},(0,t.createElement)(Yd,{activationDelay:Ud.delayBeforeOpening,deactivationDelay:0,isFinished:a})),(0,t.createElement)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col"},(0,t.createElement)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${u}`},e),r&&(0,t.createElement)("span",{className:"yst-text-sm yst-text-slate-600"},r)),s)}Wd.propTypes={isVisible:Gt().bool},Wd.defaultProps={isVisible:!0},Zd.propTypes={isVisible:Gt().bool},Zd.defaultProps={isVisible:!0},Kd.propTypes={isVisible:Gt().bool},Kd.defaultProps={isVisible:!0},Yd.propTypes={isFinished:Gt().bool.isRequired,activationDelay:Gt().number,deactivationDelay:Gt().number},Yd.defaultProps={activationDelay:0,deactivationDelay:0},Qd.propTypes={name:Gt().string.isRequired,isFinished:Gt().bool.isRequired,description:Gt().string,children:Gt().node},Qd.defaultProps={description:"",children:[]};const{slideDuration:Xd,delayBeforeOpening:eu,delayBeforeFadingIn:tu,delayBeforeClosing:ru}=Ud,{fadeDuration:au,delayUntilStepFaded:su,slideDuration:nu}=Bd,ou=(0,l.createContext)();function iu(){const e=(0,l.useContext)(ou);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function lu({beforeGo:e,children:r,destination:a,...s}){const{stepIndex:n,setActiveStepIndex:o,lastStepIndex:i}=iu(),d=(0,l.useCallback)((()=>{o("string"==typeof a?"last"===a?i:0:n+a)}),[n,i,o,a]),u=(0,l.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&d()}),[d,e]);return(0,t.createElement)(c.Button,{onClick:u,...s},r)}function cu({children:e,...r}){const{stepIndex:a,setActiveStepIndex:s}=iu(),n=(0,l.useCallback)((()=>{s(a)}),[s,a]);return(0,t.createElement)(c.Button,{onClick:n,variant:"secondary",size:"small",...r},e)}function du({children:e}){const{lastStepIndex:r,stepIndex:a,activeStepIndex:s}=iu();return(0,t.createElement)(l.Fragment,null,a!==r&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)("div",{className:"yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,t.createElement)("div",{className:`yst-h-12 yst-transition-transform ${su} yst-ease-linear ${nu} ${a<s?"yst-scale-y-1":"yst-scale-y-0"} yst-origin-top yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-bg-primary-500 yst-top-8`,"aria-hidden":"true"})),e)}function uu({id:e,message:r,className:a}){return(0,t.createElement)(zd,{id:e,type:"error",isVisible:!!r,className:a},(0,Ht.sprintf)(/* translators: %1$s expands to the error message returned by the server */ (0,Ht.__)("An error has occurred: %1$s","wordpress-seo"),r))}function mu({children:e}){const{activeStepIndex:r,stepIndex:a}=iu(),s=r===a,[n,o]=(0,l.useState)(s?"auto":0),[i,c]=(0,l.useState)(!s);return(0,l.useEffect)((()=>{s?(o("auto"),setTimeout((()=>c(!1)),tu)):(c(!0),o(0))}),[s]),(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Dd.Z,{id:`content-${a}`,delay:0===n?ru:eu,height:n,easing:"ease-in-out",duration:Xd},(0,t.createElement)("div",{className:`yst-transition-opacity ${au} yst-relative yst-ms-12 yst-mt-4 yst-pb-1 ${i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"}`},e)))}function pu({children:e,setActiveStepIndex:r,activeStepIndex:a,isStepperFinished:s}){return(0,t.createElement)("ol",null,e.map(((n,o)=>(0,t.createElement)("li",{key:`${n.props.name}-${o}`,className:(o===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none"},(0,t.createElement)(ou.Provider,{value:{stepIndex:o,activeStepIndex:a,setActiveStepIndex:r,lastStepIndex:e.length-1,isStepperFinished:s}},n)))))}lu.propTypes={beforeGo:Gt().func,children:Gt().node,destination:Gt().oneOfType([Gt().number,Gt().oneOf(["first","last"])])},lu.defaultProps={beforeGo:null,children:(0,t.createElement)(l.Fragment,null,(0,Ht.__)("Continue","wordpress-seo")),destination:1},cu.propTypes={children:Gt().node},cu.defaultProps={children:(0,t.createElement)(l.Fragment,null,(0,Ht.__)("Edit","wordpress-seo"))},du.propTypes={children:Gt().node.isRequired},uu.propTypes={id:Gt().string.isRequired,message:Gt().string.isRequired,className:Gt().string},uu.defaultProps={className:""},mu.propTypes={children:Gt().node.isRequired},pu.propTypes={setActiveStepIndex:Gt().func.isRequired,activeStepIndex:Gt().number.isRequired,isStepperFinished:Gt().bool,children:Gt().node.isRequired},pu.defaultProps={isStepperFinished:!1},du.Content=mu,du.Error=uu,du.Header=Qd,du.GoButton=lu,du.EditButton=cu;const fu={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},yu={[fu.optimizeSeoData]:"data optimization",[fu.siteRepresentation]:"site representation",[fu.socialProfiles]:"social profiles",[fu.personalPreferences]:"personal preferences"};function hu({stepId:e,beforeGo:r,children:a,additionalClasses:s,...n}){return(0,t.createElement)(du.GoButton,{id:`button-${e}-continue`,variant:"primary",className:s,destination:1,beforeGo:r,"data-hiive-event-name":`clicked_continue | ${yu[e]}`,...n},a)}function gu({stepId:e,beforeGo:r,isVisible:a,children:s,additionalClasses:n,...o}){const i=`yst-transition-opacity ${Bd.slideDuration} yst-ease-out ${a?"yst-opacity-100":`${Bd.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,t.createElement)(du.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:ps()(i,n),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${yu[e]}`,...o},s)}function vu({stepId:e,beforeGo:r,children:a,additionalClasses:s,...n}){return(0,t.createElement)(du.GoButton,{id:`button-${e}-back`,variant:"secondary",className:s,destination:-1,beforeGo:r,"data-hiive-event-name":`clicked_go_back | ${yu[e]}`,...n},a)}function bu({stepId:e,beforeContinue:r,continueLabel:a,beforeBack:s,backLabel:n}){return(0,t.createElement)("div",{className:"yst-mt-12"},(0,t.createElement)(hu,{stepId:e,beforeGo:r},a),(0,t.createElement)(vu,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:s},n))}function Eu({stepId:e,stepperFinishedOnce:r,saveFunction:a,setEditState:s}){const n=(0,l.useCallback)((async()=>{const e=await a();return s(!e),e}),[a]);return r?(0,t.createElement)(du.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${yu[e]}`},(0,Ht.__)("Save changes","wordpress-seo")):(0,t.createElement)(bu,{stepId:e,beforeContinue:a,continueLabel:(0,Ht.__)("Save and continue","wordpress-seo")})}var wu,xu,Su,_u,ku,Cu,Nu,Pu,Ru,Ou,Tu,Lu,Mu,Iu,Au,Du,Fu,zu,ju,Uu,Bu,$u,qu,Hu,Vu,Gu,Wu,Zu,Ku,Yu,Ju,Qu,Xu,em,tm,rm,am,sm,nm,om,im,lm,cm,dm,um,mm,pm,fm,ym,hm,gm;function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vm.apply(this,arguments)}hu.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,beforeGo:Gt().func,children:Gt().node},hu.defaultProps={additionalClasses:"",beforeGo:null,children:null},gu.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,isVisible:Gt().bool,beforeGo:Gt().func,children:Gt().node},gu.defaultProps={additionalClasses:"",isVisible:!0,beforeGo:null,children:null},vu.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,beforeGo:Gt().func,children:Gt().node},vu.defaultProps={additionalClasses:"",beforeGo:null,children:null},bu.propTypes={stepId:Gt().string.isRequired,beforeContinue:Gt().func,continueLabel:Gt().string,beforeBack:Gt().func,backLabel:Gt().string},bu.defaultProps={beforeContinue:null,continueLabel:(0,Ht.__)("Continue","wordpress-seo"),beforeBack:null,backLabel:(0,Ht.__)("Go back","wordpress-seo")},Eu.propTypes={stepId:Gt().string.isRequired,stepperFinishedOnce:Gt().bool.isRequired,saveFunction:Gt().func.isRequired,setEditState:Gt().func.isRequired};const bm=e=>t.createElement("svg",vm({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 262.37 284.15"},e),wu||(wu=t.createElement("path",{fill:"#f0ecf0",d:"M262.37 153A131.19 131.19 0 1 0 54.71 259.56a28.08 28.08 0 0 1 1.91-7.37c2-4.92-12.06-11.1-7.52-26.48 3.49-11.81 30.9-25.16 37.1-41.56 2.4-6.32 12-30.34 29.69-35.66 9-2.7 48.29-13.29 60.25-11.07s37.48 11 31.66 41.46c-10.26 53.79-44.8 59.12-46.28 94.64a27.46 27.46 0 0 0 .65 6.94A131.23 131.23 0 0 0 262.37 153Z"})),xu||(xu=t.createElement("path",{fill:"#006531",d:"M161.52 273.52c1.44-35.53 36-40.85 46.28-94.64 5.82-30.51-19.7-39.25-31.66-41.46s-51.23 8.37-60.25 11.07c-17.72 5.32-27.29 29.34-29.69 35.66-6.2 16.4-33.61 29.75-37.1 41.56-4.54 15.38 9.53 21.56 7.52 26.48a28.08 28.08 0 0 0-1.91 7.37 131.71 131.71 0 0 0 12.68 8.05 184.18 184.18 0 0 1 7.18-34.05c-4.12-2.43-8.32-4-19.15-2.33 16.06-23.66 34.79-45.11 64.9-65.12 2.54 22.59 3.65 40.75 14.49 60-14.93-3.2-25.12 0-32 4.77a103.74 103.74 0 0 0-4.6 49.12 132 132 0 0 0 64 .49 27.23 27.23 0 0 1-.69-6.97Z"})),Su||(Su=t.createElement("path",{fill:"#89bc3b",d:"M102.8 230.9c6.89-4.73 17.08-8 32-4.77-10.84-19.27-12-37.43-14.49-60-30.11 20-48.84 41.46-64.9 65.12 10.83-1.66 15-.1 19.15 2.33a184.18 184.18 0 0 0-7.18 34A130.42 130.42 0 0 0 98.21 280a103.65 103.65 0 0 1 4.59-49.1Z"})),_u||(_u=t.createElement("path",{fill:"#093f22",d:"M61.29 184.66c-4.39 13.11-15 33.6-14.52 47.42 11.9-18 34.83-42.28 46.73-60.26 2.69-4.08 1.49-10.8-3.21-13.29-3.83-2-8.45-.15-11.7 1.92-8.3 5.28-14.21 14.98-17.3 24.21Zm72.61 58.65 18.32-60.92s.51 11.07 1.1 9.3 16.4-28.8 16.4-28.8l-28.14 81Z"})),ku||(ku=t.createElement("path",{fill:"#006531",d:"M169.31 113.64c.71 13.17 6.24 22.36 5.36 25.68-33.67 6.42-49.16 29.46-54 28.88-6.67-3.85-5.76-14.39-5.54-17.71 3.55-6.65-.12-17.65 1.77-23.89 1.4-4.6 9.38-12.6 18.1-14.53s33.93-5.54 34.31 1.57Z"})),Cu||(Cu=t.createElement("path",{fill:"#b498c6",d:"M122.32 166.11c6.09-9.75 11.1-30.31 14.62-33.9 3.33-3.39 22.1-12 26.12-13.51 1.56-1.22 2-2.55 2.09-6.65l.23-19.82-45.16 16.39 2.53 37.22c.67 5.09.35 10.08-.43 20.27Z"})),Nu||(Nu=t.createElement("path",{fill:"#8b6c9c",d:"m166.15 92.89-.64 7.17c-.94 12.77-25.4 31.3-38.1 30.12-4.6-.42-5.78-10.38-7.39-15.06l-2.61-9.52Z"})),Pu||(Pu=t.createElement("path",{fill:"#b498c6",d:"M157.71 192S128 247.74 126 254s-.23 13.67 4.49 15.24 16.51.6 24.27-7.47c5.9-6.14 28.74-39.14 29.45-39.85.06-13.3-7.49-22.14-26.5-29.92Z"})),Ru||(Ru=t.createElement("ellipse",{cx:106.71,cy:192.91,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.8,ry:5.58,transform:"rotate(-19.17 106.716 192.914)"})),Ou||(Ou=t.createElement("path",{fill:"#f19018",d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),Tu||(Tu=t.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),Lu||(Lu=t.createElement("path",{fill:"#006531",d:"M183.45 223.15c-3.73-9.11-19.27-19.94-31.68-20.38 7.54-16.39 11.46-29.12 19.31-42.24 0 0-5.74-22.74-1-22.2 8.52 1 19-7.56 33.67-4.23 14.25 3.23 20.27 23.26 17 38-4.47 19.9-40.04 54.49-37.3 51.05Z"})),Mu||(Mu=t.createElement("path",{fill:"#8b6c9c",d:"M80 254.38C77.79 252.17 71.81 244 65.6 244s-33 6.87-33 6.87l-.45 9.3s16.69 1.77 19.94 2.22 16-3.55 16-3.55Z"})),Iu||(Iu=t.createElement("path",{fill:"#8b6c9c",d:"M72.14 260.36c-12.31-.11-23.45 6.28-26.55 5.39-4.1-1.33-4.21.82-6.64.59s-6.7-3.65-6.7-3.65l.12-12.3 39 7.09Z"})),Au||(Au=t.createElement("path",{fill:"#8b6c9c",d:"M50.63 262.9c-4.43-2.21-15.73 4.28-17.74 2.71-4.64-3.65-8.27-6.21-9.3-8.42s2.47-5.91 1.59-16.1c-.44-5.07 4.31-5.32 6.09-1.33.93 2.1 1.33 13.51 1.33 13.51l7.63 2.1Z"})),Du||(Du=t.createElement("path",{fill:"#b498c6",d:"M100.38 163.12c.89 4-22.61 60.35-31.91 76.3S40.9 257.36 40.9 257.36s-14.48-.79-9.17-22.05 24.47-27.82 31.55-37.42 20.27-29 20.27-33.45c0-3.1 15.95-5.31 16.83-1.32Z"})),Fu||(Fu=t.createElement("path",{fill:"#8b6c9c",d:"M100.48 163.09a3.78 3.78 0 0 1 0 .95 9.1 9.1 0 0 1-.16.91c-.12.6-.29 1.19-.44 1.78-.33 1.17-.69 2.34-1.06 3.5-.76 2.32-1.56 4.62-2.38 6.92Q94 184 91.28 190.83q-5.4 13.59-11.26 27-2.92 6.71-6 13.34A63.91 63.91 0 0 1 66.55 244 35.8 35.8 0 0 1 55 253.26a38.85 38.85 0 0 1-14.07 4.2v-.2a41.07 41.07 0 0 0 6.94-2.09 39.27 39.27 0 0 0 6.44-3.17A35.56 35.56 0 0 0 65 242.71a26.19 26.19 0 0 0 2-2.9c.66-1 1.22-2.05 1.8-3.1q1.74-3.18 3.36-6.44c2.2-4.33 4.31-8.71 6.37-13.12q6.14-13.23 11.79-26.7 2.85-6.72 5.53-13.51c.88-2.27 1.74-4.55 2.56-6.84.4-1.14.79-2.29 1.15-3.46.17-.58.35-1.16.48-1.75a6.54 6.54 0 0 0 .18-.88 3.19 3.19 0 0 0 .06-.87Z"})),zu||(zu=t.createElement("path",{fill:"#8b6c9c",d:"M98.61 166.22s10.4-10 11.73-14c1.78-5.31-.21-15.41 2.56-22.17 1.13-2.77 5-12.4 5.3-13.28s-3.13-2.36-4.76-1.77a17.06 17.06 0 0 0-6.26 5.61c-1.33 2.22-.68 10.15-4.37 11.34s-18.23 10.61-18.38 17.4.44 11.85 14.18 16.87Z"})),ju||(ju=t.createElement("path",{fill:"#8b6c9c",d:"m100.38 163.12 8.42-13.74-13.74-19s4.35-12 5.09-16.39 3.84-11.14.56-18.17c-2.12-4.55-4.79-5-5.09-2.1s-1.16 13.72-2.62 17.12-8.08 14.62-8.08 14.62l-12.4 14.62Z"})),Uu||(Uu=t.createElement("path",{fill:"#b498c6",d:"M138.58 5.48c-20.7-.38-38 19.23-39.7 21.63-1.34 1.94-5.06 12-6.58 19.34.42-1.33.87-2.62 1.33-3.85 13.19-6.56 37.64-4.79 70.11 2.89 1.75 6.74 1.36 12.38 1.15 20.18 0 0-15.4 8.58-24.28 9.94-7.5 1.16-11.68-1.37-14.5-3.62-4-3.18-7.61-9.22-13.15-9.67-5.81-.47-7.83 9.3-10.72 9-1.73-.18-7.25.7-9.63 2.76a34.28 34.28 0 0 0-.24 9.16c1.25 5.91 5.63 11.61 8.16 14.52s4.19 11.43 8.45 15.76c9.81 9.93 47-6.94 55.48-17.25 3.75-4.53 8.8-28 8.8-28s10.52-10.21 10.46-16.87c-.21-22.82-17.07-45.4-45.14-45.92Z"})),Bu||(Bu=t.createElement("path",{fill:"#fcee21",d:"M92.41 51.14a78.25 78.25 0 0 1 .88-8.53C83.1 69 92.42 74.26 92.61 74.09a39.64 39.64 0 0 1 2.9-8.67s-3.36-7.58-3.1-14.28Z"})),$u||($u=t.createElement("path",{fill:"#fbb03b",d:"M102.24 71.33c2.89.29 4.91-9.48 10.72-9 5.54.45 9.14 6.49 13.15 9.67 2.82 2.25 7 4.78 14.5 3.62 8.88-1.36 24.28-9.94 24.28-9.94.21-7.8.6-13.44-1.15-20.18-32.47-7.69-56.92-9.5-70.11-2.9-.89 2-1.63 13.3-1.63 13.3-.3 5 .89 6.64 3.47 9.52a42 42 0 0 0-2.82 8.67c2.35-2.09 7.86-2.94 9.59-2.76Z"})),qu||(qu=t.createElement("path",{fill:"#89bc3b",d:"M156 194.13c7.53-.89 21.71 6.87 26.81 12.62 14.42-12.32 25.39-37.37 27.91-45.19 6.64-20.6-11.52-28.35-11.52-28.35l2.44.66s18.38 5.76 14.84 31.9c-1.24 9.13-14.64 33.72-28.8 46.3.89 1.55 2.22 3.32 2.66 4.87l-6.65 6.43c-2.66-8.42-22.81-20.82-31.9-20.6Z"})),Hu||(Hu=t.createElement("path",{fill:"#b498c6",d:"M86.65 168.87c-.89-1.32-17.89-25.57-18.34-28.67s4.69-7.7 6.13-7c9.64 4.61 24.21 17.67 26 22.1s-.71 11.59-.71 11.59Zm-8.86-38.1s12.14-11.89 15.09-12 10.11 6 13.11 7.91c3.2 2 3.87 7.13 8.23 10.45.44 2.07-2.22 3.42-5.62 2.39s-7.34-6.81-7.34-6.81l-7.12-3.46-8.38 6.88Z"})),Vu||(Vu=t.createElement("path",{fill:"#b498c6",d:"M74.24 133s11.93-9 13.4-9 12.38 7.59 13.42 9.22 1.88 8.59 3.75 14.86c.65 2.17-3.28 5.17-6.53 1.33s-4.77-10.32-4.77-10.32l-7.33-4.61-5.29 3.85Z"})),Gu||(Gu=t.createElement("path",{fill:"#8b6c9c",d:"M84.58 124.87a4.75 4.75 0 0 1 3-1.15 7.83 7.83 0 0 1 3.22.82 21.82 21.82 0 0 1 2.69 1.76c.86.62 1.71 1.25 2.56 1.89a47.7 47.7 0 0 1 4.94 4.14 4.21 4.21 0 0 1 .55.71 5.87 5.87 0 0 1 .36.81c.18.53.33 1.05.46 1.57.26 1 .48 2.08.7 3.12.44 2.07.87 4.14 1.37 6.19.25 1 .53 2 .82 3a2.42 2.42 0 0 1 .12 1 2.36 2.36 0 0 1-.26.93 3.58 3.58 0 0 1-1.21 1.34 4 4 0 0 1-3.47.47 5.93 5.93 0 0 1-2.73-2.06 12.37 12.37 0 0 1-2.52-5.93 36.66 36.66 0 0 0 3.3 5.3 5 5 0 0 0 2.26 1.74 3 3 0 0 0 2.6-.35 1.93 1.93 0 0 0 1-2.16c-.3-1-.58-2.06-.83-3.09-.51-2.07-.94-4.15-1.38-6.22-.22-1-.44-2.07-.69-3.08-.13-.51-.27-1-.43-1.49a2.76 2.76 0 0 0-.7-1.17 49.75 49.75 0 0 0-4.81-4c-.84-.63-1.69-1.26-2.55-1.88s-1.75-1.16-2.57-1.8a6.81 6.81 0 0 0-2.78-1.11 4.77 4.77 0 0 0-3.02.7Z"})),Wu||(Wu=t.createElement("path",{fill:"#b498c6",d:"M72.62 133.87s5-4.31 6.43-4.66c2.52-.63 12.51 5.9 13.36 7.77 1.31 2.91 2.2 7.57 3.87 11.4.9 2.06-2.84 2.15-5.49.53s-3.57-6.71-3.57-6.71c-2.51-1.89-4.82-2.52-6.54-3.69-.3 2.47-2.6 5.07-7 8.07Z"})),Zu||(Zu=t.createElement("path",{fill:"#8b6c9c",d:"M79.05 129.21a5.63 5.63 0 0 1 2.7.27c.88.26 1.73.57 2.58.91a28.34 28.34 0 0 1 4.81 2.54c.77.48 1.53 1 2.27 1.52a12.53 12.53 0 0 1 2.14 1.84 2.76 2.76 0 0 1 .45.71c.09.21.17.44.24.66a12.73 12.73 0 0 1 .38 1.34c.21.9.37 1.8.52 2.68a38.28 38.28 0 0 0 1.15 5.2c.13.41.29.82.46 1.22a2.2 2.2 0 0 1 .2.84 1.33 1.33 0 0 1-.37 1 2.48 2.48 0 0 1-1.56.62 6 6 0 0 1-1.47-.08 8.62 8.62 0 0 1-2.69-.94 5.84 5.84 0 0 1-2.1-2 15.27 15.27 0 0 1-2-5.2l.19.31a9.76 9.76 0 0 0-2.57-1.41 12.13 12.13 0 0 1-3-1.25l.74-.19a14 14 0 0 1-2.58 2.75 8.41 8.41 0 0 0-2.18 2.84 8.13 8.13 0 0 1 1.78-3.21 14.17 14.17 0 0 0 2.08-2.85l.23-.52.5.33a5.89 5.89 0 0 0 1.27.66l1.46.5a10.54 10.54 0 0 1 2.83 1.55l.15.11v.2a14.16 14.16 0 0 0 1.83 4.84 4.89 4.89 0 0 0 1.75 1.69 7.75 7.75 0 0 0 2.38.83 5 5 0 0 0 1.22.06 1.54 1.54 0 0 0 .92-.31c.13-.13.14-.32 0-.72s-.35-.86-.49-1.3a36.1 36.1 0 0 1-1.18-5.34c-.15-.88-.31-1.76-.51-2.61a13 13 0 0 0-.35-1.26 3.72 3.72 0 0 0-.49-1 11.48 11.48 0 0 0-1.94-1.67c-.72-.52-1.46-1-2.22-1.48-1.5-1-3.1-1.75-4.62-2.68-.78-.44-1.57-.86-2.38-1.22a5.79 5.79 0 0 0-2.53-.78Z"})),Ku||(Ku=t.createElement("path",{fill:"#006531",d:"M167.62 84.35c22.06 1.45 35.92 5.68 36.5-3.92S197.69 6.63 141.9.54C89-5.24 83.2 37.33 82.73 45s7.68 8.3 7.68 8.3c.22-4 2.07-7.82 3.22-10.71 15.18-4.88 64.17 1.48 67.52 6.22s.8 13 1.47 16.45 9.68 6.8 9.68 6.8Z"})),Yu||(Yu=t.createElement("path",{fill:"#093f22",d:"M202.05 84.6c2.39-1.92-8.89-16.64-20.3-20.87l-6 7.31-.26 12.81c7.99 2.15 22.68 3.88 26.56.75Z"})),Ju||(Ju=t.createElement("path",{fill:"#b498c6",d:"M180.18 72.06c3.68 2.46 4 8.69 2.45 12.56s-10.89 10.8-13.28 11.15a26.88 26.88 0 0 1-5.15-.2L171 71.7s5.51-2.1 9.18.36Z"})),Qu||(Qu=t.createElement("path",{fill:"#191a1a",d:"M165.72 67.49s-13.58 37.88-20.45 41.87c1 1 7.06-1.52 9-3.51 3.55-2.44 16.85-34.8 16.85-34.8Z"})),Xu||(Xu=t.createElement("path",{fill:"#093f22",d:"M136.35 21.41c-1.17-2.11 21.15-11.14 32.7-11.14 2.66 0 10.64 6.2 11.52 9.74-15.29-.23-43.05 3.5-44.22 1.4Zm4.82 11.1c-.92-3 31.73-6.14 43.24-3.93 6.28 1.2 8.82 13.26 4.14 11.81-12.21-3.78-46.78-5.97-47.38-7.88ZM99.94 23c2.07-.89.29-4.14-1.48-10.93a19.93 19.93 0 0 0-7.35 7.62s6.76 4.16 8.83 3.31Zm-5.66 8.72c.18-1.29-5.85-5.57-6.48-4.62a17.56 17.56 0 0 0-2.94 8.78s9.23-2.88 9.42-4.16Z"})),em||(em=t.createElement("path",{fill:"#fcee21",d:"M95.9 65.56c4.07.42 7.79 1.24 12.23-1 0 0-4-8.79-8.72-8s-3.51 9-3.51 9Z"})),tm||(tm=t.createElement("path",{fill:"#f15a24",d:"M108.08 64.63c-5.34-9-13.34-9.9-12.12.92-.49.07-1.34-1.88-1.61-2.93-1.29-5.79 4.65-9.51 9.59-5.14 3.17 2.79 4.45 7.01 4.14 7.15Z"})),rm||(rm=t.createElement("path",{fill:"#f15a24",d:"M106.93 52c1.27.52 2.88 4 1.65 3.5A18.34 18.34 0 0 0 92 57.38c.7-5.91 13-6.22 14.93-5.38Z"})),am||(am=t.createElement("path",{fill:"#8b6c9c",d:"M121.12 71.07c.66 1.59 1.38 3.39-.41 4.53s-4.33-2-5.87-1.57-3.88 2.72-5.55 2.41c-3.52-.66-3.15-3.48-3.15-3.48s-1.61 5.55 4 5.62c3.81 0 4.23-2.58 7.44-2.27s3.46 2.53 4.89 1.61c2.88-1.82.31-6.69-1.35-6.85Z"})),sm||(sm=t.createElement("path",{fill:"#8b6c9c",d:"M106.73 75.68s-2.65.74-1.19 2.49c-3.18 0-3.08-4.59-1.32-6-.75 2.66 2.51 3.51 2.51 3.51Z"})),nm||(nm=t.createElement("ellipse",{cx:98.36,cy:62.94,fill:"#f15a24",rx:3.53,ry:3.42,transform:"rotate(-5.96 98.33 62.903)"})),om||(om=t.createElement("path",{fill:"#8b6c9c",d:"M138.73 83.69c-8.66 7.53-14.4 12.67-22.62 13-9.3.32-7.2-7.2-7.2-7.2s.85-2.54 5.63-2.77 20.66-2.78 24.19-3.03Z"})),im||(im=t.createElement("path",{fill:"#4b3f51",d:"M108.91 89.78c.34-.46 1.86-1.93 2.29-1 1.92 3.93 8.45 1.71 28.05-5.2-15 2.26-17.88.24-20.85.48s-3.62 1.67-4.72 1.45-3.43-1.68-4.73-1.1c-3.03 1.27-2.05 3.67-.04 5.37Z"})),lm||(lm=t.createElement("path",{fill:"#8b6c9c",d:"M132.64 76.68c1.08 1.47 9.51 5.88 9.51 5.88a60.71 60.71 0 0 1-2.89 6.3c.41 0 1.39-5-.85-6.64-1.72-1.22-4.64-2.58-5.77-5.54Z"})),cm||(cm=t.createElement("path",{fill:"#b498c6",d:"M65.82 248.62c-4.13-.44-11-7.38-15.72-6.64s-9.53 5.31-9.53 5.31-12.7-4.87-16.84-4-9.45 2.36-10.63 3.54-.59 5.91 2.22 5.76 6.05-1 9.3-.44 8.73 6.36 12.41 8c14.17 6.2 29.24.44 29.24.44s3.73-11.52-.45-11.97Z"})),dm||(dm=t.createElement("path",{fill:"#8b6c9c",d:"M64.15 248c-2.62.11-5-1.72-6.28-2.59-3.86-2.56-4.62-2.62-19.34 1.45-5.79-2.69-4.72-1.58-7.88-2.74a18.46 18.46 0 0 1 8.14 1.76c-.64 0 13-5.16 16.5-3.92s6.23 5.3 8.86 6.04Z"})),um||(um=t.createElement("path",{fill:"#093f22",d:"M90.49 53.46a87 87 0 0 1 3.14-10.86c19.79-3.78 64.81 2.3 67.52 6.22s1.23 13.54 1.18 16.09 8.72 6.72 8.72 6.72l4.57-.74s-8.51-2.28-8.66-6.71 1.56-16.78-3.22-18.69c-29.19-11.62-64.36-8.8-72.53-6.65-6.5 1.7-9.09 6.62-7.44 10.27s6.72 4.35 6.72 4.35Zm70 24.59 7.38 2.95-3.99 9.31-7.34-2.07 3.95-10.19z"})),mm||(mm=t.createElement("path",{fill:"#b498c6",d:"M153.33 236.52c-10.63-4-31.44 3.41-44.53 5.89-29.24 5.53-37.33 5.55-44.09 6-5 .33-3.44 8.5-2.43 12.17 34.11 6.21 41.2 8.42 72 8.92 22.36-5.62 29.72-28.99 19.05-32.98Z"})),pm||(pm=t.createElement("path",{fill:"#8b6c9c",d:"M131.58 242.4c.39-2 .09-3.41.48-5.52l2.21-.22a53.48 53.48 0 0 0-2.69 5.74Z"})),fm||(fm=t.createElement("path",{fill:"#fc3",d:"M148.89 45c2 6.65 5.32 17.43 2.44 27.4-2.29 1-10 3.61-12.33 3.39.66-5.76.44-23.11-3.77-32.64 2.31.14 8.22 1.03 13.66 1.85Z"})),ym||(ym=t.createElement("path",{fill:"#fcee21",d:"M145.22 62.31c-3.94 1.59-12.14 3.79-17.43 1.19 0 0-1.22-9.33 5.51-8.76s11.92 7.57 11.92 7.57Z"})),hm||(hm=t.createElement("path",{fill:"#f15a24",d:"M127.69 63.52c-1.85-4-.92-8.41 4.11-9.48 4.24-.75 11.08 1.85 13.5 8.21-.29.22-7.6-8.06-14-6.15-4.44 1.33-3.13 7.35-3.61 7.42Zm-4.81-17.78c-1.23.51.14 4 1.3 4.36s9.23-2.79 12.1-2.41 8.81 4.79 11.58 7c-.44-1.88-7.92-9.3-10.88-9.92s-12.87.45-14.1.97Z"})),gm||(gm=t.createElement("ellipse",{cx:131.8,cy:60.56,fill:"#f15a24",rx:3.76,ry:3.99,transform:"rotate(-5.96 131.772 60.6)"}))),Em=window.yoast.helpers;class wm extends Error{constructor(e,t,r,a,s){super(e),this.name="RequestError",this.url=t,this.method=r,this.statusCode=a,this.stackTrace=s}}const{stripTagsFromHtmlString:xm}=Em.strings,Sm=["a","p"];function _m({title:e,value:r}){return r?(0,t.createElement)("p",null,(0,t.createElement)("strong",null,e),(0,t.createElement)("br",null),r):null}function km({title:e,value:r}){return r?(0,t.createElement)("details",null,(0,t.createElement)("summary",null,e),(0,t.createElement)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4"},r)):null}function Cm({message:e,error:r,className:a}){return(0,t.createElement)(Fd,{type:"error",className:a},(0,t.createElement)("div",{dangerouslySetInnerHTML:{__html:xm(e,Sm)}}),(0,t.createElement)("details",null,(0,t.createElement)("summary",null,(0,Ht.__)("Error details","wordpress-seo")),(0,t.createElement)("div",{className:"yst-mt-2"},(0,t.createElement)(_m,{title:(0,Ht.__)("Request URL","wordpress-seo"),value:r.url}),(0,t.createElement)(_m,{title:(0,Ht.__)("Request method","wordpress-seo"),value:r.method}),(0,t.createElement)(_m,{title:(0,Ht.__)("Status code","wordpress-seo"),value:r.statusCode}),(0,t.createElement)(_m,{title:(0,Ht.__)("Error message","wordpress-seo"),value:r.message}),(0,t.createElement)(km,{title:(0,Ht.__)("Response","wordpress-seo"),value:r.parseString}),(0,t.createElement)(km,{title:(0,Ht.__)("Error stack trace","wordpress-seo"),value:r.stackTrace}))))}_m.propTypes={title:Gt().string.isRequired,value:Gt().any},_m.defaultProps={value:""},km.propTypes={title:Gt().string.isRequired,value:Gt().string},km.defaultProps={value:""},Cm.propTypes={message:Gt().string.isRequired,error:Gt().oneOfType([Gt().instanceOf(Error),Gt().instanceOf(wm)]).isRequired,className:Gt().string},Cm.defaultProps={className:""};class Nm extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const Pm="idle",Rm="in_progress",Om="errored",Tm="completed";class Lm extends l.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:Pm,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const r=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),a=await r.text();let s;try{s=JSON.parse(a)}catch(e){throw new Nm("Error parsing the response to JSON.",a)}if(!r.ok){const t=s.data?s.data.stackTrace:"";throw new wm(s.message,e,"POST",r.status,t)}return s}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(Rm)&&!1!==t;)try{await this.doPreIndexingAction(e);const r=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,r),(0,l.flushSync)((()=>{this.setState((e=>({processed:e.processed+r.objects.length,firstTime:!1})))})),t=r.next_url}catch(e){(0,l.flushSync)((()=>{this.setState({state:Om,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(Om)||this.isState(Pm)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:Rm},this.index)}completeIndexing(){this.setState({state:Tm})}stopIndexing(){this.setState((e=>({state:Pm,processed:0,amount:e.amount-e.processed})))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const r=function(e,t){const r=new URL(e);return r.searchParams.delete("start-indexation"),r.href}(window.location.href);e=document.title,t=r,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,t.createElement)(Fd,{type:"info",className:"yst-mt-6"},(0,Ht.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo"))}renderStartButton(){return(0,t.createElement)(c.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization"},(0,Ht.__)("Start SEO data optimization","wordpress-seo"))}renderStopButton(){return(0,t.createElement)(c.Button,{variant:"secondary",onClick:this.stopIndexing},(0,Ht.__)("Stop SEO data optimization","wordpress-seo"))}renderDisabledTool(){return(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,(0,t.createElement)(c.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization"},(0,Ht.__)("Start SEO data optimization","wordpress-seo"))),(0,t.createElement)(Fd,{type:"info",className:"yst-mt-6"},(0,Ht.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")))}renderProgressBar(){let e=0;return this.isState(Tm)&&(e=100),this.isState(Rm)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,t.createElement)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4"},(0,t.createElement)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}}))}renderCaption(){return(0,t.createElement)(Dd.Z,{id:"optimization-in-progress-text",height:this.isState(Rm)?"auto":0,easing:"linear",duration:300},(0,t.createElement)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4"},(0,Ht.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")))}renderErrorAlert(){return(0,t.createElement)(Cm,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,t.createElement)("div",{className:"yst-relative"},this.props.children,(0,t.createElement)(cl,{unmount:!1,show:this.isState(Om)||this.isState(Rm)||this.isState(Pm)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},this.renderProgressBar(),this.isState(Om)&&this.renderErrorAlert(),this.isState(Rm)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(Pm)&&this.state.firstTime&&this.renderFirstIndexationNotice()))}}Lm.propTypes={indexingActions:Gt().object,preIndexingActions:Gt().object,indexingStateCallback:Gt().func,children:Gt().node},Lm.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const Mm=Lm;function Im({indexingStateCallback:e,indexingState:r,isStepperFinished:a}){return(0,t.createElement)(Mm,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e},(0,t.createElement)(cl,{unmount:!1,show:["completed","already_done"].includes(r),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},(0,t.createElement)(Fd,{type:"success"},"already_done"!==r||a?(0,Ht.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Ht.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo"))))}function Am({indexingState:e,setIndexingState:r,showRunIndexationAlert:a,isStepperFinished:s}){return(0,t.createElement)("div",{className:"yst-@container"},(0,t.createElement)("div",{className:"yst-flex yst-flex-col @lg:yst-flex-row yst-gap-6 yst-mb-8"},(0,t.createElement)("p",{className:"yst-text-sm yst-whitespace-pre-line"},(0,Ht.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!\n\nNote: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo")),(0,t.createElement)(bm,{className:"yst-shrink-0 yst-h-28 yst-w-24"})),(0,t.createElement)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container"},(0,t.createElement)(Im,{indexingStateCallback:r,indexingState:e,isStepperFinished:s})),(0,t.createElement)(zd,{id:"indexation-alert",isVisible:"idle"===e&&a,expandDuration:400,type:"info"},(0,Ht.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")))}function Dm(e,r,a=""){return(0,l.createInterpolateElement)(e,{a:(0,t.createElement)("a",{id:a,href:r,target:"_blank",rel:"noopener noreferrer"})})}function Fm(e,r){let[a,s]=(0,t.useState)(e),n=ji(e);return Fi((()=>s(n.current)),[n,s,...r]),a}Im.propTypes={indexingStateCallback:Gt().func.isRequired,indexingState:Gt().string.isRequired,isStepperFinished:Gt().bool},Im.defaultProps={isStepperFinished:!1},Am.propTypes={indexingState:Gt().string.isRequired,setIndexingState:Gt().func.isRequired,showRunIndexationAlert:Gt().bool,isStepperFinished:Gt().bool},Am.defaultProps={showRunIndexationAlert:!1,isStepperFinished:!1};var zm=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(zm||{});function jm(e,t){let r=t.resolveItems();if(r.length<=0)return null;let a=t.resolveActiveIndex(),s=null!=a?a:-1,n=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,a)=>!(-1!==s&&a.length-r-1>=s||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=s||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===n?a:n}let Um=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Bm,$m=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($m||{}),qm=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qm||{}),Hm=((Bm=Hm||{})[Bm.Previous=-1]="Previous",Bm[Bm.Next=1]="Next",Bm),Vm=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Vm||{});function Gm(e,t=0){var r;return e!==(null==(r=Nl(e))?void 0:r.body)&&bi(t,{0:()=>e.matches(Um),1(){let t=e;for(;null!==t;){if(t.matches(Um))return!0;t=t.parentElement}return!1}})}function Wm(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let a=t(e),s=t(r);if(null===a||null===s)return 0;let n=a.compareDocumentPosition(s);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Zm(e,r,a){let s=ji(r);(0,t.useEffect)((()=>{function t(e){s.current(e)}return document.addEventListener(e,t,a),()=>document.removeEventListener(e,t,a)}),[e,a])}function Km(e,r,a=!0){let s=(0,t.useRef)(!1);function n(t,a){if(!s.current||t.defaultPrevented)return;let n=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=a(t);if(null!==o&&o.getRootNode().contains(o)){for(let e of n){if(null===e)continue;let r=e instanceof HTMLElement?e:e.current;if(null!=r&&r.contains(o)||t.composed&&t.composedPath().includes(r))return}return!Gm(o,Vm.Loose)&&-1!==o.tabIndex&&t.preventDefault(),r(t,o)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{s.current=a}))}),[a]);let o=(0,t.useRef)(null);Zm("mousedown",(e=>{var t,r;s.current&&(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),Zm("click",(e=>{!o.current||(n(e,(()=>o.current)),o.current=null)}),!0),Zm("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var Ym=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ym||{});let Jm=Ni((function(e,t){let{features:r=1,...a}=e;return _i({ourProps:{ref:t,"aria-hidden":2==(2&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})}));function Qm(e={},t=null,r=[]){for(let[a,s]of Object.entries(e))ep(r,Xm(t,a),s);return r}function Xm(e,t){return e?e+"["+t+"]":t}function ep(e,t,r){if(Array.isArray(r))for(let[a,s]of r.entries())ep(e,Xm(t,a.toString()),s);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):Qm(r,t,e)}function tp(e,r,a){let[s,n]=(0,t.useState)(a),o=void 0!==e,i=(0,t.useRef)(o),l=(0,t.useRef)(!1),c=(0,t.useRef)(!1);return!o||i.current||l.current?!o&&i.current&&!c.current&&(c.current=!0,i.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:s,Bi((e=>(o||n(e),null==r?void 0:r(e))))]}function rp(e){return[e.screenX,e.screenY]}function ap(){let e=(0,t.useRef)([-1,-1]);return{wasMoved(t){let r=rp(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=rp(t)}}}var sp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sp||{}),np=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(np||{}),op=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(op||{}),ip=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(ip||{});function lp(e,t=(e=>e)){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=Wm(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),s=r?a.indexOf(r):null;return-1===s&&(s=null),{options:a,activeOptionIndex:s}}let cp={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,a=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a=lp(e),s=jm(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeOptionIndex:s,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),s=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))})),n=s?e.options.indexOf(s):-1;return-1===n||n===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:n,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},a=lp(e,(e=>[...e,r]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(r)),{...e,...a}},6:(e,t)=>{let r=lp(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},dp=(0,t.createContext)(null);function up(e){let r=(0,t.useContext)(dp);if(null===r){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,up),t}return r}dp.displayName="ListboxActionsContext";let mp=(0,t.createContext)(null);function pp(e){let r=(0,t.useContext)(mp);if(null===r){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,pp),t}return r}function fp(e,t){return bi(t.type,cp,e,t)}mp.displayName="ListboxDataContext";let yp=t.Fragment,hp=Ni((function(e,r){let{value:a,defaultValue:s,name:n,onChange:o,by:i=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:d=!1,...u}=e;const m=c?"horizontal":"vertical";let p=Hi(r),[f=(d?[]:void 0),y]=tp(a,o,s),[h,g]=(0,t.useReducer)(fp,{dataRef:(0,t.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,t.useRef)({static:!1,hold:!1}),b=(0,t.useRef)(null),E=(0,t.useRef)(null),w=(0,t.useRef)(null),x=Bi("string"==typeof i?(e,t)=>{let r=i;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:i),S=(0,t.useCallback)((e=>bi(_.mode,{1:()=>f.some((t=>x(t,e))),0:()=>x(f,e)})),[f]),_=(0,t.useMemo)((()=>({...h,value:f,disabled:l,mode:d?1:0,orientation:m,compare:x,isSelected:S,optionsPropsRef:v,labelRef:b,buttonRef:E,optionsRef:w})),[f,l,d,h]);Fi((()=>{h.dataRef.current=_}),[_]),Km([_.buttonRef,_.optionsRef],((e,t)=>{var r;g({type:1}),Gm(t,Vm.Loose)||(e.preventDefault(),null==(r=_.buttonRef.current)||r.focus())}),0===_.listboxState);let k=(0,t.useMemo)((()=>({open:0===_.listboxState,disabled:l,value:f})),[_,l,f]),C=Bi((e=>{let t=_.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),N=Bi((()=>{if(null!==_.activeOptionIndex){let{dataRef:e,id:t}=_.options[_.activeOptionIndex];M(e.current.value),g({type:2,focus:zm.Specific,id:t})}})),P=Bi((()=>g({type:0}))),R=Bi((()=>g({type:1}))),O=Bi(((e,t,r)=>e===zm.Specific?g({type:2,focus:zm.Specific,id:t,trigger:r}):g({type:2,focus:e,trigger:r}))),T=Bi(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),L=Bi((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),M=Bi((e=>bi(_.mode,{0:()=>null==y?void 0:y(e),1(){let t=_.value.slice(),r=t.findIndex((t=>x(t,e)));return-1===r?t.push(e):t.splice(r,1),null==y?void 0:y(t)}}))),I=Bi((e=>g({type:3,value:e}))),A=Bi((()=>g({type:4}))),D=(0,t.useMemo)((()=>({onChange:M,registerOption:T,registerLabel:L,goToOption:O,closeListbox:R,openListbox:P,selectActiveOption:N,selectOption:C,search:I,clearSearch:A})),[]),F={ref:p},z=(0,t.useRef)(null),j=Zi();return(0,t.useEffect)((()=>{!z.current||void 0!==s&&j.addEventListener(z.current,"reset",(()=>{M(s)}))}),[z,M]),t.createElement(dp.Provider,{value:D},t.createElement(mp.Provider,{value:_},t.createElement(Mi,{value:bi(_.listboxState,{0:Ti.Open,1:Ti.Closed})},null!=n&&null!=f&&Qm({[n]:f}).map((([e,r],a)=>t.createElement(Jm,{features:Ym.Hidden,ref:0===a?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Pi({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:r})}))),_i({ourProps:F,theirProps:u,slot:k,defaultTag:yp,name:"Listbox"}))))})),gp=Ni((function(e,r){var a;let s=xl(),{id:n=`headlessui-listbox-button-${s}`,...o}=e,i=pp("Listbox.Button"),l=up("Listbox.Button"),c=Hi(i.buttonRef,r),d=Zi(),u=Bi((e=>{switch(e.key){case Sl.Space:case Sl.Enter:case Sl.ArrowDown:e.preventDefault(),l.openListbox(),d.nextFrame((()=>{i.value||l.goToOption(zm.First)}));break;case Sl.ArrowUp:e.preventDefault(),l.openListbox(),d.nextFrame((()=>{i.value||l.goToOption(zm.Last)}))}})),m=Bi((e=>{e.key===Sl.Space&&e.preventDefault()})),p=Bi((e=>{if(_l(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),d.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),f=Fm((()=>{if(i.labelId)return[i.labelId,n].join(" ")}),[i.labelId,n]),y=(0,t.useMemo)((()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value})),[i]);return _i({ourProps:{ref:c,id:n,type:Cl(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(a=i.optionsRef.current)?void 0:a.id,"aria-expanded":i.disabled?void 0:0===i.listboxState,"aria-labelledby":f,disabled:i.disabled,onKeyDown:u,onKeyUp:m,onClick:p},theirProps:o,slot:y,defaultTag:"button",name:"Listbox.Button"})})),vp=Ni((function(e,r){let a=xl(),{id:s=`headlessui-listbox-label-${a}`,...n}=e,o=pp("Listbox.Label"),i=up("Listbox.Label"),l=Hi(o.labelRef,r);Fi((()=>i.registerLabel(s)),[s]);let c=Bi((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),d=(0,t.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled})),[o]);return _i({ourProps:{ref:l,id:s,onClick:c},theirProps:n,slot:d,defaultTag:"label",name:"Listbox.Label"})})),bp=xi.RenderStrategy|xi.Static,Ep=Ni((function(e,r){var a;let s=xl(),{id:n=`headlessui-listbox-options-${s}`,...o}=e,i=pp("Listbox.Options"),l=up("Listbox.Options"),c=Hi(i.optionsRef,r),d=Zi(),u=Zi(),m=Li(),p=null!==m?m===Ti.Open:0===i.listboxState;(0,t.useEffect)((()=>{var e;let t=i.optionsRef.current;!t||0===i.listboxState&&t!==(null==(e=Nl(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[i.listboxState,i.optionsRef]);let f=Bi((e=>{switch(u.dispose(),e.key){case Sl.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case Sl.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),Vi().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case bi(i.orientation,{vertical:Sl.ArrowDown,horizontal:Sl.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(zm.Next);case bi(i.orientation,{vertical:Sl.ArrowUp,horizontal:Sl.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(zm.Previous);case Sl.Home:case Sl.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(zm.First);case Sl.End:case Sl.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(zm.Last);case Sl.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),d.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Sl.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),u.setTimeout((()=>l.clearSearch()),350))}})),y=Fm((()=>{var e,t,r;return null!=(r=null==(e=i.labelRef.current)?void 0:e.id)?r:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),h=(0,t.useMemo)((()=>({open:0===i.listboxState})),[i]);return _i({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(a=i.options[i.activeOptionIndex])?void 0:a.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":y,"aria-orientation":i.orientation,id:n,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:o,slot:h,defaultTag:"ul",features:bp,visible:p,name:"Listbox.Options"})})),wp=Ni((function(e,r){let a=xl(),{id:s=`headlessui-listbox-option-${a}`,disabled:n=!1,value:o,...i}=e,l=pp("Listbox.Option"),c=up("Listbox.Option"),d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===s,u=l.isSelected(o),m=(0,t.useRef)(null),p=ji({disabled:n,value:o,domRef:m,get textValue(){var e,t;return null==(t=null==(e=m.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),f=Hi(r,m);Fi((()=>{if(0!==l.listboxState||!d||0===l.activationTrigger)return;let e=Vi();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[m,d,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Fi((()=>c.registerOption(s,p)),[p,s]);let y=Bi((e=>{if(n)return e.preventDefault();c.onChange(o),0===l.mode&&(c.closeListbox(),Vi().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),h=Bi((()=>{if(n)return c.goToOption(zm.Nothing);c.goToOption(zm.Specific,s)})),g=ap(),v=Bi((e=>g.update(e))),b=Bi((e=>{!g.wasMoved(e)||n||d||c.goToOption(zm.Specific,s,0)})),E=Bi((e=>{!g.wasMoved(e)||n||!d||c.goToOption(zm.Nothing)})),w=(0,t.useMemo)((()=>({active:d,selected:u,disabled:n})),[d,u,n]);return _i({ourProps:{id:s,ref:f,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:y,onFocus:h,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:E,onMouseLeave:E},theirProps:i,slot:w,defaultTag:"li",name:"Listbox.Option"})})),xp=Object.assign(hp,{Button:gp,Label:vp,Options:Ep,Option:wp});const Sp=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}));function _p({id:e,value:r,choices:a,label:s,onChange:n,error:o,disabled:i}){const c=(0,l.useMemo)((()=>{const e=a.find((e=>r===e.value));return e?e.label:(0,Ht.__)("Select an option","wordpress-seo")}),[a,r]);return(0,t.createElement)(xp,{id:e,as:"div",value:r,onChange:n,disabled:i},(({open:n})=>(0,t.createElement)(l.Fragment,null,s&&(0,t.createElement)(xp.Label,{className:"yst-block yst-max-w-sm yst-mb-1 yst-text-sm yst-font-medium yst-text-slate-700"},s),(0,t.createElement)("div",{className:"yst-max-w-sm"},(0,t.createElement)("div",{className:"yst-relative"},(0,t.createElement)(xp.Button,{"data-id":`button-${e} `,className:ps()("yst-relative yst-h-[45px] yst-w-full yst-leading-6 yst-py-2 yst-ps-3 yst-pe-10 yst-text-start yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":o.isVisible,"yst-opacity-50":i},"emptyChoice"===r?"yst-text-slate-400":"yst-text-slate-700"),...vd(e,o)},(0,t.createElement)("span",{className:"yst-block yst-truncate"},c),(0,t.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-2 yst-pointer-events-none"},(0,t.createElement)(Sp,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})),o.isVisible&&(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8"},(0,t.createElement)(kd,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"}))),(0,t.createElement)(cl,{show:n,as:l.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},(0,t.createElement)(xp.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm"},a.map((e=>(0,t.createElement)(xp.Option,{key:e.id,as:l.Fragment,value:e.value},(({selected:r,active:a})=>(0,t.createElement)("li",{className:bd({selected:r,active:a})},(0,t.createElement)("span",{className:ps()(r?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate")},e.label),r?(0,t.createElement)("span",{className:ps()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4")},(0,t.createElement)($d,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})):null)))))))),o.isVisible&&(0,t.createElement)(Nd,{id:gd(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:o.message})))))}_p.propTypes={value:Vt.PropTypes.string.isRequired,choices:Vt.PropTypes.arrayOf(Vt.PropTypes.shape({id:Vt.PropTypes.oneOfType([Vt.PropTypes.number,Vt.PropTypes.string]).isRequired,value:Vt.PropTypes.string.isRequired,label:Vt.PropTypes.string.isRequired})).isRequired,label:Vt.PropTypes.string.isRequired,onChange:Vt.PropTypes.func.isRequired,id:Vt.PropTypes.string.isRequired,error:Vt.PropTypes.shape({message:Vt.PropTypes.string,isVisible:Vt.PropTypes.bool}),disabled:Vt.PropTypes.bool},_p.defaultProps={error:{message:"",isVisible:!1},disabled:!1};const kp=t.forwardRef((function(e,r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),Cp=({className:e})=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:ps()("yst-animate-spin",e)},(0,t.createElement)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.createElement)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}));Cp.propTypes={className:Gt().string},Cp.defaultProps={className:""};const Np=Cp;function Pp({id:e,imageAltText:r,url:a,fallbackUrl:s,label:n,onSelectImageClick:o,onRemoveImageClick:i,className:d,error:u,status:m}){const p=ps()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",u.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),f=(0,l.useCallback)((()=>"loading"===m?(0,t.createElement)("div",{className:"yst-text-center"},(0,t.createElement)(Np,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,t.createElement)("p",{className:"yst-mt-3"},(0,Ht.__)("Uploading image…","wordpress-seo"))):a?(0,t.createElement)("img",{src:a,alt:r,className:"yst-w-full yst-h-full yst-object-contain"}):s?(0,t.createElement)("img",{src:s,alt:r,className:"yst-w-full yst-h-full yst-object-contain"}):(0,t.createElement)(kp,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[m,e,a,r]);return(0,t.createElement)("div",{className:ps()("yst-max-w-sm",d),...vd(e,u)},(0,t.createElement)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700"},n),(0,t.createElement)("button",{id:e,className:p,onClick:o,type:"button","data-hiive-event-name":"clicked_select_image"},f()),(0,t.createElement)("div",null,(0,t.createElement)(c.Button,{id:a?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:o,"data-hiive-event-name":a?"clicked_replace_image":"clicked_select_image"},a?(0,Ht.__)("Replace image","wordpress-seo"):(0,Ht.__)("Select image","wordpress-seo")),a&&(0,t.createElement)(c.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image"},(0,Ht.__)("Remove image","wordpress-seo"))),"error"===m&&(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600"},u),u.isVisible&&(0,t.createElement)(Nd,{id:gd(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message}))}Pp.propTypes={label:Gt().string,id:Gt().string.isRequired,url:Gt().string,fallbackUrl:Gt().string,imageAltText:Gt().string,onRemoveImageClick:Gt().func,onSelectImageClick:Gt().func,className:Gt().string,error:Gt().shape({message:Gt().string,isVisible:Gt().bool}),status:Gt().string},Pp.defaultProps={label:"",url:"",fallbackUrl:"",imageAltText:"",onRemoveImageClick:d.noop,onSelectImageClick:d.noop,className:"",error:{message:"",isVisible:!1},status:"idle"},window.yoast.socialMetadataForms;const Rp=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function Op(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const r=t.state().get("selection").first();e(Rp(r.attributes))})),t})(e).open()}function Tp({dispatch:e,imageUrl:r,fallbackImageUrl:a,organizationName:s,fallbackOrganizationName:n,errorFields:o}){const i=(0,l.useCallback)((()=>{Op((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[Op]),c=(0,l.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})})),d=(0,l.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}));return(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Rd,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Ht.__)("Organization name","wordpress-seo"),value:""===s?n:s,onChange:d,feedback:{isVisible:o.includes("company_name"),message:[(0,Ht.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,t.createElement)(Pp,{className:"yst-mt-6",id:"organization-logo-input",url:r,fallbackUrl:a,onSelectImageClick:i,onRemoveImageClick:c,imageAltText:"",hasPreview:!0,label:(0,Ht.__)("Organization logo","wordpress-seo")}))}function Lp(e,r){let a=(0,t.useRef)([]),s=Bi(e);(0,t.useEffect)((()=>{let e=[...a.current];for(let[t,n]of r.entries())if(a.current[t]!==n){let t=s(r,e);return a.current=r,t}}),[s,...r])}Tp.propTypes={dispatch:Gt().func.isRequired,imageUrl:Gt().string,fallbackImageUrl:Gt().string,organizationName:Gt().string,fallbackOrganizationName:Gt().string,errorFields:Gt().array},Tp.defaultProps={imageUrl:"",fallbackImageUrl:"",organizationName:"",fallbackOrganizationName:"",errorFields:[]};var Mp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Mp||{}),Ip=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ip||{}),Ap=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ap||{}),Dp=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Dp||{});function Fp(e,t=(e=>e)){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=Wm(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),s=r?a.indexOf(r):null;return-1===s&&(s=null),{options:a,activeOptionIndex:s}}let zp={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,a=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let a=Fp(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let s=jm(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:s,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},a=Fp(e,(e=>[...e,r]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(r));let s={...e,...a,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},4:(e,t)=>{let r=Fp(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},jp=(0,t.createContext)(null);function Up(e){let r=(0,t.useContext)(jp);if(null===r){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Up),t}return r}jp.displayName="ComboboxActionsContext";let Bp=(0,t.createContext)(null);function $p(e){let r=(0,t.useContext)(Bp);if(null===r){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,$p),t}return r}function qp(e,t){return bi(t.type,zp,e,t)}Bp.displayName="ComboboxDataContext";let Hp=t.Fragment,Vp=Ni((function(e,r){let{value:a,defaultValue:s,onChange:n,name:o,by:i=((e,t)=>e===t),disabled:l=!1,__demoMode:c=!1,nullable:d=!1,multiple:u=!1,...m}=e,[p=(u?[]:void 0),f]=tp(a,n,s),[y,h]=(0,t.useReducer)(qp,{dataRef:(0,t.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,t.useRef)(!1),v=(0,t.useRef)({static:!1,hold:!1}),b=(0,t.useRef)(null),E=(0,t.useRef)(null),w=(0,t.useRef)(null),x=(0,t.useRef)(null),S=Bi("string"==typeof i?(e,t)=>{let r=i;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:i),_=(0,t.useCallback)((e=>bi(k.mode,{1:()=>p.some((t=>S(t,e))),0:()=>S(p,e)})),[p]),k=(0,t.useMemo)((()=>({...y,optionsPropsRef:v,labelRef:b,inputRef:E,buttonRef:w,optionsRef:x,value:p,defaultValue:s,disabled:l,mode:u?1:0,get activeOptionIndex(){if(g.current&&null===y.activeOptionIndex&&y.options.length>0){let e=y.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return y.activeOptionIndex},compare:S,isSelected:_,nullable:d,__demoMode:c})),[p,s,l,u,d,c,y]);Fi((()=>{y.dataRef.current=k}),[k]),Km([k.buttonRef,k.inputRef,k.optionsRef],(()=>A.closeCombobox()),0===k.comboboxState);let C=(0,t.useMemo)((()=>({open:0===k.comboboxState,disabled:l,activeIndex:k.activeOptionIndex,activeOption:null===k.activeOptionIndex?null:k.options[k.activeOptionIndex].dataRef.current.value,value:p})),[k,l,p]),N=Bi((e=>{let t=k.options.find((t=>t.id===e));!t||I(t.dataRef.current.value)})),P=Bi((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];I(e.current.value),A.goToOption(zm.Specific,t)}})),R=Bi((()=>{h({type:0}),g.current=!0})),O=Bi((()=>{h({type:1}),g.current=!1})),T=Bi(((e,t,r)=>(g.current=!1,e===zm.Specific?h({type:2,focus:zm.Specific,id:t,trigger:r}):h({type:2,focus:e,trigger:r})))),L=Bi(((e,t)=>(h({type:3,id:e,dataRef:t}),()=>h({type:4,id:e})))),M=Bi((e=>(h({type:5,id:e}),()=>h({type:5,id:null})))),I=Bi((e=>bi(k.mode,{0:()=>null==f?void 0:f(e),1(){let t=k.value.slice(),r=t.findIndex((t=>S(t,e)));return-1===r?t.push(e):t.splice(r,1),null==f?void 0:f(t)}}))),A=(0,t.useMemo)((()=>({onChange:I,registerOption:L,registerLabel:M,goToOption:T,closeCombobox:O,openCombobox:R,selectActiveOption:P,selectOption:N})),[]),D=null===r?{}:{ref:r},F=(0,t.useRef)(null),z=Zi();return(0,t.useEffect)((()=>{!F.current||void 0!==s&&z.addEventListener(F.current,"reset",(()=>{I(s)}))}),[F,I]),t.createElement(jp.Provider,{value:A},t.createElement(Bp.Provider,{value:k},t.createElement(Mi,{value:bi(k.comboboxState,{0:Ti.Open,1:Ti.Closed})},null!=o&&null!=p&&Qm({[o]:p}).map((([e,r],a)=>t.createElement(Jm,{features:Ym.Hidden,ref:0===a?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Pi({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:r})}))),_i({ourProps:D,theirProps:m,slot:C,defaultTag:Hp,name:"Combobox"}))))})),Gp=Ni((function(e,r){var a,s,n,o;let i=xl(),{id:l=`headlessui-combobox-input-${i}`,onChange:c,displayValue:d,type:u="text",...m}=e,p=$p("Combobox.Input"),f=Up("Combobox.Input"),y=Hi(p.inputRef,r),h=(0,t.useRef)(!1),g=Zi(),v=function(){var e;return"function"==typeof d&&void 0!==p.value?null!=(e=d(p.value))?e:"":"string"==typeof p.value?p.value:""}();Lp((([e,t],[r,a])=>{h.current||!p.inputRef.current||(0===a&&1===t||e!==r)&&(p.inputRef.current.value=e)}),[v,p.comboboxState]),Lp((([e],[t])=>{if(0===e&&1===t){let e=p.inputRef.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:a,selectionDirection:s}=e;e.value="",e.value=t,null!==s?e.setSelectionRange(r,a,s):e.setSelectionRange(r,a)}}),[p.comboboxState]);let b=(0,t.useRef)(!1),E=Bi((()=>{b.current=!0})),w=Bi((()=>{setTimeout((()=>{b.current=!1}))})),x=Bi((e=>{switch(h.current=!0,e.key){case Sl.Backspace:case Sl.Delete:if(0!==p.mode||!p.nullable)return;let t=e.currentTarget;g.requestAnimationFrame((()=>{""===t.value&&(f.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),f.goToOption(zm.Nothing))}));break;case Sl.Enter:if(h.current=!1,0!==p.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===p.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===p.mode&&f.closeCombobox();break;case Sl.ArrowDown:return h.current=!1,e.preventDefault(),e.stopPropagation(),bi(p.comboboxState,{0:()=>{f.goToOption(zm.Next)},1:()=>{f.openCombobox()}});case Sl.ArrowUp:return h.current=!1,e.preventDefault(),e.stopPropagation(),bi(p.comboboxState,{0:()=>{f.goToOption(zm.Previous)},1:()=>{f.openCombobox(),g.nextFrame((()=>{p.value||f.goToOption(zm.Last)}))}});case Sl.Home:if(e.shiftKey)break;return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(zm.First);case Sl.PageUp:return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(zm.First);case Sl.End:if(e.shiftKey)break;return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(zm.Last);case Sl.PageDown:return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(zm.Last);case Sl.Escape:return h.current=!1,0!==p.comboboxState?void 0:(e.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case Sl.Tab:if(h.current=!1,0!==p.comboboxState)return;0===p.mode&&f.selectActiveOption(),f.closeCombobox()}})),S=Bi((e=>{f.openCombobox(),null==c||c(e)})),_=Bi((()=>{h.current=!1})),k=Fm((()=>{if(p.labelId)return[p.labelId].join(" ")}),[p.labelId]),C=(0,t.useMemo)((()=>({open:0===p.comboboxState,disabled:p.disabled})),[p]);return _i({ourProps:{ref:y,id:l,role:"combobox",type:u,"aria-controls":null==(a=p.optionsRef.current)?void 0:a.id,"aria-expanded":p.disabled?void 0:0===p.comboboxState,"aria-activedescendant":null===p.activeOptionIndex||null==(s=p.options[p.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===p.mode||void 0,"aria-labelledby":k,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==p.defaultValue?null==d?void 0:d(p.defaultValue):null)?o:p.defaultValue,disabled:p.disabled,onCompositionStart:E,onCompositionEnd:w,onKeyDown:x,onChange:S,onBlur:_},theirProps:m,slot:C,defaultTag:"input",name:"Combobox.Input"})})),Wp=Ni((function(e,r){var a;let s=$p("Combobox.Button"),n=Up("Combobox.Button"),o=Hi(s.buttonRef,r),i=xl(),{id:l=`headlessui-combobox-button-${i}`,...c}=e,d=Zi(),u=Bi((e=>{switch(e.key){case Sl.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===s.comboboxState&&n.openCombobox(),d.nextFrame((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Sl.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===s.comboboxState&&(n.openCombobox(),d.nextFrame((()=>{s.value||n.goToOption(zm.Last)}))),d.nextFrame((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Sl.Escape:return 0!==s.comboboxState?void 0:(e.preventDefault(),s.optionsRef.current&&!s.optionsPropsRef.current.static&&e.stopPropagation(),n.closeCombobox(),d.nextFrame((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),m=Bi((e=>{if(_l(e.currentTarget))return e.preventDefault();0===s.comboboxState?n.closeCombobox():(e.preventDefault(),n.openCombobox()),d.nextFrame((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),p=Fm((()=>{if(s.labelId)return[s.labelId,l].join(" ")}),[s.labelId,l]),f=(0,t.useMemo)((()=>({open:0===s.comboboxState,disabled:s.disabled,value:s.value})),[s]);return _i({ourProps:{ref:o,id:l,type:Cl(e,s.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(a=s.optionsRef.current)?void 0:a.id,"aria-expanded":s.disabled?void 0:0===s.comboboxState,"aria-labelledby":p,disabled:s.disabled,onClick:m,onKeyDown:u},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Zp=Ni((function(e,r){let a=xl(),{id:s=`headlessui-combobox-label-${a}`,...n}=e,o=$p("Combobox.Label"),i=Up("Combobox.Label"),l=Hi(o.labelRef,r);Fi((()=>i.registerLabel(s)),[s]);let c=Bi((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})})),d=(0,t.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled})),[o]);return _i({ourProps:{ref:l,id:s,onClick:c},theirProps:n,slot:d,defaultTag:"label",name:"Combobox.Label"})})),Kp=xi.RenderStrategy|xi.Static,Yp=Ni((function(e,r){let a=xl(),{id:s=`headlessui-combobox-options-${a}`,hold:n=!1,...o}=e,i=$p("Combobox.Options"),l=Hi(i.optionsRef,r),c=Li(),d=null!==c?c===Ti.Open:0===i.comboboxState;Fi((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Fi((()=>{i.optionsPropsRef.current.hold=n}),[i.optionsPropsRef,n]),function({container:e,accept:r,walk:a,enabled:s=!0}){let n=(0,t.useRef)(r),o=(0,t.useRef)(a);(0,t.useEffect)((()=>{n.current=r,o.current=a}),[r,a]),Fi((()=>{if(!e||!s)return;let t=Nl(e);if(!t)return;let r=n.current,a=o.current,i=Object.assign((e=>r(e)),{acceptNode:r}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)a(l.currentNode)}),[e,s,n,o])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=Fm((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]);return _i({ourProps:{"aria-labelledby":u,role:"listbox",id:s,ref:l},theirProps:o,slot:(0,t.useMemo)((()=>({open:0===i.comboboxState})),[i]),defaultTag:"ul",features:Kp,visible:d,name:"Combobox.Options"})})),Jp=Ni((function(e,r){var a,s;let n=xl(),{id:o=`headlessui-combobox-option-${n}`,disabled:i=!1,value:l,...c}=e,d=$p("Combobox.Option"),u=Up("Combobox.Option"),m=null!==d.activeOptionIndex&&d.options[d.activeOptionIndex].id===o,p=d.isSelected(l),f=(0,t.useRef)(null),y=ji({disabled:i,value:l,domRef:f,textValue:null==(s=null==(a=f.current)?void 0:a.textContent)?void 0:s.toLowerCase()}),h=Hi(r,f),g=Bi((()=>u.selectOption(o)));Fi((()=>u.registerOption(o,y)),[y,o]);let v=(0,t.useRef)(!d.__demoMode);Fi((()=>{if(!d.__demoMode)return;let e=Vi();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),Fi((()=>{if(0!==d.comboboxState||!m||!v.current||0===d.activationTrigger)return;let e=Vi();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,m,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let b=Bi((e=>{if(i)return e.preventDefault();g(),0===d.mode&&u.closeCombobox()})),E=Bi((()=>{if(i)return u.goToOption(zm.Nothing);u.goToOption(zm.Specific,o)})),w=ap(),x=Bi((e=>w.update(e))),S=Bi((e=>{!w.wasMoved(e)||i||m||u.goToOption(zm.Specific,o,0)})),_=Bi((e=>{!w.wasMoved(e)||i||!m||d.optionsPropsRef.current.hold||u.goToOption(zm.Nothing)})),k=(0,t.useMemo)((()=>({active:m,selected:p,disabled:i})),[m,p,i]);return _i({ourProps:{id:o,ref:h,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:E,onPointerEnter:x,onMouseEnter:x,onPointerMove:S,onMouseMove:S,onPointerLeave:_,onMouseLeave:_},theirProps:c,slot:k,defaultTag:"li",name:"Combobox.Option"})})),Qp=Object.assign(Vp,{Input:Gp,Button:Wp,Label:Zp,Options:Yp,Option:Jp});function Xp(e){return e&&e.label?e.label:null}function ef({id:e,value:r,label:a,onChange:s,onQueryChange:n,options:o,placeholder:i,isLoading:c}){const[d,u]=(0,l.useState)(o),[m,p]=(0,l.useState)(""),f=(0,l.useCallback)((e=>{p(e.target.value)}),[p]),y=(0,l.useCallback)((()=>{p("")}),[p]);(0,l.useEffect)((()=>{u(o)}),[o]),(0,l.useEffect)((()=>{n?n(m):u(o.filter((e=>e.label.toLowerCase().includes(m.toLowerCase()))))}),[m,n]);const h=(0,l.useCallback)(((e,t)=>({selected:r,active:a})=>bd({selected:r||e===t,active:a})),[bd]),g=(0,l.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,t.createElement)(Qp,{id:e,as:"div",value:r,onChange:s,onBlur:y},(({open:s})=>(0,t.createElement)(l.Fragment,null,a&&(0,t.createElement)(Qp.Label,{className:"yst-block yst-mb-1 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-700"},a),(0,t.createElement)("div",{className:"yst-h-[45px] yst-max-w-sm yst-relative"},(0,t.createElement)(Qp.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-ps-3 yst-pe-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div"},(0,t.createElement)(Qp.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-2 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:f,displayValue:Xp,placeholder:i,onClick:g(s)}),(0,t.createElement)(Sp,{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-end-0","aria-hidden":"true"})),d.length>0&&(0,t.createElement)(Qp.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm"},c&&(0,t.createElement)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-ps-3 yst-pe-9 yst-my-0"},(0,t.createElement)(Np,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Ht.__)("Loading…","wordpress-seo")),d.map((e=>(0,t.createElement)(Qp.Option,{key:`yst-option-${e.value}`,value:e,className:h(e.value,r.value)},(({selected:a})=>(0,t.createElement)(l.Fragment,null,(0,t.createElement)("span",{className:ps()("yst-block yst-truncate",(a||r.value===e.value)&&"yst-font-semibold")},e.label),(a||r.value===e.value)&&(0,t.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4 yst-text-white"},(0,t.createElement)($d,{className:"yst-h-5 yst-w-5","aria-hidden":"true"}))))))))))))}ef.propTypes={onChange:Gt().func.isRequired,options:Gt().array.isRequired,id:Gt().string.isRequired,value:Gt().shape({value:Gt().number,label:Gt().string}),label:Gt().string,onQueryChange:Gt().func,placeholder:Gt().string,isLoading:Gt().bool},ef.defaultProps={value:null,label:"",onQueryChange:null,placeholder:(0,Ht.__)("Select an option","wordpress-seo"),isLoading:!1};const tf={"X-WP-NONCE":wpApiSettings.nonce},rf=wpApiSettings.root;function af({initialValue:e,onChangeCallback:r,placeholder:a}){const[s,n]=(0,l.useState)([]),[o,i]=(0,l.useState)({value:e.id,label:e.name}),[c,u]=(0,l.useState)(!1),m=(0,l.useRef)(!0);(0,l.useEffect)((()=>()=>{m.current=!1}),[]);const p=(0,l.useCallback)((e=>{i(e),r(e)})),f=(0,l.useCallback)((0,d.debounce)((async e=>{u(!0);const t=await function(e=""){const t=`${rf}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Em.sendRequest)(t,{method:"GET",headers:tf})}(e);m.current&&(u(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,t.createElement)(ef,{id:"yoast-configuration-user-select",value:o,label:(0,Ht.__)("Name","wordpress-seo"),onChange:p,onQueryChange:f,options:s,placeholder:a,isLoading:c})}function sf({dispatch:e,imageUrl:r,fallbackImageUrl:a,person:s,canEditUser:n}){const o=(0,l.useCallback)((()=>{Op((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[Op]),i=(0,l.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})})),c=(0,l.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),yi()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then((t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})})).catch((e=>{console.error(e.message)}))}),[e]),d=(0,Ht.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"),u=(0,Ht.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),m=(0,l.useMemo)((()=>(0,l.createInterpolateElement)((0,Ht.sprintf)(n?d:u,`<b>${s.name}</b>`,"<a>","</a>"),{b:(0,t.createElement)("b",null),a:(0,t.createElement)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",s.id),target:"_blank",rel:"noopener noreferrer"})})),[s.id,s.name,n]);return(0,t.createElement)(l.Fragment,null,(0,t.createElement)(af,{initialValue:s,onChangeCallback:c,name:"person_id",placeholder:(0,Ht.__)("Select a user","wordpress-seo")}),(0,t.createElement)(zd,{id:"user-representation-alert",isVisible:0!==s.id,type:"info",className:"yst-mt-5"},m),(0,t.createElement)(Pp,{className:"yst-mt-6",id:"person-logo-input",url:r,fallbackUrl:a,onSelectImageClick:o,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Ht.__)("Personal logo or avatar","wordpress-seo")}))}function nf({onOrganizationOrPersonChange:e,dispatch:r,state:a,siteRepresentationEmpty:s}){const[n,o]=(0,l.useState)("emptyChoice"===a.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,l.useCallback)((()=>{o("yst-opacity-100")})),c=(0,l.useCallback)((e=>{r({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})})),d=Dm((0,Ht.sprintf)(/* translators: %1$s expands to opening 'a' HTML tag, %2$s expands to closing 'a' HTML tag. */ (0,Ht.__)("Completing this step helps Google to understand your site even better. Bonus: You'll improve your chance of getting %1$srich results%2$s!","wordpress-seo"),"<a>","</a>"),"https://yoa.st/config-workout-rich-results","yoast-configuration-rich-text-link");return(0,t.createElement)(l.Fragment,null,window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,t.createElement)(Fd,{type:"info"},window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage),(0,t.createElement)("p",{className:ps()("yst-text-sm yst-whitespace-pre-line yst-mb-6",a.shouldForceCompany?"yst-mt-4":"yst-mt-0")},a.shouldForceCompany?d:(0,t.createElement)(l.Fragment,null,(0,Ht.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),d)),(0,t.createElement)(_p,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Ht.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:a.shouldForceCompany?"company":a.companyOrPerson,onChange:e,choices:a.companyOrPersonOptions,disabled:!!a.shouldForceCompany}),!("company"===a.companyOrPerson&&a.companyName&&a.companyLogo||"company"===a.companyOrPerson&&!a.companyLogoFallback||"person"===a.companyOrPerson&&a.personLogo||"person"===a.companyOrPerson&&!a.personLogoFallback)&&(0,t.createElement)(Fd,{type:"info",className:"yst-mt-6"},(0,Ht.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")),(0,t.createElement)(Rd,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Ht.__)("Website name","wordpress-seo"),value:a.websiteName||a.fallbackWebsiteName,onChange:c,feedback:{isVisible:a.errorFields.includes("website_name"),message:[(0,Ht.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,t.createElement)(Dd.Z,{height:["company","person"].includes(a.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i},(0,t.createElement)("div",{className:ps()("yst-transition-opacity yst-duration-300 yst-mt-6",n)},"company"===a.companyOrPerson&&(0,t.createElement)(Tp,{dispatch:r,imageUrl:a.companyLogo,fallbackImageUrl:a.companyLogoFallback,organizationName:a.companyName,fallbackOrganizationName:a.fallbackCompanyName,errorFields:a.errorFields}),"person"===a.companyOrPerson&&(0,t.createElement)(sf,{dispatch:r,imageUrl:a.personLogo,fallbackImageUrl:a.personLogoFallback,person:{id:a.personId,name:a.personName},canEditUser:!!a.canEditUser,errorFields:a.errorFields}))),(0,t.createElement)(zd,{id:"site-representation-empty-alert",isVisible:s,className:"yst-mt-6"},(0,Ht.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")))}af.propTypes={initialValue:Gt().shape({id:Gt().number,name:Gt().string}),onChangeCallback:Gt().func,placeholder:Gt().string},af.defaultProps={initialValue:{id:0,name:""},onChangeCallback:d.noop,placeholder:(0,Ht.__)("Select a user","wordpress-seo")},sf.propTypes={dispatch:Gt().func.isRequired,imageUrl:Gt().string,fallbackImageUrl:Gt().string,person:Gt().shape({id:Gt().number,name:Gt().string}),canEditUser:Gt().bool.isRequired},sf.defaultProps={imageUrl:"",fallbackImageUrl:"",person:{id:0,name:""}},nf.propTypes={onOrganizationOrPersonChange:Gt().func.isRequired,dispatch:Gt().func.isRequired,state:Gt().object.isRequired,siteRepresentationEmpty:Gt().bool.isRequired};const of=(0,Ht.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),lf=(0,Ht.__)("Please enter a valid email address.","wordpress-seo"),cf=(0,Ht.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function df({gdprLink:e}){const[r,a]=(0,l.useState)(""),[s,n]=(0,l.useState)("waiting"),[o,i]=(0,l.useState)(""),c=(0,l.useCallback)((async function(){if(!(0,ai.isEmail)(r))return n("error"),void i(lf);n("loading"),(await async function(e){return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:"free"})})).json()}(r)).error?(n("error"),i(of)):(n("success"),i(cf))}),[r]),d=(0,l.useCallback)((e=>{n("waiting"),a(e.target.value)}),[a]);return(0,t.createElement)(l.Fragment,null,(0,t.createElement)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal"},(0,Ht.__)("Get free weekly SEO tips!","wordpress-seo")),(0,t.createElement)("p",{className:"yst-my-2"},(0,Ht.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */ (0,Ht.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")),(0,t.createElement)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4"},(0,t.createElement)(Rd,{label:(0,Ht.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:r,onChange:d,className:"yst-grow",type:"email",placeholder:(0,Ht.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(s),type:s,message:[o]}}),(0,t.createElement)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[45px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:c,disabled:"loading"===s,"data-hiive-event-name":"clicked_signup | personal preferences"},(0,Ht.__)("Yes, give me your free tips!","wordpress-seo"))),(0,t.createElement)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4"},Dm((0,Ht.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing anchor tags. (0,Ht.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")))}df.propTypes={gdprLink:Gt().string},df.defaultProps={gdprLink:""};const uf={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},mf=({id:e,name:r,value:a,label:s,className:n,...o})=>(0,t.createElement)("div",{className:ps()("yst-radio",n)},(0,t.createElement)("input",{type:"radio",id:e,name:r,value:a,className:"yst-radio__input",...o}),s&&(0,t.createElement)(pf,{htmlFor:e,className:"yst-radio__label"},s));mf.propTypes={name:Gt().string.isRequired,id:Gt().string.isRequired,value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,label:Gt().string.isRequired,variant:Gt().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),className:Gt().string},mf.defaultProps={variant:"default",className:""};const pf=({children:e,as:r,className:a,...s})=>(0,t.createElement)(r,{className:ps()("yst-label",a),...s},e);pf.propTypes={children:Gt().node.isRequired,as:Gt().elementType,className:Gt().string},pf.defaultProps={as:"label",className:""};const ff=({children:e,id:r,name:a,value:s,label:n,options:o,onChange:i,variant:c,className:d,...u})=>{const m=(0,l.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,t.createElement)("fieldset",{className:ps()("yst-radio-group",uf.variant[c],d)},n&&(0,t.createElement)(pf,{as:"legend",className:"yst-radio-group__label"},n),e&&(0,t.createElement)("div",{className:"yst-radio-group__description"},e),(0,t.createElement)("div",{className:"yst-radio-group__options"},o.map(((e,n)=>{const o=`${r}-${n}`;return(0,t.createElement)(mf,{key:o,id:o,name:a,value:e.value,label:e.label,variant:c,checked:s===e.value,onChange:m,...u})}))))};ff.propTypes={children:Gt().node,id:Gt().string.isRequired,name:Gt().string.isRequired,value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,options:Gt().arrayOf(Gt().shape({value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,label:Gt().string.isRequired})).isRequired,onChange:Gt().func.isRequired,label:Gt().node,variant:Gt().oneOf(Object.keys(uf.variant)),className:Gt().string},ff.defaultProps={children:null,label:null,variant:"default",className:""};const yf=ff,hf=(0,Em.makeOutboundLink)();function gf({state:e,setTracking:r}){return(0,t.createElement)(l.Fragment,null,!e.isPremium&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)(df,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,t.createElement)("br",null)),(0,t.createElement)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal"},(0,Ht.__)("Are you open to help us improve our services?","wordpress-seo")),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,t.createElement)(Fd,{type:"warning",className:"yst-mt-2"},(0,Ht.__)("This feature has been disabled by the network admin.","wordpress-seo")),!e.isMainSite&&(0,t.createElement)(Fd,{type:"warning",className:"yst-mt-2"},(0,Ht.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")),(0,t.createElement)("p",{className:ps()("yst-text-normal yst-mt-2 yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50")},(0,Ht.sprintf)(/* translators: 1: Yoast SEO. */ (0,Ht.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")),(0,t.createElement)(yf,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:r,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Ht.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Ht.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)(hf,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking"},(0,Ht.__)("What data will be collected and why?","wordpress-seo")),(0,t.createElement)("p",{className:"yst-my-2"},(0,t.createElement)("i",null,(0,Ht.__)("Important: We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo")))))}var vf,bf,Ef,wf,xf,Sf,_f,kf,Cf,Nf,Pf,Rf,Of,Tf,Lf,Mf,If,Af,Df,Ff,zf,jf,Uf,Bf,$f,qf,Hf,Vf,Gf,Wf,Zf,Kf,Yf,Jf,Qf,Xf,ey,ty,ry,ay,sy,ny,oy,iy,ly,cy,dy,uy,my,py,fy;function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},yy.apply(this,arguments)}gf.propTypes={state:Gt().object.isRequired,setTracking:Gt().func.isRequired};const hy=e=>t.createElement("svg",yy({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"indexables_2_left_bubble_optm_svg__yst-shrink-0 indexables_2_left_bubble_optm_svg__yst-h-28",viewBox:"0 0 289.98 291.69"},e),vf||(vf=t.createElement("path",{fill:"#006531",d:"M178.09 168c6.2.88 11.73 57.74 10.9 64-1 7.61-20.47 21.56-35.83 16.83s-22.28-17.36-17.85-26.51 36.58-55.25 42.78-54.32z"})),bf||(bf=t.createElement("path",{fill:"#f0ecf0",d:"M256.47 217s6 6 13.08 13.82a131.19 131.19 0 1 0-181.07 40.45q3.55 2.25 7.23 4.27c.71-2.79 1.36-5 1.81-6.64 1.48-5.32 6.32-14.53 5.36-19.55s-4.13-7.68-3.54-20.08a114.5 114.5 0 0 1 3.54-25.72 14.88 14.88 0 0 0-7.09-1.77 113.17 113.17 0 0 1 10.95-12c6.87-21.57 17-42 23.64-51.22 6.22-8.64 29.37-10.27 52.71-6.72s47.75 28.12 40.37 63-28.46 44.21-30.79 49.23-5.57 18.8-3.65 23.67c1.29 3.28 6.19 9.05 11.85 17.05a130.91 130.91 0 0 0 48-28.94c-8.87-9.55-19.31-20.38-19.87-21.12 9.73-11.73 15.92-18.83 27.47-17.73z"})),Ef||(Ef=t.createElement("path",{fill:"#006531",d:"M150.14 131.06c-3.25-1.48-3.86-.12-7.4.48s-18.86-1.18-23.91.81c-9.9 3.91-14 11.82-16 20.27s.54 19.16 1.72 25.95-3.39 53.18-3.09 59.38 20.2 11.57 22.27.35 15.33-65.3 15.33-65.3 14.33-40.46 11.08-41.94z"})),wf||(wf=t.createElement("path",{fill:"#b498c6",d:"M49 177.58c26.5 32.94 70.46 51.81 71.35 58.6s-3.84 13.34-8.87 16.29-30.71-3.4-45.77-22.47c-15.55-19.67-28.56-37.13-28.56-37.13s5.68-8.18 11.85-15.29z"})),xf||(xf=t.createElement("path",{fill:"#006531",d:"M132.36 152.53c-4.21 2.95-21 27.42-26.52 32-4.18 3.48-14.36 15.36-15.25 23.63s6.39 19.91 16 25.4c5.24 3 23.88-5.3 25.65-13.27s4.32-70.72.12-67.76z"})),Sf||(Sf=t.createElement("path",{fill:"#006531",d:"M192.67 244.07c2.37-5 23.4-14.36 30.79-49.21s-17-59.44-40.37-63-46.49-1.86-52.71 6.74c-6.63 9.2-16.77 29.65-23.64 51.22 15.28-14.48 30.08-20.49 39.86-32.18-.3 1.55 8.49 23.45 11.81 28.36 4.15 6.13 14.16 17.89 20.38 31-10.34-1.92-21.49-1.6-31.9 2.41-2.66 6.3-2.07 16.93-.88 22.84-2.28 17.87-2.12 33.54.46 48.85 4.06.37 8.17.58 12.32.58a131.19 131.19 0 0 0 42.08-6.9c-5.66-8-10.56-13.77-11.85-17-1.92-4.91 1.29-18.69 3.65-23.71zM112.56 231c-.27-7.26-.22-8.8.78-20.95-2.89-1.6-6.55-4.57-10.46-6.48a114.5 114.5 0 0 0-3.54 25.72c-.59 12.4 2.59 15.06 3.54 20.08S99 263.58 97.52 268.9c-.45 1.6-1.1 3.85-1.81 6.64a127.06 127.06 0 0 0 13.85 6.58c-1.44-18.61-1.04-36.3 3-51.12z"})),_f||(_f=t.createElement("path",{fill:"#b498c6",d:"M269.55 230.83C262.43 223 256.47 217 256.47 217c-11.55-1.11-17.74 6-27.47 17.72.56.74 11 11.57 19.88 21.12a132.58 132.58 0 0 0 20.67-25.01z"})),kf||(kf=t.createElement("path",{fill:"#89bc3b",d:"M95.79 201.78a14.88 14.88 0 0 1 7.09 1.77c1.1-4.56 2.4-9.17 3.86-13.73a113.74 113.74 0 0 0-10.95 11.96z"})),Cf||(Cf=t.createElement("path",{fill:"#89bc3b",d:"M112.56 231c-4 14.84-4.44 32.53-3 51.14a130.52 130.52 0 0 0 36.91 9c-2.58-15.31-2.74-31-.46-48.85-1.19-5.91-1.78-16.54.88-22.84 10.41-4 21.56-4.33 31.9-2.41-6.22-13.12-16.23-24.88-20.38-31-3.32-4.91-12.11-26.81-11.81-28.36-9.78 11.69-24.58 17.7-39.86 32.18-1.46 4.56-2.76 9.17-3.86 13.73 3.91 1.91 7.57 4.88 10.46 6.48-1 12.11-1.05 13.65-.78 20.93z"})),Nf||(Nf=t.createElement("path",{fill:"#b498c6",d:"M35.85 151.6s2.66 3.18 4.43 5.55 4.66 16 8.68 20.43-7 12.22-7 12.22c-12-.92-23-13.34-21-28.7 0 0 3.25-4.73 3.84-6.5s-.18-5-.18-5a34.85 34.85 0 0 1-4.29-6.21c-1.21-2.65-.84-6.46.37-9.18s4.56-2.56 4.68-1.89c.31 1.74 2 8.86 1.86 8.6-.87-2.01 2.67 2.19 8.61 10.68z"})),Pf||(Pf=t.createElement("path",{fill:"#b498c6",d:"M32.13 155.37c-12 4.78-18.36 1.3-24.56 4.84s1.22 17.61 1.22 17.61 1.84 6.8 5.39 11.23 24.27 4.41 24.27 4.41l10.15-13.52z"})),Rf||(Rf=t.createElement("path",{fill:"#b498c6",d:"M28.47 184.32c-.59.89-5.5 6.45-8.45 7.45s-6.34-.66-6.34-.66c-3.64-1.42-4.81-3.6-3.07-6.2 0 0 10.29-.52 7.34.18s7.57-4.31 7.57-4.31c1.96.66 3.09 1.77 2.95 3.54z"})),Of||(Of=t.createElement("path",{fill:"#8b6c9c",d:"M25.52 180.78c7.47.85-3.24 16.33-11.84 10.33 5.39 1.3 7.32.21 10.71-3.07 2.5-2.49 3.06-2.79 2.42-5.24a2.59 2.59 0 0 0-1.29-2.02z"})),Tf||(Tf=t.createElement("path",{fill:"#b498c6",d:"M5.48 176.94c-2.11 2.55-1.17 5.19 4.13 8l8.39 1.15 8.57-5.31a8.67 8.67 0 0 0-.89-6.8l-10.34 3.25z"})),Lf||(Lf=t.createElement("path",{fill:"#8b6c9c",d:"M9.61 184.91c7.51.44 7.78 1.78 12.14-.95 5-3.14 5.69-4.17 3.88-10 4.06 5.07 1.3 7.9-3.35 10.83-3.09 1.94-6.79 2.92-12.67.12z"})),Mf||(Mf=t.createElement("path",{fill:"#b498c6",d:"M1.34 168.67c-3.06 1.58-.35 9.08 2.77 9l11.18-.41s9.12-2 10.34-3.25c1.81-1.8-.57-7.7-1.48-7.38l-10.93 3z"})),If||(If=t.createElement("path",{fill:"#8b6c9c",d:"M4.11 177.64c11.75.39 10.61 4.06 19.09-3.93 1.37-1.34-.15-7.07-1.05-7.11 1.23-.32 4.11 5.64 1.75 7.82-5.45 5.13-8.43 7.58-19.79 3.22z"})),Af||(Af=t.createElement("path",{fill:"#b498c6",d:"M4.59 159.81c-2.79.54-3.52 2-3.54 5.43s-.94 2.44 1.29 3.43 13.88.88 13.88.88l7.93-3c.73-2.37.66-4.59-1.18-6.5l-9.4-.89a69.28 69.28 0 0 0-8.98.65z"})),Df||(Df=t.createElement("path",{fill:"#8b6c9c",d:"M2.34 168.67c1.27.26 12.13.39 13.88.38-.45.09-.73.24 7.76-2.92-.91 1 .41-.43.05-2.9-.51-3.6-2.16-2.54-5.81-3.09-4.5-.9-9.43-1.88 4.8-.54.53.05 3 2.56 1.61 7.14-.11.36.83-.09-8.31 3.31-3.68.02-10.94.14-13.98-1.38z"})),Ff||(Ff=t.createElement("path",{fill:"#006531",d:"M197.4 137.56c4.72.88 31.31 19.79 39.83 35.92 3.33 6.31 6 21.38 8.9 27.58s13.59 18.31 14.48 19.79c-17.13 2.66-27.18 19.2-27.18 19.2-4-3.26-43.16-44.31-44-46.38-3.25-7.97 3.24-57 7.97-56.11z"})),zf||(zf=t.createElement("path",{fill:"#006531",d:"M195.4 110.09c-1.55 13 2 27.47 2 27.47s-44.31 21.26-50.8 20.08-3-24.33-3-24.33-.88-13.29 1.48-17.13 4.75-9.93 13-11.11 38.1-1.57 37.32 5.02z"})),jf||(jf=t.createElement("path",{fill:"#b498c6",d:"M147.3 154.39s11.48-21.63 15-24.29 18.72-8.83 22.56-10 3.84-5.31 5-8.56 1.48-29.79 1.48-29.79l-45.29 2 4.73 39.81c.36 12.52-4.85 19.83-3.48 30.83z"})),Uf||(Uf=t.createElement("path",{fill:"#89bc3b",d:"M195.45 138.74s27.35 19.2 39.05 36.26c2.65 3.85 4.84 20.79 7.2 25.81s10.05 15.07 10.05 15.07l5.31.29 3.55 4.73c-9.41 1.64-18.27 9.31-27.18 19.2l-6.49-5.62c5.46-7.09 11.49-13 18.9-15.94 0 0-7.68-12.11-9.75-16.54s-4.52-21.19-7.2-26.41c-9-17.6-39.06-34.73-39.06-34.73z"})),Bf||(Bf=t.createElement("path",{fill:"#093f22",d:"m192.38 197.7 21.02 21.79-2.66 5.31-15.36 5.61 11.88-10.33-14.88-22.38zm-71.73-50.53 1.55 13.29a79.66 79.66 0 0 1-7.31 11.54c-4.43 5.76-8.76 11.31-8.76 11.31L114 156l-.44 12z"})),$f||($f=t.createElement("path",{fill:"#8b6c9c",d:"M191.38 81.73s1.91 5.52-1.07 17.09c-2.07 8-25.57 30.6-35 28.17-6-1.54-6-11.85-7.27-16.31L145 83.8z"})),qf||(qf=t.createElement("path",{fill:"#b498c6",d:"M172.22 6.3c-20-2.46-38.74 14.76-40.58 16.91-1.16 1.35-4.27 8.05-6.64 14.45 13.42-5 36.89-.82 67.51 9.88 1 6.7.06 12.11-.92 19.63 0 0-8.61 4.69-16 4.69s-16.29-2.46-18.45-5.23-8-9.63-13.77-10-11.37 5.87-13.89 6.59c-1.75.5-8 3-10.15 5.15v-.08a15.41 15.41 0 0 0-1.18 6.5c.8 8.65 6.53 18.51 8.69 21.59s2.72 9.45 6.41 14.07c3.13 3.91 15.33 3.46 20 2.1 7-2 29.38-9.37 32.77-14S198.23 70 198.23 70s12.4-8.23 13-14.69c2.12-22.13-11.91-45.67-39.01-49.01z"})),Hf||(Hf=t.createElement("path",{fill:"#006531",d:"M192.2 87.46c21.23 1.16 34.39 0 35.92-9.22s1.16-64.85-52.19-76.38c-50.56-10.93-60.49 29.65-61.72 37s7.59 8.91 7.59 8.91c-.61-3.09 1.55-2.73 3.19-10.14 15.18-3.18 61.91 7.92 64.68 12.84s-.54 12.68-.24 16.06 7.69 6.47 7.69 6.47z"})),Vf||(Vf=t.createElement("path",{fill:"#093f22",d:"M225.1 81.93c1.13-4.56-4.46-9.51-15.07-14.76l-5.22 5.23-4.92 15.37c12.11.23 23.63.05 25.21-5.84z"})),Gf||(Gf=t.createElement("path",{fill:"#b498c6",d:"M207 73.61c3.69 3.07 3.93 10.55 1.78 14.54s-14.78 8.49-17.21 7.57-4.92-3.88-4.92-3.88l10.45-18.62a12.33 12.33 0 0 1 4.49.11c.31 0 2.8-1 3.11-.91a6.32 6.32 0 0 1 2.3 1.19z"})),Wf||(Wf=t.createElement("path",{fill:"#191a1a",d:"M192.2 69s-19.69 37.82-22.44 39c.82.16 5.58-1.59 7.38-2.46s20-32.59 20-32.59z"})),Zf||(Zf=t.createElement("path",{fill:"#093f22",d:"m186.03 79.26 5.37 4.21-4.21 7.53-5.93-3.32 4.77-8.42z"})),Kf||(Kf=t.createElement("path",{fill:"#fcee21",d:"M122.11 47.5a54.43 54.43 0 0 1 2.89-9.84c-4.93 9.91-10.22 24.17-5.7 30.66a35.07 35.07 0 0 1 5.58-8.22s-3.7-6.1-2.77-12.6z"})),Yf||(Yf=t.createElement("path",{fill:"#fbb03b",d:"M129.49 65.25c2.72-.78 8.83-7.61 14.37-6.38s11.14 8 13.29 10.76 11.07 5.23 18.45 5.23 16-7.69 16-7.69c1-7.52 1.93-12.93.92-19.63-30.62-10.7-54.09-14.89-67.52-9.88a54.43 54.43 0 0 0-2.89 9.84c-.93 6.45 2.76 12.6 2.76 12.6a35.07 35.07 0 0 0-5.58 8.22v.08c2.2-2.15 6.93-2.21 10.2-3.15z"})),Jf||(Jf=t.createElement("path",{fill:"#4b3f51",d:"M164.1 84.58s-10-6.68-19.87-7.87c-1.84-.22-2.48.64-3.69.59-1.78-.07-2.9-.67-4.28-.74-4.79-.22-5.77 2.37-5.77 2.37a4.35 4.35 0 0 0 1.93 4.43c1.77 1 2.51-1.11 3.32 1.77 17.72-1.66 22.26-.59 28.36-.55z"})),Qf||(Qf=t.createElement("path",{fill:"#8b6c9c",d:"M135.67 85c0 2.77-5.87 11.68 5.81 12.3 12.65.7 19.82-9.23 22.52-12.67-9.76-.11-19.34-2.38-28.33.37z"})),Xf||(Xf=t.createElement("path",{fill:"#f2f2f2",d:"M136.67 81.48c-.95 1.52-.25 7.58 4.61 8.3 7.75 1 16.17-1.77 22-5.22-9.55-1.06-11.88-2.62-16.38-3.49-2.54-.48-9.09-1.42-10.23.41z"})),ey||(ey=t.createElement("path",{fill:"#fcee21",d:"M124.87 60.1a20.07 20.07 0 0 0 12-.61s-2.15-7.92-6.76-7.61-5.24 8.22-5.24 8.22z"})),ty||(ty=t.createElement("path",{fill:"#f15a24",d:"M136.81 59.5c-3.13-10.48-10.72-10.06-11.88.6-1.93-.14-1.38-9.34 4.35-9.94 6.86-.67 8.23 9.15 7.53 9.34zm1.59-18.77c1.26.46.58 3.28-.69 3.38s-7.64-.52-9.45.31-5.08 4.17-6.25 6.08c.21-1.54 3.68-7.57 5-8.85s10.14-1.38 11.39-.92z"})),ry||(ry=t.createElement("path",{fill:"#8b6c9c",stroke:"#8b6c9c",strokeMiterlimit:10,d:"M150.7 66.25c.48 1.6 1 3.41-.85 4.33s-4-2.41-5.53-2.1-4 2.24-5.61 1.77c-3.34-1-3.69-2.69-3.69-2.69s-1.12 4.2 4.3 4.84c3.68.43 5.35-2.06 8.42-1.45s2.09 2.8 3.57 2.06c2.97-1.47.98-6.44-.61-6.76z"})),ay||(ay=t.createElement("path",{fill:"#8b6c9c",d:"M154.79 69.68c2.27 1.94 3.94 10 11.63 10.35 1.28 2-.13 5.41-1.89 9.58a20.53 20.53 0 0 0 7.07-12.91c-11.05.3-13.26-5.8-16.81-7.02zm-18.22.44s-2.47-.4-2.47.87a.37.37 0 0 1-.16.3.38.38 0 0 1-.34.06c-2.4-.79-1.79-4.72-.07-5.86-1.72 4.02 3.04 4.63 3.04 4.63z"})),sy||(sy=t.createElement("path",{fill:"#8b6c9c",d:"M132.48 68.63c-2 2.71-2.16 7-2 10.24 0 0-1-1.86-2-1.79s-.71 5.3.79 9a31 31 0 0 1-6-15.73c2.67 1.07 6 .5 9.27-3.38z"})),ny||(ny=t.createElement("ellipse",{cx:139.18,cy:184.17,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.75,ry:5.25,transform:"rotate(-9.22 139.183 184.166)"})),oy||(oy=t.createElement("path",{fill:"#f19018",d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),iy||(iy=t.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),ly||(ly=t.createElement("path",{fill:"#f15a24",d:"M136 56.78c1 1.52-.76 3.87-2.65 3.87s-3.66-1.26-3.66-3.1a3.38 3.38 0 0 1 3.43-3.32c1.88 0 1.51.55 2.88 2.55z"})),cy||(cy=t.createElement("path",{fill:"#8b6c9c",d:"M25 161.28c-.08 6.93 1.26 20.08 15.09 24.42 0 0-8.67 1.28-11.66-1.38s-6.92-16.88-3.43-23.04z"})),dy||(dy=t.createElement("path",{fill:"#093f22",d:"m120.68 47.53 4.32-9.87c19.53-1.66 62.46 8.77 64.68 12.84s.07 13.6-.24 16.06 7.68 6.44 7.68 6.44l4.61.31s-8.3-3.07-8-7.38 3.2-16.07-1.23-18.4c-27.06-14.19-61.36-15-69.48-13.76-6.46 1-8.44 6.4-7.22 10.09.85 2.58 4.88 3.67 4.88 3.67zm47.77-26.05c-.92-2.15 18.91-8.27 30.13-7.68 6.17.32 13.26 10.33 5.91 9.45-14.77-1.77-35.11.38-36.04-1.77zM172 32.7c-.59-3 28.35-3 39.26.35 6 1.8 2.55 12.33-1.84 10.45C198 38.61 172.38 34.61 172 32.7zm-38.21-14.1L131 9.07l-6.15 6.15s8.02 4.61 8.94 3.38zm-7.07 8.61C127 26 120.57 21.06 120 22s-2.77 8.3-2.77 8.3 9.18-1.86 9.49-3.09z"})),uy||(uy=t.createElement("path",{fill:"#fc3",d:"M181.6 46.59c-.06 10.33-1.83 19.86-6 28.27A30.57 30.57 0 0 1 163.36 73c3.15-11.43 5.89-22.37 5.61-29.76a90 90 0 0 1 12.63 3.35z"})),my||(my=t.createElement("path",{fill:"#fcee21",d:"M172.83 62.87c-5.55.17-12.05 1.5-16.91-1.54 0 0 .7-8.22 7.15-7s9.76 8.54 9.76 8.54z"})),py||(py=t.createElement("path",{fill:"#f15a24",d:"M155 42.88c-1.24.38-.16 2.92.92 3.39s8.91 1.14 11.65 1.79 6.2 4.36 8.64 6.81c-.22-1.86-4.87-8.63-7.68-9.53s-12.29-2.83-13.53-2.46zm13.31 16.56a3.78 3.78 0 1 1-3.44-4.09 5 5 0 0 1 .56.09 4.28 4.28 0 0 1 2.88 4z"})),fy||(fy=t.createElement("path",{fill:"#f15a24",d:"M155.82 61.32c-2.89-12.19 15.29-11.67 17.1 1.51-.51.23-2.75-6.29-8.94-8.06-7.49-2.22-7.59 6.6-8.16 6.55z"})));function gy(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function vy(){const e=(0,d.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config");return(0,t.createElement)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst--mt-4"},(0,t.createElement)("div",{className:"yst-me-6"},(0,t.createElement)("p",{className:"yst-text-sm yst-mb-4"},(0,Ht.sprintf)(/* translators: 1: Yoast. */ (0,Ht.__)("Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.","wordpress-seo"),"Yoast")),(0,t.createElement)("p",{className:"yst-text-sm yst-mb-6"},(0,Ht.__)("If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!","wordpress-seo")),(0,t.createElement)(c.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:e,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page"},(0,Ht.sprintf)(/* translators: 1: Yoast SEO. */ (0,Ht.__)("Learn how to increase your rankings with %1$s","wordpress-seo"),"Yoast SEO"),(0,t.createElement)(or,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})),(0,t.createElement)("p",{className:"yst-mt-4"},(0,t.createElement)(c.Link,{id:"link-webinar-register",href:"#",onClick:gy,"data-hiive-event-name":"clicked_seo_dashboard"},(0,Ht.__)("Or go to your SEO dashboard","wordpress-seo")))),(0,t.createElement)(hy,{className:"yst-shrink-0 yst-h-28 yst-mb-24"}))}function by(e,t){const{companyName:r,companyLogo:a,companyOrPersonOptions:s,shouldForceCompany:n,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||r||a||t(fu.siteRepresentation))&&!n||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:s,errorFields:[],stepErrors:{},editedSteps:[],companyName:r||o,websiteName:i||l}}function Ey(){const{removeAlert:e,dismissNotice:r,restoreNotice:a}=(0,n.useDispatch)(hl),[s,o]=(0,l.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),i=(0,l.useCallback)((e=>s.includes(e)),[s]),c=(0,l.useCallback)((e=>{o((t=>(0,d.uniq)([...t,e])))}),[o]);(0,l.useEffect)((()=>{!async function(e){const t=await yi()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(s),window.wpseoFirstTimeConfigurationData.finishedSteps=s}),[s]);const[u,m]=(0,l.useReducer)(wd,{...by(window.wpseoFirstTimeConfigurationData,i)}),[p,f]=(0,l.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[y,h]=(0,l.useState)(!1),[g,v]=(0,l.useState)(!1),b=(0,l.useCallback)(((e,t)=>{m({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),E=(0,l.useCallback)((e=>{m({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,l.useEffect)((()=>{"completed"===p&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")}),[p,e]);const w=i(fu.optimizeSeoData),x=i(fu.siteRepresentation),S=i(fu.socialProfiles),_=i(fu.personalPreferences),k=(0,l.useCallback)((e=>{m({type:"SET_TRACKING",payload:parseInt(e,10)})})),C=(0,l.useCallback)((e=>{m({type:"SET_ERROR_FIELDS",payload:e})})),N=(0,l.useCallback)((()=>{""!==u.companyLogo&&0!==u.companyLogoId&&""!==u.companyName?r("yoast-local-missing-organization-info-notice"):a("yoast-local-missing-organization-info-notice")}),[r,a,u.companyLogo,u.companyLogoId,u.companyName]),P=(0,l.useCallback)((()=>{r("yoast-first-time-configuration-notice")}),[r]),R=!("company"!==u.companyOrPerson||u.companyName&&(u.companyLogo||u.companyLogoFallback)&&u.websiteName),O=!("person"!==u.companyOrPerson||u.personId&&(u.personLogo||u.personLogoFallback)&&u.websiteName),T=(0,l.useCallback)((e=>m({type:"SET_COMPANY_OR_PERSON",payload:e})),[m]),L=[w,x,S,_].every(Boolean),M=[i(fu.optimizeSeoData),i(fu.siteRepresentation),i(fu.socialProfiles),i(fu.personalPreferences),L],[I,A]=(0,l.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex((e=>!1===e));return-1!==t?t:e.every(Boolean)?e.length-1:0}(M)),[D,F]=(0,l.useState)(L),[z,j]=(0,l.useState)(!1),[U,B]=(0,l.useState)(D&&!z);function $(){return B(!1),j(!0),!0}(0,l.useEffect)((()=>{L&&F(!0)}),[L]),(0,l.useEffect)((()=>{B(D&&!z)}),[D,z]),(0,l.useEffect)((()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),[]),(0,l.useEffect)((()=>{u.editedSteps.includes(I+1)||"in_progress"===p?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[u.editedSteps,p,I]);const q=(0,l.useCallback)((e=>{(u.editedSteps.includes(I+1)||"in_progress"===p)&&(-1===location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&-1===location.href.indexOf("page=wpseo_dashboard#/first-time-configuration")||(e.preventDefault(),e.returnValue=""))}),[u.editedSteps,p,I]);return(0,l.useEffect)((()=>(window.addEventListener("beforeunload",q),()=>{window.removeEventListener("beforeunload",q)})),[q]),(0,t.createElement)(pu,{setActiveStepIndex:A,activeStepIndex:I,isStepperFinished:L},(0,t.createElement)(du,null,(0,t.createElement)(du.Header,{name:(0,Ht.__)("SEO data optimization","wordpress-seo"),isFinished:w},(0,t.createElement)(gu,{stepId:fu.optimizeSeoData,beforeGo:$,isVisible:U,additionalClasses:"yst-ms-auto"},(0,Ht.__)("Edit","wordpress-seo"))),(0,t.createElement)(du.Content,null,(0,t.createElement)(Am,{setIndexingState:f,indexingState:p,showRunIndexationAlert:g,isStepperFinished:L}),(0,t.createElement)(hu,{stepId:fu.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return g||"idle"!==p||"1"===window.yoastIndexingData.disabled?(j(!1),c(fu.optimizeSeoData),!0):(v(!0),!1)},destination:D?"last":1},(0,Ht.__)("Continue","wordpress-seo")))),(0,t.createElement)(du,null,(0,t.createElement)(du.Header,{name:(0,Ht.__)("Site representation","wordpress-seo"),isFinished:x},(0,t.createElement)(gu,{stepId:fu.siteRepresentation,beforeGo:$,isVisible:U,additionalClasses:"yst-ms-auto"},(0,Ht.__)("Edit","wordpress-seo"))),(0,t.createElement)(du.Content,null,(0,t.createElement)(nf,{onOrganizationOrPersonChange:T,dispatch:m,state:u,siteRepresentationEmpty:y}),(0,t.createElement)(du.Error,{id:"yoast-site-representation-step-error",message:u.stepErrors[fu.siteRepresentation]||""}),(0,t.createElement)(Eu,{stepId:fu.siteRepresentation,stepperFinishedOnce:D,saveFunction:function(){return!y&&R||!y&&O?(h(!0),!1):y||"emptyChoice"!==u.companyOrPerson?(h("emptyChoice"===u.companyOrPerson||R||O),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},r=await yi()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await r.json}(u).then((()=>(C([]),E(fu.siteRepresentation),c(fu.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...u},N(),!0))).catch((e=>e.failures?(C(e.failures),!1):(e.message&&b(fu.siteRepresentation,e.message),!1)))):(h(!0),!1)},setEditState:j}))),(0,t.createElement)(du,null,(0,t.createElement)(du.Header,{name:(0,Ht.__)("Social profiles","wordpress-seo"),isFinished:S},(0,t.createElement)(gu,{stepId:fu.socialProfiles,beforeGo:$,isVisible:U,additionalClasses:"yst-ms-auto"},(0,Ht.__)("Edit","wordpress-seo"))),(0,t.createElement)(du.Content,null,(0,t.createElement)(jd,{state:u,dispatch:m,setErrorFields:C}),(0,t.createElement)(du.Error,{id:"yoast-social-profiles-step-error",message:u.stepErrors[fu.socialProfiles]||""}),(0,t.createElement)(Eu,{stepId:fu.socialProfiles,stepperFinishedOnce:D,saveFunction:function(){return"person"===u.companyOrPerson?(c(fu.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},r=await yi()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await r.json}(u).then((e=>!1===e.success?(C(e.failures),Promise.reject("There were errors saving social profiles")):e)).then((()=>{C([]),E(fu.socialProfiles),c(fu.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=u.socialProfiles,!0))).catch((e=>(e.failures&&C(e.failures),e.message&&b(fu.socialProfiles,e.message),!1)))},setEditState:j}))),(0,t.createElement)(du,null,(0,t.createElement)(du.Header,{name:(0,Ht.__)("Personal preferences","wordpress-seo"),isFinished:_},(0,t.createElement)(gu,{stepId:fu.personalPreferences,beforeGo:$,isVisible:U,additionalClasses:"yst-ms-auto"},(0,Ht.__)("Edit","wordpress-seo"))),(0,t.createElement)(du.Content,null,(0,t.createElement)(gf,{state:u,setTracking:k}),(0,t.createElement)(du.Error,{id:"yoast-personal-preferences-step-error",message:u.stepErrors[fu.personalPreferences]||""}),(0,t.createElement)(Eu,{stepId:fu.personalPreferences,stepperFinishedOnce:D,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},r=await yi()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await r.json}(u).then((()=>c(fu.personalPreferences))).then((()=>(E(fu.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=u.tracking,P(),!0))).catch((e=>(e.message&&b(fu.personalPreferences,e.message),!1)))},setEditState:j}))),(0,t.createElement)(du,null,(0,t.createElement)(du.Header,{name:(0,Ht.__)("Finish configuration","wordpress-seo"),isFinished:L}),(0,t.createElement)(du.Content,null,(0,t.createElement)(vy,null))))}const wy=()=>{const e=function(e){let{router:r,basename:a}=ft(mt.UseBlocker),s=yt(pt.UseBlocker),[n,o]=t.useState(""),i=t.useCallback((t=>{if("/"===a)return e(t);let{currentLocation:r,nextLocation:s,historyAction:n}=t;return e({currentLocation:Ze({},r,{pathname:U(r.pathname,a)||r.pathname}),nextLocation:Ze({},s,{pathname:U(s.pathname,a)||s.pathname}),historyAction:n})}),[a,e]);return t.useEffect((()=>{let e=String(++vt);return o(e),()=>r.deleteBlocker(e)}),[r]),t.useEffect((()=>{""!==n&&r.getBlocker(n,i)}),[r,n,i]),n&&s.blockers.has(n)?s.blockers.get(n):ne}((({currentLocation:e,nextLocation:t})=>(0,d.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname));return(0,t.createElement)(c.Paper,null,(0,t.createElement)(yc,{title:(0,Ht.__)("First-time configuration","wordpress-seo"),description:(0,Ht.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo")},(0,t.createElement)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]"},(0,t.createElement)(Ey,null))),(0,t.createElement)(Rr,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Ht.__)("Unsaved changes","wordpress-seo"),description:(0,Ht.__)("There are unsaved changes in one or more steps of the first-time configuration. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"),onDiscard:e.proceed,dismissLabel:(0,Ht.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Ht.__)("Yes, leave page","wordpress-seo")}))},xy=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(c.Paper,{className:"yst-p-8 yst-grow"},(0,t.createElement)("header",{className:"yst-max-w-screen-sm"},(0,t.createElement)(c.Title,null,(0,Ht.__)("Alert center","wordpress-seo")),(0,t.createElement)("p",{className:"yst-text-tiny yst-mt-3"},(0,Ht.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")))),(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start"},(0,t.createElement)(Zl,null),(0,t.createElement)(Wl,null))),Sy="/alert-center",_y="/first-time-configuration",ky=({idSuffix:e=""})=>{const r=(0,c.useSvgAria)(),a=Yl("selectPreference",[],"isPremium");return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6"},(0,t.createElement)(Bt,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(a?" Premium":"")},(0,t.createElement)($r,{className:"yst-w-40",...r}))),(0,t.createElement)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4"},(0,t.createElement)(sr,{to:"/",label:(0,t.createElement)(t.Fragment,null,(0,t.createElement)(dl,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Ht.__)("Dashboard","wordpress-seo")),idSuffix:e,className:"yst-gap-3"}),(0,t.createElement)(sr,{to:Sy,label:(0,t.createElement)(t.Fragment,null,(0,t.createElement)(ul,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Ht.__)("Alert center","wordpress-seo")),idSuffix:e,className:"yst-gap-3"}),(0,t.createElement)(sr,{to:_y,label:(0,t.createElement)(t.Fragment,null,(0,t.createElement)(ml,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Ht.__)("First-time configuration","wordpress-seo")),idSuffix:e,className:"yst-gap-3"})))};ky.propTypes={idSuffix:Gt().string};const Cy=()=>{const e=(0,n.useSelect)((e=>e(hl).selectNotices()),[]);(0,l.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:r}=rt(),a=Yl("selectAlertToggleError",[],[]),{setAlertToggleError:s}=(0,n.useDispatch)(hl);(()=>{const e=(0,n.useSelect)((e=>e(hl).selectActiveAlertsCount()),[]);(0,l.useEffect)((()=>{(e=>{const t=(0,Ht.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */ (0,Ht._n)("%s notification","%s notifications",e,"wordpress-seo"),e),r=document.querySelectorAll("#toplevel_page_wpseo_dashboard .update-plugins");for(const a of r)a.className=`update-plugins count-${e}`,Kl(a,".plugin-count",String(e)),Kl(a,".screen-reader-text",t);const a=document.querySelectorAll("#wp-admin-bar-wpseo-menu .yoast-issue-counter");for(const r of a)r.classList.toggle("wpseo-no-adminbar-notifications",0===e),Kl(r,".yoast-issues-count",String(e)),Kl(r,".screen-reader-text",t)})(e)}),[e])})();const o=(0,l.useCallback)((()=>{s(null)}),[s]),i=(0,n.useSelect)((e=>e(hl).selectLinkParams()),[]),d=(0,ai.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(c.SidebarNavigation,{activePath:r},(0,t.createElement)(c.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile" /* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Ht.__)("Open dashboard navigation","wordpress-seo") /* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Ht.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Ht.__)("Dashboard navigation","wordpress-seo")},(0,t.createElement)(ky,{idSuffix:"-mobile"})),(0,t.createElement)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4"},(0,t.createElement)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56"},(0,t.createElement)(c.SidebarNavigation.Sidebar,null,(0,t.createElement)(ky,null))),(0,t.createElement)("div",{className:"yst-grow yst-max-w-page"},(0,t.createElement)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0"},(0,t.createElement)("main",null,(0,t.createElement)(cl,{key:r,appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},r!==_y&&(0,t.createElement)("div",null,((e="yoast-seo/editor")=>{const t=(0,n.select)(e).isPromotionActive("black-friday-2023-checklist"),r=(0,n.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||r})(hl)&&(0,t.createElement)(hd,{store:hl,url:d,image:null}),e.length>0&&(0,t.createElement)("div",{className:e.filter((e=>!e.isDismissed)).length>0?"yst-space-y-3 yoast-general-page-notices":"yst-hidden"}," ",e.map(((e,r)=>(0,t.createElement)(Gl,{key:r,id:e.id||"yoast-general-page-notice-"+r,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":""},e.content))))),(0,t.createElement)(wt,null))))))),(0,t.createElement)(c.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all lg:yst-left-44",position:"bottom-left"},a&&(0,t.createElement)(c.Notifications.Notification,{id:"toggle-alert-error",title:(0,Ht.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Ht.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:o},"error"===a.type?(0,Ht.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Ht.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo"))))},Ny=()=>{const e=Yl("selectPreference",[],"isPremium"),r=Yl("selectUpsellSettingsAsProps"),{isPromotionActive:a}=(0,n.useSelect)(hl),s=Yl("selectLink",[],"https://yoa.st/17h");return e?null:(0,t.createElement)(Cr,{premiumLink:s,premiumUpsellConfig:r,isPromotionActive:a})},Py=({contentClassName:e,children:r})=>{const a=Yl("selectPreference",[],"isPremium"),s=Yl("selectLink",[],"https://yoa.st/jj"),o=Yl("selectUpsellSettingsAsProps"),i=Yl("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,n.useSelect)(hl);return(0,t.createElement)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col"},(0,t.createElement)("div",{className:ps()("yst-@container yst-flex yst-flex-grow yst-flex-col",e)},r),!a&&(0,t.createElement)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]"},(0,t.createElement)("div",{className:"yst-sticky yst-top-16"},(0,t.createElement)(Nr,{premiumLink:s,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l}))))};Py.propTypes={contentClassName:Gt().string,children:Gt().node};const Ry=window.yoast.externals.redux;function Oy({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const Ty="adminNotices",Ly=(0,bs.createSlice)({name:Ty,initialState:{notices:function(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map((e=>e.id)),r=e.map((e=>e.querySelector(".yoast-notice-migrated-header"))),a=function(e){return e.forEach((e=>{e&&e.querySelectorAll("a.button").forEach((e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")}))})),e}(e.map((e=>e.querySelector(".notice-yoast-content")))),s=e.map((e=>e.classList.contains("is-dismissible")));return e.map(((e,n)=>({originalNotice:e,id:t[n],header:r[n].outerHTML,content:a[n].outerHTML,isDismissable:s[n],isDismissed:!1})))}()},reducers:{dismissNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!0)}))},restoreNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!1)}))}}}),My=Ly.getInitialState,Iy={selectNotices:e=>(0,d.get)(e,`${Ty}.notices`,[])},Ay=Ly.actions,Dy=Ly.reducer,Fy="alertCenter",zy="toggleAlertVisibility",jy=(0,bs.createSlice)({name:Fy,initialState:{alertToggleError:null,alerts:[]},reducers:{toggleAlert:(e,t)=>{const r=e.alerts.findIndex((e=>e.id===t));-1!==r&&(e.alerts[r].dismissed=!e.alerts[r].dismissed)},setAlertToggleError:(e,t)=>{const r=e.alerts.findIndex((e=>e.id===t));e.alertToggleError=-1===r?null:e.alerts[r]},removeAlert(e,{payload:t}){e.alerts=e.alerts.filter((e=>e.id!==t))}},extraReducers:e=>{e.addCase(`${zy}/${Lr}`,((e,{payload:{id:t}})=>{jy.caseReducers.toggleAlert(e,t)})),e.addCase(`${zy}/${Mr}`,((e,{payload:{id:t}})=>{jy.caseReducers.setAlertToggleError(e,t)}))}}),Uy=jy.getInitialState,By=e=>(0,d.get)(e,`${Fy}.alerts`,[]),$y=(0,bs.createSelector)([By],(e=>e.filter((e=>!e.dismissed)))),qy={selectActiveProblems:(0,bs.createSelector)([$y],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,bs.createSelector)([By],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,bs.createSelector)([$y],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,bs.createSelector)([By],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,d.get)(e,`${Fy}.alertToggleError`,null),selectAlert:(0,bs.createSelector)([By,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,bs.createSelector)([$y],(e=>e.length))},Hy={...jy.actions,toggleAlertStatus:function*(e,t,r=!1){yield{type:`${zy}/${Tr}`};try{return yield{type:zy,payload:{id:e,nonce:t,hidden:r}},{type:`${zy}/${Lr}`,payload:{id:e}}}catch(t){return{type:`${zy}/${Mr}`,payload:{id:e}}}}},Vy={[zy]:async({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const r=(0,n.select)(hl).selectPreference("ajaxUrl");if(!(await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})).ok)throw new Error("Failed to dismiss notification")}},Gy=jy.reducer,Wy=()=>({...(0,d.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,d.get)(window,"ajaxurl","")}),Zy=(0,bs.createSlice)({name:"preferences",initialState:Wy(),reducers:{}}),Ky={selectPreference:(e,t,r={})=>(0,d.get)(e,`preferences.${t}`,r),selectPreferences:e=>(0,d.get)(e,"preferences",{})};Ky.selectUpsellSettingsAsProps=(0,bs.createSelector)([e=>Ky.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Yy=Zy.actions,Jy=Zy.reducer,{currentPromotions:Qy,dismissedAlerts:Xy,isPremium:eh}=Ry.reducers,{isAlertDismissed:th,getIsPremium:rh,isPromotionActive:ah}=Ry.selectors,{dismissAlert:sh,setCurrentPromotions:nh,setDismissedAlerts:oh,setIsPremium:ih}=Ry.actions;i()((()=>{var r,a;const o=document.getElementById("yoast-seo-general");if(!o)return;(({initialState:t={}}={})=>{(0,n.register)((({initialState:t})=>(0,n.createReduxStore)(hl,{actions:{...ti,...li,...Yy,...Hy,dismissAlert:sh,setCurrentPromotions:nh,setDismissedAlerts:oh,setIsPremium:ih,...Ay},selectors:{...ei,...ii,...Ky,...qy,isAlertDismissed:th,getIsPremium:rh,isPromotionActive:ah,...Iy},initialState:(0,d.merge)({},{[Jo]:Xo(),[si]:oi(),preferences:Wy(),[Fy]:Uy(),currentPromotions:{promotions:[]},[Ty]:My()},t),reducer:(0,n.combineReducers)({[Jo]:ri,[si]:ci,preferences:Jy,[Fy]:Gy,currentPromotions:Qy,dismissedAlerts:Xy,isPremium:eh,[Ty]:Dy}),controls:{...Vy,...e}}))({initialState:t}))})({initialState:{[Jo]:(0,d.get)(window,"wpseoScriptData.adminUrl",""),[si]:(0,d.get)(window,"wpseoScriptData.linkParams",{}),[Fy]:{alerts:(0,d.get)(window,"wpseoScriptData.alerts",[])},currentPromotions:{promotions:(0,d.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,d.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,d.get)(window,"wpseoScriptData.preferences.isPremium",!1),[Ty]:{resolvedNotices:[]}}});const i=(0,n.select)(hl).selectPreference("isRtl",!1),u=(0,d.get)(window,"wpseoScriptData.dashboard.contentTypes",[]),m=(0,d.get)(window,"wpseoScriptData.dashboard.displayName","User"),p=(null===(r=document.getElementsByTagName("html"))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.getAttribute("lang"))||"en-US",f={indexables:(0,d.get)(window,"wpseoScriptData.dashboard.indexablesEnabled",!1),seoAnalysis:(0,d.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.keyphraseAnalysis",!1),readabilityAnalysis:(0,d.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.readabilityAnalysis",!1)},y={seoScores:(0,d.get)(window,"wpseoScriptData.dashboard.endpoints.seoScores",""),readabilityScores:(0,d.get)(window,"wpseoScriptData.dashboard.endpoints.readabilityScores",""),timeBasedSeoMetrics:(0,d.get)(window,"wpseoScriptData.dashboard.endpoints.timeBasedSeoMetrics",""),siteKitConfigurationDismissal:(0,d.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConfigurationDismissal",""),siteKitConsentManagement:(0,d.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConsentManagement","")},g={"X-Wp-Nonce":(0,d.get)(window,"wpseoScriptData.dashboard.nonce","")},x={dashboardLearnMore:(0,n.select)(hl).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,n.select)(hl).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,n.select)(hl).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,n.select)(hl).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},S=(0,d.get)(window,"wpseoScriptData.dashboard.siteKitConfiguration",{installUrl:"",activateUrl:"",setupUrl:"",isAnalyticsConnected:!1,isFeatureEnabled:!1,isSetupWidgetDismissed:!1,capabilities:{installPlugins:!1,viewSearchConsoleData:!1,viewAnalyticsData:!1},connectionStepsStatuses:{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1}}),_=new Yo({headers:g}),k=new Zo({contentTypes:u,userName:m,features:f,endpoints:y,headers:g,links:x,siteKitConfiguration:S}),C={comparisonMetricsDataFormatter:new Fo({locale:p}),plainMetricsDataFormatter:new zo({locale:p})},N=new Ro(k,_,C);k.isSiteKitConnectionCompleted()&&k.setSiteKitConfigurationDismissed(!0);const P=(R=_t((0,t.createElement)(xt,{path:"/",element:(0,t.createElement)(Cy,null),errorElement:(0,t.createElement)(Jl,{className:"yst-m-8"})},(0,t.createElement)(xt,{path:"/",element:(0,t.createElement)(Py,null,(0,t.createElement)(Oo,{widgetFactory:N,userName:m,features:f,links:x,sitekitFeatureEnabled:S.isFeatureEnabled,dataProvider:k}),(0,t.createElement)(Ny,null)),errorElement:(0,t.createElement)(Jl,null)}),(0,t.createElement)(xt,{path:Sy,element:(0,t.createElement)(Py,null,(0,t.createElement)(xy,null),(0,t.createElement)(Ny,null)),errorElement:(0,t.createElement)(Jl,null)}),(0,t.createElement)(xt,{path:_y,element:(0,t.createElement)(wy,null),errorElement:(0,t.createElement)(Jl,null)}),(0,t.createElement)(xt,{path:"*",element:(0,t.createElement)(Et,{to:"/",replace:!0})}))),ce({basename:void 0,future:Ct({},void 0,{v7_prependBasename:!0}),history:(O={window:void 0},void 0===O&&(O={}),w((function(e,t){let{pathname:r="/",search:a="",hash:s=""}=E(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:a,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),a="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");a=-1===r?t:t.slice(0,r)}return a+"#"+("string"==typeof t?t:b(t))}),(function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),O)),hydrationData:Pt(),routes:R,mapRouteProperties:kt,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var R,O;(0,l.render)((0,t.createElement)(c.Root,{context:{isRtl:i}},(0,t.createElement)(s.SlotFillProvider,null,(0,t.createElement)(Dt,{router:P}))),o)}))})()})();
Save Changes
Rename File
Rename