!function(e){var t={};function n(s){if(t[s])return t[s].exports;var i=t[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(s,i,function(t){return e[t]}.bind(null,i));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=290)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.yoast.propTypes},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},,function(e,t){e.exports=window.yoast.uiLibrary},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r}));const s={request:"request",success:"success",error:"error"},i={idle:"idle",loading:"loading",success:"success",error:"error"},r={showPlay:"showPlay",askPermission:"askPermission",isPlaying:"isPlaying"}},function(e,t){e.exports=window.yoast.styledComponents},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t{let{payload:n}=t;return n}}}),c=o.getInitialState,l={selectLinkParam:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(r.get)(e,`${a}.${t}`,n)},selectLinkParams:e=>Object(r.get)(e,a,{})};l.selectLink=Object(s.createSelector)([l.selectLinkParams,(e,t)=>t],(e,t)=>Object(i.addQueryArgs)(t,e));const d=o.actions,u=o.reducer,p="notifications",h=Object(s.createSlice)({name:p,initialState:{},reducers:{addNotification:{reducer:(e,t)=>{let{payload:n}=t;e[n.id]={id:n.id,variant:n.variant,size:n.size,title:n.title,description:n.description}},prepare:e=>{let{id:t,variant:n="info",size:i="default",title:r,description:a}=e;return{payload:{id:t||Object(s.nanoid)(),variant:n,size:i,title:r||"",description:a}}}},removeNotification:(e,t)=>{let{payload:n}=t;return Object(r.omit)(e,n)}}}),g=h.getInitialState,f={selectNotifications:e=>Object(r.get)(e,p,{}),selectNotification:(e,t)=>Object(r.get)(e,[p,t],null)},m=h.actions,y=h.reducer,b="pluginUrl",w=Object(s.createSlice)({name:b,initialState:"",reducers:{setPluginUrl:(e,t)=>{let{payload:n}=t;return n}}}),v=w.getInitialState,O={selectPluginUrl:e=>Object(r.get)(e,b,"")};O.selectImageLink=Object(s.createSelector)([O.selectPluginUrl,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"images";return n},(e,t)=>t],(e,t,n)=>[Object(r.trimEnd)(e,"/"),Object(r.trim)(t,"/"),Object(r.trimStart)(n,"/")].join("/"));const _=w.actions,j=w.reducer;var k=n(25),x=n.n(k),E=n(10);const S="wistiaEmbedPermission",R=Object(s.createSlice)({name:S,initialState:{value:!1,status:E.b.idle,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,t)=>{let{payload:n}=t;e.value=Boolean(n)}},extraReducers:e=>{e.addCase(`${S}/${E.a.request}`,e=>{e.status=E.b.loading}),e.addCase(`${S}/${E.a.success}`,(e,t)=>{let{payload:n}=t;e.status=E.b.success,e.value=Boolean(n.value)}),e.addCase(`${S}/${E.a.error}`,(e,t)=>{var n,s;let{payload:i}=t;console.error(`${null===(n=i.error)||void 0===n?void 0:n.code}: ${null===(s=i.error)||void 0===s?void 0:s.message}`),e.status=E.b.error,e.value=Boolean(i.value),e.error=i.error})}}),C=R.getInitialState,T={selectWistiaEmbedPermission:e=>Object(r.get)(e,S,{value:!1,status:E.b.idle}),selectWistiaEmbedPermissionValue:e=>Object(r.get)(e,[S,"value"],!1),selectWistiaEmbedPermissionStatus:e=>Object(r.get)(e,[S,"status"],E.b.idle),selectWistiaEmbedPermissionError:e=>Object(r.get)(e,[S,"error"],{})},P={...R.actions,setWistiaEmbedPermission:function*(e){yield{type:`${S}/${E.a.request}`};try{return yield{type:S,payload:e},{type:`${S}/${E.a.success}`,payload:{value:e}}}catch(t){return{type:`${S}/${E.a.error}`,payload:{error:t,value:e}}}}},A={[S]:async e=>{let{payload:t=!0}=e;return x()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:t}})}},I=R.reducer},function(e,t){e.exports=window.wp.apiFetch},,,,,function(e,t,n){"use strict";var s=n(4),i={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},r=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(s.defaults)(n,i)};r.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},r.prototype.setSource=function(e){this.options.source=e},r.prototype.hasScope=function(){return!Object(s.isEmpty)(this.options.scope)},r.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},r.prototype.inScope=function(e){return!this.hasScope()||Object(s.indexOf)(this.options.scope,e)>-1},r.prototype.hasAlias=function(){return!Object(s.isEmpty)(this.options.aliases)},r.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},r.prototype.getAliases=function(){return this.options.aliases},t.a=r},,,,,,,,function(e,t){e.exports=window.wp.hooks},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n(1),i=n(14),r=n(4);function a(e){return Object(r.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(s.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:Object(s.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(s.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(s.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(i.interpreters.scoreToRating(e))}},function(e,t,n){"use strict";n.r(t),n.d(t,"tmceId",(function(){return c})),n.d(t,"termsTmceId",(function(){return l})),n.d(t,"setStore",(function(){return d})),n.d(t,"isTinyMCELoaded",(function(){return u})),n.d(t,"isTinyMCEAvailable",(function(){return p})),n.d(t,"getContentTinyMce",(function(){return h})),n.d(t,"addEventHandler",(function(){return g})),n.d(t,"disableMarkerButtons",(function(){return f})),n.d(t,"enableMarkerButtons",(function(){return m})),n.d(t,"pauseMarkers",(function(){return y})),n.d(t,"resumeMarkers",(function(){return b})),n.d(t,"isTextViewActive",(function(){return w})),n.d(t,"wpTextViewOnInitCheck",(function(){return v})),n.d(t,"tinyMceEventBinder",(function(){return O}));var s=n(4),i=n(95),r=n(146),a=n(16);let o;var c="content",l="description";function d(e){o=e}function u(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function p(e){if(!u())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function h(e){var t,n,s;return n=!1===p(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),s=new RegExp("&","g"),n.replace(s,"&")}function g(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(i){var r=i.editor;r.id===e&&Object(s.forEach)(t,(function(e){r.on(e,n)}))}))}function f(){Object(s.isUndefined)(o)||o.dispatch(a.actions.setMarkerStatus("disabled"))}function m(){Object(s.isUndefined)(o)||o.dispatch(a.actions.setMarkerStatus("enabled"))}function y(){Object(s.isUndefined)(o)||o.dispatch(a.actions.setMarkerPauseStatus(!0))}function b(){Object(s.isUndefined)(o)||o.dispatch(a.actions.setMarkerPauseStatus(!1))}function w(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function v(){w()&&(f(),u()&&tinyMCE.on("AddEditor",(function(){m()})))}function O(e,t){g(t,["input","change","cut","paste"],e),g(t,["hide"],f);const n=["show"];(new r.a).isPageBuilderActive()||n.push("init"),g(t,n,m),g("content",["focus"],(function(e){const t=e.target;Object(i.a)(t)&&(Object(i.b)(t),YoastSEO.app.disableMarkers()),y()})),g("content",["blur"],(function(){b()}))}},,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return u}));var s=n(5),i=n(122);let r=null;const a=()=>{if(null===r){const e=Object(s.dispatch)("yoast-seo/editor").runAnalysis;r=new i.a(e)}return r},o=e=>a()._ready(e),c=e=>a()._reloaded(e),l=(e,t,n,s)=>a()._registerModification(e,t,n,s),d=(e,t)=>a()._registerPlugin(e,t),u=(e,t,n)=>a().loaded?a()._applyModifications(e,t,n):t},function(e,t){e.exports=window.wp.domReady},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(17),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"keywordAnalysisActive",0)}},,,function(e,t,n){"use strict";function s(){}n.d(t,"a",(function(){return s}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=n(17);function r(){const e=Object(i.a)();return Object(s.get)(e,"contentLocale","en_US")}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(17),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"contentAnalysisActive",0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return c})),n.d(t,"default",(function(){return l})),n.d(t,"initializationDone",(function(){return d}));var s=n(38),i=n(16),r=n(14),a=n(58);let o=!1;function c(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function l(e,t,n,l,d){if(!o)return;const u=r.Paper.parse(t());e.analyze(u).then(r=>{const{result:{seo:a,readability:o,inclusiveLanguage:p}}=r;if(a){const e=a[""];e.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),e.results=c(e.results),l.dispatch(i.actions.setSeoResultsForKeyword(u.getKeyword(),e.results)),l.dispatch(i.actions.setOverallSeoScore(e.score,u.getKeyword())),l.dispatch(i.actions.refreshSnippetEditor()),d.saveScores(e.score,u.getKeyword())}o&&(o.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),o.results=c(o.results),l.dispatch(i.actions.setReadabilityResults(o.results)),l.dispatch(i.actions.setOverallReadabilityScore(o.score)),l.dispatch(i.actions.refreshSnippetEditor()),d.saveContentScore(o.score)),p&&(p.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),p.results=c(p.results),l.dispatch(i.actions.setInclusiveLanguageResults(p.results)),l.dispatch(i.actions.setOverallInclusiveLanguageScore(p.score)),l.dispatch(i.actions.refreshSnippetEditor()),d.saveInclusiveLanguageScore(p.score)),Object(s.doAction)("yoast.analysis.refresh",r,{paper:u,worker:e,collectData:t,applyMarks:n,store:l,dataCollector:d})}).catch(a.a)}function d(){o=!0}},function(e,t){e.exports=window.wp.richText},,,,,,,,,,,,,,function(e,t,n){"use strict";function s(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}n.d(t,"a",(function(){return s}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var s=n(0),i=n(7),r=n(2),a=n.n(r);const o={variant:{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"}}},c=e=>{let{id:t,children:n,title:r,description:a=null,variant:c="2xl"}=e;return Object(s.createElement)("section",{id:t,className:o.variant[c].grid},Object(s.createElement)("div",{className:o.variant[c].col1},Object(s.createElement)("div",{className:"yst-max-w-screen-sm"},Object(s.createElement)(i.Title,{as:"h2",size:"4"},r),a&&Object(s.createElement)("p",{className:"yst-mt-2"},a))),Object(s.createElement)("fieldset",{className:"yst-min-w-0 yst-mt-8 "+o.variant[c].col2},Object(s.createElement)("legend",{className:"yst-sr-only"},r),Object(s.createElement)("div",{className:"yst-space-y-8"},n)))};c.propTypes={id:a.a.string,children:a.a.node.isRequired,title:a.a.node.isRequired,description:a.a.node,variant:a.a.oneOf(Object.keys(o.variant))}},function(e,t){e.exports=window.yoast.featureFlag},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return z})),n.d(t,"e",(function(){return F})),n.d(t,"f",(function(){return Y}));var s=n(0),i=n(1),r=n(7),a=n(2),o=n.n(a);const c=e=>{let{link:t}=e;const n=Object(s.useMemo)(()=>Object(s.createInterpolateElement)(Object(i.sprintf)(
/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
Object(i.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),""),{link:Object(s.createElement)("a",{href:t,target:"_blank",rel:"noopener"},"Yoast SEO academy")}),[]);return Object(s.createElement)(r.Paper,{as:"div",className:"yst-p-6 yst-space-y-3"},Object(s.createElement)(r.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500"},Object(i.__)("Learn SEO","wordpress-seo")),Object(s.createElement)("p",null,n,Object(s.createElement)("br",null),Object(i.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")),Object(s.createElement)(r.Link,{href:t,className:"yst-block",target:"_blank",rel:"noopener"},Object(i.sprintf)(
/* translators: %1$s expands to "Yoast SEO academy". */
Object(i.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy")))};c.propTypes={link:o.a.string.isRequired};var l=n(132),d=n(3),u=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))}));const p=e=>{let{learnMoreLink:t,upsellLink:n,thumbnail:a,wistiaEmbedPermission:o}=e;const{onClose:c,initialFocus:d}=Object(r.useModalContext)();return Object(s.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},Object(s.createElement)("div",{className:"yst-relative yst-w-full"},Object(s.createElement)(Y,{videoId:"vmrahpfjxp",thumbnail:a,wistiaEmbedPermission:o}),Object(s.createElement)(r.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),Object(s.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},Object(s.createElement)("span",{className:"yst-uppercase yst-text-slate-500"},Object(i.sprintf)(
/* translators: %1$s expands to Yoast SEO Premium. */
Object(i.__)("New to %1$s","wordpress-seo"),"Yoast SEO Premium"))," ",Object(s.createElement)("span",{className:"yst-uppercase yst-text-slate-700"},"21.0")),Object(s.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},Object(s.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},Object(i.__)("Generate titles & descriptions with Yoast AI!","wordpress-seo")),Object(s.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},Object(s.createInterpolateElement)(Object(i.sprintf)(
/* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */
Object(i.__)("Speed up your workflow with generative AI. Get high-quality title and description suggestions for your search and social appearance. %1$sLearn more%2$s%3$s","wordpress-seo"),"","",""),{a:Object(s.createElement)(b,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:Object(s.createElement)(u,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})}))),Object(s.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},Object(s.createElement)(r.Button,{as:"a",className:"yst-grow",size:"large",variant:"upsell",href:n,target:"_blank",ref:d},Object(s.createElement)(l.a,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),Object(i.__)("Unlock with Premium","wordpress-seo"),Object(s.createElement)("span",{className:"yst-sr-only"},Object(i.__)("(Opens in a new browser tab)","wordpress-seo")))),Object(s.createElement)(r.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:c},Object(i.__)("Close","wordpress-seo")))};var h;function g(){return(g=Object.assign||function(e){for(var t=1;t{let{href:t,children:n,...a}=e;return Object(s.createElement)(r.Link,y()({target:"_blank",rel:"noopener noreferrer"},a,{href:t}),n,Object(s.createElement)("span",{className:"yst-sr-only"},Object(i.__)("(Opens in a new browser tab)","wordpress-seo")))};b.propTypes={href:o.a.string.isRequired,children:o.a.node},b.defaultProps={children:null};var w,v,O,_,j,k,x,E,S,R,C,T,P,A,I=n(199);function M(){return(M=Object.assign||function(e){for(var t=1;t{let{link:t,linkProps:n}=e;const a=Object(s.useMemo)(()=>Object(s.createInterpolateElement)(Object(i.sprintf)(
/* translators: %1$s and %2$s expand to opening and closing tags. */
Object(i.__)("Be more efficient in creating titles and meta descriptions with the help of AI. %1$sGet 24/7 support%2$s and boost your website’s visibility.","wordpress-seo"),"",""),{strong:Object(s.createElement)("strong",null)}),[]),o=Object(s.createInterpolateElement)(Object(i.sprintf)(
/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
Object(i.__)("%1$sGet%2$s %3$s","wordpress-seo"),"","","Yoast SEO Premium"),{nowrap:Object(s.createElement)("span",{className:"yst-whitespace-nowrap"})});return Object(s.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},Object(s.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mt-[-2.6rem] yst-mx-auto yst-overflow-hidden yst-border yst-border-white yst-rounded-xl yst-rounded-br-none"},Object(s.createElement)($,null)),Object(s.createElement)(r.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},o),Object(s.createElement)("p",{className:"yst-mt-2"},a),Object(s.createElement)(r.Button,y()({as:"a",variant:"upsell",href:t,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500"},n),Object(s.createElement)("span",null,o),Object(s.createElement)(I.a,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),Object(s.createElement)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer"},Object(s.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},Object(i.__)("Read reviews from real users","wordpress-seo")),Object(s.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},Object(s.createElement)(f,{className:"yst-w-5 yst-h-5"}),Object(s.createElement)("span",{className:"yst-flex yst-gap-1"},Object(s.createElement)(L,{className:"yst-w-5 yst-h-5"}),Object(s.createElement)(L,{className:"yst-w-5 yst-h-5"}),Object(s.createElement)(L,{className:"yst-w-5 yst-h-5"}),Object(s.createElement)(L,{className:"yst-w-5 yst-h-5"}),Object(s.createElement)(D,{className:"yst-w-5 yst-h-5"})),Object(s.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};z.propTypes={link:o.a.string.isRequired,linkProps:o.a.object},z.defaultProps={linkProps:{}};const F=e=>{let{children:t}=e;return Object(s.createElement)("div",{className:"xl:yst-max-w-3xl xl:yst-fixed xl:yst-right-8 xl:yst-w-[16rem]"},Object(s.createElement)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4"},t))};F.propTypes={children:o.a.node.isRequired};var U=n(97),q=n(10);const Y=e=>{let{videoId:t,thumbnail:n,wistiaEmbedPermission:a}=e;const[o,c]=Object(s.useState)(a.value?q.c.isPlaying:q.c.showPlay),l=Object(s.useCallback)(()=>c(q.c.isPlaying),[c]),d=Object(s.useCallback)(()=>{a.value?l():c(q.c.askPermission)},[a.value,l,c]),u=Object(s.useCallback)(()=>c(q.c.showPlay),[c]),p=Object(s.useCallback)(()=>{a.set(!0),l()},[a.set,l]);return Object(s.createElement)(s.Fragment,null,a.value&&Object(s.createElement)(U.Helmet,null,Object(s.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),Object(s.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},o===q.c.showPlay&&Object(s.createElement)("button",{className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:d},Object(s.createElement)("img",y()({className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async"},n))),o===q.c.askPermission&&Object(s.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},Object(s.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},a.status===q.b.loading&&Object(s.createElement)(r.Spinner,null),a.status!==q.b.loading&&Object(i.sprintf)(
/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
Object(i.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),Object(s.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},Object(s.createElement)(r.Button,{type:"button",variant:"secondary",onClick:u,disabled:a.status===q.b.loading},Object(i.__)("Deny","wordpress-seo")),Object(s.createElement)(r.Button,{type:"button",variant:"primary",onClick:p,disabled:a.status===q.b.loading},Object(i.__)("Allow","wordpress-seo")))),a.value&&o===q.c.isPlaying&&Object(s.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===t&&Object(s.createElement)(r.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==t&&Object(s.createElement)("div",{className:`wistia_embed wistia_async_${t} videoFoam=true`}))))};Y.propTypes={videoId:o.a.string.isRequired,thumbnail:o.a.shape({src:o.a.string.isRequired,width:o.a.string,height:o.a.string}).isRequired,wistiaEmbedPermission:o.a.shape({value:o.a.bool.isRequired,status:o.a.string.isRequired,set:o.a.func.isRequired}).isRequired}},function(e,t,n){"use strict";function s(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";function s(e){var t=jQuery(".yst-traffic-light"),n=t.closest(".wpseo-meta-section-link"),s=jQuery("#wpseo-traffic-light-desc"),i=e.className||"na";t.attr("class","yst-traffic-light "+i),n.attr("aria-describedby","wpseo-traffic-light-desc"),s.length>0?s.text(e.screenReaderText):n.closest("li").append(""+e.screenReaderText+"")}n.d(t,"a",(function(){return s}))},,,function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return s}));const s=500},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var s=n(14),i=n(4);function r(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function a(e,t,n){const a=e.dom;let o=e.getContent();if(o=s.markers.removeMarks(o),Object(i.isEmpty)(n))return void e.setContent(o);o=n[0].hasPosition()?function(e,t){if(!t)return"";for(let n=(e=Object(i.orderBy)(e,e=>e._properties.position.startOffset,["asc"])).length-1;n>=0;n--){const s=e[n];r(s,t)||(t=s.applyWithPosition(t))}return t}(n,o):function(e,t,n,r){const{fieldsToMark:a,selectedHTML:o}=s.languageProcessing.getFieldsToMark(n,r);return Object(i.forEach)(n,(function(t){"acf_content"!==e.id&&(t._properties.marked=s.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=s.languageProcessing.normalizeHTML(t._properties.original)),a.length>0?o.forEach(e=>{const n=t.applyWithReplace(e);r=r.replace(e,n)}):r=t.applyWithReplace(r)})),r}(e,0,n,o),e.setContent(o),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const c=a.select("yoastmark");Object(i.forEach)(c,(function(e){e.setAttribute("data-mce-bogus","1")}))}function o(e){return window.test=e,a.bind(null,e)}function c(e){return-1!==e.getContent({format:"raw"}).indexOf("0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(r.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),inclusiveLanguageAnalysisActive:Object(d.a)(),defaultQueryParams:a(),logLevel:Object(s.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(u.enabledFeatures)()};t=Object(s.merge)(t,e);const n=Object(o.a)();return Object(s.isUndefined)(n)||Object(s.isUndefined)(n.domain)||(t.translations=n),t}},function(e,t){e.exports=window.yoast.reactHelmet},,,function(e,t,n){"use strict";function s(e){let t=document.getElementById("yoast-measurement-element");return t||(t=function(){const e=document.createElement("div");return e.id="yoast-measurement-element",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}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(17),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"inclusiveLanguageAnalysisActive",0)}},,function(e,t){e.exports=window.wp.blocks},,function(e,t,n){"use strict";n.r(t),n.d(t,"updateScore",(function(){return a})),n.d(t,"createScoresInPublishBox",(function(){return o})),n.d(t,"scrollToCollapsible",(function(){return c})),n.d(t,"initialize",(function(){return l}));var s=n(4),i=jQuery;function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==n?Object(s.get)(n,t,""):Object(s.get)(wpseoScriptData,`metabox.publish_box.labels.${e}.${t}`,"")}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var s=i("#"+e+"-score"),a="image yoast-logo svg "+t;s.children(".image").attr("class",a);var o=r(e,t,n);s.children(".score-text").html(o)}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const s=i("",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),a=i("",{class:"score-text",html:r(e,t,n)}),o=i("").attr("class","image yoast-logo svg na");s.append(o).append(a),i("#yoast-seo-publishbox-section").append(s)}function c(e){const t=i("#wpadminbar"),n=i(e);if(!t||!n)return;const s="fixed"===t.css("position")?t.height():0;i([document.documentElement,document.body]).animate({scrollTop:n.offset().top-s},1e3),n.trigger("focus"),0===n.parent().siblings().length&&n.trigger("click")}function l(){wpseoScriptData.metabox.keywordAnalysisActive&&o("keyword","na"),wpseoScriptData.metabox.contentAnalysisActive&&o("content","na"),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&o("inclusive-language","na"),i("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),c("#wpseo-meta-section-readability")})),i("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-content").click(),c("#yoast-seo-analysis-collapsible-metabox")})),i("#inclusive-language-score").on("click","[href='#yoast-inclusive-language-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-inclusive-language").click(),c("#wpseo-meta-section-inclusive-language")}))}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;nt.map(e=>e())};t.b=(e,t)=>{let n=e();return()=>{const i=e();Object(s.isEqual)(i,n)||(n=i,t(Object(s.clone)(i)))}}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var s=n(4);function i(e){return{title:e.getSnippetTitle(),slug:e.getSnippetCite(),description:e.getSnippetMeta()}}function r(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}function a(e){const t={};if(Object(s.isUndefined)(e))return t;t.title=e.title_template;const n=e.metadesc_template;return Object(s.isEmpty)(n)||(t.description=n),t}function o(e,t){const n={...e};return Object(s.forEach)(t,(t,i)=>{Object(s.has)(e,i)&&""===e[i]&&(n[i]=t)}),n}function c(e,t){const n={...e};return Object(s.forEach)(t,(t,i)=>{Object(s.has)(e,i)&&e[i].trim()===t&&(n[i]="")}),n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);class i{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 Object(s.isString)(e)?Object(s.isUndefined)(t)||Object(s.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 Object(s.isString)(e)?Object(s.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 Object(s.isString)(e)?Object(s.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,n,i){if(!Object(s.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(s.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(s.isString)(n))return console.error("Failed to register modification for plugin "+n+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(n))return console.error("Failed to register modification for plugin "+n+". The integration has not finished loading yet."),!1;const r={callable:t,origin:n,priority:Object(s.isNumber)(i)?i:10};return Object(s.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(r),!0}_registerAssessment(e,t,n,i){return Object(s.isString)(t)?Object(s.isObject)(n)?Object(s.isString)(i)?(t=i+"-"+t,e.addAssessment(t,n),!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,n){let i=this.modifications[e];return!Object(s.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort((e,t)=>e.priority-t.priority),Object(s.forEach)(i,(function(s){const i=s.callable(t,n);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+s.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=Object(s.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 Object(s.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){Object(s.forEach)(this.plugins,(function(e,t){Object(s.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 Object(s.forEach)(e,(t,n)=>{!1===this._validateOrigin(t.origin)&&delete e[n]}),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return Object(s.isUndefined)(this.plugins[e])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=n(17);function r(){const e=Object(i.a)();return Object(s.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return b}));var s=n(4),i=(n(197),n(70)),r=n(5);const a="";let o=[];const c={"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"}]},l={singleH1:{"core/heading":[{key:"content",filter:e=>1===e.level}]}};function d(){const e=o.shift();e&&(Object(r.dispatch)("core/annotations").__experimentalAddAnnotation(e),u())}function u(){Object(s.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(d,{timeout:1e3}):setTimeout(d,150)}function p(){return Object(r.select)("core/block-editor")&&Object(s.isFunction)(Object(r.select)("core/block-editor").getBlocks)&&Object(r.select)("core/annotations")&&Object(s.isFunction)(Object(r.dispatch)("core/annotations").__experimentalAddAnnotation)}function h(e){const t=Object(r.select)("yoast-seo/editor").getActiveMarker(),n=l[t]||c;return n.hasOwnProperty(e)?n[e]:[]}function g(e,t,n,r,o){const c=Object(i.create)({html:e,multilineTag:n.multilineTag,multilineWrapperTag:n.multilineWrapperTag}).text;return Object(s.flatMap)(o,e=>{const n=function(e,t){const n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),s=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];if(0===e.length)return s;let i,r=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,r))>-1;)s.push(i),r=i+t.length;return s}(e,n);if(0===i.length)return[];const r=function(e){let t=e.indexOf(a);const n=t>=0;n||(t=e.indexOf(''));let s=null;const i=[];for(;t>=0;){if(s=(e=n?e.replace(a,""):e.replace('',"")).indexOf(""),s",""),i.push({startOffset:t,endOffset:s}),t=n?e.indexOf(a):e.indexOf(''),s=null}return i}(s),o=[];return r.forEach(e=>{i.forEach(s=>{const i=s+e.startOffset;let r=s+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=s+n.length),o.push({startOffset:i,endOffset:r})})}),o}(c,e);return n?n.map(e=>({...e,block:r.clientId,richTextIdentifier:t})):[]})}function f(e,t,n){const i=e.key,{attributes:r}=t;return e.filter&&!e.filter(r)?[]:"yoast/faq-block"===t.name||"yoast/how-to-block"===t.name?function(e,t,n){const i=t.attributes[e.key];if("yoast/faq-block"===t.name&&0!==i.length){const r=i.map(s=>{const i=s.id+"-question",r=s.id+"-answer",a=g(s.jsonQuestion,i,e,t,n),o=g(s.jsonAnswer,r,e,t,n);return a.concat(o)});return Object(s.flatMap)(r)}if("yoast/how-to-block"===t.name&&0!==i.length){const r=i.map(s=>{const i=s.id+"-name",r=s.id+"-text",a=g(s.jsonName,i,e,t,n),o=g(s.jsonText,r,e,t,n);return a.concat(o)}),a=g(t.attributes.jsonDescription,"description",e,t,n);return Object(s.flatMap)(r.concat(a))}}(e,t,n):g(r[i],i,e,t,n)}function m(e){o=e.map(e=>({blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))}function y(e){o=[],Object(r.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast");const t=function(e){return Object(s.uniq)(Object(s.flatten)(e.map(e=>{if(!Object(s.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;let n=Object(r.select)("core/block-editor").getBlocks();t.length>0&&(n=n.filter(e=>t.some(t=>"core/"+t===e.name))),m(function e(t,n){return Object(s.flatMap)(t,t=>{const i=function(e){return e.innerBlocks.length>0}(t)?e(t.innerBlocks,n):[];return function(e,t){return Object(s.flatMap)(h(e.name),n=>f(n,e,t))}(t,n).concat(i)})}(n,e)),u()}function b(){const e=Object(r.select)("core/editor").getSelectedBlock(),t=Object(r.select)("yoast-seo/editor").getActiveMarker();if(!e||!t)return;var n;n=e.clientId,Object(r.select)("core/annotations").__experimentalGetAnnotations().filter(e=>e.blockClientId===n&&"yoast"===e.source).forEach(e=>{Object(r.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)});const i=Object(r.select)("yoast-seo/editor").getResultById(t);if(void 0===i)return;const a=i.marks;m(Object(s.flatMap)(h(e.name),t=>f(t,e,a))),u()}},,,,,,function(e,t,n){"use strict";function s(e){let{alertKey:t}=e;return new Promise(e=>wpseoApi.post("alerts/dismiss",{key:t},()=>e()))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return s}))},function(e,t,n){"use strict";var s=n(3);const i=s.forwardRef((function(e,t){return s.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),s.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"}))}));t.a=i},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var s=n(5),i=n(38),r=n(4),a=n(14),o=n(94),c=n(58),l=n(69),d=n(96),u=n(51);const p=Object(r.debounce)((async function(e,t){const{text:n,...r}=t,o=new a.Paper(n,r);try{const t=await e.analyze(o),{seo:n,readability:r,inclusiveLanguage:a}=t.result;if(n){const e=n[""];e.results=Object(l.sortResultsByIdentifier)(e.results),Object(s.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),e.results),Object(s.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,o.getKeyword())}r&&(r.results=Object(l.sortResultsByIdentifier)(r.results),Object(s.dispatch)("yoast-seo/editor").setReadabilityResults(r.results),Object(s.dispatch)("yoast-seo/editor").setOverallReadabilityScore(r.score)),a&&(a.results=Object(l.sortResultsByIdentifier)(a.results),Object(s.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(a.results),Object(s.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(a.score)),Object(i.doAction)("yoast.analysis.run",t,{paper:o})}catch(e){Object(c.a)()}}),o.refreshDelay);function h(){const{getAnalysisData:e,getEditorDataTitle:t}=Object(s.select)("yoast-seo/editor");let n=e();n={...n,textTitle:t()};const r=function(e){return e.title=Object(u.a)("data_page_title",e.title),e.title=Object(u.a)("title",e.title),e.description=Object(u.a)("data_meta_desc",e.description),e.text=Object(u.a)("content",e.text),e}(n);return Object(i.applyFilters)("yoast.analysis.data",r)}function g(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=Object(s.select)("yoast-seo/editor"),n=Object(d.a)();n.initialize(Object(d.b)({useCornerstone:t()})).catch(c.a);let i=h(),a=t(),o=e();return Object(s.subscribe)(()=>{const s=t(),l=h(),d=e();if(s!==a)return a=s,i=l,void n.initialize({useCornerstone:s}).then(()=>p(n,l)).catch(c.a);d===o&&!1!==Object(r.isEqual)(l,i)||(i=l,o=d,p(n,l))}),n}},,,,,,,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";var s=n(4),i=class{static isActive(){return!!document.getElementById("et_pb_main_editor_wrap")}static isTinyMCEHidden(){const e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver(t=>{Object(s.forEach)(t,t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())})}).observe(this.classicEditorContainer,{attributes:!0})}};const r={classicEditorHidden:s.noop,classicEditorShown:s.noop,pageBuilderLoaded:s.noop};t.a=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){i.isActive()&&(this.diviActive=!0),class{static isActive(){return!!window.VCV_I18N}}.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=Object(s.defaults)(e,r),this.diviActive&&(new i).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!i.isTinyMCEHidden())}}},,,,,,,,,,function(e,t){var n,s,i="",r=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}((function(){n=document.getElementById("a11y-speak-polite"),s=document.getElementById("a11y-speak-assertive"),null===n&&(n=r("polite")),null===s&&(s=r("assertive"))})),e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),i===e&&(e+=" "),i=e,s&&"assertive"===t?s.textContent=e:n&&(n.textContent=e)}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=jQuery;function r(e,t,n,s,r){this._scriptUrl=s,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=i("#post_ID, [name=tag_ID]").val(),this._taxonomy=i("[name=taxonomy]").val()||"",this._nonce=r,this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}r.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=Object(s.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then(()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")}).then(()=>{this._initialized=!0,Object(s.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then(()=>this._refreshAnalysis())}).catch(e=>console.error(e))},r.prototype.setKeyword=function(e){Object(s.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},r.prototype.requestKeywordUsage=function(e){i.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},r.prototype.updateKeywordUsage=function(e,t){const{worker:n}=window.YoastSEO.analysis,i=t.keyword_usage,r=t.post_types;i&&Object(s.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=r,this._initialized&&n.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then(()=>this._refreshAnalysis()))}},function(e,t,n){"use strict";var s=n(5),i=n(4),r=n(14),a=n(114),o=n(137);t.a=()=>{if(Object(s.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))return Object(s.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),Object(s.subscribe)(Object(i.debounce)((()=>{const{getEditorDataContent:e,getContentLocale:t}=Object(s.select)("yoast-seo/editor"),n=Object(a.a)(e,t),c=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:n}=Object(s.dispatch)("yoast-seo/editor"),a=Object(i.get)(window,"YoastSEO.analysis.worker.runResearch",i.noop);return()=>{const s=r.Paper.parse(Object(o.a)());a("readingTime",s).then(t=>e(t.result)),a("getFleschReadingScore",s).then(e=>{e.result&&t(e.result)}),a("wordCountInText",s).then(e=>n(e.result))}})();return setTimeout(c,1500),Object(a.b)(n,c)})(),1500,{maxWait:3e3}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(1),i=n(4);function r(e){function t(){e("#copy-home-meta-description").on("click",(function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())}))}function n(){var t=e("#wpseo-conf");if(t.length){var n=t.attr("action").split("#")[0];t.attr("action",n+window.location.hash)}}function r(){var t=window.location.hash.replace("#top#","");-1!==t.search("#top")&&(t=window.location.hash.replace("#top%23","")),""!==t&&"#"!==t.charAt(0)||(t=e(".wpseotab").attr("id")),e("#"+t).addClass("active"),e("#"+t+"-tab").addClass("nav-tab-active").trigger("click")}function a(t){const n=e("#noindex-author-noposts-wpseo-container");t?n.show():n.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,n=t+e(this).outerHeight(),s=e(window).scrollTop(),i=s+e(window).height();return t>s&&n{e(this).is(":checked")||a(!1)}),o.on("change",()=>{e(this).is(":checked")||a(!0)}),e("#disable-date input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#date-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change"),e("#disable-attachment input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#media_settings").toggle("off"===e(this).val())})).trigger("change"),e("#disable-post_format").on("change",(function(){e("#post_format-titles-metas").toggle(e(this).is(":not(:checked)"))})).trigger("change"),e("#zapier_integration_active input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#zapier-connection").toggle("on"===e(this).val())})).trigger("change"),e("#wincher_integration_active input[type='radio']").change((function(){e(this).is(":checked")&&e("#wincher-connection").toggle("on"===e(this).val())})).change(),e("#wpseo-tabs").find("a").on("click",(function(t){var n,i,r,a=!0;if(n=e(this),i=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,r=!!n.filter("#first-time-configuration-tab").length,i&&!r&&window.isStepBeingEdited&&(a=confirm(Object(s.__)("There are unsaved changes in one or more steps. Leaving means that those changes may not be saved. Are you sure you want to leave?","wordpress-seo"))),a){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var o=e(this).attr("id").replace("-tab",""),c=e("#"+o);c.addClass("active"),e(this).addClass("nav-tab-active"),c.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change"),"first-time-configuration"===o?e("#yoast-first-time-configuration-notice").slideUp():e("#yoast-first-time-configuration-notice").slideDown()}else t.preventDefault(),e("#first-time-configuration-tab").trigger("focus")})),e("#yoast-first-time-configuration-notice a").on("click",(function(){e("#first-time-configuration-tab").click()})),e("#company_or_person").on("change",(function(){var t=e(this).val();"company"===t?(e("#knowledge-graph-company").show(),e("#knowledge-graph-person").hide()):"person"===t?(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").show()):(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").hide())})).trigger("change"),e(".switch-yoast-seo input").on("keydown",(function(e){"keydown"===e.type&&13===e.which&&e.preventDefault()})),e("body").on("click","button.toggleable-container-trigger",t=>{const n=e(t.currentTarget),s=n.parent().siblings(".toggleable-container");s.toggleClass("toggleable-container-hidden"),n.attr("aria-expanded",!s.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")});const l=e("#opengraph"),d=e("#wpseo-opengraph-settings");l.length&&d.length&&(d.toggle(l[0].checked),l.on("change",e=>{d.toggle(e.target.checked)})),t(),r(),function(){if(!e("#enable_xml_sitemap input[type=radio]").length)return;const t=e("#yoast-seo-sitemaps-disabled-warning");e("#enable_xml_sitemap input[type=radio]").on("change",(function(){"off"===this.value?t.show():t.hide()}))}(),function(){const t=e("#wpseo-submit-container-float"),n=e("#wpseo-submit-container-fixed");if(!t.length||!n.length)return;function s(){t._wpseoIsInViewport()?n.hide():n.show()}e(window).on("resize scroll",Object(i.debounce)(s,100)),e(window).on("yoast-seo-tab-change",s);const r=e(".wpseo-message");r.length&&window.setTimeout(()=>{r.fadeOut()},5e3),s()}(),"undefined"!=typeof ClipboardJS&&new ClipboardJS("#copy-zapier-api-key").on("success",(function(t){t.clearSelection(),e(t.trigger).trigger("focus")}))}))}},function(e,t,n){"use strict";function s(e){e(document).ready((function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each((function(t,n){const s=function(t){let n=(t=e(t)).data("target");return n&&""!==n||(n=e(t).attr("id").replace(/_button$/,"")),n}(n),i=e(n).data("target-id"),r=e("#"+s),a=e("#"+i);var o=wp.media.frames.file_frame=wp.media({title:wpseoScriptData.media.choose_image,button:{text:wpseoScriptData.media.choose_image},multiple:!1,library:{type:"image"}});o.on("select",(function(){var e=o.state().get("selection").first().toJSON();r.val(e.url),a.val(e.id)}));const c=e(n);c.click((function(e){e.preventDefault(),o.open()})),c.siblings(".wpseo_image_remove_button").on("click",e=>{e.preventDefault(),r.val(""),a.val("")})}))}))}n.d(t,"a",(function(){return s}))},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"wistiaEmbedPermission",(function(){return a})),n.d(t,"DISMISS_ALERT",(function(){return i.DISMISS_ALERT})),n.d(t,"SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",(function(){return r}));var s=n(24),i=n(131);function r(e){let{query:t,postId:n}=e;return new Promise(e=>{wpseoApi.get("meta/search",{query:t,post_id:n},t=>{e(t.meta)})})}const a=s.s[s.d]},,,,,,,,,,,,,,,function(e,t,n){"use strict";var s=n(190),i=n(16),r=n(4),a=n(90),o=n(30);const{removeReplacementVariable:c,updateReplacementVariable:l,refreshSnippetEditor:d}=i.actions;var u=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],p={},h={},g=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};g.prototype.registerReplacements=function(){this.addReplacement(new o.a("%%author_first_name%%","author_first_name")),this.addReplacement(new o.a("%%author_last_name%%","author_last_name")),this.addReplacement(new o.a("%%category%%","category")),this.addReplacement(new o.a("%%category_title%%","category_title")),this.addReplacement(new o.a("%%currentdate%%","currentdate")),this.addReplacement(new o.a("%%currentday%%","currentday")),this.addReplacement(new o.a("%%currentmonth%%","currentmonth")),this.addReplacement(new o.a("%%currenttime%%","currenttime")),this.addReplacement(new o.a("%%currentyear%%","currentyear")),this.addReplacement(new o.a("%%date%%","date")),this.addReplacement(new o.a("%%id%%","id")),this.addReplacement(new o.a("%%page%%","page")),this.addReplacement(new o.a("%%permalink%%","permalink")),this.addReplacement(new o.a("%%post_content%%","post_content")),this.addReplacement(new o.a("%%post_month%%","post_month")),this.addReplacement(new o.a("%%post_year%%","post_year")),this.addReplacement(new o.a("%%searchphrase%%","searchphrase")),this.addReplacement(new o.a("%%sitedesc%%","sitedesc")),this.addReplacement(new o.a("%%sitename%%","sitename")),this.addReplacement(new o.a("%%userid%%","userid")),this.addReplacement(new o.a("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new o.a("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new o.a("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new o.a("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new o.a("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new o.a("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new o.a("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new o.a("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new o.a("%%sep%%(\\s*%%sep%%)*","sep"))},g.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},g.prototype.subscribeToGutenberg=function(){if(!Object(a.a)())return;const e={0:""};let t=null;const n=wp.data;n.subscribe(()=>{const i=n.select("core/editor").getEditedPostAttribute("parent");if(void 0!==i&&t!==i)return t=i,i<1?(this._currentParentPageTitle="",void this.declareReloaded()):Object(r.isUndefined)(e[i])?void s.loadPromise.done(()=>{new s.models.Page({id:i}).fetch().then(t=>{this._currentParentPageTitle=t.title.rendered,e[i]=this._currentParentPageTitle,this.declareReloaded()}).fail(()=>{this._currentParentPageTitle="",this.declareReloaded()})}):(this._currentParentPageTitle=e[i],void this.declareReloaded())})},g.prototype.addReplacement=function(e){p[e.placeholder]=e},g.prototype.removeReplacement=function(e){delete p[e.getPlaceholder()]},g.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);Object(r.forEach)(u,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},g.prototype.replaceVariables=function(e){return Object(r.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},g.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return Object(r.forEach)(t,t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))}),e},g.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},g.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},g.prototype.replacePlaceholders=function(e){return Object(r.forEach)(p,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},g.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(d())},g.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},g.prototype.parseTaxonomies=function(e,t){Object(r.isUndefined)(h[t])&&(h[t]={});const n=[];Object(r.forEach)(e,function(e){const s=(e=jQuery(e)).val(),i=this.getCategoryName(e),r=e.prop("checked");h[t][s]={label:i,checked:r},r&&-1===n.indexOf(i)&&n.push(i)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(l(t,n.join(", ")))},g.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),n=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,n),this.declareReloaded()},g.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},g.prototype.replaceCustomTaxonomy=function(e){return Object(r.forEach)(h,function(t,n){var s="%%ct_"+n+"%%";"category"===n&&(s="%%"+n+"%%"),e=e.replace(s,this.getTaxonomyReplaceVar(n))}.bind(this)),e},g.prototype.getTaxonomyReplaceVar=function(e){var t=[],n=h[e];return!0===Object(r.isUndefined)(n)?"":(Object(r.forEach)(n,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},g.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val(),s=jQuery("#"+t.id+"-value").val();const i="cf_"+this.sanitizeCustomFieldNames(n),r=n+" (custom field)";this._store.dispatch(l(i,s,r)),this.addReplacement(new o.a(`%%${i}%%`,s,{source:"direct"}))}.bind(this))},g.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(n)+"%%")}.bind(this))},g.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},g.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},g.prototype.bindFieldEvents=function(e,t){var n=(t=jQuery(t)).find("#the-list");n.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),n.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),n.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),n.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},g.prototype.removeCustomFields=function(){var e=Object(r.filter)(p,(function(e,t){return t.indexOf("%%cf_")>-1}));Object(r.forEach)(e,function(e){this._store.dispatch(c(Object(r.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},g.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),Object(a.a)()&&!Object(r.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},g.prototype.hasParentTitle=function(e){return!Object(r.isUndefined)(e)&&!Object(r.isUndefined)(e.prop("options"))},g.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===wpseoScriptData.analysis.plugins.replaceVars.no_parent_text?"":t},g.ReplaceVar=o.a,t.a=g},function(e,t){e.exports=window.wp.api},function(e,t,n){"use strict";var s=n(16),i=n(4),r=n(14);t.a=function(e,t,n){e("morphology",new r.Paper("",{keyword:n})).then(e=>{const n=e.result.keyphraseForms;t.dispatch(s.actions.updateWordsToHighlight(Object(i.uniq)(Object(i.flatten)(n))))}).catch(()=>{t.dispatch(s.actions.updateWordsToHighlight([]))})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var s=n(4),i=n(5),r=n(45),a=n(95),o=n(125);function c(e,t){let n;r.isTinyMCEAvailable(r.tmceId)&&(Object(s.isUndefined)(n)&&(n=Object(a.c)(tinyMCE.get(r.tmceId))),n(e,t)),Object(o.b)()&&(function(e,t){tinyMCE.editors.map(e=>Object(a.c)(e)).forEach(n=>n(e,t))}(e,t),Object(o.a)(t))}function l(){const e=Object(i.select)("yoast-seo/editor").isMarkingAvailable(),t=Object(i.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?s.noop:c}},,function(e,t){e.exports=window.wp.annotations},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var s=n(3);const i=s.forwardRef((function(e,t){return s.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),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));t.a=i},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(5),i=n(16),r=n(4),a=n(174);function o(){const e=Object(s.registerStore)("yoast-seo/editor",{reducer:Object(s.combineReducers)(i.reducers),selectors:i.selectors,actions:Object(r.pickBy)(i.actions,e=>"function"==typeof e),controls:a});return(e=>{e.dispatch(i.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,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}})),e.dispatch(i.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(i.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(i.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(i.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(i.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(i.actions.setDismissedAlerts(Object(r.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(i.actions.setIsPremium(Boolean(Object(r.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(i.actions.setPostId(Number(Object(r.get)(window,"wpseoScriptData.postId",null)))),e.dispatch(i.actions.setLinkParams(Object(r.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(i.actions.setPluginUrl(Object(r.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(i.actions.setWistiaEmbedPermissionValue("1"===Object(r.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(e),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);class i{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){Object(s.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach(t=>{e=Object(s.merge)(e,t())}),e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n(4),i=n(17),r=n(165);function a(e,t,n){const a=Object(i.a)();if(!a.previouslyUsedKeywordActive)return;const o=Object(s.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),c=Object(s.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),l=new r.a(t,a,e,o,c);l.init();let d={};n.subscribe(()=>{const e=n.getState()||{};e.focusKeyword!==d.focusKeyword&&(d=e,l.setKeyword(e.focusKeyword))})}},,,,function(e,t,n){"use strict";var s=n(0),i=n(18),r=n(5),a=n(38),o=n(1),c=n(7),l=n(2),d=n.n(l),u=n(89);const p="yoast-seo/editor",h=()=>{const e=Object(r.useSelect)(e=>e(p).selectLink("https://www.yoa.st/ai-generator-learn-more"),[]),t=Object(r.useSelect)(e=>e(p).selectLink("https://yoa.st/ai-generator-upsell"),[]),n=Object(r.useSelect)(e=>e(p).selectImageLink("ai-generator-preview.png"),[]),i=Object(s.useMemo)(()=>({src:n,width:"432",height:"244"}),[n]),a=Object(r.useSelect)(e=>e(p).selectWistiaEmbedPermissionValue(),[]),o=Object(r.useSelect)(e=>e(p).selectWistiaEmbedPermissionStatus(),[]),{setWistiaEmbedPermission:c}=Object(r.useDispatch)(p),l=Object(s.useMemo)(()=>({value:a,status:o,set:c}),[a,o,c]);return Object(s.createElement)(u.b,{learnMoreLink:e,upsellLink:t,thumbnail:i,wistiaEmbedPermission:l})},g=e=>{let{fieldId:t}=e;const[n,,,i,r]=Object(c.useToggleState)(!1),a=Object(s.useCallback)(()=>{i()},[i]),l=Object(s.useRef)(null);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("button",{type:"button",id:"yst-replacevar__use-ai-button__"+t,className:"yst-replacevar__use-ai-button-upsell",onClick:a},Object(o.__)("Use AI","wordpress-seo")),Object(s.createElement)(c.Modal,{className:"yst-introduction-modal",isOpen:n,onClose:r,initialFocus:l},Object(s.createElement)(c.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-bg-gradient-to-b yst-from-[#EDD2E1] yst-rounded-3xl"},Object(s.createElement)(h,{onClose:r,focusElementRef:l}))))};g.propTypes={fieldId:d.a.string.isRequired},t.a=()=>{const e=Object(r.select)("yoast-seo/editor").getIsPremium();Object(a.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo-premium/AiGenerator",(t,n)=>{let{fieldId:r}=n;return e||t.push(Object(s.createElement)(i.Fill,{name:"yoast.replacementVariableEditor.additionalButtons."+r},Object(s.createElement)(g,{fieldId:r}))),t})}},function(e,t,n){"use strict";function s(e){function t(e){e&&(e.focus(),e.click())}function n(){if(e(".wpseo-meta-section").length>0){const t=e(".wpseo-meta-section-link");e(".wpseo-metabox-menu li").filter((function(){return"#wpseo-meta-section-content"===e(this).find(".wpseo-meta-section-link").attr("href")})).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),e("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",(function(n){var s=e(this).attr("id"),i=e(this).attr("href"),r=e(i);n.preventDefault(),e(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),e(".wpseo-meta-section").removeClass("active"),e(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===i&&e(".wpseo-meta-section-react").addClass("active"),r.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new CustomEvent(e,{detail:t})}("YoastSEO:metaTabChange",{metaTabId:s});window.dispatchEvent(a),this&&(function(e){e.attr({"aria-selected":"false",tabIndex:"-1"})}(t),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))}))}}window.wpseoInitTabs=n,window.wpseo_init_tabs=n,e(".wpseo-meta-section").each((function(t,n){e(n).find(".wpseotab:first").addClass("active")})),window.wpseo_init_tabs(),function(){const n=e(".yoast-aria-tabs"),s=n.find("[role='tab']"),i=n.attr("aria-orientation")||"horizontal";s.attr({"aria-selected":!1,tabIndex:"-1"}),s.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),s.on("keydown",(function(n){-1!==[32,35,36,37,38,39,40].indexOf(n.which)&&("horizontal"===i&&-1!==[38,40].indexOf(n.which)||"vertical"===i&&-1!==[37,39].indexOf(n.which)||function(n,s){const i=n.which,r=s.index(e(n.target));switch(i){case 32:n.preventDefault(),t(s[r]);break;case 35:n.preventDefault(),t(s[s.length-1]);break;case 36:n.preventDefault(),t(s[0]);break;case 37:case 38:n.preventDefault(),t(s[r-1<0?s.length-1:r-1]);break;case 39:case 40:n.preventDefault(),t(s[r+1===s.length?0:r+1])}}(n,s))}))}()}n.d(t,"a",(function(){return s}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var s=n(38),i=n(4),r=n(100),a=n(65),o=n(17),c=n(14);function l(e,t,n,l,d){const u=Object(i.cloneDeep)(t.getState());Object(i.merge)(u,n.getData());const p=e.getData();let h=null;d&&(h=d.getBlocks(),h=h.map(e=>function e(t){const n={attributes:{}};return["level","content","alt"].forEach(e=>{t.attributes[e]&&(n.attributes[e]=t.attributes[e])}),n.name=t.name,n.clientId=t.clientId,n.innerBlocks=t.innerBlocks.map(t=>e(t)),n}(e)));const g={text:p.content,textTitle:p.title,keyword:u.focusKeyword,synonyms:u.synonyms,description:u.analysisData.snippet.description||u.snippetEditor.data.description,title:u.analysisData.snippet.title||u.snippetEditor.data.title,slug:u.snippetEditor.data.slug,permalink:u.settings.snippetEditor.baseUrl+u.snippetEditor.data.slug,wpBlocks:h,date:u.settings.snippetEditor.date};l.loaded&&(g.title=l._applyModifications("data_page_title",g.title),g.title=l._applyModifications("title",g.title),g.description=l._applyModifications("data_meta_desc",g.description),g.text=l._applyModifications("content",g.text),g.wpBlocks=l._applyModifications("wpBlocks",g.wpBlocks));const f=u.analysisData.snippet.filteredSEOTitle;return g.titleWidth=Object(r.a)(f||u.snippetEditor.data.title),g.locale=Object(a.a)(),g.writingDirection=function(){let e="LTR";return Object(o.a)().isRtl&&(e="RTL"),e}(),c.Paper.parse(Object(s.applyFilters)("yoast.analysis.data",g))}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function s(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:m,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),s.rules=n,s.lex=function(e,t){return new s(t).lex(e)},s.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},s.prototype.token=function(e,t){var s,i,r,a,o,c,l,u,p,h,g,f,m,y,v,O;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(r[0].length),_&&"paragraph"===_.type?_.text+="\n"+r[0].trimRight():(r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?r:w(r,"\n")}))}else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(c={type:"table",header:b(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(r[0].length),g=0;g ?/gm,""),this.token(r,t),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),l={type:"list_start",ordered:y=(a=r[2]).length>1,start:y?+a:"",loose:!1},this.tokens.push(l),u=[],s=!1,m=(r=r[0].match(this.rules.item)).length,g=0;g1?1===o.length:o.length>1||this.options.smartLists&&o!==a)&&(e=r.slice(g+1).join("\n")+e,g=m-1)),i=s||/\n\n(?!\s*$)/.test(c),g!==m-1&&(s="\n"===c.charAt(c.length-1),i||(i=s)),i&&(l.loose=!0),O=void 0,(v=/^\[[ xX]\] /.test(c))&&(O=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:v,checked:O,loose:i},u.push(p),this.tokens.push(p),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(m=u.length,g=0;g?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",i.em=p(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=p(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=p(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=p(i.reflink).replace("label",i._label).getRegex(),i.normal=y({},i),i.pedantic=y({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=y({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):d(a[0]):a[0];else if(a=this.rules.link.exec(e)){var l=v(a[2],"()");if(l>-1){var u=4+a[1].length+l;a[2]=a[2].substring(0,l),a[0]=a[0].substring(0,u).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,s=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s))?(s=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",s=s.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(a,{href:r.escapes(s),title:r.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),c+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),c+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),c+=this.renderer.codespan(d(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),c+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),c+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),s="@"===a[2]?"mailto:"+(n=d(this.mangle(a[1]))):n=d(a[1]),c+=this.renderer.link(s,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?c+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):d(a[0]):a[0]):c+=this.renderer.text(d(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])s="mailto:"+(n=d(a[0]));else{do{o=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(o!==a[0]);n=d(a[0]),s="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),c+=this.renderer.link(s,null,n)}return c},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,s=t.title?d(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,s,this.output(e[1])):this.renderer.image(n,s,d(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",s=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+=""+t+";";return n},a.prototype.code=function(e,t,n){var s=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,s);null!=i&&i!==e&&(n=!0,e=i)}return s?''+(n?e:d(e,!0))+"
\n":""+(n?e:d(e,!0))+"
"},a.prototype.blockquote=function(e){return"\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,s){return this.options.headerIds?"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+s+">\n"},a.prototype.listitem=function(e){return""+e+"\n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return""+e+"
\n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n"},a.prototype.tablerow=function(e){return"\n"+e+"
\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?"
":"
"},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='"+n+""},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='":">")},a.prototype.text=function(e){return e},o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e},o.prototype.link=o.prototype.image=function(e,t,n){return""+n},o.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,y({},this.options,{renderer:new o})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop(),this.token},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,s,i="",r="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},d.escapeTest=/[&<>"']/,d.escapeReplace=/[&<>"']/g,d.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},d.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,d.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,s=1;s=0&&"\\"===n[i];)s=!s;return s?"|":" |"})).split(/ \|/),s=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:
"+d(e.message+"",!0)+"
";throw e}}m.exec=m,_.options=_.setOptions=function(e){return y(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=c,_.parser=c.parse,_.Renderer=a,_.TextRenderer=o,_.Lexer=s,_.lexer=s.lex,_.InlineLexer=r,_.inlineLexer=r.output,_.Slugger=l,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(198))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var s=n(52),i=n.n(s),r=n(21),a=n.n(r),o=n(4),c=n(212),l=n(168),d=n(169),u=n(206),p=n(5),h=n(156),g=n.n(h),f=n(90);var m=n(213),y=n(14),b=n(145),w=n(189),v=n(103);const O=new RegExp("\\[[^<>&/\\[\\]\0- =]+?( [^\\]]+?)?\\]","g"),j=new RegExp("\\[/[^<>&/\\[\\]\0- =]+?\\]","g");var k=function(e){let{registerPlugin:t,registerModification:n,pluginReady:s,pluginReloaded:i}=e;this._registerModification=n,this._pluginReady=s,this._pluginReloaded=i,t("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();var r="("+wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags.join("|")+")";this.keywordRegex=new RegExp(r,"g"),this.closingTagRegex=new RegExp("\\[\\/"+r+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+r+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))};k.prototype.declareReady=function(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()},k.prototype.declareReloaded=function(){this._pluginReloaded("YoastShortcodePlugin")},k.prototype.registerModifications=function(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")},k.prototype.removeUnknownShortCodes=function(e){return(e=e.replace(O,"")).replace(j,"")},k.prototype.replaceShortcodes=function(e){var t=this.parsedShortcodes;if("string"==typeof e&&t.length>0)for(var n=0;n0))return e();this.parseShortcodes(t,e)},k.prototype.bindElementEvents=function(){var e=document.getElementById("content")||!1,t=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))},k.prototype.getContentTinyMCE=function(){var e=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),e},k.prototype.getUnparsedShortcodes=function(e){if("object"!=typeof e)return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1;for(var t=[],n=0;n0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()},k.prototype.saveParsedShortcodes=function(e,t){e=JSON.parse(e);for(var n=0;n label");return s.length?e=this.getCategoryName(s):e},V.prototype.getSearchUrl=function(){return wpseoScriptData.metabox.search_url},V.prototype.getPostUrl=function(){return wpseoScriptData.metabox.post_edit_url},V.prototype.getPermalink=function(){var e=this.getUrl();return wpseoScriptData.metabox.base_url+e},V.prototype.getCategoryName=function(e){var t=e.clone();return t.children().remove(),t.text().trim()},V.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("yoast_wpseo_metadesc").value=e;break;case"snippet_cite":if(this.leavePostNameUntouched)return void(this.leavePostNameUntouched=!1);null!==document.getElementById("post_name")&&(document.getElementById("post_name").value=e),null!==document.getElementById("editable-post-name")&&null!==document.getElementById("editable-post-name-full")&&(document.getElementById("editable-post-name").textContent=e,document.getElementById("editable-post-name-full").textContent=e);break;case"snippet_title":document.getElementById("yoast_wpseo_title").value=e}},V.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},V.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e),this.changeElementEventBinder(e)},V.prototype.changeElementEventBinder=function(e){for(var t=["#yoast-wpseo-primary-category",'.categorychecklist input[name="post_category[]"]'],n=0;n"+e.responseText+"").find("#editable-post-name-full").text()}function d(){const e={};return Object(F.a)()&&(e.output="does-not-really-exist-but-it-needs-something"),Object(U.a)()&&(e.contentOutput="also-does-not-really-exist-but-it-needs-something"),e}function u(e){Object(o.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),Object(o.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let h;function g(e,t){const n=h||"";h=e.getState().analysisData.snippet,!Object(b.isShallowEqualObjects)(n,h)&&t()}function m(e,t){"visual"!==e?t.dispatch(se("disabled")):t.dispatch(se("enabled"))}function O(){return Object(p.select)("core/edit-post").getEditorMode()}jQuery(document).on("ajaxComplete",(function(e,n,s){if("/admin-ajax.php"===s.url.substr(0-"/admin-ajax.php".length)&&"string"==typeof s.data&&-1!==s.data.indexOf("action=sample-permalink")){a.leavePostNameUntouched=!0;const e={slug:l(n)};t.dispatch(ie(e))}})),function(){if(s=e("#wpseo_meta"),R.setStore(t),R.wpTextViewOnInitCheck(),function(){const e=new C.a;e.isClassicEditorHidden()&&R.disableMarkerButtons(),e.vcActive?R.disableMarkerButtons():e.listen({classicEditorHidden:()=>{R.disableMarkerButtons()},classicEditorShown:()=>{R.isTextViewActive()||R.enableMarkerButtons()}})}(),0===s.length)return;a=function(e){const n=new K({data:e,store:t});return n.leavePostNameUntouched=!1,n}(n),A.initialize();const l=function(t){!function(e){(void 0===window.tinyMCE||Object(f.a)()||"1"!==wpseoScriptData.metabox.show_markers)&&e.dispatch(se("disabled"))}(t);const n={elementTarget:[R.tmceId,"yoast_wpseo_focuskw_text_input","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:d(),callbacks:{getData:a.getData.bind(a)},locale:wpseoScriptData.metabox.contentLocale,marker:Object(G.a)(t),contentAnalysisActive:Object(U.a)(),keywordAnalysisActive:Object(F.a)(),hasSnippetPreview:!1,debouncedRefresh:!1,researcher:new window.yoast.Researcher.default};Object(F.a)()&&(t.dispatch(ne(e("#yoast_wpseo_focuskw").val())),n.callbacks.saveScores=a.saveScores.bind(a),n.callbacks.updatedKeywordsResults=function(e){const n=t.getState().focusKeyword;t.dispatch(ce(n,e)),t.dispatch(ae())}),Object(U.a)()&&(n.callbacks.saveContentScore=a.saveContentScore.bind(a),n.callbacks.updatedContentResults=function(e){t.dispatch(oe(e)),t.dispatch(ae())}),i=e("#title");const s=Object(W.a)();return Object(o.isUndefined)(s)||Object(o.isUndefined)(s.domain)||(n.translations=s),n}(t);r=new y.App(l),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=r,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=Object(D.a)(),window.YoastSEO.analysis.collectData=()=>Object(L.a)(n,t,c,r.pluggable,Object(p.select)("core/block-editor")),window.YoastSEO.analysis.applyMarks=(e,t)=>Object(G.a)()(e,t),window.YoastSEO.app.refresh=Object(o.debounce)(()=>Object(B.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,a),J.refreshDelay),window.YoastSEO.app.registerCustomDataCallback=c.register,window.YoastSEO.app.pluggable=new T.a(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,n)=>{if(!Object(o.isUndefined)(r.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(r.defaultSeoAssessor,e,t,n)&&window.YoastSEO.app.pluggable._registerAssessment(r.cornerStoneSeoAssessor,e,t,n)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(X.a),window.YoastSEO.app.refresh()},Object(ee.a)(r.refresh,"get_focus_keyword_usage_and_post_types",t),t.subscribe(g.bind(null,t,r.refresh)),window.YoastSEO.analyzerArgs=l,window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new w.a(r,t),window.YoastSEO.wp.shortcodePlugin=new x({registerPlugin:r.registerPlugin,registerModification:r.registerModification,pluginReady:r.pluginReady,pluginReloaded:r.pluginReloaded}),Object(f.a)()&&new class{constructor(e,t,n){this._registerPlugin=e,this._registerModification=t,this._refreshAnalysis=n,this._reusableBlocks={},this._selectCore=Object(p.select)("core"),this._selectCoreEditor=Object(p.select)("core/editor"),this.reusableBlockChangeListener=this.reusableBlockChangeListener.bind(this),this.parseReusableBlocks=this.parseReusableBlocks.bind(this)}register(){this._registerPlugin("YoastReusableBlocksPlugin",{status:"ready"}),this._registerModification("content",this.parseReusableBlocks,"YoastReusableBlocksPlugin",1),Object(p.subscribe)(Object(o.debounce)(this.reusableBlockChangeListener,500))}reusableBlockChangeListener(){const{blocks:e}=this._selectCoreEditor.getPostEdits();if(!e)return;let t=!1;e.forEach(e=>{if(!Object(v.isReusableBlock)(e))return;const n=this.getBlockContent(e.attributes.ref);this._reusableBlocks[e.attributes.ref]?this._reusableBlocks[e.attributes.ref].content!==n&&(this._reusableBlocks[e.attributes.ref].content=n,t=!0):(this._reusableBlocks[e.attributes.ref]={id:e.attributes.ref,clientId:e.clientId,content:n},t=!0)}),t&&this._refreshAnalysis()}parseReusableBlocks(e){const t=//g;return e.match(t)?e.replace(t,(t,n)=>this._reusableBlocks[n]&&this._reusableBlocks[n].content?this._reusableBlocks[n].content:e):e}getBlockContent(e){const t=this._selectCore.getEditedEntityRecord("postType","wp_block",e);if(t){if(Object(o.isFunction)(t.content))return t.content(t);if(t.blocks)return Object(v.__unstableSerializeAndClean)(t.blocks);if(t.content)return t.content}return""}}(r.registerPlugin,r.registerModification,window.YoastSEO.app.refresh).register(),wpseoScriptData.metabox.markdownEnabled&&new class{constructor(e,t){this._registerPlugin=e,this._registerModification=t}register(){this._registerPlugin("YoastMarkdownPlugin",{status:"ready"}),this._registerModification("content",this.parseMarkdown.bind(this),"YoastMarkdownPlugin",1)}parseMarkdown(e){return S()(e)}}(r.registerPlugin,r.registerModification).register(),window.YoastSEO.wp._tinyMCEHelper=R,Object(F.a)()&&function(t){const n=e("#yoast_wpseo_linkdex").val(),s=Object(z.a)(n);Object(I.a)(s),Object(M.a)(s),t.updateScore("keyword",s.className)}(A),Object(U.a)()&&function(t){const n=e("#yoast_wpseo_content_score").val(),s=Object(z.a)(n);Object(M.a)(s),t.updateScore("content",s.className)}(A),Object(H.a)()&&function(t){const n=e("#yoast_wpseo_inclusive_language_score").val(),s=Object(z.a)(n);Object(M.a)(s),t.updateScore("inclusive-language",s.className)}(A),window.YoastSEO.analysis.worker.initialize(Object(D.b)()).then(()=>{jQuery(window).trigger("YoastSEO:ready")}).catch(X.a),a.bindElementEvents(Object(o.debounce)(()=>Object(B.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,a),J.refreshDelay)),u(r);const h=r.initAssessorPresenters.bind(r);r.initAssessorPresenters=function(){h(),u(r)},n.setRefresh&&n.setRefresh(r.refresh);let b=Object(Q.a)(a);const _=Object(Q.e)(wpseoScriptData.metabox);b=Object(Q.c)(b,_),t.dispatch(ie(b)),t.dispatch(re("1"===document.getElementById("yoast_wpseo_is_cornerstone").value));let j=t.getState().focusKeyword;Object(P.a)(window.YoastSEO.analysis.worker.runResearch,t,j);const k=Object(o.debounce)(()=>{r.refresh()},50);let E=null;if(t.subscribe(()=>{const n=t.getState().focusKeyword;j!==n&&(j=n,Object(P.a)(window.YoastSEO.analysis.worker.runResearch,t,j),e("#yoast_wpseo_focuskw").val(j),k());const s=Object(Q.b)(t),i=Object(Q.d)(s,_);b.title!==s.title&&a.setDataFromSnippet(i.title,"snippet_title"),b.slug!==s.slug&&a.setDataFromSnippet(i.slug,"snippet_cite"),b.description!==s.description&&a.setDataFromSnippet(i.description,"snippet_meta");const o=t.getState();E!==o.isCornerstone&&(E=o.isCornerstone,document.getElementById("yoast_wpseo_is_cornerstone").value=o.isCornerstone,r.changeAssessorOptions({useCornerstone:o.isCornerstone})),b.title=s.title,b.slug=s.slug,b.description=s.description}),Object(f.a)()){let e=O();m(e,t),Object(p.subscribe)(()=>{const n=O();n!==e&&(e=n,m(e,t))})}Object(B.initializationDone)(),window.YoastSEO.app.refresh()}()}window.YoastReplaceVarPlugin=w.a,window.YoastShortcodePlugin=x;var de=n(12),ue=n.n(de),pe=n(0),he=n(2),ge=n.n(he),fe=n(18),me=n(11),ye=n.n(me),be=n(20),we=n(25),ve=n.n(we),Oe=n(15);const _e=ye.a.div`
padding-top: 6px;
`,je=e=>{const{value:t,id:n,terms:s,onChange:i}=e;return Object(pe.createElement)(_e,null,Object(pe.createElement)("select",{className:"components-select-control__input",id:n,value:t,onChange:e=>{i(parseInt(e.target.value,10))}},s.map(e=>Object(pe.createElement)("option",{key:e.id,value:e.id},Object(o.unescape)(e.name)))))};je.propTypes={terms:ge.a.arrayOf(ge.a.shape({id:ge.a.string.isRequired,name:ge.a.string.isRequired})),onChange:ge.a.func.isRequired,id:ge.a.string,value:ge.a.string};var ke=je;const xe=ye.a.div`
padding-top: 16px;
`;class Ee extends pe.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.updateReplacementVariable=this.updateReplacementVariable.bind(this);const{fieldId:t,name:n}=e.taxonomy;this.input=document.getElementById(t),e.setPrimaryTaxonomyId(n,parseInt(this.input.value,10)),this.state={selectedTerms:[],terms:[]}}componentDidMount(){this.fetchTerms()}componentDidUpdate(e,t){if(e.selectedTermIds.lengthe.id===t)||this.onChange(e.length?e[0].id:-1)}termIsAvailable(e){return!!this.state.terms.find(t=>t.id===e)}fetchTerms(){const{taxonomy:e}=this.props;e&&(this.fetchRequest=ve()({path:Object(Oe.addQueryArgs)("/wp/v2/"+e.restBase,{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then(e=>{const t=this.state;this.setState({terms:e,selectedTerms:this.getSelectedTerms(e,this.props.selectedTermIds)},()=>{0===t.terms.length&&this.state.terms.length>0&&this.updateReplacementVariable(this.props.primaryTaxonomyId)})}))}getSelectedTerms(e,t){return e.filter(e=>t.includes(e.id))}updateSelectedTerms(e,t){const n=this.getSelectedTerms(e,t);this.setState({selectedTerms:n})}onChange(e){const{name:t}=this.props.taxonomy;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}updateReplacementVariable(e){if("category"!==this.props.taxonomy.name)return;const t=this.state.selectedTerms.find(t=>t.id===e);this.props.updateReplacementVariable("primary_"+this.props.taxonomy.name,t?t.name:"")}render(){const{primaryTaxonomyId:e,taxonomy:t}=this.props;if(this.state.selectedTerms.length<2)return null;const n=`yoast-primary-${t.name}-picker`;return Object(pe.createElement)(xe,{className:"components-base-control__field"},Object(pe.createElement)("label",{htmlFor:n,className:"components-base-control__label"},Object(N.sprintf)(
/* translators: %s expands to the taxonomy name. */
Object(N.__)("Select the primary %s","wordpress-seo"),t.singularLabel.toLowerCase())),Object(pe.createElement)(ke,{value:e,onChange:this.onChange,id:n,terms:this.state.selectedTerms}))}}Ee.propTypes={selectedTermIds:ge.a.arrayOf(ge.a.number),primaryTaxonomyId:ge.a.number,setPrimaryTaxonomyId:ge.a.func,updateReplacementVariable:ge.a.func,receiveEntityRecords:ge.a.func,taxonomy:ge.a.shape({name:ge.a.string,fieldId:ge.a.string,restBase:ge.a.string,singularLabel:ge.a.string})};var Se=Ee,Re=Object(be.compose)([Object(p.withSelect)((e,t)=>{const n=e("core/editor"),s=e("yoast-seo/editor"),{taxonomy:i}=t;return{selectedTermIds:n.getEditedPostAttribute(i.restBase)||[],primaryTaxonomyId:s.getPrimaryTaxonomyId(i.name)}}),Object(p.withDispatch)(e=>{const{setPrimaryTaxonomyId:t,updateReplacementVariable:n}=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t,updateReplacementVariable:n}})])(Se);let Ce=null,Te=null;const Pe=ye.a.div`
margin: 16px 0 8px;
`;class Ae extends pe.Component{constructor(){super(),Ce&&Te||(Ce=Object(o.get)(window.wpseoPrimaryCategoryL10n,"taxonomies",{}),Te=Object(o.values)(Ce).map(e=>e.name)),this.state={exceptionCaught:!1,error:null}}componentDidCatch(e){this.setState({exceptionCaught:!0,error:e})}taxonomyHasPrimaryTermSupport(){return Te.includes(this.props.slug)}render(){const{slug:e,OriginalComponent:t}=this.props;if(this.state.exceptionCaught){const e=Object(o.get)(this.state,"error.stack");return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(t,this.props),Object(pe.createElement)(Pe,null,Object(N.sprintf)(
/* translators: %s expands to Yoast SEO. */
Object(N.__)("An error occurred loading the %s primary taxonomy picker.","wordpress-seo"),"Yoast SEO")),e&&Object(pe.createElement)(fe.ClipboardButton,{isLarge:!0,text:e},Object(N.__)("Copy error","wordpress-seo")))}return this.taxonomyHasPrimaryTermSupport()?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(t,this.props),Object(pe.createElement)(Re,{taxonomy:Ce[e]})):Object(pe.createElement)(t,this.props)}}Ae.propTypes={OriginalComponent:ge.a.func.isRequired,slug:ge.a.string.isRequired};var Ie=Ae;var Me=n(166);window.wpseoPostScraperL10n=window.wpseoScriptData.metabox,window.wpseoShortcodePluginL10n=window.wpseoScriptData.analysis.plugins.shortcodes,window.YoastSEO=window.YoastSEO||{},i()(()=>{Object(m.a)(a.a),"undefined"!=typeof wpseoPrimaryCategoryL10n&&function(e){var t,n,s=wpseoPrimaryCategoryL10n.taxonomies;function i(t){return e("#yoast-wpseo-primary-"+t).val()}function r(t,n){e("#yoast-wpseo-primary-"+t).val(n).trigger("change");const s=Object(p.dispatch)("yoast-seo/editor");if(s){const i=parseInt(n,10);s.setPrimaryTaxonomyId(t,i),"category"===t&&s.updateReplacementVariable("primary_category",function(t){const n=e("#category-all").find(`#category-${t} > label`);if(0===n.length)return"";const s=n.clone();return s.children().remove(),s.text().trim()}(i))}}function a(r){var a,o,c;a=e("#"+r+'checklist input[type="checkbox"]:checked');var l=e("#"+r+"checklist li");l.removeClass("wpseo-term-unchecked wpseo-primary-term wpseo-non-primary-term"),e(".wpseo-primary-category-label").remove(),l.addClass("wpseo-term-unchecked"),a.length<=1||a.each((function(a,l){l=e(l),(o=l.closest("li")).removeClass("wpseo-term-unchecked"),1!==e(l).closest("li").children(".wpseo-make-primary-term").length&&function(n,i){var r,a;r=e(i).closest("label"),a=t({taxonomy:s[n],term:r.text()}),r.after(a)}(r,l),l.val()===i(r)?(o.addClass("wpseo-primary-term"),(c=l.closest("label")).find(".wpseo-primary-category-label").remove(),c.append(n({taxonomy:s[r]}))):o.addClass("wpseo-non-primary-term")}))}function c(t){r(t,e("#"+t+'checklist input[type="checkbox"]:checked:first').val()),a(t)}function l(e){""===i(e)&&c(e)}e.fn.initYstSEOPrimaryCategory=function(){return this.each((function(t,n){const s=e("#"+n.name+"div");var o;a(n.name),s.on("click",'input[type="checkbox"]',(o=n.name,function(){!1===e(this).prop("checked")&&e(this).val()===i(o)&&c(o),l(o),a(o)})),s.on("wpListAddEnd","#"+n.name+"checklist",function(e){return function(){l(e),a(e)}}(n.name)),s.on("click",".wpseo-make-primary-term",function(t){return function(n){var s;s=e(n.currentTarget).siblings("label").find("input"),r(t,s.val()),a(t),s.trigger("focus")}}(n.name))}))},t=wp.template("primary-term-ui"),n=wp.template("primary-term-screen-reader"),e(_.values(s)).initYstSEOPrimaryCategory(),Object(f.a)()&&Object(o.get)(window,"wp.hooks.addFilter",o.noop)("editor.PostTaxonomyType","yoast-seo",e=>class extends pe.Component{render(){return Object(pe.createElement)(Ie,ue()({OriginalComponent:e},this.props))}})}(a.a);const e=Object(u.a)();window.yoast.initEditorIntegration(e);const t=new window.yoast.EditorData(o.noop,e);t.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars,window.wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars),le(a.a,e,t),window.wpseoScriptData&&void 0!==window.wpseoScriptData.featuredImage&&function(e){var t,n,s,i=function(e){this._app=e,this.featuredImage=null,this.pluginName="addFeaturedImagePlugin",this.registerPlugin(),this.registerModifications()};function r(){e("#yst_opengraph_image_warning").remove(),n.removeClass("yoast-opengraph-image-notice")}i.prototype.setFeaturedImage=function(e){this.featuredImage=e,this._app.pluginReloaded(this.pluginName)},i.prototype.removeFeaturedImage=function(){this.setFeaturedImage(null)},i.prototype.registerPlugin=function(){this._app.registerPlugin(this.pluginName,{status:"ready"})},i.prototype.registerModifications=function(){this._app.registerModification("content",this.addImageToContent.bind(this),this.pluginName,10)},i.prototype.addImageToContent=function(e){return null!==this.featuredImage&&(e+=this.featuredImage),e};var a=wp.media.featuredImage.frame();if("undefined"==typeof YoastSEO)return;if(t=new i(YoastSEO.app),n=e("#postimagediv"),s=n.find(".hndle"),a.on("select",(function(){var i,o,c;!function(t){var i=t.state().get("selection").first().toJSON();i.width<200||i.height<200?0===e("#yst_opengraph_image_warning").length&&(e(''+wpseoScriptData.featuredImage.featured_image_notice+"
").insertAfter(s),n.addClass("yoast-opengraph-image-notice"),g()(wpseoScriptData.featuredImage.featured_image_notice,"assertive")):r()}(a),c=(o=a.state().get("selection").first()).get("alt"),i='',t.setFeaturedImage(i)})),n.on("click","#remove-post-thumbnail",(function(){t.removeFeaturedImage(),r()})),void 0!==e("#set-post-thumbnail > img").prop("src")&&t.setFeaturedImage(e("#set-post-thumbnail ").html()),!Object(f.a)())return;let o,c;Object(p.subscribe)(()=>{const e=Object(p.select)("core/editor").getEditedPostAttribute("featured_media");if(function(e){return"number"==typeof e&&e>0}(e)&&(o=Object(p.select)("core").getMedia(e),void 0!==o&&o!==c)){c=o;const e=``;t.setFeaturedImage(e)}})}(a.a),Object(d.a)(a.a),Object(l.a)(a.a),Object(Me.a)(),window.wpseoScriptData.postType&&!["attachment","product"].includes(window.wpseoScriptData.postType)&&Object(c.a)()})}]);