25 lines
128 KiB
JavaScript
25 lines
128 KiB
JavaScript
!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<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.yoast.reduxJsToolkit},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.yoast.externals.redux},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);function i(){return Object(s.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.jQuery},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"q",(function(){return O})),n.d(t,"o",(function(){return _})),n.d(t,"p",(function(){return j})),n.d(t,"d",(function(){return S})),n.d(t,"h",(function(){return C})),n.d(t,"u",(function(){return T})),n.d(t,"r",(function(){return P})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return I}));var s=n(13),i=n(15),r=n(4);const a="linkParams",o=Object(s.createSlice)({name:a,initialState:{},reducers:{setLinkParams:(e,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/>"),{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>","<ArrowNarrowRightIcon />","</a>"),{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<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function f(e){return d.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),h||(h=d.createElement("path",{d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0138.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0155.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 00106.4-39.6l61.8 107.2a283.9 283.9 0 01-168.2 54.8zM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4z",fill:"#fff"})))}p.propTypes={learnMoreLink:o.a.string.isRequired,upsellLink: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},n(87);var m=n(12),y=n.n(m);const b=e=>{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<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function D(e){return d.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),w||(w=d.createElement("defs",null,d.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),v||(v=d.createElement("path",{className:"star-rating-half_svg__cls-1",d:"M250 392.04L98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z"})),O||(O=d.createElement("path",{className:"star-rating-half_svg__cls-1",d:"M250 33.51l73.67 149.27.93 1.88 2.08.3L491.4 208.9 372.21 325.09l-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 208.9 173.32 185l2.08-.3.93-1.88L250 33.51m0-9L172.75 181 0 206.11 125 328 95.49 500 250 418.77 404.51 500 375 328l125-121.89L327.25 181 250 24.47z",transform:"translate(0 -24.47)"})),_||(_=d.createElement("path",{fill:"#f3f4f6",d:"M500 181.64l-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z"})))}function B(){return(B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function L(e){return d.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),j||(j=d.createElement("path",{fill:"#fbbf24",d:"M250 0l77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z"})))}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function $(e){return d.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),k||(k=d.createElement("path",{d:"M80 0h340a80 80 0 0180 80v420H80a80 80 0 01-80-80V80A80 80 0 0180 0z",fill:"#a4286a"})),x||(x=d.createElement("path",{d:"M437.61 2L155.89 500H500V80a80 80 0 00-62.39-78z",fill:"#6c2548"})),E||(E=d.createElement("path",{d:"M74.4 337.3v34.9c21.6-.9 38.5-8 52.8-22.5s27.4-38 39.9-72.9l92.6-248h-44.8L140.3 236l-37-116.2h-41l54.4 139.8a57.54 57.54 0 010 41.8c-5.5 14.2-15.4 30.9-42.3 35.9z",fill:"#fff"})),S||(S=d.createElement("circle",{cx:368.33,cy:124.68,r:97.34,transform:"rotate(-45 368.335 124.68)",fill:"#9fda4f"})),R||(R=d.createElement("path",{d:"M416.2 39.93l-95.74 169.51A97.34 97.34 0 10416.2 39.93z",fill:"#77b227"})),C||(C=d.createElement("path",{d:"M294.78 254.75l-.15-.08-.13-.07a63.6 63.6 0 00-62.56 110.76h.13a63.6 63.6 0 0062.71-110.67z",fill:"#fec228"})),T||(T=d.createElement("path",{d:"M294.5 254.59l-62.56 110.76a63.6 63.6 0 1062.56-110.76z",fill:"#f49a00"})),P||(P=d.createElement("path",{d:"M222.31 450.07A38.16 38.16 0 00203 416.83a38.18 38.18 0 1019.41 33.27z",fill:"#ff4e47"})),A||(A=d.createElement("path",{d:"M202.9 416.8l-37.54 66.48a38.17 38.17 0 0037.54-66.48z",fill:"#ed261f"})))}const z=e=>{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 <strong> 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>","</strong>"),{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"),"<nowrap>","</nowrap>","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("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}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("<yoastmark")}function l(e){o(e)(null,[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var s=n(4),i=n(14),r=n(65);function a(){return Object(s.get)(window,["wpseoAdminL10n","default_query_params"],{})}var o=n(123),c=n(68),l=n(55),d=n(101),u=n(88);function p(){const e=Object(s.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(i.createWorker)(e),n=Object(s.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),r=[];for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const t=window.document.getElementById(e+"-js-translations");if(!t)continue;const s=t.innerHTML.slice(214),i=s.indexOf(","),a=s.slice(0,i-1);try{const e=JSON.parse(s.slice(i+1,-4));r.push([a,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:n,translations:r}),new i.AnalysisWorkerWrapper(t)}function h(){let e=arguments.length>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("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),a=i("<span />",{class:"score-text",html:r(e,t,n)}),o=i("<span>").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;n<e;n++)t[n]=arguments[n];return()=>t.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="<yoastmark class='yoast-text-mark'>";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('<yoastmark class="yoast-text-mark">'));let s=null;const i=[];for(;t>=0;){if(s=(e=n?e.replace(a,""):e.replace('<yoastmark class="yoast-text-mark">',"")).indexOf("</yoastmark>"),s<t)return[];e=e.replace("</yoastmark>",""),i.push({startOffset:t,endOffset:s}),t=n?e.indexOf(a):e.indexOf('<yoastmark class="yoast-text-mark">'),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<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/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<i},e(window).on("hashchange",(function(){r(),n()})),window.setWPOption=function(t,n,s,i){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:n,_wpnonce:i},(function(t){t&&e("#"+s).hide()}))},window.wpseoCopyHomeMeta=t,window.wpseoSetTabHash=n,e(document).ready((function(){n(),"function"==typeof window.wpseoRedirectOldFeaturesTabToNewSettings&&window.wpseoRedirectOldFeaturesTabToNewSettings(),e("#disable-author input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#author-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change");const o=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");o.is(":checked")||a(!1),c.on("change",()=>{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*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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=/<!--(?!-?>)[\s\S]*?-->/,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*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\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<c.align.length;g++)/^ *-+: *$/.test(c.align[g])?c.align[g]="right":/^ *:-+: *$/.test(c.align[g])?c.align[g]="center":/^ *:-+ *$/.test(c.align[g])?c.align[g]="left":c.align[g]=null;for(g=0;g<c.cells.length;g++)c.cells[g]=b(c.cells[g],c.header.length);this.tokens.push(c)}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/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;g<m;g++)h=(c=r[g]).length,~(c=c.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+h+"}","gm"),"")),g!==m-1&&(o=n.bullet.exec(r[g+1])[0],(a.length>1?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<m;g++)u[g].loose=!0;this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):d(r[0]):r[0]});else if(t&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if((r=this.rules.table.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<c.align.length;g++)/^ *-+: *$/.test(c.align[g])?c.align[g]="right":/^ *:-+: *$/.test(c.align[g])?c.align[g]="center":/^ *:-+ *$/.test(c.align[g])?c.align[g]="left":c.align[g]=null;for(g=0;g<c.cells.length;g++)c.cells[g]=b(c.cells[g].replace(/^ *\| *| *\| *$/g,""),c.header.length);this.tokens.push(c)}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2].charAt(0)?1:2,text:r[1]});else if(t&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||_.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new a,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function a(e){this.options=e||_.defaults}function o(){}function c(e){this.tokens=[],this.token=null,this.options=e||_.defaults,this.options.renderer=this.options.renderer||new a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function d(e,t){if(t){if(d.escapeTest.test(e))return e.replace(d.escapeReplace,(function(e){return d.replacements[e]}))}else if(d.escapeTestNoEncode.test(e))return e.replace(d.escapeReplaceNoEncode,(function(e){return d.replacements[e]}));return e}function u(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function p(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,n){if(e){try{var s=decodeURIComponent(u(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===s.indexOf("javascript:")||0===s.indexOf("vbscript:")||0===s.indexOf("data:"))return null}t&&!f.test(n)&&(n=function(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=w(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=p(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=y({},i.gfm,{br:p(i.br).replace("{2,}","*").getRegex(),text:p(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),r.rules=i,r.output=function(e,t,n){return new r(t,n).output(e)},r.prototype.output=function(e){for(var t,n,s,i,a,o,c="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),c+=d(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/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<s;i++)t=e.charCodeAt(i),Math.random()>.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?'<pre><code class="'+this.options.langPrefix+d(s,!0)+'">'+(n?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:d(e,!0))+"</code></pre>"},a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,s){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+s.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\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"<li>"+e+"</li>\n"},a.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},a.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\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"<strong>"+e+"</strong>"},a.prototype.em=function(e){return"<em>"+e+"</em>"},a.prototype.codespan=function(e){return"<code>"+e+"</code>"},a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},a.prototype.del=function(e){return"<del>"+e+"</del>"},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='<a href="'+d(e)+'"';return t&&(s+=' title="'+t+'"'),s+">"+n+"</a>"},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='<img src="'+e+'" alt="'+n+'"';return t&&(s+=' title="'+t+'"'),s+(this.options.xhtml?"/>":">")},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<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",s=0;s<t.length;s++)n+=this.renderer.tablecell(this.inline.output(t[s]),{header:!1,align:this.token.align[s]});r+=this.renderer.tablerow(n)}return this.renderer.table(i,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var a=this.token.ordered,o=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,a,o);case"list_item_start":r="";var c=this.token.loose,l=this.token.checked,d=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(l));"list_item_end"!==this.next().type;)r+=c||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,d,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var p='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(p);console.log(p)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/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<arguments.length;s++)for(n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function b(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var s=!1,i=t;--i>=0&&"\\"===n[i];)s=!s;return s?"|":" |"})).split(/ \|/),s=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function w(e,t,n){if(0===e.length)return"";for(var s=0;s<e.length;){var i=e.charAt(e.length-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.substr(0,e.length-s)}function v(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&--n<0)return s;return-1}function O(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function _(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),O(t=y({},_.defaults,t||{}));var i,r,a=t.highlight,o=0;try{i=s.lex(e,t)}catch(e){return n(e)}r=i.length;var l=function(e){if(e)return t.highlight=a,n(e);var s;try{s=c.parse(i,t)}catch(t){e=t}return t.highlight=a,e?n(e):n(null,s)};if(!a||a.length<3)return l();if(delete t.highlight,!r)return l();for(;o<i.length;o++)!function(e){"code"!==e.type?--r||l():a(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--r||l():(e.text=n,e.escaped=!0,void(--r||l()))}))}(i[o])}else try{return t&&(t=y({},_.defaults,t)),O(t),c.parse(s.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||_.defaults).silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";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;n<t.length;n++)e=e.replace(t[n].shortcode,t[n].output);return this.removeUnknownShortCodes(e)},k.prototype.loadShortcodes=function(e){var t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))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;n<e.length;n++){var s=e[n];-1===t.indexOf(s)&&this.isUnparsedShortcode(s)&&t.push(s)}return t},k.prototype.isUnparsedShortcode=function(e){for(var t=!1,n=0;n<this.parsedShortcodes.length;n++)this.parsedShortcodes[n].shortcode===e&&(t=!0);return!1===t},k.prototype.getShortcodes=function(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;for(var t=this.matchCapturingShortcodes(e),n=0;n<t.length;n++)e=e.replace(t[n],"");var s=this.matchNonCapturingShortcodes(e);return t.concat(s)},k.prototype.matchCapturingShortcodes=function(e){for(var t=[],n=(e.match(this.closingTagRegex)||[]).join(" ").match(this.keywordRegex)||[],s=0;s<n.length;s++){var i=n[s],r="\\["+i+"[^\\]]*?\\].*?\\[\\/"+i+"\\]",a=e.match(new RegExp(r,"g"))||[];t=t.concat(a)}return t},k.prototype.matchNonCapturingShortcodes=function(e){return e.match(this.nonCaptureRegex)||[]},k.prototype.parseShortcodes=function(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?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<e.length;n++)this.parsedShortcodes.push(e[n]);t()};var x=k,E=n(240),S=n.n(E),R=n(45),C=n(146),T=n(122),P=n(191),A=n(105),I=n(91),M=n(84),D=n(96),B=n(69),L=n(215),N=n(1),$=n(100),z=n(44),F=n(55),U=n(68);const{tmceId:q}=R,Y=jQuery,V=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._data=e.data,this._store=e.store};V.prototype.getData=function(){const e=this._data.getData(),t=this._store.getState();return{keyword:Object(F.a)()?this.getKeyword():"",meta:this.getMeta(),text:e.content,title:e.title,url:e.slug,excerpt:e.excerpt,snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),snippetCite:this.getSnippetCite(),primaryCategory:this.getPrimaryCategory(),searchUrl:this.getSearchUrl(),postUrl:this.getPostUrl(),permalink:this.getPermalink(),titleWidth:Object($.a)(this.getSnippetTitle()),metaTitle:Object(o.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:Object(o.get)(t,["snippetEditor","data","slug"],e.slug),meta:this.getMetaDescForAnalysis(t)}},V.prototype.getKeyword=function(){return document.getElementById("yoast_wpseo_focuskw")&&document.getElementById("yoast_wpseo_focuskw").value||""},V.prototype.getMetaDescForAnalysis=function(e){let t=Object(o.get)(e,["analysisData","snippet","description"],this.getSnippetMeta());return""!==wpseoScriptData.metabox.metaDescriptionDate&&(t=wpseoScriptData.metabox.metaDescriptionDate+" - "+t),t},V.prototype.getMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},V.prototype.getText=function(){return y.markers.removeMarks(R.getContentTinyMce(q))},V.prototype.getTitle=function(){return document.getElementById("title")&&document.getElementById("title").value||""},V.prototype.getUrl=function(){const e=Object(p.select)("core/editor");if(e)return e.getCurrentPostAttribute("slug");var t="",n=Y("#new-post-slug");return 0<n.length?t=n.val():null!==document.getElementById("editable-post-name-full")&&(t=document.getElementById("editable-post-name-full").textContent),t},V.prototype.getExcerpt=function(){var e="";return null!==document.getElementById("excerpt")&&(e=document.getElementById("excerpt")&&document.getElementById("excerpt").value||""),e},V.prototype.getSnippetTitle=function(){return document.getElementById("yoast_wpseo_title")&&document.getElementById("yoast_wpseo_title").value||""},V.prototype.getSnippetMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},V.prototype.getSnippetCite=function(){return this.getUrl()||""},V.prototype.getPrimaryCategory=function(){var e="",t=Y("#category-all").find("ul.categorychecklist"),n=t.find("li input:checked");if(1===n.length)return this.getCategoryName(n.parent());var s=t.find(".wpseo-primary-term > 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<t.length;n++)Y(t[n]).on("change",e)},V.prototype.inputElementEventBinder=function(e){for(var t=["excerpt","content","title"],n=0;n<t.length;n++)null!==document.getElementById(t[n])&&document.getElementById(t[n]).addEventListener("input",e);R.tinyMceEventBinder(e,q)},V.prototype.saveScores=function(e,t){var n=Object(z.a)(e);A.updateScore("content",n.className),document.getElementById("yoast_wpseo_linkdex").value=e,""===t&&(n.className="na",n.screenReaderText=Object(N.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),Object(I.a)(n),Object(M.a)(n),A.updateScore("keyword",n.className),jQuery(window).trigger("YoastSEO:numericScore",e)},V.prototype.saveContentScore=function(e){var t=Object(z.a)(e);A.updateScore("content",t.className),Object(F.a)()||(Object(I.a)(t),Object(M.a)(t)),Y("#yoast_wpseo_content_score").val(e)},V.prototype.saveInclusiveLanguageScore=function(e){const t=Object(z.a)(e);A.updateScore("inclusive-language",t.className),Object(F.a)()||Object(U.a)()||(Object(I.a)(t),Object(M.a)(t)),Y("#yoast_wpseo_inclusive_language_score").val(e)};var K=V,W=n(123),H=n(101),Q=n(120),Z=n(207),G=n(195),J=n(94),X=n(58),ee=n(208),te=n(16);const{setFocusKeyword:ne,setMarkerStatus:se,updateData:ie,setCornerstoneContent:re,refreshSnippetEditor:ae,setReadabilityResults:oe,setSeoResultsForKeyword:ce}=te.actions;function le(e,t,n){if("undefined"==typeof wpseoScriptData)return;let s,i,r,a;const c=new Z.a;function l(e){return""===e.responseText?i.val():jQuery("<div>"+e.responseText+"</div>").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=/<!-- wp:block {"ref":(\d+)} \/-->/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.length<this.props.selectedTermIds.length){const t=Object(o.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(t))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.terms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}handleSelectedTermsChange(){const{selectedTerms:e}=this.state,{primaryTaxonomyId:t}=this.props;e.find(e=>e.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('<div id="yst_opengraph_image_warning" class="notice notice-error notice-alt"><p>'+wpseoScriptData.featuredImage.featured_image_notice+"</p></div>").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='<img src="'+o.get("url")+'" width="'+o.get("width")+'" height="'+o.get("height")+'" alt="'+c+'"/>',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=`<img src="${o.source_url}" alt="${o.alt_text}" >`;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)()})}]); |