HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/hanode/public_html/wp-content/plugins/wordpress-seo/js/dist/elementor.js
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var n=r.apply(null,s);n&&e.push(n)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>Xa,NEW_REQUEST:()=>el,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>Ja,wistiaEmbedPermission:()=>tl});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>nl,updateData:()=>ol});var i={};s.r(i),s.d(i,{getSnippetEditorData:()=>ml,getSnippetEditorSlug:()=>gl});var r={};s.r(r),s.d(r,{getAnalysisData:()=>vl});var o={};s.r(o),s.d(o,{getWincherPermalink:()=>rc});var n={};s.r(n),s.d(n,{authorFirstName:()=>oc,authorLastName:()=>nc,category:()=>dc,categoryTitle:()=>pc,currentDate:()=>ac,currentDay:()=>lc,currentMonth:()=>cc,currentYear:()=>uc,date:()=>hc,excerpt:()=>gc,focusKeyphrase:()=>mc,id:()=>yc,modified:()=>wc,name:()=>fc,page:()=>bc,pageNumber:()=>xc,pageTotal:()=>_c,permalink:()=>kc,postContent:()=>vc,postDay:()=>Sc,postMonth:()=>Rc,postTypeNamePlural:()=>Ec,postTypeNameSingular:()=>jc,postYear:()=>Tc,primaryCategory:()=>Cc,searchPhrase:()=>Ic,separator:()=>Lc,siteDescription:()=>Ac,siteName:()=>Pc,tag:()=>Dc,term404:()=>Fc,termDescription:()=>Oc,termHierarchy:()=>Mc,termTitle:()=>qc,title:()=>Nc,userDescription:()=>Uc});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis;function p(){}const u=window.yoast.externals.redux;function h(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function g(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function m(){const e=g();return(0,c.get)(e,"contentLocale","en_US")}function y(){const e=g();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function w(){const e=g();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function f(){const e=g();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const b=window.yoast.featureFlag;class x{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,c.isString)(e)?(0,c.isUndefined)(t)||(0,c.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,c.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,c.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,c.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const r={callable:t,origin:s,priority:(0,c.isNumber)(i)?i:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(r),!0}_registerAssessment(e,t,s,i){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,c.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,c.forEach)(i,(function(i){const r=i.callable(t,s);typeof r==typeof t?t=r:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,c.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,c.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,c.forEach)(this.plugins,(function(e,t){(0,c.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,c.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,c.isUndefined)(this.plugins[e])}}let _=null;const k=()=>{if(null===_){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;_=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new x(e)}return _},v=e=>k()._ready(e),S=e=>k()._reloaded(e),R=(e,t,s,i)=>k()._registerModification(e,t,s,i),T=(e,t)=>k()._registerPlugin(e,t),E=(e,t,s)=>k().loaded?k()._applyModifications(e,t,s):t,j="yoastmark";function C(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function I(e,t,s){const i=e.dom;let r=e.getContent();if(r=d.markers.removeMarks(r),(0,c.isEmpty)(s))return void e.setContent(r);r=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,c.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const i=e[s];C(i,t)||(t=i.applyWithPosition(t))}return t}(s,r):function(e,t,s,i){const{fieldsToMark:r,selectedHTML:o}=d.languageProcessing.getFieldsToMark(s,i);return(0,c.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=d.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=d.languageProcessing.normalizeHTML(t._properties.original)),r.length>0?o.forEach((e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)})):i=t.applyWithReplace(i)})),i}(e,0,s,r),e.setContent(r),function(e){let t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);const o=i.select(j);(0,c.forEach)(o,(function(e){e.setAttribute("data-mce-bogus","1")}))}function L(e){return window.test=e,I.bind(null,e)}c.noop,c.noop,c.noop;const A="content";function P(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const D=function(e){return(0,c.uniq)((0,c.flatten)(e.map((e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},F=window.wp.richText,O=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:M}=d.helpers.htmlEntities,q=e=>{let t=0;return(0,c.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},N="<yoastmark class='yoast-text-mark'>",U="</yoastmark>",W='<yoastmark class="yoast-text-mark">';function $(e,t,s,i,r){const o=i.clientId,n=(0,F.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(r,(s=>{let r;return r=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,r){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,o,s);t=e.blockStartOffset,o=e.blockEndOffset}if(i.slice(t,o)===r.slice(t,o))return[{startOffset:t,endOffset:o}];const n=((e,t,s)=>{const i=s.slice(0,e),r=s.slice(0,t),o=((e,t,s,i)=>{const r=[...e.matchAll(O)];s-=q(r);const o=[...t.matchAll(O)];return{blockStartOffset:s,blockEndOffset:i-=q(o)}})(i,r,e,t),n=((e,t,s,i)=>{let r=[...e.matchAll(M)];return(0,c.forEachRight)(r,(e=>{const[,t]=e;s-=t.length})),r=[...t.matchAll(M)],(0,c.forEachRight)(r,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,r,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,o,i);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,o,i.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),r=function(e,t,s=!0){const i=[];if(0===e.length)return i;let r,o=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(r=e.indexOf(t,o))>-1;)i.push(r),o=r+t.length;return i}(e,s);if(0===r.length)return[];const o=function(e){let t=e.indexOf(N);const s=t>=0;s||(t=e.indexOf(W));let i=null;const r=[];for(;t>=0;){if(i=(e=s?e.replace(N,""):e.replace(W,"")).indexOf(U),i<t)return[];e=e.replace(U,""),r.push({startOffset:t,endOffset:i}),t=s?e.indexOf(N):e.indexOf(W),i=null}return r}(i),n=[];return o.forEach((e=>{r.forEach((i=>{const r=i+e.startOffset;let o=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=i+s.length),n.push({startOffset:r,endOffset:o})}))})),n}(n,s),r?r.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const B=e=>e[0].toUpperCase()+e.slice(1),K=(e,t,s,i,r)=>(e=e.map((e=>{const o=`${e.id}-${r[0]}`,n=`${e.id}-${r[1]}`,a=B(r[0]),l=B(r[1]),c=e[`json${a}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=$(c,o,s,i,p),g=$(d,n,s,i,u);return h.concat(g)})),(0,c.flattenDeep)(e)),H="yoast";let Y=[];const z={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function V(){const e=Y.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),G())}function G(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(V,{timeout:1e3}):setTimeout(V,150)}const Z=(e,t)=>{return(0,c.flatMap)((s=e.name,z.hasOwnProperty(s)?z[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:K(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const r=[];return"steps"===e.key&&r.push(K(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),r.push($(i,"description",e,t,s))),(0,c.flattenDeep)(r)})(s,e,t):function(e,t,s){const i=e.key,r=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return $(r,i,e,t,s)}(s,e,t)));var s};function Q(e,t){return(0,c.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Q(e.innerBlocks,t):[];return Z(e,t).concat(s)}))}function X(e){Y=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(H);const t=D(e);if(0===e.length)return;let s=(0,a.select)("core/block-editor").getBlocks();var i;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),i=Q(s,e),Y=i.map((e=>({blockClientId:e.block,source:H,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),G()}function J(e,t){let s;P(A)&&((0,c.isUndefined)(s)&&(s=L(tinyMCE.get(A))),s(e,t)),(0,a.select)("core/block-editor")&&(0,c.isFunction)((0,a.select)("core/block-editor").getBlocks)&&(0,a.select)("core/annotations")&&(0,c.isFunction)((0,a.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>L(e))).forEach((s=>s(e,t)))}(e,t),X(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function ee(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:J}const te=(0,c.debounce)((async function(e,t){const{text:s,...i}=t,r=new d.Paper(s,i);try{const t=await e.analyze(r),{seo:s,readability:i,inclusiveLanguage:o}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),e.results=h(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(r.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,r.getKeyword())}i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),i.results=h(i.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),o&&(o.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(r,e.marks)})),o.results=h(o.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(o.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(o.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:r})}catch(e){}}),500);function se(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,a.select)("yoast-seo/editor");let i=e();i={...i,textTitle:t(),isFrontPage:s()};const r=function(e){return e.title=E("data_page_title",e.title),e.title=E("title",e.title),e.description=E("data_meta_desc",e.description),e.text=E("content",e.text),e}(i);return(0,l.applyFilters)("yoast.analysis.data",r)}const ie=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,se),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),i=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const r=d.Paper.parse(se());i("readingTime",r).then((t=>e(t.result))),i("getFleschReadingScore",r).then((e=>{e.result&&t(e.result)})),i("wordCountInText",r).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,c.isEqual)(i,s)||(s=i,t((0,c.clone)(i)))}})(t,s)},re=window.wp.components,oe=window.wp.element,ne=window.yoast.externals.contexts,ae=window.yoast.propTypes;var le=s.n(ae);const ce=window.yoast.styledComponents;var de=s.n(ce);const pe=window.ReactJSXRuntime,ue=({theme:e,location:t,children:s})=>(0,pe.jsx)(ne.LocationProvider,{value:t,children:(0,pe.jsx)(ce.ThemeProvider,{theme:e,children:s})});ue.propTypes={theme:le().object.isRequired,location:le().oneOf(["sidebar","metabox","modal"]).isRequired,children:le().node.isRequired};const he=ue,ge=[];let me=null;class ye extends oe.Component{constructor(e){super(e),this.state={registeredComponents:[...ge]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,pe.jsx)(e,{},t)))}}function we(e,t){null===me||null===me.current?ge.push({key:e,Component:t}):me.current.registerComponent(e,t)}const fe=()=>!0;class be extends $e.modules.hookUI.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class xe extends $e.modules.hookData.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function _e(e,t,s,i=fe){return $e.hooks.registerUIAfter(new be(e,t,s,i))}function ke(e,t,s,i=fe){return $e.hooks.registerUIBefore(new be(e,t,s,i))}function ve(e,t,s,i=fe){return $e.hooks.registerDataAfter(new xe(e,t,s,i))}const Se=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},Re=()=>{var e;return Se(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},Te=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Ee=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],je=window.wp.i18n,Ce=e=>{let t="";e&&(t=(0,je.sprintf)(/* translators: %1$s translates to the Post Label in singular form */
(0,je.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===elementor.settings.page.model.get("post_status")&&(t=""),(0,a.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,a.dispatch)("yoast-seo/editor").setWarningMessage(t)},Ie=(e,t,s)=>null===t?null:(0,oe.createPortal)(e,t,s),Le=({id:e,children:t})=>{const s=(0,oe.useRef)(document.getElementById(e)),[i,r]=(0,oe.useState)((()=>Ie(t,s.current,e))),o=(0,oe.useCallback)((()=>{const i=document.getElementById(e);i!==s.current&&(s.current=i,r(Ie(t,i,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,oe.useEffect)((()=>{const i=new MutationObserver(t);return i.observe(e,s),()=>i.disconnect()}),[e,t])})(document.body,o),i},Ae=window.yoast.uiLibrary,Pe=(e,t)=>{try{return(0,oe.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};le().string.isRequired;const De=window.React;var Fe=s.n(De);const Oe=De.forwardRef((function(e,t){return De.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:t},e),De.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"}))})),Me=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.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"}))}));le().string.isRequired,le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,le().string,le().string,le().string;const qe=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,pe.jsx)(Ae.Button,{onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});qe.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ne=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,pe.jsx)(Ae.Button,{className:"yst-order-last",onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});Ne.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ue=({error:e,children:t=null})=>(0,pe.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,pe.jsx)(Ae.Title,{children:(0,je.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,pe.jsx)(Ae.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,je.__)("Undefined error message.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("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")}),t]});Ue.propTypes={error:le().object.isRequired,children:le().node},Ue.VerticalButtons=Ne,Ue.HorizontalButtons=qe;le().string,le().node.isRequired,le().node.isRequired,le().node,le().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 We=window.ReactDOM;var Be,Ke,He;(Ke=Be||(Be={})).Pop="POP",Ke.Push="PUSH",Ke.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(He||(He={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ye=["post","put","patch","delete"],ze=(new Set(Ye),["get",...Ye]);new Set(ze),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),De.Component,De.startTransition,new Promise((()=>{})),De.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Ve,Ge,Ze,Qe;new Map,De.startTransition,We.flushSync,De.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Qe=Ve||(Ve={})).UseScrollRestoration="useScrollRestoration",Qe.UseSubmit="useSubmit",Qe.UseSubmitFetcher="useSubmitFetcher",Qe.UseFetcher="useFetcher",Qe.useViewTransitionState="useViewTransitionState",(Ze=Ge||(Ge={})).UseFetcher="useFetcher",Ze.UseFetchers="useFetchers",Ze.UseScrollRestoration="useScrollRestoration",le().string.isRequired,le().string;le().string.isRequired,le().node;De.forwardRef((function(e,t){return De.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:t},e),De.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,je.__)("AI tools included","wordpress-seo"),(0,je.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,je.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,je.__)("24/7 support","wordpress-seo"),(0,je.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,je.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,je.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,je.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,je.__)("Internal links and redirect management, easy","wordpress-seo"),(0,je.__)("Access to friendly help when you need it, day or night","wordpress-seo");De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.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"}))}));var Xe=s(4184),Je=s.n(Xe);var et;function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},tt.apply(this,arguments)}le().string.isRequired,le().object.isRequired,le().func.isRequired;const st=e=>De.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),et||(et=De.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));le().string.isRequired,le().object,le().func.isRequired,le().bool.isRequired,le().string.isRequired,le().object.isRequired,le().string.isRequired,le().func.isRequired,le().bool.isRequired,De.forwardRef((function(e,t){return De.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:t},e),De.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"}))})),le().bool.isRequired,le().func,le().func,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;window.yoast.reactHelmet;const it="idle",rt="loading";le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.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"}))})),le().bool.isRequired,le().func.isRequired,le().func,le().string,le().func.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;const ot=({error:e})=>{const t=(0,oe.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,pe.jsx)(Ae.Root,{context:{isRtl:i},children:(0,pe.jsx)(Ue,{error:e,children:(0,pe.jsx)(Ue.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function nt(){return(0,pe.jsx)(Ae.ErrorBoundary,{FallbackComponent:ot,children:(0,pe.jsx)(re.Slot,{name:"YoastElementor",children:e=>{return void 0===(t=e).length?t:(0,c.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})}ot.propTypes={error:le().object.isRequired};const at=window.wp.compose,lt=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),ct=window.wp.url,dt=({className:e="",...t})=>(0,pe.jsx)("span",{className:Je()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});dt.displayName="MetaboxButton.Text",dt.propTypes={className:le().string};const pt=({className:e="",...t})=>(0,pe.jsx)("button",{type:"button",className:Je()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});pt.propTypes={className:le().string},pt.Text=dt;const ut=window.yoast.componentsNew,ht=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:r=null,SuffixHeroIcon:o=null,prefixIcon:n=null,children:a=null})=>(0,pe.jsx)("div",{className:"yoast components-panel__body",children:(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,pe.jsx)(ut.SvgIcon,{size:n.size,icon:n.icon})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:t}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,r&&(0,pe.jsx)(ut.SvgIcon,{size:r.size,icon:r.icon}),o]})})}),gt=ht;var mt,yt;function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},wt.apply(this,arguments)}ht.propTypes={onClick:le().func.isRequired,title:le().string.isRequired,id:le().string,subTitle:le().string,suffixIcon:le().object,SuffixHeroIcon:le().element,prefixIcon:le().object,children:le().node};const ft=e=>De.createElement("svg",wt({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),mt||(mt=De.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),yt||(yt=De.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),bt=De.forwardRef((function(e,t){return De.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:t},e),De.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),xt=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),_t="yoast-seo/editor",kt=({isOpen:e,onClose:t,id:s,upsellLink:i,title:r="",description:o="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const p=(0,a.select)(_t).isPromotionActive("black-friday-promotion"),u=(0,a.select)(_t).getIsWooCommerceActive();return(0,pe.jsx)(Ae.Modal,{isOpen:e,onClose:t,id:s,children:(0,pe.jsx)(Ae.Modal.Panel,{className:"yst-max-w-[26.25rem] yst-p-0",hasCloseButton:!1,children:(0,pe.jsxs)(Ae.Modal.Container,{children:[(0,pe.jsxs)(Ae.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-4 yst-items-center",children:[u?(0,pe.jsx)(xt,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,pe.jsx)(ft,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,pe.jsx)(Ae.Modal.Title,{as:"h3",className:Je()(u?"yst-text-woo-light":"yst-text-primary-500","yst-text-xl"),children:d}),(0,pe.jsx)(Ae.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,je.__)("Close modal","wordpress-seo")})]}),(0,pe.jsxs)(Ae.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,pe.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,pe.jsx)("div",{className:"yst-mx-auto",children:(0,je.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,pe.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,pe.jsx)(Ae.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-normal",children:r}),(0,pe.jsx)("p",{className:"yst-mb-2",children:o}),n.length>0&&(0,pe.jsx)("ul",{className:"yst-my-2",children:n.map(((e,t)=>(0,pe.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,pe.jsx)(bt,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0 yst-inline yst-text-green-600"}),(0,pe.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`)))}),(0,pe.jsxs)("div",{className:"yst-text-center",children:[(0,pe.jsxs)(Ae.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5",href:i,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,children:[(0,pe.jsx)(Oe,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,je.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,je.__)("Explore %s","wordpress-seo"),u?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,pe.jsx)("span",{className:"yst-sr-only",children:(0,je.__)("Opens in a new tab","wordpress-seo")})]}),(0,pe.jsx)("div",{children:l})]})]})]})]})})})},vt=()=>{const[e,,,t,s]=(0,Ae.useToggleState)(!1),{locationContext:i}=(0,ne.useRootContext)(),r=(0,Ae.useSvgAria)(),o=i.includes("sidebar"),n=i.includes("metabox"),a=o?"sidebar":"metabox",l=wpseoAdminL10n[o?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(kt,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${a}`,upsellLink:(0,ct.addQueryArgs)(l,{context:i}),modalTitle:(0,je.__)("Get internal linking suggestions","wordpress-seo"),title:(0,je.__)("Connect related content without the guesswork","wordpress-seo"),description:Pe((0,je.sprintf)(/* translators: %s expands to be tag. */
(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,pe.jsx)("br",{})}),benefits:[(0,je.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,je.__)("Build relevant internal links faster","wordpress-seo"),(0,je.__)("Strengthen your site’s structure","wordpress-seo"),(0,je.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,je.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),o&&(0,pe.jsx)(gt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,je.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})})})}),n&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(pt,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(pt.Text,{children:(0,je.__)("Internal linking suggestions","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...r}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})},St=window.yoast.externals.components;function Rt(){return(0,at.createHigherOrderComponent)((function(e){return(0,at.pure)((function(t){const s=(0,oe.useContext)(ne.LocationContext);return(0,oe.createElement)(e,{...t,location:s})}))}),"withLocation")}const Tt=(0,at.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Rt()])(St.CollapsibleCornerstone),Et=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.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"}))})),jt=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",i=(0,a.useSelect)((t=>t(e).getIsPremium()),[e]),r=(0,a.useSelect)((t=>t(e).selectLinkParams()),[e]),o=(0,a.useSelect)((t=>t(e).isPromotionActive(s)),[e]),n=(0,a.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),l=(0,a.useSelect)((t=>t(e).isAlertDismissed(s)),[e]),c=(0,a.useSelect)((t=>t(e).getIsElementorEditor()),[e]),d=(0,oe.useCallback)((()=>{(0,a.dispatch)(e).dismissAlert(s)}),[e,s]),p=(0,ct.addQueryArgs)("https://yoa.st/black-friday-sale",r),u=(0,Ae.useSvgAria)();return i||!o||l?null:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)("div",{className:Je()("sidebar"!==t||c?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,pe.jsxs)(Ae.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,je.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,pe.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:d,children:[(0,pe.jsx)(Et,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,pe.jsx)("div",{className:"yst-sr-only",children:(0,je.__)("Dismiss","wordpress-seo")})]}),(0,pe.jsxs)("div",{className:Je()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,pe.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,pe.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,je.__)("30% OFF","wordpress-seo")}),(0,pe.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,pe.jsxs)(pe.Fragment,{children:["Yoast WooCommerce SEO ",(0,pe.jsx)(xt,{className:"yst-w-4 yst-scale-x-[-1]",...u})]}):(0,pe.jsxs)(pe.Fragment,{children:[" Yoast SEO Premium ",(0,pe.jsx)(st,{className:"yst-w-4",...u})]})})]}),(0,pe.jsx)("div",{className:"yst-flex yst-items-end",children:(0,pe.jsxs)(Ae.Button,{as:"a",className:Je()("sidebar"===t?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:p,target:"_blank",rel:"noreferrer",children:[(0,je.__)("Buy now!","wordpress-seo"),(0,pe.jsx)(Me,{className:"yst-w-4 rtl:yst-rotate-180",...u})]})})]})]})})};jt.propTypes={store:le().string,location:le().oneOf(["sidebar","metabox"])};const Ct=window.yoast.helpers,It=(0,at.compose)([(0,a.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,a.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),Lt=({children:e,id:t,hasIcon:s=!0,title:i,image:r=null,isAlertDismissed:o,onDismissed:n})=>o?null:(0,pe.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,pe.jsxs)("div",{className:"notice-yoast__container",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,pe.jsx)("span",{className:"yoast-icon"}),(0,pe.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:i})]}),(0,pe.jsx)("div",{className:"notice-yoast-content",children:(0,pe.jsx)("p",{children:e})})]}),r&&(0,pe.jsx)(r,{height:"60"})]}),(0,pe.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,pe.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,je.__)("Dismiss this notice.","wordpress-seo")})})]});Lt.propTypes={children:le().node.isRequired,id:le().string.isRequired,hasIcon:le().bool,title:le().any.isRequired,image:le().elementType,isAlertDismissed:le().bool.isRequired,onDismissed:le().func.isRequired};const At=It(Lt),Pt="trustpilot-review-notification",Dt="yoast-seo/editor";const Ft=()=>{const e=(0,a.useSelect)((e=>e(Dt).getIsPremium()),[]),t=(0,a.useSelect)((e=>e(Dt).isAlertDismissed(Pt)),[]),{overallScore:s}=(0,a.useSelect)((e=>e(Dt).getResultsForFocusKeyword()),[]),{dismissAlert:i}=(0,a.useDispatch)(Dt),r=(0,oe.useCallback)((()=>i(Pt)),[i]),[o,n]=(0,oe.useState)(!1);return(0,oe.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,c.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,je.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,je.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,je.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(d.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&n(!0)}),[s]),{shouldShow:!e&&!t&&o,dismiss:r}},Ot=(0,Ct.makeOutboundLink)(),Mt=()=>{const{shouldShow:e,dismiss:t}=Ft(),{locationContext:s}=(0,ne.useRootContext)(),i=(0,a.useSelect)((e=>e(Dt).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,pe.jsxs)(Lt,{alertKey:Pt,store:Dt,id:Pt,title:(0,je.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t,children:[(0,je.__)("Happy with the plugin?","wordpress-seo")," ",(0,pe.jsx)(Ot,{href:i,rel:"noopener noreferrer",children:(0,je.__)("Leave a quick review","wordpress-seo")}),"."]})};var qt,Nt,Ut,Wt,$t,Bt,Kt,Ht,Yt,zt,Vt,Gt,Zt,Qt,Xt,Jt,es,ts,ss,is,rs,os,ns,as,ls,cs,ds,ps,us,hs,gs,ms,ys,ws,fs,bs,xs,_s,ks,vs,Ss,Rs,Ts,Es,js,Cs,Is;function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ls.apply(this,arguments)}const As=e=>De.createElement("svg",Ls({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),qt||(qt=De.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Nt||(Nt=De.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"})),Ut||(Ut=De.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"})),Wt||(Wt=De.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"})),$t||($t=De.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"})),Bt||(Bt=De.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"})),Kt||(Kt=De.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"})),Ht||(Ht=De.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"})),Yt||(Yt=De.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"})),zt||(zt=De.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"})),Vt||(Vt=De.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"})),Gt||(Gt=De.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Zt||(Zt=De.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"})),Qt||(Qt=De.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"})),Xt||(Xt=De.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Jt||(Jt=De.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"})),es||(es=De.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"})),ts||(ts=De.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"})),ss||(ss=De.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"})),is||(is=De.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"})),rs||(rs=De.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"})),os||(os=De.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"})),ns||(ns=De.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"})),as||(as=De.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),ls||(ls=De.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),cs||(cs=De.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),ds||(ds=De.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),ps||(ps=De.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),us||(us=De.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),hs||(hs=De.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),gs||(gs=De.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),ms||(ms=De.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),ys||(ys=De.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),ws||(ws=De.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),fs||(fs=De.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),bs||(bs=De.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),xs||(xs=De.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),_s||(_s=De.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),ks||(ks=De.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),vs||(vs=De.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Ss||(Ss=De.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Rs||(Rs=De.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Ts||(Ts=De.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Es||(Es=De.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"})),js||(js=De.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),Cs||(Cs=De.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Is||(Is=De.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Ps=({store:e="yoast-seo/editor",image:t=As,url:s,...i})=>(0,a.useSelect)((t=>t(e).getIsPremium()))?null:(0,pe.jsxs)(At,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,je.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...i,children:[(0,je.__)("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,pe.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,je.__)("Sign up today!","wordpress-seo")})]});Ps.propTypes={store:le().string,image:le().elementType,url:le().string.isRequired};const Ds=Ps,Fs=(e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-promotion"),s=(0,a.select)(e).isAlertDismissed("black-friday-promotion");return!t||s},Os=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))})),Ms=(e=null)=>(0,De.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),qs=({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:i=null,additionalClassName:r="",...o})=>{const n=s?(0,pe.jsx)("span",{className:"yoast-icon"}):null;return(0,pe.jsx)(re.Modal,{title:e,className:`${t} ${r}`,icon:n,...o,children:i})};qs.propTypes={title:le().string,className:le().string,showYoastIcon:le().bool,children:le().oneOfType([le().node,le().arrayOf(le().node)]),additionalClassName:le().string};const Ns=qs,Us=({id:e,postTypeName:t,children:s,title:i,isOpen:r,open:o,close:n,shouldCloseOnClickOutside:a=!0,showChangesWarning:l=!0,SuffixHeroIcon:c=null})=>(0,pe.jsxs)(oe.Fragment,{children:[r&&(0,pe.jsx)(ne.LocationProvider,{value:"modal",children:(0,pe.jsxs)(Ns,{title:i,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,pe.jsx)("div",{className:"yoast-content-container",children:(0,pe.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,pe.jsxs)("div",{className:"yoast-notice-container",children:[(0,pe.jsx)("hr",{}),(0,pe.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,pe.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */
(0,je.sprintf)((0,je.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,pe.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n,children:/* Translators: %s translates to the Post Label in singular form */
(0,je.sprintf)((0,je.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,pe.jsx)(gt,{id:e+"-open-button",title:i,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:o})]});Us.propTypes={id:le().string.isRequired,postTypeName:le().string.isRequired,children:le().oneOfType([le().node,le().arrayOf(le().node)]).isRequired,title:le().string.isRequired,isOpen:le().bool.isRequired,open:le().func.isRequired,close:le().func.isRequired,shouldCloseOnClickOutside:le().bool,showChangesWarning:le().bool,SuffixHeroIcon:le().element};const Ws=Us,$s=(0,at.compose)([(0,a.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:i}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:i(t.id)}})),(0,a.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:i}=e("yoast-seo/editor");return{open:()=>s(t.id),close:i}}))])(Ws),Bs=()=>{const e=(0,a.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,oe.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,pe.jsx)(ut.InsightsCard,{amount:e,unit:(0,je._n)("minute","minutes",e,"wordpress-seo"),title:(0,je.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about reading time","wordpress-seo")})},Ks=(0,Ct.makeOutboundLink)();function Hs(e,t){return-1===e?(0,je.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,je.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
(0,je.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case d.DIFFICULTY.NO_DATA:return(0,je.__)("no data","wordpress-seo");case d.DIFFICULTY.VERY_EASY:return(0,je.__)("very easy","wordpress-seo");case d.DIFFICULTY.EASY:return(0,je.__)("easy","wordpress-seo");case d.DIFFICULTY.FAIRLY_EASY:return(0,je.__)("fairly easy","wordpress-seo");case d.DIFFICULTY.OKAY:return(0,je.__)("okay","wordpress-seo");case d.DIFFICULTY.FAIRLY_DIFFICULT:return(0,je.__)("fairly difficult","wordpress-seo");case d.DIFFICULTY.DIFFICULT:return(0,je.__)("difficult","wordpress-seo");case d.DIFFICULTY.VERY_DIFFICULT:return(0,je.__)("very difficult","wordpress-seo")}}(t))}const Ys=()=>{let e=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,oe.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),i=(0,oe.useMemo)((()=>{const t=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case d.DIFFICULTY.FAIRLY_DIFFICULT:case d.DIFFICULTY.DIFFICULT:case d.DIFFICULTY.VERY_DIFFICULT:return(0,je.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case d.DIFFICULTY.NO_DATA:return(0,je.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,je.__)("Good job!","wordpress-seo")}}(t);return(0,pe.jsxs)("span",{children:[Hs(e,t)," ",t>=d.DIFFICULTY.FAIRLY_DIFFICULT?(0,pe.jsx)(Ks,{href:s,children:i+"."}):i]})}(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,pe.jsx)(ut.InsightsCard,{amount:e,unit:(0,je.__)("out of 100","wordpress-seo"),title:(0,je.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about Flesch reading ease","wordpress-seo"),description:i})},zs=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const r=(0,oe.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,c.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,pe.jsx)("ul",{className:Je()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,pe.jsxs)("li",{style:{"--yoast-width":s/r*100+"%"},children:[e,(0,pe.jsx)("span",{children:s}),t&&(0,pe.jsx)("span",{className:"screen-reader-text",children:(0,je.sprintf)(t,s)})]},`${e}_dataItem`)))})};zs.propTypes={data:le().arrayOf(le().shape({name:le().string.isRequired,number:le().number.isRequired})),itemScreenReaderText:le().string,className:le().string};const Vs=zs,Gs=(0,Ct.makeOutboundLink)(),Zs=({location:e})=>{const t=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),i=(0,oe.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),r=(0,oe.useMemo)((()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Pe((0,je.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,je.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,pe.jsx)(Gs,{href:e})})}),[]),o=(0,oe.useMemo)((()=>Pe((0,je.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,je.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,pe.jsx)("b",{})})),[]),n=(0,a.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),l=(0,oe.useMemo)((()=>{const e=(0,je.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,je.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),d=(0,oe.useMemo)((()=>s?l:n.map((({word:e,occurrence:t})=>({name:e,number:t})))),[n,l]);if(!t)return null;const{locationContext:p}=(0,ne.useRootContext)();return(0,pe.jsxs)("div",{className:"yoast-prominent-words",children:[(0,pe.jsx)("div",{className:"yoast-field-group__title",children:(0,pe.jsx)("b",{children:(0,je.__)("Prominent words","wordpress-seo")})}),!s&&(0,pe.jsx)("p",{children:0===d.length?(0,je.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,je.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),s&&(0,pe.jsx)("p",{children:o}),s&&(0,pe.jsxs)(Gs,{href:(0,ct.addQueryArgs)(i,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,je.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,je.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,pe.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,pe.jsx)("p",{children:r}),(0,pe.jsx)(Vs,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,je.__)("%d occurrences","wordpress-seo"),"aria-label":(0,je.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null})]})};Zs.propTypes={location:le().string.isRequired};const Qs=Zs,Xs=(0,Ct.makeOutboundLink)(),Js=({location:e})=>{const t=(0,oe.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,oe.useMemo)((()=>Pe((0,je.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,je.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,pe.jsx)("b",{})})),[]);return(0,pe.jsx)(oe.Fragment,{children:(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{children:s}),(0,pe.jsxs)(Xs,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,je.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,je.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,pe.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Js.propTypes={location:le().string.isRequired};const ei=Js,ti=({location:e,name:t})=>{const s=(0,a.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),i=g().isPremium,r=i?(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),o=(0,je.__)("Read more about text formality.","wordpress-seo");return s?(0,pe.jsxs)("div",{className:"yoast-text-formality",children:[(0,pe.jsxs)("div",{className:"yoast-field-group__title",children:[(0,pe.jsx)("b",{children:(0,je.__)("Text formality","wordpress-seo")}),(0,pe.jsx)(ut.HelpIcon,{linkTo:r,linkText:o})]}),i?(0,pe.jsx)(re.Slot,{name:t}):(0,pe.jsx)(ei,{location:e})]}):null};ti.propTypes={location:le().string.isRequired,name:le().string.isRequired};const si=ti,ii=()=>{const e=(0,a.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),t=(0,oe.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let s=(0,je._n)("word","words",e.count,"wordpress-seo"),i=(0,je.__)("Word count","wordpress-seo"),r=(0,je.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(s=(0,je._n)("character","characters",e.count,"wordpress-seo"),i=(0,je.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
r=(0,je.__)("Learn more about character count","wordpress-seo")),(0,pe.jsx)(ut.InsightsCard,{amount:e.count,unit:s,title:i,linkTo:t,linkText:r})},ri=de()(Os)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,oi=({location:e="sidebar"})=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]),i=Ms();return(0,pe.jsx)($s,{title:(0,je.__)("Insights","wordpress-seo"),id:`yoast-insights-modal-${e}`,shouldCloseOnClickOutside:!t,showChangesWarning:!1,SuffixHeroIcon:(0,pe.jsx)(ri,{className:"yst-text-slate-500",...i}),children:(0,pe.jsxs)("div",{className:"yoast-insights yoast-modal-content--columns",children:[(0,pe.jsx)(Qs,{location:e}),(0,pe.jsxs)("div",{children:[s&&(0,pe.jsx)("div",{className:"yoast-insights-row",children:(0,pe.jsx)(Ys,{})}),(0,pe.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,pe.jsx)(Bs,{}),(0,pe.jsx)(ii,{})]}),(0,b.isFeatureEnabled)("TEXT_FORMALITY")&&(0,pe.jsx)(si,{location:e,name:"YoastTextFormalityMetabox"})]})]})})};oi.propTypes={location:le().string};const ni=oi;function ai(e){return 0===e.message.length?null:(0,pe.jsx)(ut.Alert,{type:e.type,children:e.message})}ai.propTypes={message:le().oneOfType([le().array,le().string]).isRequired,type:le().string.isRequired};const li=(0,a.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t(),type:"info"}}))(ai),ci=({children:e})=>(0,pe.jsx)("div",{children:e});ci.propTypes={renderPriority:le().number.isRequired,children:le().node.isRequired};const di=ci,pi=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),ui=window.yoast.searchMetadataPreviews,hi=de()(ut.StyledSection)`
	&${ut.StyledSectionBase} {
		padding: 0;

		& ${ut.StyledHeading} {
			${(0,Ct.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,Ct.getDirectionalStyle)("0","20px")};
		}
	}
`,gi=({children:e=null,title:t="",icon:s="",hasPaperStyle:i=!0,shoppingData:r=null})=>(0,pe.jsx)(hi,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:i,shoppingData:r,children:e});gi.propTypes={children:le().element,title:le().string,icon:le().string,hasPaperStyle:le().bool,shoppingData:le().object};const mi=gi,yi=window.wp.sanitize,{stripHTMLTags:wi}=Ct.strings;function fi(e,t=156){return(e=(e=(0,yi.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const bi=(0,c.memoize)(((e,t)=>0===e?c.noop:(0,c.debounce)((s=>t(s,e)),500))),xi=({link:e,text:t})=>(0,pe.jsxs)(Ae.Root,{children:[(0,pe.jsx)("p",{children:t}),(0,pe.jsxs)(Ae.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,pe.jsx)(Oe,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,je.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,je.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});xi.propTypes={link:le().string.isRequired,text:le().string.isRequired};const _i=xi,ki=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,c.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,c.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,c.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],c.identity);return{url:e.url,title:wi(t(e.title)),description:wi(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?wi(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:wi(s("data_page_title",e.title)),description:wi(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?wi(s("data_page_title",e.filteredSEOTitle)):""}}(e)},vi=(0,at.compose)([(0,a.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:i,getRecommendedReplaceVars:r,getReplaceVars:o,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=o();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:i(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:r(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}})),(0,a.withDispatch)((function(e,t,{select:s}){const{updateData:i,switchMode:r,updateAnalysisData:o,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":r(t);break;case"slug":i({slug:t}),a&&a.editPost({slug:t});break;default:i({[e]:t})}},onChangeAnalysisData:o,onReplacementVariableSearchChange:bi(l,n)}}))])((e=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),i=(0,je.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,pe.jsx)(ne.LocationConsumer,{children:r=>(0,pe.jsx)(mi,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,pe.jsxs)(pe.Fragment,{children:[s&&(0,pe.jsx)(_i,{link:t,text:i}),(0,pe.jsx)(ui.SnippetEditor,{...e,descriptionPlaceholder:(0,je.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:ki,showCloseButton:!1,idSuffix:r})]})})})})),{stripHTMLTags:Si}=Ct.strings,Ri=(e,t)=>{const s=(0,a.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=s.title),""===e.description&&(e.description=s.description);let i=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(i=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[i]&&(e.url=e.url.slice(0,i)+e.url.slice(i+1)),{url:e.url,title:Si(E("data_page_title",e.title)),description:Si(E("data_meta_desc",e.description)),filteredSEOTitle:Si(E("data_page_title",e.filteredSEOTitle))}},Ti=({isLoading:e,onLoad:t,location:s,...i})=>((0,oe.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(mi,{icon:"eye",hasPaperStyle:i.hasPaperStyle,children:(0,pe.jsx)(ui.SnippetEditor,{...i,descriptionPlaceholder:(0,je.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Ri,showCloseButton:!1,idSuffix:s})}));Ti.propTypes={isLoading:le().bool.isRequired,onLoad:le().func.isRequired,hasPaperStyle:le().bool.isRequired,location:le().string.isRequired};const Ei=(0,at.compose)([(0,a.withSelect)((e=>{const{getBaseUrlFromSettings:t,getDateFromSettings:s,getEditorDataImageUrl:i,getFocusKeyphrase:r,getRecommendedReplaceVars:o,getSiteIconUrlFromSettings:n,getSnippetEditorData:a,getSnippetEditorIsLoading:l,getSnippetEditorMode:c,getSnippetEditorWordsToHighlight:d,isCornerstoneContent:p,getContentLocale:u,getSiteName:h,getReplaceVars:g}=e("yoast-seo/editor");return{baseUrl:t(),data:a(),date:s(),faviconSrc:n(),isLoading:l(),keyword:r(),mobileImageSrc:i(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:g(),wordsToHighlight:d(),isCornerstone:p(),locale:u(),siteName:h()}})),(0,a.withDispatch)((e=>{const{updateData:t,switchMode:s,updateAnalysisData:i,loadSnippetEditorData:r}=e("yoast-seo/editor");return{onChange:(e,i)=>{switch(e){case"mode":s(i);break;case"slug":t({slug:i});break;default:t({[e]:i})}},onChangeAnalysisData:i,onLoad:r}})),Rt()])(Ti),ji=de()(pi)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Ci=()=>{const e=Ms(),t=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsElementorEditor()),[]);return(0,pe.jsxs)($s,{title:(0,je.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(ji,{className:"yst-text-slate-500",...e}),children:[!0===t&&(0,pe.jsx)(Ei,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&(0,pe.jsx)(vi,{showCloseButton:!1,hasPaperStyle:!1})]})},Ii=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{d:"M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"}))})),Li=de().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,Ai=e=>{const{siteUrl:t}=e;return(0,pe.jsxs)(De.Fragment,{children:[(0,pe.jsx)("span",{className:"screen-reader-text",children:t}),(0,pe.jsx)(Li,{"aria-hidden":"true",children:(0,pe.jsx)("span",{children:t})})]})};Ai.propTypes={siteUrl:le().string.isRequired};const Pi=Ai,Di=window.yoast.socialMetadataForms,Fi=window.yoast.styleGuide,Oi=de().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,Mi=de().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,qi=de().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,Ni=({imageProps:e,width:t,height:s,imageMode:i="landscape"})=>"landscape"===i?(0,pe.jsx)(qi,{aspectRatio:e.aspectRatio,children:(0,pe.jsx)(Mi,{src:e.src,alt:e.alt})}):(0,pe.jsx)(Oi,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function Ui(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function Wi(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function $i(e,t,s=!1){const i=await function(e){return new Promise(((t,s)=>{const i=new Image;i.onload=()=>{t({width:i.width,height:i.height})},i.onerror=s,i.src=e}))}(e);let r=s?"landscape":"square";"Facebook"===t&&(r=(0,Di.determineFacebookImageMode)(i));const o=function(e){return"Twitter"===e?Di.TWITTER_IMAGE_SIZES:Di.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:Wi(t,Ui(e,t,s))}(o,i,r);return{mode:r,height:n.height,width:n.width}}async function Bi(e,t,s=!1){try{return{imageProperties:await $i(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}Ni.propTypes={imageProps:le().shape({src:le().string.isRequired,alt:le().string.isRequired,aspectRatio:le().number.isRequired}).isRequired,width:le().number.isRequired,height:le().number.isRequired,imageMode:le().string};const Ki=de().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${Fi.colors.$color_white};
`,Hi=de().div`
	box-sizing: border-box;
	max-width: ${Di.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${Di.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${Fi.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Yi extends De.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await Bi(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:Di.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Di.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Di.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Di.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Di.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Di.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,pe.jsx)(Hi,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,je.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,pe.jsx)(Ki,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,pe.jsx)(Ni,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Di.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Yi.propTypes={src:le().string,alt:le().string,onImageLoaded:le().func,onImageClick:le().func,onMouseEnter:le().func,onMouseLeave:le().func},Yi.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const zi=Yi,Vi=de().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,Gi=de().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,Zi=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Qi=de().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Xi=de().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class Ji extends De.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=Fe().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let r=t-i;"portrait"===s&&(r=5===i?0:4),r!==e&&this.setState({descriptionLineCount:r})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,pe.jsxs)(Qi,{id:"facebookPreview",mode:e,children:[(0,pe.jsx)(zi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,pe.jsxs)(Xi,{mode:e,children:[(0,pe.jsx)(Pi,{siteUrl:this.props.siteUrl,mode:e}),(0,pe.jsx)(Vi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,pe.jsx)(Gi,{maxWidth:Zi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}Ji.propTypes={siteUrl:le().string.isRequired,title:le().string.isRequired,description:le().string,imageUrl:le().string,imageFallbackUrl:le().string,alt:le().string,onSelect:le().func,onImageClick:le().func,onMouseHover:le().func},Ji.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const er=Ji,tr=de().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,sr=e=>(0,pe.jsx)(tr,{children:(0,pe.jsx)("span",{children:e.siteUrl})});sr.propTypes={siteUrl:le().string.isRequired};const ir=sr,rr=(e,t=!0)=>e?`\n\t\t\tmax-width: ${Di.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${Di.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,or=de().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>rr(e.isLarge)}
`,nr=de().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>rr(e.isLarge,!1)}
`,ar=de()(nr)`
	${e=>e.isLarge&&`height: ${Di.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class lr extends Fe().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await Bi(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,pe.jsx)(ar,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,je.__)("Select image","wordpress-seo")}):(0,pe.jsx)(or,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,pe.jsx)(Ni,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Di.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}lr.propTypes={isLarge:le().bool.isRequired,src:le().string,alt:le().string,onImageClick:le().func,onMouseEnter:le().func,onMouseLeave:le().func},lr.defaultProps={src:"",alt:"",onMouseEnter:c.noop,onImageClick:c.noop,onMouseLeave:c.noop};const cr=de().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,dr=e=>(0,pe.jsx)(cr,{children:e.children});dr.propTypes={children:le().array.isRequired};const pr=dr,ur=de().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,hr=de().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${Di.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,gr=de().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,mr=de()(gr)`
	flex-direction: column;
	max-height: 370px;
`,yr=de()(gr)`
	flex-direction: row;
	height: 125px;
`;class wr extends De.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:s,alt:i,title:r,description:o,siteUrl:n}=this.props,a=e?mr:yr;return(0,pe.jsxs)(a,{id:"twitterPreview",children:[(0,pe.jsx)(lr,{src:t||s,alt:i,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,pe.jsxs)(pr,{children:[(0,pe.jsx)(ir,{siteUrl:n}),(0,pe.jsx)(ur,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:r}),(0,pe.jsx)(hr,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:o})]})]})}}wr.propTypes={siteUrl:le().string.isRequired,title:le().string.isRequired,description:le().string,isLarge:le().bool,imageUrl:le().string,imageFallbackUrl:le().string,alt:le().string,onSelect:le().func,onImageClick:le().func,onMouseHover:le().func},wr.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const fr=wr,br=window.yoast.replacementVariableEditor;class xr extends De.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?er:fr,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:r,imageWarnings:o,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:p,alt:u,title:h,titleInputPlaceholder:g,titlePreviewFallback:m,replacementVariables:y,recommendedReplacementVariables:w,applyReplacementVariables:f,onReplacementVariableSearchChange:b,isPremium:x,isLarge:_,socialPreviewLabel:k,idSuffix:v,activeMetaTabId:S}=this.props,R=f({title:h||m,description:a||c});return(0,pe.jsxs)(Fe().Fragment,{children:[k&&(0,pe.jsx)(ut.SimulatedLabel,{children:k}),(0,pe.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:R.title,description:R.description,imageUrl:d,imageFallbackUrl:p,alt:u,isLarge:_,activeMetaTabId:S}),(0,pe.jsx)(Di.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:h,titleInputPlaceholder:g,onRemoveImageClick:i,imageSelected:!!d,imageUrl:d,imageFallbackUrl:p,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:o,replacementVariables:y,recommendedReplacementVariables:w,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:x,setEditorRef:this.setEditorRef,idSuffix:v})]})}}xr.propTypes={title:le().string.isRequired,onTitleChange:le().func.isRequired,description:le().string.isRequired,onDescriptionChange:le().func.isRequired,imageUrl:le().string.isRequired,imageFallbackUrl:le().string.isRequired,onSelectImageClick:le().func.isRequired,onRemoveImageClick:le().func.isRequired,socialMediumName:le().string.isRequired,alt:le().string,isPremium:le().bool,imageWarnings:le().array,isLarge:le().bool,siteUrl:le().string,descriptionInputPlaceholder:le().string,titleInputPlaceholder:le().string,descriptionPreviewFallback:le().string,titlePreviewFallback:le().string,replacementVariables:br.replacementVariablesShape,recommendedReplacementVariables:br.recommendedReplacementVariablesShape,applyReplacementVariables:le().func,onReplacementVariableSearchChange:le().func,socialPreviewLabel:le().string,idSuffix:le().string,activeMetaTabId:le().string},xr.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const _r={},kr=(e,t,{log:s=console.warn}={})=>{_r[e]||(_r[e]=!0,s(t))},vr=(e,t=c.noop)=>{const s={};for(const i in e)Object.hasOwn(e,i)&&Object.defineProperty(s,i,{set:s=>{e[i]=s,t("set",i,s)},get:()=>(t("get",i),e[i])});return s};vr({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>kr(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),vr({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>kr(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Sr=de().div`
	max-width: calc(527px + 1.5rem);
`,Rr=e=>{const t="X"===e.socialMediumName?(0,je.__)("X share preview","wordpress-seo"):(0,je.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,Ae.useRootContext)();return(0,pe.jsx)(Ae.Root,{children:(0,pe.jsx)(Sr,{children:(0,pe.jsx)(Ae.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,ct.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,je.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,je.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,pe.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,pe.jsx)(Ae.Label,{children:t}),(0,pe.jsx)(er,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:c.noop,onImageClick:c.noop,onMouseHover:c.noop})]})})})})};Rr.propTypes={socialMediumName:le().oneOf(["Social","Twitter","X"]).isRequired};const Tr=Rr;class Er extends oe.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:r,imageWarnings:o,description:n,descriptionInputPlaceholder:a,imageUrl:l,imageFallbackUrl:c,alt:d,title:p,titleInputPlaceholder:u,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,isPremium:y,location:w}=this.props;return(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(Tr,{socialMediumName:r}),(0,pe.jsx)(Di.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:p,titleInputPlaceholder:u,onRemoveImageClick:i,imageSelected:!!l,imageUrl:l,imageFallbackUrl:c,imageAltText:d,onTitleChange:t,onSelectImageClick:s,description:n,descriptionInputPlaceholder:a,imageWarnings:o,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:m,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:w})]})}}Er.propTypes={title:le().string.isRequired,onTitleChange:le().func.isRequired,description:le().string.isRequired,onDescriptionChange:le().func.isRequired,imageUrl:le().string.isRequired,imageFallbackUrl:le().string,onSelectImageClick:le().func.isRequired,onRemoveImageClick:le().func.isRequired,socialMediumName:le().string.isRequired,isPremium:le().bool,imageWarnings:le().array,descriptionInputPlaceholder:le().string,titleInputPlaceholder:le().string,replacementVariables:br.replacementVariablesShape,recommendedReplacementVariables:br.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:le().func,location:le().string,alt:le().string},Er.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const jr=Er,Cr=(e,t,s)=>{const[i,r]=(0,oe.useState)(!1),o=(0,je.sprintf)(
/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
  %3$s expands to the webp format, %4$s expands to the gif format. */
(0,je.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,oe.useEffect)((()=>{r(""===t&&e.toLowerCase().endsWith(".avif"))}),[e,t]),i?[o]:s},Ir=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:i="",imageUrl:r="",imageWarnings:o=[],...n})=>{const[a,l]=(0,oe.useState)(""),c=Cr(i,r,o),d=(0,oe.useCallback)((e=>{l(e.detail.metaTabId)}),[l]);(0,oe.useEffect)((()=>(setTimeout(t),window.addEventListener("YoastSEO:metaTabChange",d),()=>{window.removeEventListener("YoastSEO:metaTabChange",d)})),[]);const p={isPremium:e,onLoad:t,location:s,imageFallbackUrl:i,imageUrl:r,imageWarnings:c,activeMetaTabId:a,...n};return e?(0,pe.jsx)(re.Slot,{name:`YoastFacebookPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:p}):(0,pe.jsx)(jr,{...p})};Ir.propTypes={isPremium:le().bool.isRequired,onLoad:le().func.isRequired,location:le().string.isRequired,imageFallbackUrl:le().string,imageUrl:le().string,imageWarnings:le().array};const Lr=Ir;function Ar(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var i;e({type:(i=s.attributes).subtype,width:i.width,height:i.height,url:i.url,id:i.id,sizes:i.sizes,alt:i.alt||i.title||i.name})})),t})(e).open()}const Pr=()=>{Ar((e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,i=(0,Di.determineFacebookImageMode)({width:t,height:s}),r=Di.FACEBOOK_IMAGE_SIZES[i+"Width"],o=Di.FACEBOOK_IMAGE_SIZES[i+"Height"],n=Object.values(e.sizes).find((e=>e.width>=r&&e.height>=o));return{url:n?n.url:e.url,id:e.id,warnings:(0,Ct.validateFacebookImage)(e),alt:e.alt||""}})(e))))},Dr=(0,at.compose)([(0,a.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:i,getSeoTitle:r,getFacebookImageUrl:o,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:m,getSocialDescriptionTemplate:y,getReplacedExcerpt:w,getFacebookAltText:f}=e("yoast-seo/editor");return{imageUrl:o(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:y()||s()||m()||w()||"",title:i(),titlePreviewFallback:h()||r()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!g().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:f()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:i,setFacebookPreviewDescription:r,clearFacebookPreviewImage:o,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Pr,onRemoveImageClick:o,onDescriptionChange:r,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:bi(l,a)}})),Rt()])(Lr),Fr=({isPremium:e,onLoad:t,location:s,imageFallbackUrl:i="",imageUrl:r="",imageWarnings:o=[],...n})=>{const a=Cr(i,r,o);(0,oe.useEffect)((()=>{setTimeout(t)}),[]);const l={isPremium:e,onLoad:t,location:s,imageFallbackUrl:i,imageUrl:r,imageWarnings:a,...n};return e?(0,pe.jsx)(re.Slot,{name:`YoastTwitterPremium${s.charAt(0).toUpperCase()+s.slice(1)}`,fillProps:l}):(0,pe.jsx)(jr,{...l})};Fr.propTypes={isPremium:le().bool.isRequired,onLoad:le().func.isRequired,location:le().string.isRequired,imageFallbackUrl:le().string,imageUrl:le().string,imageWarnings:le().array};const Or=Fr,Mr=()=>{Ar((e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,c.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=Di.TWITTER_IMAGE_SIZES[t+"Width"],i=Di.TWITTER_IMAGE_SIZES[t+"Height"],r=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=i));return{url:r?r.url:e.url,id:e.id,warnings:(0,Ct.validateTwitterImage)(e),alt:e.alt||""}})(e))))},qr=(0,at.compose)([(0,a.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:i,getFacebookImageUrl:r,getFacebookTitle:o,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:m,getSeoTitleTemplate:y,getSeoTitleTemplateNoFallback:w,getSocialTitleTemplate:f,getSeoDescriptionTemplate:b,getSocialDescriptionTemplate:x,getReplacedExcerpt:_,getTwitterAltText:k}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:r()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:x()||n()||a()||b()||_()||"",title:s(),titlePreviewFallback:f()||o()||l()||w()||y()||"",imageWarnings:c(),siteUrl:m(),isPremium:!!g().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:k()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:i,setTwitterPreviewDescription:r,clearTwitterPreviewImage:o,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:Mr,onRemoveImageClick:o,onDescriptionChange:r,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:bi(l,a)}})),Rt()])(Or),Nr=de()(ut.Collapsible)`
	h2 > button {
		padding-left: 0;
		padding-top: 16px;

		&:hover {
			background-color: #f0f0f0;
		}
	}

	div[class^="collapsible_content"] {
		padding: 24px 0;
		margin: 0 24px;
		border-top: 1px solid rgba(0,0,0,0.2);
	}

`,Ur=e=>(0,pe.jsx)(Nr,{hasPadding:!1,hasSeparator:!0,...e}),Wr=de().legend`
	margin: 16px 0;
	padding: 0;
	color: ${Fi.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,$r=de().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${Fi.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,Br=de()(Ii)`
	width: 18px;
	height: 18px;
	margin: 3px;
`,Kr=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const i=Ms();return(0,pe.jsxs)($s
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,je.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(Br,{className:"yst-text-slate-500",...i}),children:[t&&(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)($r,{children:(0,je.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,pe.jsx)(Dr,{}),s&&(0,pe.jsx)(Wr,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),t&&s&&(0,pe.jsx)(Ur,{title:(0,je.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,pe.jsx)(qr,{})}),!t&&s&&(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)($r,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,pe.jsx)(qr,{})]})]})};Kr.propTypes={useOpenGraphData:le().bool.isRequired,useTwitterData:le().bool.isRequired};const Hr=Kr,Yr=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>{const{locationContext:r}=(0,ne.useRootContext)(),o=(0,ct.addQueryArgs)(wpseoAdminL10n[i],{context:r}),n=[Pe((0,je.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,je.__)("%1$sKeyphrase distribution:%2$s See if your keywords are spread evenly so search engines understand your topic","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})}),Pe((0,je.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,je.__)("%1$sTitle check:%2$s Instantly spot missing titles and fix them for better click-through rates","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})}),Pe((0,je.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,je.__)("%1$sSynonyms:%2$s Include synonyms of your keyphrase for a more natural flow and smarter suggestions","wordpress-seo"),"<span>","</span>"),{span:(0,pe.jsx)("span",{className:"yst-font-semibold"})})];return(0,pe.jsx)(kt,{isOpen:e,onClose:t,id:s,title:(0,je.__)("Get deeper keyphrase insights and stronger headlines","wordpress-seo"),upsellLink:o,benefits:n,note:(0,je.__)("Upgrade to optimize with precision","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",modalTitle:(0,je.sprintf)(/* translators: %1$s is for Premium SEO analysis. */
(0,je.__)("Unlock %1$s","wordpress-seo"),"Premium SEO analysis")})};Yr.propTypes={isOpen:le().bool.isRequired,closeModal:le().func.isRequired,id:le().string.isRequired,upsellLink:le().string.isRequired};const zr=({location:e="sidebar"})=>{const t=(0,Ae.useSvgAria)(),[s,,,i,r]=(0,Ae.useToggleState)(!1),o=`shortlinks.upsell.${e}.premium_seo_analysis_button`;return(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(Yr,{isOpen:s,closeModal:r,id:"yoast-premium-seo-analysis-modal",upsellLink:o}),"sidebar"===e&&(0,pe.jsx)(gt,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,je.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:Fi.colors.$color_grey},onClick:i,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...t})})})}),"metabox"===e&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(pt,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:i,children:[(0,pe.jsx)(ut.SvgIcon,{icon:"seo-score-none",color:Fi.colors.$color_grey}),(0,pe.jsx)(pt.Text,{children:(0,je.__)("Premium SEO analysis","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...t}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};zr.propTypes={location:le().string};const Vr=zr,Gr=({title:e,children:t,prefixIcon:s=null,subTitle:i="",hasBetaBadgeLabel:r=!1,buttonId:o=null})=>{const[n,a]=(0,oe.useState)(!1),l=(0,oe.useCallback)((()=>{a((e=>!e))}),[a]);return(0,pe.jsxs)("div",{className:"yoast components-panel__body "+(n?"is-opened":""),children:[(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{onClick:l,className:"components-button components-panel__body-toggle",type:"button",id:o,children:[(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${s&&s.color||""}`},children:s&&(0,pe.jsx)(ut.SvgIcon,{icon:s.icon,color:s.color,size:s.size})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),r&&(0,pe.jsx)(ut.BetaBadge,{}),(0,pe.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),n&&t]})},Zr=Gr;Gr.propTypes={title:le().string.isRequired,children:le().oneOfType([le().node,le().arrayOf(le().node)]).isRequired,prefixIcon:le().object,subTitle:le().string,hasBetaBadgeLabel:le().bool,buttonId:le().string};const Qr=(0,Ct.makeOutboundLink)(),Xr=de().div`
	padding: 16px;
`,Jr="yoast-seo/editor";function eo({location:e,show:t}){return t?(0,pe.jsxs)(ut.Alert,{type:"info",children:[(0,je.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,je.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,pe.jsx)(Qr,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,je.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,je.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}eo.propTypes={show:le().bool.isRequired,location:le().string.isRequired};const to=(e,t,s)=>{const i=(0,a.useSelect)((e=>e(Jr).getIsProduct()),[]),r=(0,a.useSelect)((e=>e(Jr).getIsWooSeoActive()),[]),o=i&&r?{name:(0,je.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,je.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,je.__)("Default for %1$s (%2$s)","wordpress-seo"),s,o?o.name:""),value:""},...e]},so=(e,t)=>Pe((e=>(0,je.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
(0,je.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,pe.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),io=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,pe.jsx)(ut.FieldGroup,{label:e,linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});io.propTypes={helpTextTitle:le().string.isRequired,helpTextLink:le().string.isRequired,helpTextDescription:le().string.isRequired};const ro=({schemaPageTypeChange:e=c.noop,schemaPageTypeSelected:t=null,pageTypeOptions:s,schemaArticleTypeChange:i=c.noop,schemaArticleTypeSelected:r=null,articleTypeOptions:o,showArticleTypeInput:n,additionalHelpTextLink:l,helpTextLink:d,helpTextTitle:p,helpTextDescription:u,postTypeName:h,displayFooter:g=!1,defaultPageType:m,defaultArticleType:y,location:w,isNewsEnabled:f=!1})=>{const b=to(s,m,h),x=to(o,y,h),_=(0,a.useSelect)((e=>e(Jr).selectLink("https://yoa.st/product-schema-metabox")),[]),k=(0,a.useSelect)((e=>e(Jr).getIsWooSeoUpsell()),[]),[v,S]=(0,oe.useState)(r),R=(0,je.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),T=(0,a.useSelect)((e=>e(Jr).getIsProduct()),[]),E=(0,a.useSelect)((e=>e(Jr).getIsWooSeoActive()),[]),j=(0,a.useSelect)((e=>e(Jr).selectAdminLink("?page=wpseo_page_settings")),[]),C=T&&E,I=(0,oe.useCallback)(((e,t)=>{S(t)}),[]);return(0,oe.useEffect)((()=>{I(null,r)}),[r]),(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(io,{helpTextLink:d,helpTextTitle:p,helpTextDescription:u}),(0,pe.jsx)(ut.FieldGroup,{label:(0,je.__)("What type of page or content is this?","wordpress-seo"),linkTo:l
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about page or content types","wordpress-seo")}),k&&(0,pe.jsx)(_i,{link:_,text:R}),(0,pe.jsx)(ut.Select,{id:(0,Ct.join)(["yoast-schema-page-type",w]),options:b,label:(0,je.__)("Page type","wordpress-seo"),onChange:e,selected:C?"ItemPage":t,disabled:C}),n&&(0,pe.jsx)(ut.Select,{id:(0,Ct.join)(["yoast-schema-article-type",w]),options:x,label:(0,je.__)("Article type","wordpress-seo"),onChange:i,selected:r,onOptionFocus:I}),(0,pe.jsx)(eo,{location:w,show:!f&&(L=v,A=y,"NewsArticle"===L||""===L&&"NewsArticle"===A)}),g&&!C&&(0,pe.jsx)("p",{children:so(h,j)}),C&&(0,pe.jsx)("p",{children:(0,je.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,je.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var L,A},oo=le().arrayOf(le().shape({name:le().string,value:le().string}));ro.propTypes={schemaPageTypeChange:le().func,schemaPageTypeSelected:le().string,pageTypeOptions:oo.isRequired,schemaArticleTypeChange:le().func,schemaArticleTypeSelected:le().string,articleTypeOptions:oo.isRequired,showArticleTypeInput:le().bool.isRequired,additionalHelpTextLink:le().string.isRequired,helpTextLink:le().string.isRequired,helpTextTitle:le().string.isRequired,helpTextDescription:le().string.isRequired,postTypeName:le().string.isRequired,displayFooter:le().bool,defaultPageType:le().string.isRequired,defaultArticleType:le().string.isRequired,location:le().string.isRequired,isNewsEnabled:le().bool};const no=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:i="",pageTypeLabel:r,helpTextLink:o,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c=!1,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h})=>{const g=(0,pe.jsx)(ro,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:i,pageTypeLabel:r,helpTextLink:o,helpTextTitle:n,helpTextDescription:a,postTypeName:l,displayFooter:c,loadSchemaArticleData:d,loadSchemaPageData:p,location:u,...h});return e?(0,oe.createPortal)((0,pe.jsx)(Xr,{children:g}),document.getElementById("wpseo-meta-section-schema")):g};no.propTypes={isMetabox:le().bool.isRequired,showArticleTypeInput:le().bool,articleTypeLabel:le().string,additionalHelpTextLink:le().string,pageTypeLabel:le().string.isRequired,helpTextLink:le().string.isRequired,helpTextTitle:le().string.isRequired,helpTextDescription:le().string.isRequired,postTypeName:le().string.isRequired,displayFooter:le().bool,loadSchemaArticleData:le().func.isRequired,loadSchemaPageData:le().func.isRequired,location:le().string.isRequired};const ao=no;class lo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return lo.articleTypeInput.getAttribute("data-default")}static get articleType(){return lo.articleTypeInput.value}static set articleType(e){lo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return lo.pageTypeInput.getAttribute("data-default")}static get pageType(){return lo.pageTypeInput.value}static set pageType(e){lo.pageTypeInput.value=e}}const co=e=>{const t=null!==lo.articleTypeInput;(0,oe.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:i}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,je.__)("Article type","wordpress-seo"),pageTypeLabel:(0,je.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,je.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,je.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:s,articleTypeOptions:i},o={...e,...r,...(n=e.location,"metabox"===n?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var n;return(0,pe.jsx)(ao,{...o})};co.propTypes={displayFooter:le().bool.isRequired,schemaPageTypeSelected:le().string.isRequired,schemaArticleTypeSelected:le().string.isRequired,defaultArticleType:le().string.isRequired,defaultPageType:le().string.isRequired,loadSchemaPageData:le().func.isRequired,loadSchemaArticleData:le().func.isRequired,schemaPageTypeChange:le().func.isRequired,schemaArticleTypeChange:le().func.isRequired,location:le().string.isRequired};const po=(0,at.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:r,getDefaultArticleType:o}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:r(),defaultArticleType:o(),defaultPageType:i()}})),(0,a.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:r}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:r,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Rt()])(co),uo=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:i=!1})=>{const r=(e=>{const t=(0,je.__)("No","wordpress-seo"),s=(0,je.__)("Yes","wordpress-seo"),i=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,je.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,je.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,je.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,je.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(s);return(0,pe.jsx)(ne.LocationConsumer,{children:s=>(0,pe.jsxs)(oe.Fragment,{children:[i&&(0,pe.jsx)(ut.Alert,{type:"warning",children:(0,je.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")}),(0,pe.jsx)(ut.Select,{label:(0,je.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:t,id:(0,Ct.join)(["yoast-meta-robots-noindex",s]),options:r,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};uo.propTypes={noIndex:le().string.isRequired,onNoIndexChange:le().func.isRequired,editorContext:le().object.isRequired,isPrivateBlog:le().bool};const ho=({noFollow:e,onNoFollowChange:t})=>(0,pe.jsx)(ne.LocationConsumer,{children:s=>{const i=(0,Ct.join)(["yoast-meta-robots-nofollow",s]);return(0,pe.jsx)(ut.RadioButtonGroup,{id:i,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,je.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:i,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});ho.propTypes={noFollow:le().string.isRequired,onNoFollowChange:le().func.isRequired};const go=({advanced:e,onAdvancedChange:t})=>(0,pe.jsx)(ne.LocationConsumer,{children:s=>{const i=(0,Ct.join)(["yoast-meta-robots-advanced",s]),r=`${i}-input`;return(0,pe.jsx)(ut.MultiSelect,{label:(0,je.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:i,inputId:r,options:[{name:(0,je.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,je.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,je.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});go.propTypes={advanced:le().array.isRequired,onAdvancedChange:le().func.isRequired};const mo=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,pe.jsx)(ne.LocationConsumer,{children:s=>(0,pe.jsx)(ut.TextInput,{label:(0,je.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Ct.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});mo.propTypes={breadcrumbsTitle:le().string.isRequired,onBreadcrumbsTitleChange:le().func.isRequired};const yo=({canonical:e,onCanonicalChange:t})=>(0,pe.jsx)(ne.LocationConsumer,{children:s=>(0,pe.jsx)(ut.TextInput,{label:(0,je.__)("Canonical URL","wordpress-seo"),id:(0,Ct.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});yo.propTypes={canonical:le().string.isRequired,onCanonicalChange:le().func.isRequired};const wo=({noIndex:e,canonical:t,onNoIndexChange:s,onCanonicalChange:i,onLoad:r,isLoading:o,editorContext:n,isBreadcrumbsDisabled:a,advanced:l=[],onAdvancedChange:d=c.noop,noFollow:p="",onNoFollowChange:u=c.noop,breadcrumbsTitle:h="",onBreadcrumbsTitleChange:g=c.noop,isPrivateBlog:m=!1})=>{(0,oe.useEffect)((()=>{setTimeout((()=>{o&&r()}))}));const y={noIndex:e,onNoIndexChange:s,editorContext:n,isPrivateBlog:m},w={noFollow:p,onNoFollowChange:u},f={advanced:l,onAdvancedChange:d},b={breadcrumbsTitle:h,onBreadcrumbsTitleChange:g},x={canonical:t,onCanonicalChange:i};return o?null:(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(uo,{...y}),n.isPost&&(0,pe.jsx)(ho,{...w}),n.isPost&&(0,pe.jsx)(go,{...f}),!a&&(0,pe.jsx)(mo,{...b}),(0,pe.jsx)(yo,{...x})]})};wo.propTypes={noIndex:le().string.isRequired,canonical:le().string.isRequired,onNoIndexChange:le().func.isRequired,onCanonicalChange:le().func.isRequired,onLoad:le().func.isRequired,isLoading:le().bool.isRequired,editorContext:le().object.isRequired,isBreadcrumbsDisabled:le().bool.isRequired,isPrivateBlog:le().bool,advanced:le().array,onAdvancedChange:le().func,noFollow:le().string,onNoFollowChange:le().func,breadcrumbsTitle:le().string,onBreadcrumbsTitleChange:le().func};const fo=wo,bo=(0,at.compose)([(0,a.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:i,getBreadcrumbsTitle:r,getCanonical:o,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:i(),breadcrumbsTitle:r(),canonical:o(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,a.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:i,setBreadcrumbsTitle:r,setCanonical:o,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:i,onBreadcrumbsTitleChange:r,onCanonicalChange:o,onLoad:n}}))])(fo),xo=window.yoast.relatedKeyphraseSuggestions;function _o({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:r}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,c.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(r)?"maxRelatedKeyphrases":null:"requestEmpty"}function ko({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:i=!1,countryCode:r,setCountry:o,newRequest:n,response:a={},isRtl:l=!1,userLocale:c="en_US",isPending:d=!1,isSuccess:p=!1,requestHasData:u=!0,isPremium:h=!1,semrushUpsellLink:g="",premiumUpsellLink:m=""}){var y,w;const[f,b]=(0,oe.useState)(r),x=(0,oe.useCallback)((async()=>{n(r,e),b(r)}),[r,e,n]);return(0,pe.jsxs)(Ae.Root,{context:{isRtl:l},children:[!i&&!h&&(0,pe.jsx)(xo.PremiumUpsell,{url:m,className:"yst-mb-4"}),!i&&(0,pe.jsx)(xo.CountrySelector,{countryCode:r,activeCountryCode:f,onChange:o,onClick:x,className:"yst-mb-4",userLocale:c.split("_")[0]}),!d&&(0,pe.jsx)(xo.UserMessage,{variant:_o({requestLimitReached:i,isSuccess:p,response:a,requestHasData:u,relatedKeyphrases:t}),upsellLink:g}),(0,pe.jsx)(xo.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==a||null===(y=a.results)||void 0===y?void 0:y.columnNames,data:null==a||null===(w=a.results)||void 0===w?void 0:w.rows,isPending:d,renderButton:s,className:"yst-mt-4"})]})}ko.propTypes={keyphrase:le().string,relatedKeyphrases:le().array,renderAction:le().func,requestLimitReached:le().bool,countryCode:le().string.isRequired,setCountry:le().func.isRequired,newRequest:le().func.isRequired,response:le().object,isRtl:le().bool,userLocale:le().string,isPending:le().bool,isSuccess:le().bool,requestHasData:le().bool,isPremium:le().bool,semrushUpsellLink:le().string,premiumUpsellLink:le().string};const vo=(0,at.compose)([(0,a.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:r,getSEMrushRequestIsSuccess:o,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:r(),isSuccess:o(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,ct.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,ct.addQueryArgs)("https://yoa.st/413",d())}})),(0,a.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(ko),So=De.forwardRef((function(e,t){return De.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),De.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),Ro=de().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,To=(de().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,de()(ut.Icon)`
	float: ${(0,Ct.getDirectionalStyle)("right","left")};
	margin: ${(0,Ct.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

	&& {
		width: 150px;
		height: 150px;

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,window.moment);var Eo=s.n(To);const jo=window.wp.apiFetch;var Co=s.n(jo);async function Io(e,t,s,i=200){try{const r=await e();return!!r&&(r.status===i?t(r):s(r))}catch(e){console.error(e.message)}}async function Lo(e){try{return await Co()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Ao(e){return(0,c.isArray)(e)||(e=[e]),await Lo({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const Po=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:i,isDataTableVisuallyHidden:r=!0})=>e.length!==i.length?(0,pe.jsx)("p",{children:(0,je.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,pe.jsx)("div",{className:r?"screen-reader-text":null,children:(0,pe.jsxs)("table",{children:[(0,pe.jsx)("caption",{children:s}),(0,pe.jsx)("thead",{children:(0,pe.jsx)("tr",{children:i.map(((e,t)=>(0,pe.jsx)("th",{children:e},t)))})}),(0,pe.jsx)("tbody",{children:(0,pe.jsx)("tr",{children:e.map(((e,s)=>(0,pe.jsx)("td",{children:t(e.y)},s)))})})]})});Po.propTypes={data:le().arrayOf(le().shape({x:le().number,y:le().number})).isRequired,mapChartDataToTableData:le().func,dataTableCaption:le().string.isRequired,dataTableHeaderLabels:le().array.isRequired,isDataTableVisuallyHidden:le().bool};const Do=Po,Fo=({data:e,width:t,height:s,fillColor:i=null,strokeColor:r="#000000",strokeWidth:o=1,className:n="",mapChartDataToTableData:a=null,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d=!0})=>{const p=Math.max(1,Math.max(...e.map((e=>e.x)))),u=Math.max(1,Math.max(...e.map((e=>e.y)))),h=s-o,g=e.map((e=>`${e.x/p*t},${h-e.y/u*h+o}`)).join(" "),m=`0,${h+o} `+g+` ${t},${h+o}`;return(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsxs)("svg",{width:t,height:s,viewBox:`0 0 ${t} ${s}`,className:n,role:"img","aria-hidden":"true",focusable:"false",children:[(0,pe.jsx)("polygon",{fill:i,points:m}),(0,pe.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:o,strokeLinejoin:"round",strokeLinecap:"round",points:g})]}),a&&(0,pe.jsx)(Do,{data:e,mapChartDataToTableData:a,dataTableCaption:l,dataTableHeaderLabels:c,isDataTableVisuallyHidden:d})]})};Fo.propTypes={data:le().arrayOf(le().shape({x:le().number,y:le().number})).isRequired,width:le().number.isRequired,height:le().number.isRequired,fillColor:le().string,strokeColor:le().string,strokeWidth:le().number,className:le().string,mapChartDataToTableData:le().func,dataTableCaption:le().string.isRequired,dataTableHeaderLabels:le().array.isRequired,isDataTableVisuallyHidden:le().bool};const Oo=Fo,Mo=()=>(0,pe.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,je.__)("Tracking the ranking position…","wordpress-seo")," ",(0,pe.jsx)(ut.SvgIcon,{icon:"loading-spinner"})]}),qo=de()(ut.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,No=de().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,Uo=de().td`
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,Wo=de().td`
	padding-left: 2px !important;
`,$o=de().td.attrs({className:"yoast-table--nopadding"})`
	& > div {
		justify-content: center;
	}
`,Bo=de().div`
	display: flex;
	align-items: center;
	& > a {
		box-sizing: border-box;
	}
`,Ko=de().button`
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    display: flex;
    align-items: center;
`,Ho=de().tr`
	background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function Yo(e){return Math.round(100*e)}function zo({chartData:e={}}){if((0,c.isEmpty)(e)||(0,c.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,je.sprintf)((0,je._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,pe.jsx)(Oo,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Yo,dataTableCaption:(0,je.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Vo({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,pe.jsx)(ut.SvgIcon,{icon:"loading-spinner"}):(0,pe.jsx)(ut.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Go(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}zo.propTypes={chartData:le().object};const Zo=e=>Eo()(e).fromNow(),Qo=({rowData:e={}})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,pe.jsx)(zo,{chartData:e});const s=e.position.change<0;return(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(zo,{chartData:e}),(0,pe.jsx)(No,{isImproving:s,children:Math.abs(e.position.change)}),(0,pe.jsx)(qo,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function Xo({rowData:e,websiteId:t,keyphrase:s,onSelectKeyphrases:i}){const r=(0,oe.useCallback)((()=>{i([s])}),[i,s]),o=!(0,c.isEmpty)(e),n=e&&e.updated_at&&Eo()(e.updated_at)>=Eo()().subtract(7,"days"),a=e?`https://app.wincher.com/websites/${t}/keywords?serp=${e.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return o?n?(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)("td",{children:(0,pe.jsxs)(Bo,{children:[Go(e),(0,pe.jsx)(ut.ButtonStyledLink,{variant:"secondary",href:a,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,je.__)("View","wordpress-seo")})]})}),(0,pe.jsx)("td",{className:"yoast-table--nopadding",children:(0,pe.jsx)(Ko,{type:"button",onClick:r,children:(0,pe.jsx)(Qo,{rowData:e})})}),(0,pe.jsx)("td",{children:Zo(e.updated_at)})]}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)(Mo,{})}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)("i",{children:(0,je.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Jo({keyphrase:e,rowData:t={},onTrackKeyphrase:s=c.noop,onUntrackKeyphrase:i=c.noop,isFocusKeyphrase:r=!1,isDisabled:o=!1,isLoading:n=!1,websiteId:a="",isSelected:l,onSelectKeyphrases:d}){var p;const u=!(0,c.isEmpty)(t),h=!(0,c.isEmpty)(null==t||null===(p=t.position)||void 0===p?void 0:p.history),g=(0,oe.useCallback)((()=>{o||(u?i(e,t.id):s(e))}),[e,s,i,u,t,o]),m=(0,oe.useCallback)((()=>{d((t=>l?t.filter((t=>t!==e)):t.concat(e)))}),[d,l,e]);return(0,pe.jsxs)(Ho,{isEnabled:u,children:[(0,pe.jsx)(Uo,{children:h&&(0,pe.jsx)(ut.Checkbox,{id:"select-"+e,onChange:m,checked:l,label:""})}),(0,pe.jsxs)(Wo,{children:[e,r&&(0,pe.jsx)("span",{children:"*"})]}),Xo({rowData:t,websiteId:a,keyphrase:e,onSelectKeyphrases:d}),(0,pe.jsx)($o,{children:Vo({keyphrase:e,isEnabled:u,toggleAction:g,isLoading:n})})]})}Qo.propTypes={rowData:le().object},Jo.propTypes={rowData:le().object,keyphrase:le().string.isRequired,onTrackKeyphrase:le().func,onUntrackKeyphrase:le().func,isFocusKeyphrase:le().bool,isDisabled:le().bool,isLoading:le().bool,websiteId:le().string,isSelected:le().bool.isRequired,onSelectKeyphrases:le().func.isRequired};const en=(0,Ct.makeOutboundLink)(),tn=de().span`
	display: block;
	font-style: italic;

	@media (min-width: 782px) {
		display: inline;
		position: absolute;
		${(0,Ct.getDirectionalStyle)("right","left")}: 8px;
	}
`,sn=de().div`
	width: 100%;
	overflow-y: auto;
`,rn=de().th`
	pointer-events: ${e=>e.isDisabled?"none":"initial"};
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,on=de().th`
	padding-left: 2px !important;
`,nn=e=>{const t=(0,oe.useRef)();return(0,oe.useEffect)((()=>{t.current=e})),t.current},an=(0,c.debounce)((async function(e=null,t=null,s=null,i){return await Lo({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:i})}),500,{leading:!0}),ln=({addTrackedKeyphrase:e,isLoggedIn:t=!1,isNewlyAuthenticated:s=!1,keyphrases:i=[],newRequest:r,removeTrackedKeyphrase:o,setRequestFailed:n,setKeyphraseLimitReached:a,setRequestSucceeded:l,setTrackedKeyphrases:d,setHasTrackedAll:p,trackAll:u=!1,trackedKeyphrases:h=null,websiteId:g="",permalink:m,focusKeyphrase:y="",startAt:w=null,selectedKeyphrases:f,onSelectKeyphrases:b})=>{const x=(0,oe.useRef)(),_=(0,oe.useRef)(),k=(0,oe.useRef)(!1),[v,S]=(0,oe.useState)([]),R=(0,oe.useCallback)((e=>{const t=e.toLowerCase();return h&&!(0,c.isEmpty)(h)&&h.hasOwnProperty(t)?h[t]:null}),[h]),T=(0,oe.useMemo)((()=>async()=>{await Io((()=>(_.current&&_.current.abort(),_.current="undefined"==typeof AbortController?null:new AbortController,an(i,w,m,_.current.signal))),(e=>{l(e),d(e.results)}),(e=>{n(e)}))}),[l,n,d,i,m,w]),E=(0,oe.useCallback)((async t=>{const s=(Array.isArray(t)?t:[t]).map((e=>e.toLowerCase()));S((e=>[...e,...s])),await Io((()=>Ao(s)),(t=>{l(t),e(t.results),T()}),(e=>{400===e.status&&e.limit&&a(e.limit),n(e)}),201),S((e=>(0,c.without)(e,...s)))}),[l,n,a,e,T]),j=(0,oe.useCallback)((async(e,t)=>{e=e.toLowerCase(),S((t=>[...t,e])),await Io((()=>async function(e){return await Lo({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{l(t),o(e)}),(e=>{n(e)})),S((t=>(0,c.without)(t,e)))}),[l,o,n]),C=(0,oe.useCallback)((async e=>{r(),await E(e)}),[r,E]),I=nn(m),L=nn(i),A=nn(w),P=m&&w;(0,oe.useEffect)((()=>{t&&P&&(m!==I||(0,c.difference)(i,L).length||w!==A)&&T()}),[t,m,I,i,L,T,P,w,A]),(0,oe.useEffect)((()=>{if(t&&u&&null!==h){const e=i.filter((e=>!R(e)));e.length&&E(e),p()}}),[t,u,h,E,p,R,i]),(0,oe.useEffect)((()=>{s&&!k.current&&(T(),k.current=!0)}),[s,T]),(0,oe.useEffect)((()=>{if(t&&!(0,c.isEmpty)(h))return(0,c.filter)(h,(e=>(0,c.isEmpty)(e.updated_at))).length>0&&(x.current=setInterval((()=>{T()}),1e4)),()=>{clearInterval(x.current)}}),[t,h,T]);const D=t&&null===h,F=(0,oe.useMemo)((()=>(0,c.isEmpty)(h)?[]:Object.values(h).filter((e=>{var t;return!(0,c.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[h]),O=(0,oe.useMemo)((()=>f.length>0&&F.length>0&&F.every((e=>f.includes(e)))),[f,F]),M=(0,oe.useCallback)((()=>{b(O?[]:F)}),[b,O,F]),q=(0,oe.useMemo)((()=>(0,c.orderBy)(i,[e=>Object.values(h||{}).map((e=>e.keyword)).includes(e)],["desc"])),[i,h]);return i&&!(0,c.isEmpty)(i)&&(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(sn,{children:(0,pe.jsxs)("table",{className:"yoast yoast-table",children:[(0,pe.jsx)("thead",{children:(0,pe.jsxs)("tr",{children:[(0,pe.jsx)(rn,{isDisabled:0===F.length,children:(0,pe.jsx)(ut.Checkbox,{id:"select-all",onChange:M,checked:O,label:""})}),(0,pe.jsx)(on,{scope:"col",abbr:(0,je.__)("Keyphrase","wordpress-seo"),children:(0,je.__)("Keyphrase","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,je.__)("Position","wordpress-seo"),children:(0,je.__)("Position","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,je.__)("Position over time","wordpress-seo"),children:(0,je.__)("Position over time","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,je.__)("Last updated","wordpress-seo"),children:(0,je.__)("Last updated","wordpress-seo")}),(0,pe.jsx)("th",{scope:"col",abbr:(0,je.__)("Tracking","wordpress-seo"),children:(0,je.__)("Tracking","wordpress-seo")})]})}),(0,pe.jsx)("tbody",{children:q.map(((e,s)=>(0,pe.jsx)(Jo,{keyphrase:e,onTrackKeyphrase:C,onUntrackKeyphrase:j,rowData:R(e),isFocusKeyphrase:e===y.trim().toLowerCase(),websiteId:g,isDisabled:!t,isLoading:D||v.indexOf(e.toLowerCase())>=0,isSelected:f.includes(e),onSelectKeyphrases:b},`trackable-keyphrase-${s}`)))})]})}),(0,pe.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,pe.jsx)(en,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,je.sprintf)(/* translators: %s expands to Wincher */
(0,je.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,pe.jsx)(tn,{children:(0,je.__)("* focus keyphrase","wordpress-seo")})]})]})};ln.propTypes={addTrackedKeyphrase:le().func.isRequired,isLoggedIn:le().bool,isNewlyAuthenticated:le().bool,keyphrases:le().array,newRequest:le().func.isRequired,removeTrackedKeyphrase:le().func.isRequired,setRequestFailed:le().func.isRequired,setKeyphraseLimitReached:le().func.isRequired,setRequestSucceeded:le().func.isRequired,setTrackedKeyphrases:le().func.isRequired,setHasTrackedAll:le().func.isRequired,trackAll:le().bool,trackedKeyphrases:le().object,websiteId:le().string,permalink:le().string.isRequired,focusKeyphrase:le().string,startAt:le().string,selectedKeyphrases:le().arrayOf(le().string).isRequired,onSelectKeyphrases:le().func.isRequired};const cn=ln,dn=(0,at.compose)([(0,a.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:i,getWincherPermalink:r,getFocusKeyphrase:o,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:o(),keyphrases:s(),isLoggedIn:i(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:r()}})),(0,a.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherSetKeyphraseLimitReached:r,setWincherTrackedKeyphrases:o,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},setKeyphraseLimitReached:e=>{r(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{o(e)},setHasTrackedAll:()=>{a(!1)}}}))])(cn);class pn{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,i=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,i.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:i}=e;i===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const un=()=>(0,pe.jsx)(ut.Alert,{type:"info",children:(0,je.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,je.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),hn=()=>(0,pe.jsx)(ut.Alert,{type:"success",children:(0,je.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,je.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),gn=()=>(0,pe.jsx)(ut.Alert,{type:"info",children:(0,je.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,je.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")}),mn=(0,Ct.makeOutboundLink)(),yn=(0,Ct.makeOutboundLink)(),wn=()=>{const e=(0,je.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
(0,je.__)("With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"<wincherLink/>","<wincherReadMoreLink/>");return(0,pe.jsx)("p",{children:Pe(e,{wincherLink:(0,pe.jsx)(mn,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,pe.jsx)(yn,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,je.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},fn=(0,Ct.makeOutboundLink)(),bn=({limit:e=10})=>{const t=(0,je.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
(0,je.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e,"<UpdateWincherPlanLink/>");return(0,pe.jsx)(ut.Alert,{type:"error",children:Pe(t,{UpdateWincherPlanLink:(0,pe.jsx)(fn,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,je.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,je.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})})})};bn.propTypes={limit:le().number};const xn=bn,kn=()=>(0,pe.jsx)(ut.Alert,{type:"error",children:(0,je.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),vn=()=>(0,pe.jsx)(ut.Alert,{type:"error",children:(0,je.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo")}),Sn=({onReconnect:e,className:t=""})=>{const s=(0,je.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,je.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return(0,pe.jsx)(ut.Alert,{type:"error",className:t,children:Pe(s,{reconnectToWincher:(0,pe.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},children:(0,je.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,je.__)("reconnect to %s","wordpress-seo"),"Wincher")})})})};Sn.propTypes={onReconnect:le().func.isRequired,className:le().string};const Rn=Sn,Tn=()=>(0,pe.jsx)(ut.Alert,{type:"error",children:(0,je.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),En=de().p`
	color: ${Fi.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,jn=de()(ut.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,Cn=de().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
	background: none;
	cursor: pointer;
`,In=de().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,Ln=de().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#f5f7f7":"transparent"};
	border: 1px solid #c7c7c7;
	border-left: 4px solid${Fi.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,An=({limit:e,usage:t,isTitleShortened:s=!1,isFreeAccount:i=!1})=>{const r=(0,je.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,je.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),o=(0,je.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,je.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),n=i?r:o,a=(0,je.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,je.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,pe.jsxs)(En,{children:[s&&(0,pe.jsx)(jn,{icon:"exclamation-triangle",color:Fi.colors.$color_pink_dark,size:"14px"}),l]})};An.propTypes={limit:le().number.isRequired,usage:le().number.isRequired,isTitleShortened:le().bool,isFreeAccount:le().bool};const Pn=(0,Ct.makeOutboundLink)(),Dn=({discount:e,months:t})=>{const s=(0,pe.jsx)(Pn,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,je.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,je.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,pe.jsx)(In,{children:s});const i=100*e,r=(0,je.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,je.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,pe.jsx)(In,{children:Pe(r,{wincherAccountUpgradeLink:s})})};Dn.propTypes={discount:le().number,months:le().number};const Fn=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const i=(()=>{const[e,t]=(0,oe.useState)(null);return(0,oe.useEffect)((()=>{e||async function(){return await Lo({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:r,usage:o}=s;if(!(r&&o/r>=.8))return null;const n=Boolean(null==i?void 0:i.discount);return(0,pe.jsxs)(Ln,{isTitleShortened:t,children:[e&&(0,pe.jsx)(Cn,{type:"button","aria-label":(0,je.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,pe.jsx)(ut.SvgIcon,{icon:"times-circle",color:Fi.colors.$color_pink_dark,size:"14px"})}),(0,pe.jsx)(An,{...s,isTitleShortened:t,isFreeAccount:n}),(0,pe.jsx)(Dn,{discount:null==i?void 0:i.discount,months:null==i?void 0:i.months})]})};Fn.propTypes={onClose:le().func,isTitleShortened:le().bool,trackingInfo:le().object};const On=Fn,Mn=window.yoast["chart.js"],qn="label";function Nn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Un(e,t){e.labels=t}function Wn(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qn;const i=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[s]===t[s]));return r&&t.data&&!i.includes(r)?(i.push(r),Object.assign(r,t),r):{...t}}))}function $n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qn;const s={labels:[],datasets:[]};return Un(s,e.labels),Wn(s,e.datasets,t),s}function Bn(e,t){const{height:s=150,width:i=300,redraw:r=!1,datasetIdKey:o,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,De.useRef)(null),g=(0,De.useRef)(),m=()=>{h.current&&(g.current=new Mn.Chart(h.current,{type:n,data:$n(a,o),options:l&&{...l},plugins:c}),Nn(t,g.current))},y=()=>{Nn(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,De.useEffect)((()=>{!r&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)}),[r,l]),(0,De.useEffect)((()=>{!r&&g.current&&Un(g.current.config.data,a.labels)}),[r,a.labels]),(0,De.useEffect)((()=>{!r&&g.current&&a.datasets&&Wn(g.current.config.data,a.datasets,o)}),[r,a.datasets]),(0,De.useEffect)((()=>{g.current&&(r?(y(),setTimeout(m)):g.current.update(p))}),[r,l,a.labels,a.datasets,p]),(0,De.useEffect)((()=>{g.current&&(y(),setTimeout(m))}),[n]),(0,De.useEffect)((()=>(m(),()=>y())),[]),De.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:i},u),d)}const Kn=(0,De.forwardRef)(Bn);function Hn(e,t){return Mn.Chart.register(t),(0,De.forwardRef)(((t,s)=>De.createElement(Kn,Object.assign({},t,{ref:s,type:e}))))}const Yn=Hn("line",Mn.LineController),zn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Mn._adapters._date.override("function"==typeof Eo()?{_id:"moment",formats:function(){return zn},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=Eo()(e,t):e instanceof Eo()||(e=Eo()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return Eo()(e).format(t)},add:function(e,t,s){return Eo()(e).add(t,s).valueOf()},diff:function(e,t,s){return Eo()(e).diff(Eo()(t),s)},startOf:function(e,t,s){return e=Eo()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return Eo()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const Vn=["top","right","bottom","left"];function Gn(e,t,s){const i={};s=s?"-"+s:"";for(let r=0;r<4;r++){const o=Vn[r];i[o]=parseFloat(e[t+"-"+o+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),Mn.Chart.register(Mn.CategoryScale,Mn.LineController,Mn.LineElement,Mn.PointElement,Mn.LinearScale,Mn.TimeScale,Mn.Legend,Mn.Tooltip);const Zn=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Qn({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const i=(0,oe.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Zn[t%Zn.length]])))),[s]),r=e.map((e=>{const t=i[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,pe.jsx)(Yn,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:c.noop},tooltip:{enabled:!0,callbacks:{title:e=>Eo()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}Mn.Interaction.modes.xPoint=(e,t,s,i)=>{const r=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,r=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),o="border-box"===r.boxSizing,n=Gn(r,"padding"),a=Gn(r,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:r,offsetY:o}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(r,o,e.target))n=r,a=o;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return o&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let o=[];if(Mn.Interaction.evaluateInteractionItems(e,"x",r,((e,t,s)=>{e.inXRange(r.x,i)&&o.push({element:e,datasetIndex:t,index:s})})),0===o.length)return o;const n=o.reduce(((e,t)=>Math.abs(r.x-e.element.x)<Math.abs(r.x-t.element.x)?e:t)).element.x;return o=o.filter((e=>e.element.x===n)),o.some((e=>Math.abs(e.element.y-r.y)<10))?o:[]},Qn.propTypes={datasets:le().arrayOf(le().shape({label:le().string.isRequired,data:le().arrayOf(le().shape({datetime:le().string.isRequired,value:le().number.isRequired})).isRequired,selected:le().bool})).isRequired,isChartShown:le().bool.isRequired,keyphrases:le().array.isRequired};const Xn=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,pe.jsx)(Rn,{onReconnect:t}):(0,pe.jsx)(Tn,{});Xn.propTypes={response:le().object.isRequired,onLogin:le().func.isRequired};const Jn=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:r,limit:o})=>r?(0,pe.jsx)(xn,{limit:o}):(0,c.isEmpty)(t)||e?s?(0,pe.jsx)(gn,{}):null:(0,pe.jsx)(Xn,{response:t,onLogin:i});Jn.propTypes={isSuccess:le().bool.isRequired,allKeyphrasesMissRanking:le().bool.isRequired,response:le().object,onLogin:le().func.isRequired,keyphraseLimitReached:le().bool.isRequired,limit:le().number.isRequired};let ea=null;const ta=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:r,setKeyphraseLimitReached:o})=>{if(ea&&!ea.isClosed())return void ea.focus();const{url:n}=await async function(){return await Lo({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();ea=new pn(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:r,setKeyphraseLimitReached:o},n)=>{await Io((()=>async function(e){const{code:t,websiteId:s}=e;return await Lo({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await Io((()=>Ao(l)),(e=>{t(e),r(e.results)}),(e=>{400===e.status&&e.limit&&o(e.limit),s(e)}),201);const c=ea.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:r,setKeyphraseLimitReached:o},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),ea.createPopup()},sa=e=>e.isLoggedIn?null:(0,pe.jsx)("p",{children:(0,pe.jsx)(ut.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,je.sprintf)(/* translators: %s expands to Wincher */
(0,je.__)("Connect with %s","wordpress-seo"),"Wincher")})});sa.propTypes={isLoggedIn:le().bool.isRequired,onLogin:le().func.isRequired};const ia=de().div`
	p {
		margin: 1em 0;
	}
`,ra=de().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,oa=de().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,na=de().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,aa=de().div`
	margin: 8px 0;
`,la=Eo().utc().startOf("day"),ca=[{name:(0,je.__)("Last day","wordpress-seo"),value:Eo()(la).subtract(1,"days").format(),defaultIndex:1},{name:(0,je.__)("Last week","wordpress-seo"),value:Eo()(la).subtract(1,"week").format(),defaultIndex:2},{name:(0,je.__)("Last month","wordpress-seo"),value:Eo()(la).subtract(1,"month").format(),defaultIndex:3},{name:(0,je.__)("Last year","wordpress-seo"),value:Eo()(la).subtract(1,"year").format(),defaultIndex:0}],da=({onSelect:e,selected:t=null,options:s,isLoggedIn:i})=>i?s.length<1?null:(0,pe.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map((e=>(0,pe.jsx)("option",{value:e.value,children:e.name},e.name)))}):null;da.propTypes={onSelect:le().func.isRequired,selected:le().object,options:le().array.isRequired,isLoggedIn:le().bool.isRequired};const pa=({trackedKeyphrases:e=null,isLoggedIn:t,keyphrases:s,shouldTrackAll:i,permalink:r,historyDaysLimit:o=0})=>{if(!r&&t)return(0,pe.jsx)(vn,{});if(0===s.length)return(0,pe.jsx)(kn,{});const n=Eo()(la).subtract(o,"days"),a=ca.filter((e=>Eo()(e.value).isSameOrAfter(n))),l=(0,c.orderBy)(a,(e=>e.defaultIndex),"desc")[0],[d,p]=(0,oe.useState)(l),[u,h]=(0,oe.useState)([]),g=u.length>0,m=(0,at.usePrevious)(e);(0,oe.useEffect)((()=>{if(!(0,c.isEmpty)(e)&&(0,c.difference)(Object.keys(e),Object.keys(m||[])).length){const t=Object.values(e).map((e=>e.keyword));h(t)}}),[e,m]),(0,oe.useEffect)((()=>{p(l)}),[null==l?void 0:l.name]);const y=(0,oe.useCallback)((e=>{const t=ca.find((t=>t.value===e.target.value));t&&p(t)}),[p]),w=(0,oe.useMemo)((()=>(0,c.isEmpty)(u)||(0,c.isEmpty)(e)?[]:Object.values(e).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:u.includes(e.keyword)&&!(0,c.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[u,e]);return(0,pe.jsxs)(ra,{isDisabled:!t,children:[(0,pe.jsx)("p",{children:(0,je.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),t&&i&&(0,pe.jsx)(un,{}),(0,pe.jsx)(na,{children:(0,pe.jsx)(da,{selected:d,onSelect:y,options:a,isLoggedIn:t})}),(0,pe.jsx)(aa,{children:(0,pe.jsx)(Qn,{isChartShown:g,datasets:w,keyphrases:s})}),(0,pe.jsx)(dn,{startAt:null==d?void 0:d.value,selectedKeyphrases:u,onSelectKeyphrases:h,trackedKeyphrases:e})]})};function ua({trackedKeyphrases:e=null,addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:i=!1,keyphrases:r=[],response:o={},shouldTrackAll:n=!1,permalink:a="",allKeyphrasesMissRanking:l,isSuccess:c,keyphraseLimitReached:d,limit:p,setRequestSucceeded:u,setRequestFailed:h,setKeyphraseLimitReached:g,onAuthentication:m}){const y=(0,oe.useCallback)((()=>{ta({onAuthentication:m,setRequestSucceeded:u,setRequestFailed:h,keyphrases:r,addTrackedKeyphrase:t,setKeyphraseLimitReached:g})}),[ta,m,u,h,r,t,g]),w=(e=>{const[t,s]=(0,oe.useState)(null);return(0,oe.useEffect)((()=>{e&&!t&&async function(){return await Lo({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t})(s);return(0,pe.jsxs)(ia,{children:[i&&(0,pe.jsx)(hn,{}),s&&(0,pe.jsx)(On,{trackingInfo:w}),(0,pe.jsxs)(oa,{children:[(0,je.__)("SEO performance","wordpress-seo"),(0,pe.jsx)(ut.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,pe.jsx)(wn,{}),(0,pe.jsx)(sa,{isLoggedIn:s,onLogin:y}),(0,pe.jsx)(Jn,{isSuccess:c,response:o,allKeyphrasesMissRanking:l,keyphraseLimitReached:d,limit:p,onLogin:y}),(0,pe.jsx)(pa,{trackedKeyphrases:e,isLoggedIn:s,keyphrases:r,shouldTrackAll:n,permalink:a,historyDaysLimit:(null==w?void 0:w.historyDays)||31})]})}pa.propTypes={trackedKeyphrases:le().object,keyphrases:le().array.isRequired,isLoggedIn:le().bool.isRequired,shouldTrackAll:le().bool.isRequired,permalink:le().string.isRequired,historyDaysLimit:le().number},ua.propTypes={trackedKeyphrases:le().object,addTrackedKeyphrase:le().func.isRequired,isLoggedIn:le().bool,isNewlyAuthenticated:le().bool,keyphrases:le().array,response:le().object,shouldTrackAll:le().bool,permalink:le().string,allKeyphrasesMissRanking:le().bool.isRequired,isSuccess:le().bool.isRequired,keyphraseLimitReached:le().bool.isRequired,limit:le().number.isRequired,setRequestSucceeded:le().func.isRequired,setRequestFailed:le().func.isRequired,setKeyphraseLimitReached:le().func.isRequired,onAuthentication:le().func.isRequired};const ha=(0,at.compose)([(0,a.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:i,getWincherLoginStatus:r,getWincherRequestIsSuccess:o,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:r(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:s(),limit:i(),response:n(),shouldTrackAll:p(),permalink:d()}})),(0,a.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherTrackingForKeyphrase:r,setWincherSetKeyphraseLimitReached:o,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},addTrackedKeyphrase:e=>{r(e)},setKeyphraseLimitReached:e=>{o(e)},onAuthentication:(e,s,i)=>{t(i),n(e,s)}}}))])(ua),ga=de()(So)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function ma({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function ya({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:i,onNoKeyphraseSet:r,onOpen:o,onClose:n}){const a=(0,oe.useCallback)((()=>{ma({keyphrases:i,onNoKeyphraseSet:r,onOpen:o,location:e})}),[ma,i,r,o,e]),l=(0,je.__)("Track SEO performance","wordpress-seo"),c=Ms();return(0,pe.jsxs)(oe.Fragment,{children:[t===e&&(0,pe.jsx)(Ns,{title:l,onRequestClose:n,icon:(0,pe.jsx)(ft,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,pe.jsx)(Ro,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,pe.jsx)(ha,{})})}),"sidebar"===e&&(0,pe.jsx)(gt,{id:`wincher-open-button-${e}`,title:l,SuffixHeroIcon:(0,pe.jsx)(ga,{className:"yst-text-slate-500",...c}),onClick:a}),"metabox"===e&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(pt,{id:`wincher-open-button-${e}`,onClick:a,children:[(0,pe.jsx)(pt.Text,{children:l}),(0,pe.jsx)(So,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c})]})})]})}ya.propTypes={location:le().string,whichModalOpen:le().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:le().bool,keyphrases:le().array.isRequired,onNoKeyphraseSet:le().func.isRequired,onOpen:le().func.isRequired,onClose:le().func.isRequired};const wa=(0,at.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(ya),fa=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,pe.jsx)(kt,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,je.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,je.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,je.__)("Target multiple keyphrases","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),ba=()=>{const[e,,,t,s]=(0,Ae.useToggleState)(!1),i=(0,oe.useContext)(ne.LocationContext),{locationContext:r}=(0,ne.useRootContext)(),o=(0,Ae.useSvgAria)(),n=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(fa,{isOpen:e,closeModal:s,upsellLink:(0,ct.addQueryArgs)(n,{context:r}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,pe.jsx)(gt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,je.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Fi.colors.$color_grey_medium_dark},onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),"metabox"===i&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(pt,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(ut.SvgIcon,{icon:"plus",color:Fi.colors.$color_grey_medium_dark}),(0,pe.jsx)(pt.Text,{children:(0,je.__)("Add related keyphrase","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(lt,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};function xa({isLoading:e,onLoad:t,settings:s}){const i=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Ft(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Mt},{getIsEligible:Fs,component:()=>(0,pe.jsx)(Ds,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,pe.jsx)(jt,{})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor")),[])});return(0,oe.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)(re.Fill,{name:"YoastElementor",children:[(0,pe.jsxs)(di,{renderPriority:1,children:[(0,pe.jsx)(li,{}),i&&(0,pe.jsx)("div",{className:"yst-inline-block yst-px-1.5",children:(0,pe.jsx)(i,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsxs)(di,{renderPriority:8,children:[(0,pe.jsx)(St.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,pe.jsx)(re.Fill,{name:"YoastRelatedKeyphrases",children:(0,pe.jsx)(vo,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsx)(di,{renderPriority:10,children:(0,pe.jsxs)(oe.Fragment,{children:[(0,pe.jsx)(St.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,pe.jsx)(Vr,{})]})}),s.isContentAnalysisActive&&(0,pe.jsx)(di,{renderPriority:15,children:(0,pe.jsx)(St.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,pe.jsx)(di,{renderPriority:19,children:(0,pe.jsx)(St.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,pe.jsx)(di,{renderPriority:22,children:s.shouldUpsell&&(0,pe.jsx)(ba,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,pe.jsx)(di,{renderPriority:23,children:(0,pe.jsx)(wa,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,pe.jsx)(di,{renderPriority:24,children:(0,pe.jsx)(vt,{})},"internal-linking-suggestions-upsell"),(0,pe.jsx)(di,{renderPriority:25,children:(0,pe.jsx)(Ci,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,pe.jsx)(di,{renderPriority:26,children:(0,pe.jsx)(Hr,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,pe.jsx)(di,{renderPriority:28,children:(0,pe.jsx)(Zr,{title:(0,je.__)("Schema","wordpress-seo"),children:(0,pe.jsx)(po,{})})}),s.displayAdvancedTab&&(0,pe.jsx)(di,{renderPriority:29,children:(0,pe.jsx)(Zr,{title:(0,je.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,pe.jsx)(bo,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,pe.jsx)(di,{renderPriority:30,children:(0,pe.jsx)(Tt,{})}),s.isInsightsEnabled&&(0,pe.jsx)(di,{renderPriority:32,children:(0,pe.jsx)(ni,{location:"elementor"})})]})})}xa.propTypes={isLoading:le().bool.isRequired,onLoad:le().func.isRequired,settings:le().object.isRequired};const _a=(0,at.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,a.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(xa),ka="yoast-elementor-react-tab",va="yoast-seo-tab",Sa="Yoast SEO",Ra="panel/page-settings",Ta=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[va]||(e.tabs=(0,c.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[va]=Sa),e)),{})),$e.components.get(Ra).hasTab(va)||$e.components.get(Ra).addTab(va,{title:Sa})};let Ea=!1,ja=!1;const Ca=(0,c.debounce)(Ce,500,{trailing:!0}),Ia=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=we,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=g();me=(0,oe.createRef)();const i={isRtl:s.isRtl};(0,oe.createRoot)(document.getElementById(e)).render((0,pe.jsx)(he,{theme:i,location:"sidebar",children:(0,pe.jsx)(re.SlotFillProvider,{children:(0,pe.jsxs)(oe.Fragment,{children:[t,(0,pe.jsx)(ye,{ref:me})]})})}))}(e.id,(0,pe.jsx)(ne.Root,{context:{locationContext:"elementor-sidebar"},children:(0,pe.jsxs)(Le,{id:ka,children:[(0,pe.jsx)(nt,{}),(0,pe.jsx)(_a,{})]})}))})(),ve("editor/documents/load","yoast-seo/register-tab",Ta,(({config:e})=>Se(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${Ra}/${va}`&&(()=>{if(document.getElementById(ka))return;const e=document.getElementById("elementor-panel-page-settings-controls");if(!e)return;const t=e.querySelector(".elementor-control-yoast-seo-section");t&&(t.style.display="none");const s=document.createElement("div");s.id=ka,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),Ta(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:Sa,type:"page",callback:()=>{try{$e.route(`${Ra}/${va}`)}catch(e){$e.route(`${Ra}/settings`),$e.route(`${Ra}/${va}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});_e("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!Se((null==e||null===(s=e.document)||void 0===s?void 0:s.id)||elementor.documents.getCurrent().id)&&Boolean(null==t?void 0:t.post_status)}))})((()=>Ca(Ea)));const t=((e,t=500)=>{const s={},i=Array.from(e.querySelectorAll("input[name^='yoast']")),r=i.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),o={...r},n=new MutationObserver((0,c.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==r[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:r[e.target.name],snapshotValue:o[e.target.name]}),r[e.target.name]=e.target.value)})),t.length>0&&(0,c.forEach)(s,(e=>e(t)))}),t));return{start:()=>n.observe(e,{attributes:!0,subtree:!0}),stop:()=>n.disconnect(),subscribe:e=>{const t=(0,c.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{i.forEach((({name:e,value:t})=>{o[e]=t}))},restoreSnapshot:()=>{i.forEach((e=>{e.value=o[e.name],r[e.name]=o[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,i=e.previousValue,!(Te.includes(t)||Ee.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,i;try{s=JSON.parse(t),i=JSON.parse(e)}catch(e){return!0}return s.length===i.length&&s.every(((e,t)=>e.keyword===i[t].keyword))})(i,s)||s===i);var t,s,i}))&&(Ea=!0,Ca(Ea),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),ke("editor/documents/open","yoast-seo/document/open",(()=>{YoastSEO.store._freeze(!1),t.start(),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})}),(({id:e})=>Se(e))),_e("editor/documents/close","yoast-seo/document/close",(0,c.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),Ea=!1,Ce(Ea));const s=()=>{YoastSEO.store._freeze(!0),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,l.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,l.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(ja)return(0,l.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,l.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()}),500,{leading:!0,trailing:!1}),(({id:e})=>Se(e))),ve("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(ja=!0,!Se(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;Ea=!1;const{success:i,formData:r,data:o,xhr:n}=await(e=>new Promise((t=>{const s=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),s).done((({success:e,data:i},r,o)=>t({success:e,formData:s,data:i,xhr:o}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!i)return Ea=!0,ja=!1,void(0,l.doAction)("yoast.elementor.save.failure");o.slug&&o.slug!==r.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:o.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(o.slug),Ce(Ea),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),ja=!1}),(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},La=window.yoast.reduxJsToolkit,Aa="adminUrl",Pa=(0,La.createSlice)({name:Aa,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Da=(Pa.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,Aa,"")});Da.selectAdminLink=(0,La.createSelector)([Da.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Pa.actions,Pa.reducer;const Fa="hasConsent",Oa=(0,La.createSlice)({name:Fa,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ma=(Oa.getInitialState,Oa.actions,Oa.reducer,"linkParams"),qa=(0,La.createSlice)({name:Ma,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Na=(qa.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ma}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ma,{})});Na.selectLink=(0,La.createSelector)([Na.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,ct.addQueryArgs)(t,{...e,...s}))),qa.actions,qa.reducer;const Ua=(0,La.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:s="default",title:i,description:r})=>({payload:{id:e||(0,La.nanoid)(),variant:t,size:s,title:i||"",description:r}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),Wa=(Ua.getInitialState,Ua.actions,Ua.reducer,"pluginUrl"),$a=(0,La.createSlice)({name:Wa,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ba=($a.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,Wa,"")});Ba.selectImageLink=(0,La.createSelector)([Ba.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),$a.actions,$a.reducer;const Ka="wistiaEmbedPermission",Ha=(0,La.createSlice)({name:Ka,initialState:{value:!1,status:it,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Ka}/request`,(e=>{e.status=rt})),e.addCase(`${Ka}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Ka}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}}),Ya=(Ha.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,Ka,{value:!1,status:it}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[Ka,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[Ka,"status"],it),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[Ka,"error"],{})}),za=(Ha.actions,{[Ka]:async({payload:e})=>Co()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var Va;Ha.reducer;const Ga="documentTitle",Za=(0,La.createSlice)({name:Ga,initialState:(0,c.defaultTo)(null===(Va=document)||void 0===Va?void 0:Va.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),Qa=(Za.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,Ga,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,Ga,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function Xa({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function Ja({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}Za.actions,Za.reducer;const el=async({countryCode:e,keyphrase:t})=>(Co()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),Co()({path:(0,ct.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),tl=za[Ka];class sl{static get titleElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}static get descriptionElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}static get slugElement(){return document.getElementById("yoast_wpseo_slug")}static get title(){return sl.titleElement.value}static set title(e){sl.titleElement.value=e}static get description(){return sl.descriptionElement.value}static set description(e){sl.descriptionElement.value=e}static get slug(){return sl.slugElement.value}static set slug(e){sl.slugElement.value=e}}const{UPDATE_DATA:il,LOAD_SNIPPET_EDITOR_DATA:rl}=u.actions;function ol(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),sl.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),sl.description=t}return e.hasOwnProperty("slug")&&(sl.slug=e.slug),{type:il,data:e}}const nl=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:rl,data:{title:sl.title||e,description:sl.description||t,slug:sl.slug},templates:{title:e,description:t}}},al="yoast-measurement-element";function ll(e){let t=document.getElementById(al);return t||(t=function(){const e=document.createElement("div");return e.id=al,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const{getEditorDataSlug:cl,getEditorDataTitle:dl,getSnippetEditorDescription:pl,getSnippetEditorSlug:ul,getSnippetEditorTitle:hl}=u.selectors,gl=(0,La.createSelector)([cl,ul,dl,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],((e,t,s,i)=>t||e||(0,ct.cleanForSlug)(s)||String(i))),ml=(0,La.createSelector)([hl,pl,gl],((e,t,s)=>({title:e,description:t,slug:s}))),{getBaseUrlFromSettings:yl,getContentLocale:wl,getEditorDataContent:fl,getFocusKeyphrase:bl,getSnippetEditorDescriptionWithTemplate:xl,getSnippetEditorTitleWithTemplate:_l,getDateFromSettings:kl}=u.selectors,vl=e=>{let t=_l(e),s=xl(e),i=gl(e);const r=yl(e);return t=Ct.strings.stripHTMLTags(E("data_page_title",t)),s=Ct.strings.stripHTMLTags(E("data_meta_desc",s)),i=i.trim().replace(/\s+/g,"-"),{text:fl(e),title:t,keyword:bl(e),description:s,locale:wl(e),titleWidth:ll(t),slug:i,permalink:r+i,date:kl(e)}};function Sl(e){return(0,c.get)(e,"editorContext.postType")}const Rl=(0,La.createSelector)([Sl],(e=>"product"===e)),Tl=(0,La.createSelector)([Sl],(e=>["product_cat","product_tag"].includes(e))),El=(0,La.createSelector)([Rl,Tl],((e,t)=>e||t)),jl=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===m()?80:156;t=fi((0,c.get)(e,"editorData.content",""),s)}return t},Cl=e=>(0,c.get)(e,"analysisData.snippet.title",""),Il=e=>(0,c.get)(e,"analysisData.snippet.description",""),Ll=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),Al=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),Pl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),Dl=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),Fl=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),Ol=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach((e=>{"excerpt"===e.name&&(t=e.value)})),t},Ml=e=>(0,c.get)(e,"facebookEditor.title",""),ql=e=>(0,c.get)(e,"facebookEditor.description",""),Nl=(0,La.createSelector)([Pl,Cl,Al,Ll],((...e)=>e.find(Boolean)||"")),Ul=((0,La.createSelector)([Ml,Nl],((e,t)=>e||t)),(0,La.createSelector)([Fl,Il,Dl,Ol,jl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}))),Wl=((0,La.createSelector)([ql,Ul],((e,t)=>e||t)),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),$l=e=>Wl(e,"isWooCommerceActive",!1),Bl=e=>Wl(e,"isWooCommerceSeoActive",!1);(0,La.createSelector)([Bl,$l,El],((e,t,s)=>!e&&t&&s)),(0,La.createSelector)([Bl,$l,Tl],((e,t,s)=>!e&&t&&s)),(0,La.createSelector)([El,$l],((e,t)=>t&&e));const Kl=(0,La.createSelector)([Pl,Ml,Cl,Al,Ll],((...e)=>e.find(Boolean)||"")),Hl=((0,La.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),Kl],((e,t)=>e||t)),(0,La.createSelector)([Fl,ql,Il,Dl,Ol,jl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,La.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),Hl],((e,t)=>e||t));const{selectAdminUrl:Yl,selectAdminLink:zl}=Da,{selectLinkParams:Vl,selectLinkParam:Gl,selectLink:Zl}=Na,{selectDocumentFullTitle:Ql}=Qa,{selectPluginUrl:Xl,selectImageLink:Jl}=Ba,{selectWistiaEmbedPermission:ec,selectWistiaEmbedPermissionValue:tc,selectWistiaEmbedPermissionStatus:sc,selectWistiaEmbedPermissionError:ic}=Ya,rc=(0,La.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),gl],((e,t)=>e+t)),oc={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},nc={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},ac={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},lc={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},cc={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},dc={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},pc={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},uc={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},hc={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},gc={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},mc={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},yc={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},wc={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},fc={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},bc={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},xc={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},_c={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},kc={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},vc={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Sc={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Rc={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Tc={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Ec={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},jc={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Cc={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Ic={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Lc={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Ac={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Pc={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Dc={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Fc={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Oc={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,c.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Mc={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},qc={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Nc={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Uc={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Wc={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},$c=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,Wc)};$c.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},$c.prototype.setSource=function(e){this.options.source=e},$c.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},$c.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},$c.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},$c.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},$c.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},$c.prototype.getAliases=function(){return this.options.aliases};const Bc=$c,Kc="replaceVariablePlugin";let Hc=null,Yc=null;const zc=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{R(t,e,Kc,10)}))},Vc=(e="")=>{switch(""===e&&(e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},Gc=e=>zc((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),Zc=()=>{if(null===Yc){Yc=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===Hc&&(Hc=Vc().map((e=>null==n?void 0:n[e])).filter(Boolean)),Hc).forEach((t=>{const s=e.includes(t.name);Yc.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach((e=>{Yc.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return Yc};const Qc={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""},Xc="yoastmark";function Jc(e=elementor.documents.getCurrent()){var t,s;let i=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var r;return null!==(s=i)&&void 0!==s&&s.length||(i=null===(r=e.$element)||void 0===r?void 0:r.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),i}function ed(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=fi(e,"ja"===m()?80:156)),s)}function td(){const e=elementor.documents.getCurrent();if(!Re())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,a.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=Jc(e))||void 0===t||t.each(((e,t)=>{const i=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(i)})),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),i=function(e){const t=d.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(t);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:ed(t),excerptOnly:ed(t,!0),imageUrl:s||i,featuredImage:s,contentImage:i,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==Qc.content&&(Qc.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(Qc.content)),t.title!==Qc.title&&(Qc.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(Qc.title)),t.excerpt!==Qc.excerpt&&(Qc.excerpt=t.excerpt,Qc.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Qc.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",Qc.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",Qc.excerptOnly)),t.imageUrl!==Qc.imageUrl&&(Qc.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Qc.imageUrl)),t.contentImage!==Qc.contentImage&&(Qc.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(Qc.contentImage)),t.featuredImage!==Qc.featuredImage&&(Qc.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:Qc.featuredImage}))}function sd(){Jc().each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+Xc)&&(t.innerHTML=d.markers.removeMarks(t.innerHTML))})),(0,a.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,a.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}const id=(0,c.debounce)(td,500);function rd(e,t){const{updateWordsToHighlight:s}=(0,a.dispatch)("yoast-seo/editor");e("morphology",new d.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,c.uniq)((0,c.flatten)(e)))})).catch((()=>{s([])}))}const od=(0,c.debounce)(rd,500);var nd=jQuery;function ad(e,t,s,i,r){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=nd("#post_ID, [name=tag_ID]").val(),this._taxonomy=nd("[name=taxonomy]").val()||"",this._nonce=r,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function ld(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=((e,t)=>{let s,i=!1,r=!1;return{snapshotReducer:(r=t,o)=>i?(i=!1,s):e(r,o),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,c.cloneDeep)(e()),r=!0},restoreSnapshot:e=>{r&&(i=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(u.reducers)),{freezeReducer:d,toggleFreeze:p}=((e,t)=>{let s=!1,i=null;return{freezeReducer:(r=t,o)=>s?i:e(r,o),toggleFreeze:(e,t=!s)=>{i=t?(0,c.cloneDeep)(e()):null,s=Boolean(t)}}})(s),h=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...u.selectors,...r,...i,...o},actions:(0,c.pickBy)({...u.actions,...t},(e=>"function"==typeof e)),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,je.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,je.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,je.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,je.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,je.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,je.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,je.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,je.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,je.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,je.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,je.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,je.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,je.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,je.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,je.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,je.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,je.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,je.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:Zc()}}});return(e=>{e.dispatch(u.actions.loadCornerstoneContent()),e.dispatch(u.actions.loadFocusKeyword()),e.dispatch(u.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(u.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(u.actions.loadFacebookPreviewData()),s&&e.dispatch(u.actions.loadTwitterPreviewData()),e.dispatch(u.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(u.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(u.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(u.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(u.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(u.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(u.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(u.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(u.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(u.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(u.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(u.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const i=document.getElementById("yoast_wpseo_slug");i&&e.dispatch(u.actions.setEditorDataSlug(i.value))})(h),h._freeze=p.bind(null,h.getState),h._takeSnapshot=n.bind(null,h.getState,h.dispatch),h._restoreSnapshot=l.bind(null,h.dispatch),h}(),function(){ke("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(sd,500),Re),ke("document/save/save","yoast-seo/marks/reset-on-save",sd,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id)));const e=(e=>{const t=new MutationObserver(e);return(e=document)=>(t.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect())})(id);let t=c.noop;_e("editor/documents/close","yoast-seo/content-scraper/stop",(()=>{t(),t=c.noop,id.cancel()}),(({id:e})=>Se(e))),_e("editor/documents/attach-preview","yoast-seo/content-scraper/start",(()=>{t=e()}),Re),_e("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",id,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),td()}(),window.YoastSEO.pluginReady=v,window.YoastSEO.pluginReloaded=S,window.YoastSEO.registerModification=R,window.YoastSEO.registerPlugin=T,window.YoastSEO.applyModifications=E,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,a.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,a.select)("yoast-seo/editor"),s=function(){const e=(0,c.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,d.createWorker)(e),s=(0,c.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const r=t.innerHTML.slice(214),o=r.indexOf(","),n=r.slice(0,o-1);try{const e=JSON.parse(r.slice(o+1,-4));i.push([n,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:m(),contentAnalysisActive:y(),keywordAnalysisActive:w(),inclusiveLanguageAnalysisActive:f(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,b.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:ee()})).catch(p),window.YoastSEO.analysis.applyMarks=(e,t)=>ee()(e,t);let i=se(),r=t(),o=e();return(0,a.subscribe)((()=>{const n=t(),a=se(),l=e();if(n!==r)return r=n,i=a,void s.initialize({useCornerstone:n}).then((()=>te(s,a))).catch(p);l===o&&!1!==(0,c.isEqual)(a,i)||(i=a,o=l,te(s,a))})),s}(),window.YoastSEO.analysis.collectData=se,T(Kc,{status:"ready"}),Vc().forEach((e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);zc(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:Gc,ReplaceVar:Bc},function(){const e=g(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),i=new ad("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);i.init();let r="";(0,a.subscribe)((()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==r&&(r=e,i.setKeyword(e))}))}(),(()=>{if((0,a.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,a.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,a.subscribe)((0,c.debounce)(ie(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();rd(e,s),(0,a.subscribe)((()=>{const i=t();s!==i&&(s=i,od(e,i))}))}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){if(!0===window.elementor.config.user.introduction["yoast-introduction-editor-v2"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction-editor-v2",dialogOptions:{id:"yoast-introduction-editor-v2",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+20",of:document.querySelector("button[value='document-settings']"),using:function(e,t){this.style.setProperty("--yoast-elementor-introduction-arrow",t.target.left-t.element.left+8+"px");const s=t.target.element.closest("#elementor-editor-wrapper-v2 header");s&&s.offsetHeight>e.top-12?this.style.top=s.offsetHeight+20+"px":(0,c.isObject)(s)&&s[0].offsetHeight>e.top-12?this.style.top=s[0].offsetHeight+12+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"},autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/page-settings/settings"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show()}catch(e){setTimeout(t,100)}}),100)}():function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}(),Ia(),(0,l.doAction)("yoast.elementor.loaded")}ad.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,c.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,c.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},ad.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},ad.prototype.requestKeywordUsage=function(e){nd.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},ad.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,r=t.post_types;i&&(0,c.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=r,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))},jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(ld)}))}))})()})();