PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | js/dist/term-edit.js +1 -1 18.1 → trunk View file →
@@ -1 +1 @@
1 -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},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=214)}([,,function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},,,function(e,t){e.exports=window.wp.data},,,function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,,function(e,t){e.exports=window.yoast.externals.redux},,,,,function(e,t){e.exports=window.jQuery},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(3);function a(){return Object(i.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},,,,function(e,t){e.exports=window.yoast.analysis},function(e,t,n){"use strict";var i=n(3),a={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},o=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(i.defaults)(n,a)};o.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},o.prototype.setSource=function(e){this.options.source=e},o.prototype.hasScope=function(){return!Object(i.isEmpty)(this.options.scope)},o.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},o.prototype.inScope=function(e){return!this.hasScope()||Object(i.indexOf)(this.options.scope,e)>-1},o.prototype.hasAlias=function(){return!Object(i.isEmpty)(this.options.aliases)},o.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},o.prototype.getAliases=function(){return this.options.aliases},t.a=o},,,,,,function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,,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 f})),n.d(t,"addEventHandler",(function(){return h})),n.d(t,"disableMarkerButtons",(function(){return g})),n.d(t,"enableMarkerButtons",(function(){return w})),n.d(t,"isTextViewActive",(function(){return m})),n.d(t,"wpTextViewOnInitCheck",(function(){return b})),n.d(t,"tinyMceEventBinder",(function(){return y}));var i,a=n(3),o=n(84),r=n(116),s=n(17),c="content",l="description";function d(e){i=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 f(e){var t,n,i;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(),i=new RegExp("&amp;","g"),n.replace(i,"&")}function h(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(i){var o=i.editor;o.id===e&&Object(a.forEach)(t,(function(e){o.on(e,n)}))}))}function g(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerStatus("disabled"))}function w(){Object(a.isUndefined)(i)||i.dispatch(s.actions.setMarkerStatus("enabled"))}function m(){var e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function b(){m()&&(g(),u()&&tinyMCE.on("AddEditor",(function(){w()})))}function y(e,t){h(t,["input","change","cut","paste"],e),h(t,["hide"],g);var n=["show"];(new r.a).isPageBuilderActive()||n.push("init"),h(t,n,w),h("content",["focus"],(function(e){var t=e.target;Object(o.a)(t)&&(Object(o.b)(t),YoastSEO.app.disableMarkers())}))}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(2),a=n(27),o=n(3);function r(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(i.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(i.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(i.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(i.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(i.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(i.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(i.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.interpreters.scoreToRating(e))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(23),a=n(3);function o(){var e=Object(i.a)();return 1===Object(a.get)(e,"keywordAnalysisActive",0)}},function(e,t){e.exports=window.yoast.components},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(i.get)(e,"contentLocale","en_US")}},,,,function(e,t){e.exports=window.wp.richText},,,,,,,function(e,t,n){"use strict";function i(){}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(23),a=n(3);function o(){var e=Object(i.a)();return 1===Object(a.get)(e,"contentAnalysisActive",0)}},,,,,,,,,function(e,t,n){"use strict";function i(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return i}))},function(e,t){var n,i,a="",o=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"),i=document.getElementById("a11y-speak-assertive"),null===n&&(n=o("polite")),null===i&&(i=o("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," "),a===e&&(e+=" "),a=e,i&&"assertive"===t?i.textContent=e:n&&(n.textContent=e)}},function(e,t){e.exports=window.yoast.featureFlag},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return s})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return l}));var i=n(17),a=n(62),o=n(48),r=!1;function s(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,l){var d=t();r&&e.analyze(d).then((function(e){var t=e.result,a=t.seo,r=t.readability;if(a){var u=a[""];u.results.forEach((function(e){e.getMarker=function(){return function(){return n(d,e.marks)}}})),u.results=s(u.results),c.dispatch(i.actions.setSeoResultsForKeyword(d.getKeyword(),u.results)),c.dispatch(Object(o.setOverallSeoScore)(u.score,d.getKeyword())),c.dispatch(i.actions.refreshSnippetEditor()),l.saveScores(u.score,d.getKeyword())}r&&(r.results.forEach((function(e){e.getMarker=function(){return function(){return n(d,e.marks)}}})),r.results=s(r.results),c.dispatch(i.actions.setReadabilityResults(r.results)),c.dispatch(Object(o.setOverallReadabilityScore)(r.score)),c.dispatch(i.actions.refreshSnippetEditor()),l.saveContentScore(r.score))})).catch(a.a)}function l(){r=!0}},,,,function(e,t,n){"use strict";function i(e){var t,n=document.getElementById("yoast-measurement-element");return n||((t=document.createElement("div")).id="yoast-measurement-element",t.style.position="absolute",t.style.left="-9999em",t.style.top=0,t.style.height=0,t.style.overflow="hidden",t.style.fontFamily="arial, sans-serif",t.style.fontSize="18px",t.style.fontWeight="400",document.body.appendChild(t),n=t),n.innerHTML=e,n.offsetWidth}n.d(t,"a",(function(){return i}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var i=n(27),a=n(3);function o(e,t,n){var o=e.dom,r=e.getContent();r=i.markers.removeMarks(r),Object(a.forEach)(n,(function(e){r=e.applyWithReplace(r)})),e.setContent(r),function(e){var t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);var s=o.select("yoastmark");Object(a.forEach)(s,(function(e){e.setAttribute("data-mce-bogus","1")}))}function r(e){return window.test=e,o.bind(null,e)}function s(e){return-1!==e.getContent({format:"raw"}).indexOf("<yoastmark")}function c(e){r(e)(null,[])}},,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return i}));var i=500},,function(e,t,n){"use strict";function i(e){jQuery(".adminbar-seo-score").attr("class","wpseo-score-icon adminbar-seo-score "+e.className).find(".adminbar-seo-score-text").text(e.screenReaderText)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var i=n(14),a=n.n(i),o=n(3);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a={getDataFromCollector:function(e){return{title:e.getSnippetTitle(),slug:e.getSnippetCite(),description:e.getSnippetMeta()}},getDataFromStore:function(e){var t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}},getTemplatesFromL10n:function(e){var t={};if(Object(o.isUndefined)(e))return t;t.title=e.title_template;var n=e.metadesc_template;return Object(o.isEmpty)(n)||(t.description=n),t},getDataWithTemplates:function(e,t){var n=s({},e);return Object(o.forEach)(t,(function(t,i){Object(o.has)(e,i)&&""===e[i]&&(n[i]=t)})),n},getDataWithoutTemplates:function(e,t){var n=s({},e);return Object(o.forEach)(t,(function(t,i){Object(o.has)(e,i)&&e[i].trim()===t&&(n[i]="")})),n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(3),a=n(23);function o(){var e=Object(a.a)();return Object(i.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return O}));var i=n(14),a=n.n(i),o=n(3),r=(n(147),n(55)),s=n(6);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d="<yoastmark class='yoast-text-mark'>",u=[],p={"core/quote":[{key:"value",multilineTag:"p"},{key:"citation"}],"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/heading":[{key:"content"}]},f={singleH1:{"core/heading":[{key:"content",filter:function(e){return 1===e.level}}]}};function h(){var e=u.shift();e&&(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation(e),g())}function g(){Object(o.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(h,{timeout:1e3}):setTimeout(h,150)}function w(){return Object(s.select)("core/block-editor")&&Object(o.isFunction)(Object(s.select)("core/block-editor").getBlocks)&&Object(s.select)("core/annotations")&&Object(o.isFunction)(Object(s.dispatch)("core/annotations").__experimentalAddAnnotation)}function m(e){var t=Object(s.select)("yoast-seo/editor").getActiveMarker(),n=f[t]||p;return n.hasOwnProperty(e)?n[e]:[]}function b(e,t,n){var i=e.key,a=t.attributes,s=a[i];if(e.filter&&!e.filter(a))return[];var c=Object(r.create)({html:s,multilineTag:e.multilineTag,multilineWrapperTag:e.multilineWrapperTag}).text;return Object(o.flatMap)(n,(function(e){var n=function(e,t){var n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),a=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];if(0===e.length)return i;var a,o=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(a=e.indexOf(t,o))>-1;)i.push(a),o=a+t.length;return i}(e,n);if(0===a.length)return[];var o=function(e){for(var t=e.indexOf(d),n=null,i=[];t>=0;){if((n=(e=e.replace(d,"")).indexOf("</yoastmark>"))<t)return[];e=e.replace("</yoastmark>",""),i.push({startOffset:t,endOffset:n}),t=e.indexOf(d),n=null}return i}(i),r=[];return o.forEach((function(e){a.forEach((function(i){var a=i+e.startOffset,o=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=i+n.length),r.push({startOffset:a,endOffset:o})}))})),r}(c,e);return n?n.map((function(e){return l(l({},e),{},{block:t.clientId,richTextIdentifier:i})})):[]}))}function y(e){u=e.map((function(e){return{blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}}))}function v(e,t){if(u=[],Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast"),0!==t.length){var n=Object(s.select)("core/block-editor").getBlocks();y(Object(o.flatMap)(n,(function(e){return Object(o.flatMap)(m(e.name),(function(n){return b(n,e,t)}))}))),g()}}function O(){var e=Object(s.select)("core/editor").getSelectedBlock(),t=Object(s.select)("yoast-seo/editor").getActiveMarker();if(e&&t){var n;n=e.clientId,Object(s.select)("core/annotations").__experimentalGetAnnotations().filter((function(e){return e.blockClientId===n&&"yoast"===e.source})).forEach((function(e){Object(s.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));var i=Object(s.select)("yoast-seo/editor").getResultById(t);if(void 0!==i){var a=i.marks;y(Object(o.flatMap)(m(e.name),(function(t){return b(t,e,a)}))),g()}}}},function(e,t,n){"use strict";function i(e){var t=jQuery(".yst-traffic-light"),n=t.closest(".wpseo-meta-section-link"),i=jQuery("#wpseo-traffic-light-desc"),a=e.className||"na";t.attr("class","yst-traffic-light "+a),n.attr("aria-describedby","wpseo-traffic-light-desc"),i.length>0?i.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 i}))},function(e,t,n){"use strict";function i(e){var t=e.alertKey;return new Promise((function(e){return wpseoApi.post("alerts/dismiss",{key:t},(function(){return e()}))}))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return i}))},,,,function(e,t){e.exports=window.wp.domReady},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var i=n(3),a=n(27),o=n(51);function r(){return Object(i.get)(window,["wpseoAdminL10n","default_query_params"],{})}var s=n(99),c=n(63),l=n(47),d=n(74);function u(){var e=Object(i.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(a.createWorker)(e),n=Object(i.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),o=[];for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var s=window.document.getElementById("".concat(r,"-js-translations"));if(s){var c=s.innerHTML.slice(214),l=c.indexOf(","),d=c.slice(0,l-1);try{var u=JSON.parse(c.slice(l+1,-4));o.push([d,u])}catch(e){console.warn("Failed to parse translation data for ".concat(r," to send to the Yoast SEO worker"));continue}}}return t.postMessage({dependencies:n,translations:o}),new a.AnalysisWorkerWrapper(t)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(o.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),defaultQueryParams:r(),logLevel:Object(i.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(d.enabledFeatures)()};t=Object(i.merge)(t,e);var n=Object(s.a)();return Object(i.isUndefined)(n)||Object(i.isUndefined)(n.domain)||(t.translations=n),t}},,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";var i=n(9),a=n.n(i),o=n(10),r=n.n(o),s=n(3),c=function(){function e(){a()(this,e)}return r()(e,[{key:"listen",value:function(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver((function(t){Object(s.forEach)(t,(function(t){"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}}],[{key:"isActive",value:function(){return!!document.getElementById("et_pb_main_editor_wrap")}},{key:"isTinyMCEHidden",value:function(){var e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}}]),e}(),l=function(){function e(){a()(this,e)}return r()(e,null,[{key:"isActive",value:function(){return!!window.VCV_I18N}}]),e}(),d={classicEditorHidden:s.noop,classicEditorShown:s.noop,pageBuilderLoaded:s.noop},u=function(){function e(){a()(this,e),this.determineActivePageBuilders()}return r()(e,[{key:"determineActivePageBuilders",value:function(){c.isActive()&&(this.diviActive=!0),l.isActive()&&(this.vcActive=!0)}},{key:"isPageBuilderActive",value:function(){return this.diviActive||this.vcActive}},{key:"listen",value:function(e){this.callbacks=Object(s.defaults)(e,d),this.diviActive&&(new c).listen(e)}},{key:"isClassicEditorHidden",value:function(){return!(!this.diviActive||!c.isTinyMCEHidden())}}]),e}();t.a=u},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(34),a=n.n(i),o=n(9),r=n.n(o),s=n(10),c=n.n(s),l=n(3),d=function(){function e(t){r()(this,e),this.refresh=t,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)}return c()(e,[{key:"_registerPlugin",value:function(e,t){return Object(l.isString)(e)?Object(l.isUndefined)(t)||Object(l.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)}},{key:"_ready",value:function(e){return Object(l.isString)(e)?Object(l.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)}},{key:"_reloaded",value:function(e){return Object(l.isString)(e)?Object(l.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)}},{key:"_registerModification",value:function(e,t,n,i){if(!Object(l.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(l.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(l.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;var a={callable:t,origin:n,priority:Object(l.isNumber)(i)?i:10};return Object(l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(a),!0}},{key:"_registerAssessment",value:function(e,t,n,i){return Object(l.isString)(t)?Object(l.isObject)(n)?Object(l.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)}},{key:"_applyModifications",value:function(e,t,n){var i=this.modifications[e];return!Object(l.isArray)(i)||i.length<1||((i=this._stripIllegalModifications(i)).sort((function(e,t){return e.priority-t.priority})),Object(l.forEach)(i,(function(i){var o=i.callable(t,n);a()(o)===a()(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}},{key:"_pollLoadingPlugins",value:function(e){e=Object(l.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))}},{key:"_allReady",value:function(){return Object(l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}},{key:"_pollTimeExceeded",value:function(){Object(l.forEach)(this.plugins,(function(e,t){Object(l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}},{key:"_stripIllegalModifications",value:function(e){var t=this;return Object(l.forEach)(e,(function(n,i){!1===t._validateOrigin(n.origin)&&delete e[i]})),e}},{key:"_validateOrigin",value:function(e){return"ready"===this.plugins[e].status}},{key:"_validateUniqueness",value:function(e){return Object(l.isUndefined)(this.plugins[e])}}]),e}()},function(e,t,n){"use strict";n.r(t);var i=n(103);n.d(t,"DISMISS_ALERT",(function(){return i.DISMISS_ALERT}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(3),a=jQuery;function o(e,t,n,i){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._postID=a("#post_ID, [name=tag_ID]").val(),this._taxonomy=a("[name=taxonomy]").val()||"",this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}o.prototype.init=function(){var e=this,t=window.YoastSEO.analysis.worker;this.requestKeywordUsage=Object(i.debounce)(this.requestKeywordUsage.bind(this),500),t.loadScript(this._scriptUrl).then((function(){t.sendMessage("initialize",e._options,"used-keywords-assessment")})).then((function(){e._initialized=!0,Object(i.isEqual)(e._options.usedKeywords,e._keywordUsage)?e._refreshAnalysis():t.sendMessage("updateKeywordUsage",e._keywordUsage,"used-keywords-assessment").then((function(){return e._refreshAnalysis()}))})).catch((function(e){return console.error(e)}))},o.prototype.setKeyword=function(e){Object(i.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},o.prototype.requestKeywordUsage=function(e){a.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy},this.updateKeywordUsage.bind(this,e),"json")},o.prototype.updateKeywordUsage=function(e,t){var n=this,a=window.YoastSEO.analysis.worker;t&&Object(i.isArray)(t)&&(this._keywordUsage[e]=t,this._initialized&&a.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((function(){return n._refreshAnalysis()})))}},,function(e,t,n){"use strict";function i(e){e(document).ready((function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each((function(t,n){var i,a,o=((a=(i=e(i=n)).data("target"))&&""!==a||(a=e(i).attr("id").replace(/_button$/,"")),a),r=function(t){return(t=e(t)).data("target-id")}(n),s=e("#"+o),c=e("#"+r),l=wp.media.frames.file_frame=wp.media({title:wpseoScriptData.media.choose_image,button:{text:wpseoScriptData.media.choose_image},multiple:!1,library:{type:"image"}});l.on("select",(function(){var e=l.state().get("selection").first().toJSON();s.val(e.url),c.val(e.id)}));var d=e(n);d.click((function(e){e.preventDefault(),l.open()})),d.siblings(".wpseo_image_remove_button").on("click",(function(e){e.preventDefault(),s.val(""),c.val("")}))}))}))}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(73),a=n.n(i),o=n(3);function r(e){function t(t){var n=!1,i="",o=[],r=["userid","name","user_description"],s=["date"],c=["title","parent_title","excerpt","excerpt_only","caption","focuskw","pt_single","pt_plural","modified","id"],l=["term404","searchphrase"],d=["term_title","term_description"],u=["category","category_description","tag","tag_description"];t.hasClass("posttype-template")?o=o.concat(l,d):t.hasClass("homepage-template")?o=o.concat(r,s,c,l,d,u):t.hasClass("taxonomy-template")?o=o.concat(r,s,c,l):t.hasClass("author-template")?o=o.concat(c,s,l,d,u):t.hasClass("date-template")?o=o.concat(r,c,l,d,u):t.hasClass("search-template")?o=o.concat(r,s,c,d,u,["term404"]):t.hasClass("error404-template")&&(o=o.concat(r,s,c,d,u,["searchphrase"])),e.each(o,(function(o,r){if(i=t.attr("id")+"-"+r+"-warning",-1!==t.val().search("%%"+r+"%%")){t.addClass("wpseo-variable-warning-element");var s=wpseoAdminGlobalL10n.variable_warning.replace("%s","%%"+r+"%%");e("#"+i).length?e("#"+i).html(s):t.after(' <div id="'+i+'" class="wpseo-variable-warning">'+s+"</div>"),a()(wpseoAdminGlobalL10n.variable_warning.replace("%s",r),"assertive"),n=!0}else e("#"+i).length&&e("#"+i).remove()})),!1===n&&t.removeClass("wpseo-variable-warning-element")}function n(){e("#copy-home-meta-description").on("click",(function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())}))}function i(){var t=e("#wpseo-conf");if(t.length){var n=t.attr("action").split("#")[0];t.attr("action",n+window.location.hash)}}function r(t){var n=e("#noindex-author-noposts-wpseo-container");t?n.show():n.hide()}e.fn._wpseoIsInViewport=function(){var t=e(this).offset().top,n=t+e(this).outerHeight(),i=e(window).scrollTop(),a=i+e(window).height();return t>i&&n<a},e(window).on("hashchange",i),window.wpseoDetectWrongVariables=t,window.setWPOption=function(t,n,i,a){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:n,_wpnonce:a},(function(t){t&&e("#"+i).hide()}))},window.wpseoCopyHomeMeta=n,window.wpseoSetTabHash=i,e(document).ready((function(){var a=this;i(),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");var s=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");s.is(":checked")||r(!1),c.on("change",(function(){e(a).is(":checked")||r(!1)})),s.on("change",(function(){e(a).is(":checked")||r(!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(){e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var t=e(this).attr("id").replace("-tab",""),n=e("#"+t);n.addClass("active"),e(this).addClass("nav-tab-active"),n.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change")})),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(".template").on("input",(function(){t(e(this))})),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",(function(t){var n=e(t.currentTarget),i=n.parent().siblings(".toggleable-container");i.toggleClass("toggleable-container-hidden"),n.attr("aria-expanded",!i.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")}));var l,d=e("#opengraph"),u=e("#wpseo-opengraph-settings");d.length&&u.length&&(u.toggle(d[0].checked),d.on("change",(function(e){u.toggle(e.target.checked)}))),n(),-1!==(l=window.location.hash.replace("#top#","")).search("#top")&&(l=window.location.hash.replace("#top%23","")),""!==l&&"#"!==l.charAt(0)||(l=e(".wpseotab").attr("id")),e("#"+l).addClass("active"),e("#"+l+"-tab").addClass("nav-tab-active").trigger("click"),e("#twitter_card_type").select2({width:"400px",language:wpseoScriptData.userLanguageCode}),e("#breadcrumbs select").select2({width:"400px",language:wpseoScriptData.userLanguageCode}),function(){if(e("#enable_xml_sitemap input[type=radio]").length){var 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(){var t=e("#wpseo-submit-container-float"),n=e("#wpseo-submit-container-fixed");if(t.length&&n.length){e(window).on("resize scroll",Object(o.debounce)(a,100)),e(window).on("yoast-seo-tab-change",a);var i=e(".wpseo-message");i.length&&window.setTimeout((function(){i.fadeOut()}),5e3),a()}function a(){t._wpseoIsInViewport()?n.hide():n.show()}}(),"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";var i=n(141),a=n(17),o=n(3),r=n(72),s=n(28),c=a.actions.removeReplacementVariable,l=a.actions.updateReplacementVariable,d=a.actions.refreshSnippetEditor,u=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],p={},f={},h=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()};h.prototype.registerReplacements=function(){this.addReplacement(new s.a("%%author_first_name%%","author_first_name")),this.addReplacement(new s.a("%%author_last_name%%","author_last_name")),this.addReplacement(new s.a("%%category%%","category")),this.addReplacement(new s.a("%%category_title%%","category_title")),this.addReplacement(new s.a("%%currentdate%%","currentdate")),this.addReplacement(new s.a("%%currentday%%","currentday")),this.addReplacement(new s.a("%%currentmonth%%","currentmonth")),this.addReplacement(new s.a("%%currenttime%%","currenttime")),this.addReplacement(new s.a("%%currentyear%%","currentyear")),this.addReplacement(new s.a("%%date%%","date")),this.addReplacement(new s.a("%%id%%","id")),this.addReplacement(new s.a("%%page%%","page")),this.addReplacement(new s.a("%%permalink%%","permalink")),this.addReplacement(new s.a("%%post_content%%","post_content")),this.addReplacement(new s.a("%%post_month%%","post_month")),this.addReplacement(new s.a("%%post_year%%","post_year")),this.addReplacement(new s.a("%%searchphrase%%","searchphrase")),this.addReplacement(new s.a("%%sitedesc%%","sitedesc")),this.addReplacement(new s.a("%%sitename%%","sitename")),this.addReplacement(new s.a("%%userid%%","userid")),this.addReplacement(new s.a("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new s.a("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new s.a("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new s.a("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new s.a("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new s.a("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new s.a("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new s.a("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new s.a("%%sep%%(\\s*%%sep%%)*","sep"))},h.prototype.registerEvents=function(){var 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))},h.prototype.subscribeToGutenberg=function(){var e=this;if(Object(r.a)()){var t={0:""},n=null,a=wp.data;a.subscribe((function(){var r=a.select("core/editor").getEditedPostAttribute("parent");if(void 0!==r&&n!==r)return n=r,r<1?(e._currentParentPageTitle="",void e.declareReloaded()):Object(o.isUndefined)(t[r])?void i.loadPromise.done((function(){new i.models.Page({id:r}).fetch().then((function(n){e._currentParentPageTitle=n.title.rendered,t[r]=e._currentParentPageTitle,e.declareReloaded()})).fail((function(){e._currentParentPageTitle="",e.declareReloaded()}))})):(e._currentParentPageTitle=t[r],void e.declareReloaded())}))}},h.prototype.addReplacement=function(e){p[e.placeholder]=e},h.prototype.removeReplacement=function(e){delete p[e.getPlaceholder()]},h.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);Object(o.forEach)(u,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},h.prototype.replaceVariables=function(e){return Object(o.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},h.prototype.replaceByStore=function(e){var t=this._store.getState().snippetEditor.replacementVariables;return Object(o.forEach)(t,(function(t){""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))})),e},h.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},h.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]||""},h.prototype.replacePlaceholders=function(e){return Object(o.forEach)(p,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},h.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(d())},h.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},h.prototype.parseTaxonomies=function(e,t){Object(o.isUndefined)(f[t])&&(f[t]={});var n=[];Object(o.forEach)(e,function(e){var i=(e=jQuery(e)).val(),a=this.getCategoryName(e),o=e.prop("checked");f[t][i]={label:a,checked:o},o&&-1===n.indexOf(a)&&n.push(a)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(l(t,n.join(", ")))},h.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()},h.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)},h.prototype.replaceCustomTaxonomy=function(e){return Object(o.forEach)(f,function(t,n){var i="%%ct_"+n+"%%";"category"===n&&(i="%%"+n+"%%"),e=e.replace(i,this.getTaxonomyReplaceVar(n))}.bind(this)),e},h.prototype.getTaxonomyReplaceVar=function(e){var t=[],n=f[e];return!0===Object(o.isUndefined)(n)?"":(Object(o.forEach)(n,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},h.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val(),i=jQuery("#"+t.id+"-value").val(),a="cf_"+this.sanitizeCustomFieldNames(n),o=n+" (custom field)";this._store.dispatch(l(a,i,o)),this.addReplacement(new s.a("%%".concat(a,"%%"),i,{source:"direct"}))}.bind(this))},h.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))},h.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},h.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},h.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)},h.prototype.removeCustomFields=function(){var e=Object(o.filter)(p,(function(e,t){return t.indexOf("%%cf_")>-1}));Object(o.forEach)(e,function(e){this._store.dispatch(c(Object(o.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},h.prototype.parentReplace=function(e){var t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),Object(r.a)()&&!Object(o.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},h.prototype.hasParentTitle=function(e){return!Object(o.isUndefined)(e)&&!Object(o.isUndefined)(e.prop("options"))},h.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===wpseoScriptData.analysis.plugins.replaceVars.no_parent_text?"":t},h.ReplaceVar=s.a,t.a=h},function(e,t){e.exports=window.wp.api},function(e,t,n){"use strict";var i=n(17),a=n(3),o=n(27);t.a=function(e,t,n){e("morphology",new o.Paper("",{keyword:n})).then((function(e){var n=e.result.keyphraseForms;t.dispatch(i.actions.updateWordsToHighlight(Object(a.uniq)(Object(a.flatten)(n))))})).catch((function(){t.dispatch(i.actions.updateWordsToHighlight([]))}))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(3),a=n(6),o=n(37),r=n(84),s=n(101),c=null;function l(e,t){o.isTinyMCEAvailable(o.tmceId)&&(null===c&&(c=Object(r.c)(tinyMCE.get(o.tmceId))),c(e,t)),Object(s.b)()&&Object(s.a)(e,t)}function d(){return Object(a.select)("yoast-seo/editor").isMarkingAvailable()?l:i.noop}},function(e,t){e.exports=window.wp.annotations},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(3),a=n(82),o=n(51),r=n(27);function s(e,t,n,s,c){var l=Object(i.cloneDeep)(t.getState());Object(i.merge)(l,n.getData());var d=e.getData(),u=null;c&&(u=(u=c.getBlocks()).map((function(e){return function e(t){var n={attributes:{}};return["level","content","alt"].forEach((function(e){t.attributes[e]&&(n.attributes[e]=t.attributes[e])})),n.name=t.name,n.clientId=t.clientId,n.innerBlocks=t.innerBlocks.map((function(t){return e(t)})),n}(e)})));var p={text:d.content,keyword:l.focusKeyword,synonyms:l.synonyms,description:l.analysisData.snippet.description||l.snippetEditor.data.description,title:l.analysisData.snippet.title||l.snippetEditor.data.title,url:l.snippetEditor.data.slug,permalink:l.settings.snippetEditor.baseUrl+l.snippetEditor.data.slug,wpBlocks:u,date:l.settings.snippetEditor.date};return s.loaded&&(p.title=s._applyModifications("data_page_title",p.title),p.title=s._applyModifications("title",p.title),p.description=s._applyModifications("data_meta_desc",p.description),p.text=s._applyModifications("content",p.text),p.wpBlocks=s._applyModifications("wpBlocks",p.wpBlocks)),p.titleWidth=Object(a.a)(p.title),p.locale=Object(o.a)(),r.Paper.parse(p)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(9),a=n.n(i),o=n(10),r=n.n(o),s=n(3),c=function(){function e(){a()(this,e),this._callbacks=[],this.register=this.register.bind(this)}return r()(e,[{key:"register",value:function(e){Object(s.isFunction)(e)&&this._callbacks.push(e)}},{key:"getData",value:function(){var e={};return this._callbacks.forEach((function(t){e=Object(s.merge)(e,t())})),e}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(3),a=n(23),o=n(130);function r(e,t,n){var r=Object(a.a)();if(r.previouslyUsedKeywordActive){var s=Object(i.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),c=new o.a(t,r,e,s);c.init();var l={};n.subscribe((function(){var e=n.getState()||{};e.focusKeyword!==l.focusKeyword&&(l=e,c.setKeyword(e.focusKeyword))}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(3),a=n(6),o=n(17),r=n(129);function s(){var e=Object(a.registerStore)("yoast-seo/editor",{reducer:Object(a.combineReducers)(o.reducers),selectors:o.selectors,actions:Object(i.pickBy)(o.actions,(function(e){return"function"==typeof e})),controls:r});return function(e){e.dispatch(o.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(o.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(o.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(o.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(o.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(o.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases))}(e),e}},,,,,,,function(e,t,n){"use strict";function i(e){function t(e){e&&(e.focus(),e.click())}function n(){var t=e("#wpseo-meta-section-addons .wpseo_tablink");if(1===t.length&&t.replaceWith("<span class='"+t[0].className+"'>"+t.text()+"</span>"),e(".wpseo-metabox-tabs-div").length>0&&e(".wpseo-metabox-tabs").on("click","a.wpseo_tablink",(function(t){t.preventDefault(),e(".wpseo-meta-section.active .wpseo-metabox-tabs li").removeClass("active"),e(".wpseo-meta-section.active .wpseotab").removeClass("active");var n=e(e(this).attr("href"));n.addClass("active"),e(this).parent("li").addClass("active"),e(this).hasClass("scroll")&&e("html, body").animate({scrollTop:e(n).offset().top},500)})),e(".wpseo-meta-section").length>0){var n=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"),n.on("click",(function(t){var i=e(this).attr("id"),a=e(this).attr("href"),o=e(a);t.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"===a&&e(".wpseo-meta-section-react").addClass("active"),o.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new CustomEvent(e,{detail:t})}("YoastSEO:metaTabChange",{metaTabId:i});window.dispatchEvent(r),this&&(function(e){e.attr({"aria-selected":"false",tabIndex:"-1"})}(n),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))}))}e(".wpseo-metabox-tabs").show()}var i,a,o;window.wpseoInitTabs=n,window.wpseo_init_tabs=n,e(".wpseo-meta-section").each((function(t,n){e(n).find(".wpseo-metabox-tabs li:first").addClass("active"),e(n).find(".wpseotab:first").addClass("active")})),window.wpseo_init_tabs(),i=e(".yoast-aria-tabs"),a=i.find("[role='tab']"),o=i.attr("aria-orientation")||"horizontal",a.attr({"aria-selected":!1,tabIndex:"-1"}),a.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),a.on("keydown",(function(n){-1!==[32,35,36,37,38,39,40].indexOf(n.which)&&("horizontal"===o&&-1!==[38,40].indexOf(n.which)||"vertical"===o&&-1!==[37,39].indexOf(n.which)||function(n,i){var a=n.which,o=i.index(e(n.target));switch(a){case 32:n.preventDefault(),t(i[o]);break;case 35:n.preventDefault(),t(i[i.length-1]);break;case 36:n.preventDefault(),t(i[0]);break;case 37:case 38:n.preventDefault(),t(i[o-1<0?i.length-1:o-1]);break;case 39:case 40:n.preventDefault(),t(i[o+1===i.length?0:o+1])}}(n,a))}))}n.d(t,"a",(function(){return i}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(107),a=n.n(i),o=n(22),r=n.n(o),s=n(162),c=n(27),l=n(115),d=n(3),u=n(37),p=n(128),f=n(142),h=n(140),g=n(102),w=n(97),m=n(112),b=n(78),y=n(152),v=n(45),O=n(99),_=n(47),j=n(63),S=n(98),E=n(14),k=n.n(E),x=n(34),T=n.n(x),C=n(82);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){k()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=jQuery,P=function(e){"object"===("undefined"==typeof CKEDITOR?"undefined":T()(CKEDITOR))&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._store=e.store};P.prototype.getData=function(){var e={title:this.getTitle(),keyword:Object(_.a)()?this.getKeyword():"",text:this.getText(),meta:this.getMeta(),url:this.getUrl(),permalink:this.getPermalink(),snippetCite:this.getSnippetCite(),snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),name:this.getName(),baseUrl:this.getBaseUrl(),pageTitle:this.getPageTitle(),titleWidth:Object(C.a)(this.getTitle())},t=this._store.getState(),n={metaTitle:Object(d.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:Object(d.get)(t,["snippetEditor","data","slug"],this.getUrl()),meta:Object(d.get)(t,["analysisData","snippet","description"],this.getSnippetMeta())};return R(R({},e),n)},P.prototype.getTitle=function(){return document.getElementById("hidden_wpseo_title").value},P.prototype.getKeyword=function(){var e,t;return""===(t=(e=document.getElementById("hidden_wpseo_focuskw")).value)&&(t=document.getElementById("name").value,e.placeholder=t),t},P.prototype.getText=function(){return u.getContentTinyMce(u.termsTmceId)},P.prototype.getMeta=function(){var e="",t=document.getElementById("hidden_wpseo_desc");return null!==t&&(e=t.value),e},P.prototype.getUrl=function(){return document.getElementById("slug").value},P.prototype.getPermalink=function(){var e=this.getUrl();return this.getBaseUrl()+e+"/"},P.prototype.getSnippetCite=function(){return this.getUrl()},P.prototype.getSnippetTitle=function(){return document.getElementById("hidden_wpseo_title").value},P.prototype.getSnippetMeta=function(){var e="",t=document.getElementById("hidden_wpseo_desc");return null!==t&&(e=t.value),e},P.prototype.getName=function(){return document.getElementById("name").value},P.prototype.getBaseUrl=function(){return wpseoScriptData.metabox.base_url},P.prototype.getPageTitle=function(){return document.getElementById("hidden_wpseo_title").value},P.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("hidden_wpseo_desc").value=e;break;case"snippet_cite":document.getElementById("slug").value=e;break;case"snippet_title":document.getElementById("hidden_wpseo_title").value=e}},P.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},P.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e)},P.prototype.inputElementEventBinder=function(e){for(var t=["name",u.termsTmceId,"slug","wpseo_focuskw"],n=0;n<t.length;n++)null!==document.getElementById(t[n])&&document.getElementById(t[n]).addEventListener("input",e);u.tinyMceEventBinder(e,u.termsTmceId)},P.prototype.saveScores=function(e){var t=Object(v.a)(e);document.getElementById("hidden_wpseo_linkdex").value=e,jQuery(window).trigger("YoastSEO:numericScore",e),Object(g.a)(t),Object(w.a)(t)},P.prototype.saveContentScore=function(e){var t=Object(v.a)(e);Object(_.a)()||(Object(g.a)(t),Object(w.a)(t)),D("#hidden_wpseo_content_score").val(e)},P.prototype.initKeywordTabTemplate=function(){D(".wpseo-metabox-tabs").on("click",".wpseo_tablink",(function(e){e.preventDefault()}))};var M=P,I=n(153),F=n(146),B=n(95),U=n(62),Y=n(154),K=n(17),L=K.actions.refreshSnippetEditor,N=K.actions.updateData,V=K.actions.setFocusKeyword,Q=K.actions.setCornerstoneContent,W=K.actions.setMarkerStatus,z=K.actions.setReadabilityResults,q=K.actions.setSeoResultsForKeyword;function H(e,t,n){var i,a,o,r=new I.a;function s(){var e={slug:a.val()};window.YoastSEO.store.dispatch(N(e))}function E(e){Object(d.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),Object(d.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}function k(e,t){var n=o||"";o=e.getState().analysisData.snippet,!Object(l.isShallowEqualObjects)(n,o)&&t()}!function(){var o,l,x,T,C,A,R,D,P,I,K;T=jQuery(".term-description-wrap").find("td"),C=jQuery(".term-description-wrap").find("label"),A=T.find("textarea").val(),R=document.getElementById("wp-description-wrap"),D=T.find("p"),T.html(""),T.append(R).append(D),document.getElementById("description").value=A,C.replaceWith(C.html()),l=new M({store:t}),o={elementTarget:[u.termsTmceId,"yoast_wpseo_focuskw","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:(P={},Object(_.a)()&&(P.output="does-not-really-exist-but-it-needs-something"),Object(j.a)()&&(P.contentOutput="also-does-not-really-exist-but-it-needs-something"),P),callbacks:{getData:l.getData.bind(l)},locale:wpseoScriptData.metabox.contentLocale,contentAnalysisActive:Object(j.a)(),keywordAnalysisActive:Object(_.a)(),hasSnippetPreview:!1,debouncedRefresh:!1,researcher:new window.yoast.Researcher.default},Object(_.a)()&&(t.dispatch(V(l.getKeyword())),o.callbacks.saveScores=l.saveScores.bind(l),o.callbacks.updatedKeywordsResults=function(e){var n=t.getState().focusKeyword;t.dispatch(q(n,e)),t.dispatch(L())}),Object(j.a)()&&(t.dispatch(W("hidden")),o.callbacks.saveContentScore=l.saveContentScore.bind(l),o.callbacks.updatedContentResults=function(e){t.dispatch(z(e)),t.dispatch(L())}),x=Object(O.a)(),Object(d.isUndefined)(x)||Object(d.isUndefined)(x.domain)||(o.translations=x),i=new c.App(o),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=i,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=Object(m.a)(),window.YoastSEO.analysis.collectData=function(){return Object(y.a)(n,window.YoastSEO.store,r,window.YoastSEO.app.pluggable)},window.YoastSEO.analysis.applyMarks=function(e,t){return Object(F.a)()(e,t)},window.YoastSEO.app.refresh=Object(d.debounce)((function(){return Object(b.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,l)}),B.refreshDelay),window.YoastSEO.app.registerCustomDataCallback=r.register,window.YoastSEO.app.pluggable=new p.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=function(e,t,n){if(!Object(d.isUndefined)(i.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(i.defaultSeoAssessor,e,t,n)&&window.YoastSEO.app.pluggable._registerAssessment(i.cornerStoneSeoAssessor,e,t,n)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(U.a),window.YoastSEO.app.refresh()},Object(Y.a)(i.refresh,"get_term_keyword_usage",t),t.subscribe(k.bind(null,t,i.refresh)),Object(_.a)()&&(i.seoAssessor=new c.TaxonomyAssessor(i.config.researcher),i.seoAssessorPresenter.assessor=i.seoAssessor),l.initKeywordTabTemplate(),window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new h.a(i,t),window.YoastSEO.analyzerArgs=o,(a=e("#slug")).on("change",s),l.bindElementEvents(Object(d.debounce)((function(){return Object(b.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,l)}),B.refreshDelay)),Object(_.a)()&&function(t){var n=e("#hidden_wpseo_linkdex").val();t.initKeywordTabTemplate();var i=Object(v.a)(n);Object(g.a)(i),Object(w.a)(i)}(l),Object(j.a)()&&(I=e("#hidden_wpseo_content_score").val(),K=Object(v.a)(I),Object(g.a)(K),Object(w.a)(K)),window.YoastSEO.analysis.worker.initialize(Object(m.b)({useTaxonomy:!0})).then((function(){jQuery(window).trigger("YoastSEO:ready")})).catch(U.a),E(i);var H=i.initAssessorPresenters.bind(i);i.initAssessorPresenters=function(){H(),E(i)};var G,J,$,X=S.a.getDataFromCollector(l);G=i,J=document.getElementById("hidden_wpseo_is_cornerstone"),$="1"===J.value,t.dispatch(Q($)),G.changeAssessorOptions({useCornerstone:$}),t.subscribe((function(){var e=t.getState();e.isCornerstone!==$&&($=e.isCornerstone,J.value=$?"1":"0",G.changeAssessorOptions({useCornerstone:$}))}));var Z=S.a.getTemplatesFromL10n(wpseoScriptData.metabox);X=S.a.getDataWithTemplates(X,Z),t.dispatch(N(X));var ee=t.getState().focusKeyword;Object(f.a)(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,ee);var te=Object(d.debounce)((function(){i.refresh()}),50);t.subscribe((function(){var e=t.getState().focusKeyword;ee!==e&&(ee=e,Object(f.a)(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,ee),document.getElementById("hidden_wpseo_focuskw").value=ee,te());var n=S.a.getDataFromStore(t),i=S.a.getDataWithoutTemplates(n,Z);X.title!==n.title&&l.setDataFromSnippet(i.title,"snippet_title"),X.slug!==n.slug&&l.setDataFromSnippet(i.slug,"snippet_cite"),X.description!==n.description&&l.setDataFromSnippet(i.description,"snippet_meta"),X.title=n.title,X.slug=n.slug,X.description=n.description})),Object(b.initializationDone)(),window.YoastSEO.app.refresh()}()}window.yoastHideMarkers=!0,window.YoastReplaceVarPlugin=h.a;var G=n(132),J=n(133),$=n(155);a()((function(){window.wpseoTermScraperL10n=window.wpseoScriptData.metabox,Object(J.a)(r.a),Object(s.a)(r.a);var e=Object($.a)();window.yoast.initEditorIntegration(e);var t=new window.yoast.EditorData((function(){}),e,u.termsTmceId);t.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars),H(r.a,e,t),Object(G.a)(r.a)}))}]);
1 +(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DISMISS_ALERT:()=>Y,NEW_REQUEST:()=>N,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>j,wistiaEmbedPermission:()=>K});const s=window.wp.domReady;var i=e.n(s);const o=window.jQuery;var n=e.n(o);const a=window.lodash,r=window.wp.i18n;const c=window.wp.data,l=window.yoast.externals.redux,d=window.yoast.reduxJsToolkit,p="adminUrl",u=(0,d.createSlice)({name:p,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),h=(u.getInitialState,{selectAdminUrl:e=>(0,a.get)(e,p,"")});h.selectAdminLink=(0,d.createSelector)([h.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}),u.actions,u.reducer;const g="replacementVariables",w=(0,d.createSlice)({name:g,initialState:(f={},{recommended:(0,a.get)(f,"recommended",{}),shared:(0,a.get)(f,"shared",[]),specific:(0,a.get)(f,"specific",{}),variables:(0,a.get)(f,"variables",[])}),reducers:{}});var f;const m=(0,d.createSelector)([e=>(0,a.get)(e,[g,"shared"],[]),e=>(0,a.get)(e,[g,"specific"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s,i)=>[...e,...(0,a.get)(t,s,(0,a.get)(t,i,[]))]),y=((0,d.createSelector)([e=>(0,a.get)(e,[g,"variables"],[]),m],(e,t)=>(0,a.filter)(e,({name:e})=>(0,a.includes)(t,e))),(0,d.createSelector)([e=>(0,a.get)(e,[g,"recommended"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s)=>(0,a.get)(e,t,(0,a.get)(e,s,[]))),w.actions,w.reducer,window.wp.apiFetch);var _=e.n(y);const S="hasConsent",b=(0,d.createSlice)({name:S,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),v=(b.getInitialState,b.actions,b.reducer,window.wp.url),E="linkParams",k=(0,d.createSlice)({name:E,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),x=(k.getInitialState,{selectLinkParam:(e,t,s={})=>(0,a.get)(e,`${E}.${t}`,s),selectLinkParams:e=>(0,a.get)(e,E,{})});x.selectLink=(0,d.createSelector)([x.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,v.addQueryArgs)(t,{...e,...s})),k.actions,k.reducer;const R=(0,d.createSlice)({name:"myyoastConnection",initialState:{isAvailable:!1,canConnect:!1,connectUrl:null,learnMoreUrl:""},reducers:{}}),O=(R.getInitialState,R.actions,R.reducer,"notifications"),T=(0,d.createSlice)({name:O,initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:i,description:o})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:i||"",description:o}})},removeNotification:(e,{payload:t})=>(0,a.omit)(e,t)}}),P=(T.getInitialState,T.actions,T.reducer,"request"),C=(0,d.createSlice)({name:"optInNotification",initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),A=(C.getInitialState,C.actions,C.reducer,"pluginUrl"),D=(0,d.createSlice)({name:A,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),M=(D.getInitialState,{selectPluginUrl:e=>(0,a.get)(e,A,"")});M.selectImageLink=(0,d.createSelector)([M.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],(e,t,s)=>[(0,a.trimEnd)(e,"/"),(0,a.trim)(t,"/"),(0,a.trimStart)(s,"/")].join("/")),D.actions,D.reducer;const I="wistiaEmbedPermission",B=(0,d.createSlice)({name:I,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${I}/${P}`,e=>{e.status="loading"}),e.addCase(`${I}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${I}/error`,(e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,a.get)(t,"error.code",500),message:(0,a.get)(t,"error.message","Unknown")}})}}),F=(B.getInitialState,B.actions,{[I]:async({payload:e})=>_()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var U;B.reducer;const L=(0,d.createSlice)({name:"documentTitle",initialState:(0,a.defaultTo)(null===(U=document)||void 0===U?void 0:U.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function Y({alertKey:e}){return new Promise(t=>wpseoApi.post("alerts/dismiss",{key:e},()=>t()))}function j({query:e,postId:t}){return new Promise(s=>{wpseoApi.get("meta/search",{query:e,post_id:t},e=>{s(e.meta)})})}L.getInitialState,L.actions,L.reducer;const N=async({countryCode:e,keyphrase:t})=>(_()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),_()({path:(0,v.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),K=F[I];function q(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}const Q=window.yoast.analysis,V=window.wp.isShallowEqual,W="yoastmark";function z(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function H(e,t,s){const i=e.dom;let o=e.getContent();if(o=Q.markers.removeMarks(o),(0,a.isEmpty)(s))return void e.setContent(o);o=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,a.orderBy)(e,e=>e._properties.position.startOffset,["asc"])).length-1;s>=0;s--){const i=e[s];z(i,t)||(t=i.applyWithPosition(t))}return t}(s,o):function(e,t,s,i){const{fieldsToMark:o,selectedHTML:n}=Q.languageProcessing.getFieldsToMark(s,i);return(0,a.forEach)(s,function(t){"acf_content"!==e.id&&(t._properties.marked=Q.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=Q.languageProcessing.normalizeHTML(t._properties.original)),o.length>0?n.forEach(e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)}):i=t.applyWithReplace(i)}),i}(e,0,s,o),e.setContent(o),function(e){let t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);const n=i.select(W);(0,a.forEach)(n,function(e){e.setAttribute("data-mce-bogus","1")})}function $(e){return window.test=e,H.bind(null,e)}const G="et_pb_main_editor_wrap",J=class{static isActive(){return!!document.getElementById(G)}static isTinyMCEHidden(){const e=document.getElementById(G);return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById(G),this.classicEditorContainer&&new MutationObserver(t=>{(0,a.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})}},X=class{static isActive(){return!!window.VCV_I18N}},Z={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop},ee=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){J.isActive()&&(this.diviActive=!0),X.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=(0,a.defaults)(e,Z),this.diviActive&&(new J).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!J.isTinyMCEHidden())}};let te;const se="content",ie="description";function oe(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function ne(e,t,s){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",function(i){const o=i.editor;o.id===e&&(0,a.forEach)(t,function(e){o.on(e,s)})})}function ae(){(0,a.isUndefined)(te)||te.dispatch(l.actions.setMarkerStatus("disabled"))}function re(){(0,a.isUndefined)(te)||te.dispatch(l.actions.setMarkerStatus("enabled"))}class ce{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,a.isString)(e)?(0,a.isUndefined)(t)||(0,a.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,a.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,a.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,a.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const o={callable:t,origin:s,priority:(0,a.isNumber)(i)?i:10};return(0,a.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}_registerAssessment(e,t,s,i){return(0,a.isString)(t)?(0,a.isObject)(s)?(0,a.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,a.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort((e,t)=>e.priority-t.priority),(0,a.forEach)(i,function(i){const o=i.callable(t,s);typeof o==typeof t?t=o:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")})),t}_pollLoadingPlugins(e){e=(0,a.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,a.reduce)(this.plugins,function(e,t){return e&&"ready"===t.status},!0)}_pollTimeExceeded(){(0,a.forEach)(this.plugins,function(e,t){(0,a.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])})}_stripIllegalModifications(e){return(0,a.forEach)(e,(t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]}),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,a.isUndefined)(this.plugins[e])}}function le(e,t,s){e("morphology",new Q.Paper("",{keyword:s})).then(e=>{const s=e.result.keyphraseForms;t.dispatch(l.actions.updateWordsToHighlight((0,a.uniq)((0,a.flatten)(s))))}).catch(()=>{t.dispatch(l.actions.updateWordsToHighlight([]))})}const de=window.wp.api;var pe={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},ue=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,a.defaults)(s,pe)};ue.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},ue.prototype.setSource=function(e){this.options.source=e},ue.prototype.hasScope=function(){return!(0,a.isEmpty)(this.options.scope)},ue.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},ue.prototype.inScope=function(e){return!this.hasScope()||(0,a.indexOf)(this.options.scope,e)>-1},ue.prototype.hasAlias=function(){return!(0,a.isEmpty)(this.options.aliases)},ue.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},ue.prototype.getAliases=function(){return this.options.aliases};const he=ue,{removeReplacementVariable:ge,updateReplacementVariable:we,refreshSnippetEditor:fe}=l.actions;var me=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],ye={},_e={},Se=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()};Se.prototype.registerReplacements=function(){this.addReplacement(new he("%%author_first_name%%","author_first_name")),this.addReplacement(new he("%%author_last_name%%","author_last_name")),this.addReplacement(new he("%%category%%","category")),this.addReplacement(new he("%%category_title%%","category_title")),this.addReplacement(new he("%%currentdate%%","currentdate")),this.addReplacement(new he("%%currentday%%","currentday")),this.addReplacement(new he("%%currentmonth%%","currentmonth")),this.addReplacement(new he("%%currenttime%%","currenttime")),this.addReplacement(new he("%%currentyear%%","currentyear")),this.addReplacement(new he("%%date%%","date")),this.addReplacement(new he("%%id%%","id")),this.addReplacement(new he("%%page%%","page")),this.addReplacement(new he("%%permalink%%","permalink")),this.addReplacement(new he("%%post_content%%","post_content")),this.addReplacement(new he("%%post_month%%","post_month")),this.addReplacement(new he("%%post_year%%","post_year")),this.addReplacement(new he("%%searchphrase%%","searchphrase")),this.addReplacement(new he("%%sitedesc%%","sitedesc")),this.addReplacement(new he("%%sitename%%","sitename")),this.addReplacement(new he("%%userid%%","userid")),this.addReplacement(new he("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new he("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new he("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new he("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new he("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new he("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new he("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new he("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new he("%%sep%%(\\s*%%sep%%)*","sep"))},Se.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))},Se.prototype.subscribeToGutenberg=function(){if(!q())return;const e={0:""};let t=null;const s=wp.data;s.subscribe(()=>{const i=s.select("core/editor").getEditedPostAttribute("parent");if(void 0!==i&&t!==i)return t=i,i<1?(this._currentParentPageTitle="",void this.declareReloaded()):(0,a.isUndefined)(e[i])?void de.loadPromise.done(()=>{new de.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())})},Se.prototype.addReplacement=function(e){ye[e.placeholder]=e},Se.prototype.removeReplacement=function(e){delete ye[e.getPlaceholder()]},Se.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);(0,a.forEach)(me,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},Se.prototype.replaceVariables=function(e){return(0,a.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},Se.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return(0,a.forEach)(t,t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))}),e},Se.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},Se.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]||""},Se.prototype.replacePlaceholders=function(e){return(0,a.forEach)(ye,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},Se.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(fe())},Se.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},Se.prototype.parseTaxonomies=function(e,t){(0,a.isUndefined)(_e[t])&&(_e[t]={});const s=[];(0,a.forEach)(e,function(e){const i=(e=jQuery(e)).val(),o=this.getCategoryName(e),n=e.prop("checked");_e[t][i]={label:o,checked:n},n&&-1===s.indexOf(o)&&s.push(o)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(we(t,s.join(", ")))},Se.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),s=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,s),this.declareReloaded()},Se.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)},Se.prototype.replaceCustomTaxonomy=function(e){return(0,a.forEach)(_e,function(t,s){var i="%%ct_"+s+"%%";"category"===s&&(i="%%"+s+"%%"),e=e.replace(i,this.getTaxonomyReplaceVar(s))}.bind(this)),e},Se.prototype.getTaxonomyReplaceVar=function(e){var t=[],s=_e[e];return!0===(0,a.isUndefined)(s)?"":((0,a.forEach)(s,function(e){!1!==e.checked&&t.push(e.label)}),jQuery.uniqueSort(t).join(", "))},Se.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val(),i=jQuery("#"+t.id+"-value").val();const o="cf_"+this.sanitizeCustomFieldNames(s),n=s+" (custom field)";this._store.dispatch(we(o,i,n)),this.addReplacement(new he(`%%${o}%%`,i,{source:"direct"}))}.bind(this))},Se.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(s)+"%%")}.bind(this))},Se.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},Se.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},Se.prototype.bindFieldEvents=function(e,t){var s=(t=jQuery(t)).find("#the-list");s.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),s.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},Se.prototype.removeCustomFields=function(){var e=(0,a.filter)(ye,function(e,t){return t.indexOf("%%cf_")>-1});(0,a.forEach)(e,function(e){this._store.dispatch(ge((0,a.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},Se.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),q()&&!(0,a.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},Se.prototype.hasParentTitle=function(e){return!(0,a.isUndefined)(e)&&!(0,a.isUndefined)(e.prop("options"))},Se.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===(0,r.__)("(no parent)","wordpress-seo")?"":t},Se.ReplaceVar=he;const be=Se,ve=window.wp.hooks,Ee="[^<>&/\\[\\]\0- =]+?",ke=new RegExp("\\["+Ee+"( [^\\]]+?)?\\]","g"),xe=new RegExp("\\[/"+Ee+"\\]","g");class Re{constructor({registerPlugin:e,registerModification:t,pluginReady:s,pluginReloaded:i},o){this._registerModification=t,this._pluginReady=s,this._pluginReloaded=i,e("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();const n="("+o.join("|")+")";this.shortcodesRegex=new RegExp(n,"g"),this.closingTagRegex=new RegExp("\\[\\/"+n+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+n+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))}declareReady(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()}declareReloaded(){this._pluginReloaded("YoastShortcodePlugin")}registerModifications(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")}removeUnknownShortCodes(e){return(e=e.replace(ke,"")).replace(xe,"")}replaceShortcodes(e){return"string"==typeof e&&this.parsedShortcodes.forEach(({shortcode:t,output:s})=>{e=e.replace(t,s)}),e=this.removeUnknownShortCodes(e)}loadShortcodes(e){const t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)}bindElementEvents(){const e=document.querySelector(".wp-editor-area"),t=(0,a.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)})}getContentTinyMCE(){let e=document.querySelector(".wp-editor-area")?document.querySelector(".wp-editor-area").value:"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")?tinyMCE.get("content").getContent():""),e}getUnparsedShortcodes(e){return"object"!=typeof e?(console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1):e.filter(e=>this.isUnparsedShortcode(e))}isUnparsedShortcode(e){return!this.parsedShortcodes.some(({shortcode:t})=>t===e)}getShortcodes(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;const t=this.matchCapturingShortcodes(e);t.forEach(t=>{e=e.replace(t,"")});const s=this.matchNonCapturingShortcodes(e);return t.concat(s)}matchCapturingShortcodes(e){const t=(e.match(this.closingTagRegex)||[]).join(" ").match(this.shortcodesRegex)||[];return(0,a.flatten)(t.map(t=>{const s="\\["+t+"[^\\]]*?\\].*?\\[\\/"+t+"\\]";return e.match(new RegExp(s,"g"))||[]}))}matchNonCapturingShortcodes(e){return e.match(this.nonCaptureRegex)||[]}parseShortcodes(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()}saveParsedShortcodes(e,t){const s=JSON.parse(e);this.parsedShortcodes.push(...s),t()}}const Oe=Re,{updateShortcodesForParsing:Te}=l.actions;function Pe(e){var t=jQuery(".yst-traffic-light"),s=t.closest(".wpseo-meta-section-link"),i=jQuery("#wpseo-traffic-light-desc"),o=e.className||"na";t.attr("class","yst-traffic-light "+o),s.attr("aria-describedby","wpseo-traffic-light-desc"),i.length>0?i.text(e.screenReaderText):s.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}function Ce(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)}function Ae(){return(0,a.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function De(){const e=Ae();return(0,a.get)(e,"contentLocale","en_US")}function Me(){const e=Ae();return!0===(0,a.get)(e,"contentAnalysisActive",!1)}function Ie(){const e=Ae();return!0===(0,a.get)(e,"keywordAnalysisActive",!1)}function Be(){const e=Ae();return!0===(0,a.get)(e,"inclusiveLanguageAnalysisActive",!1)}const Fe=window.yoast.featureFlag;class Ue{static get keyphraseElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}static get isCornerstoneElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}static get seoScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_linkdex":"hidden_wpseo_linkdex")}static get readabilityScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_content_score":"hidden_wpseo_content_score")}static get inclusiveLanguageScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_inclusive_language_score":"hidden_wpseo_inclusive_language_score")}static get seoTitleScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_seo_title_score":"hidden_wpseo_seo_title_score")}static get metaDescriptionScoreElement(){var e;return document.getElementById(null!==(e=window.wpseoScriptData)&&void 0!==e&&e.isPost?"yoast_wpseo_meta_description_score":"hidden_wpseo_meta_description_score")}static set keyphrase(e){Ue.keyphraseElement&&(Ue.keyphraseElement.value=e)}static get keyphrase(){var e,t;return null!==(e=null===(t=Ue.keyphraseElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set isCornerstone(e){Ue.isCornerstoneElement&&(Ue.isCornerstoneElement.value=e?"1":"0")}static get isCornerstone(){var e;return"1"===(null===(e=Ue.isCornerstoneElement)||void 0===e?void 0:e.value)}static set seoScore(e){Ue.seoScoreElement&&(Ue.seoScoreElement.value=e)}static get seoScore(){var e,t;return null!==(e=null===(t=Ue.seoScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set readabilityScore(e){Ue.readabilityScoreElement&&(Ue.readabilityScoreElement.value=e)}static get readabilityScore(){var e,t;return null!==(e=null===(t=Ue.readabilityScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set inclusiveLanguageScore(e){Ue.inclusiveLanguageScoreElement&&(Ue.inclusiveLanguageScoreElement.value=e)}static get inclusiveLanguageScore(){var e,t;return null!==(e=null===(t=Ue.inclusiveLanguageScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set seoTitleScore(e){Ue.seoTitleScoreElement&&(Ue.seoTitleScoreElement.value=e)}static get seoTitleScore(){var e,t;return null!==(e=null===(t=Ue.seoTitleScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}static set metaDescriptionScore(e){Ue.metaDescriptionScoreElement&&(Ue.metaDescriptionScoreElement.value=e)}static get metaDescriptionScore(){var e,t;return null!==(e=null===(t=Ue.metaDescriptionScoreElement)||void 0===t?void 0:t.value)&&void 0!==e?e:""}}const Le=["titleWidth","keyphraseInSEOTitle"],Ye=["metaDescriptionKeyword","metaDescriptionLength"],je=(e,t)=>{const s=(e||[]).filter(e=>{var s,i;return t.includes(null==e?void 0:e._identifier)&&(null===(s=e.hasScore)||void 0===s?void 0:s.call(e))&&(null===(i=e.hasText)||void 0===i?void 0:i.call(e))}),i=s.reduce((e,t)=>e+t.getScore(),0);return Math.round(i/(9*s.length)*100)||0},Ne=e=>{const t=(e=>je(e,Le))(e);t>0&&(Ue.seoTitleScore=String(t));const s=(e=>je(e,Ye))(e);s>0&&(Ue.metaDescriptionScore=String(s))};function Ke(){}let qe=!1;function Qe(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function Ve(e,t,s,i,o){if(!qe)return;const n=Q.Paper.parse(t());e.analyze(n).then(a=>{const{result:{seo:r,readability:c,inclusiveLanguage:d}}=a;if(r){const e=r[""];e.results.forEach(e=>{e.getMarker=()=>()=>s(n,e.marks)}),e.results=Qe(e.results),i.dispatch(l.actions.setSeoResultsForKeyword(n.getKeyword(),e.results)),i.dispatch(l.actions.setOverallSeoScore(e.score,n.getKeyword())),i.dispatch(l.actions.refreshSnippetEditor()),o.saveScores(e.score,n.getKeyword()),Ne(e.results)}c&&(c.results.forEach(e=>{e.getMarker=()=>()=>s(n,e.marks)}),c.results=Qe(c.results),i.dispatch(l.actions.setReadabilityResults(c.results)),i.dispatch(l.actions.setOverallReadabilityScore(c.score)),i.dispatch(l.actions.refreshSnippetEditor()),o.saveContentScore(c.score)),d&&(d.results.forEach(e=>{e.getMarker=()=>()=>s(n,e.marks)}),d.results=Qe(d.results),i.dispatch(l.actions.setInclusiveLanguageResults(d.results)),i.dispatch(l.actions.setOverallInclusiveLanguageScore(d.score)),i.dispatch(l.actions.refreshSnippetEditor()),o.saveInclusiveLanguageScore(d.score)),(0,ve.doAction)("yoast.analysis.refresh",a,{paper:n,worker:e,collectData:t,applyMarks:s,store:i,dataCollector:o})}).catch(Ke)}const We=window.wp.blocks,ze="yoast-measurement-element";function He(e){let t=document.getElementById(ze);return t||(t=function(){const e=document.createElement("div");return e.id=ze,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const $e=e=>(e=e.filter(e=>e.isValid)).map(e=>{const t=(0,We.serialize)([e],{isInnerBlocks:!1});return e.blockLength=t&&t.length,e.innerBlocks&&(e.innerBlocks=$e(e.innerBlocks)),e});function Ge(e){return(0,a.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(Q.interpreters.scoreToRating(e))}const Je=jQuery,Xe=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._store=e.store};Xe.prototype.getData=function(){const e={title:this.getSnippetTitle(),keyword:Ie()?this.getKeyword():"",text:this.getText(),permalink:this.getPermalink(),snippetCite:this.getSnippetCite(),snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),name:this.getName(),baseUrl:this.getBaseUrl(),pageTitle:this.getSnippetTitle(),titleWidth:He(this.getSnippetTitle())},t=this._store.getState();return{...e,metaTitle:(0,a.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:(0,a.get)(t,["snippetEditor","data","slug"],this.getSlug()),meta:(0,a.get)(t,["analysisData","snippet","description"],this.getSnippetMeta())}},Xe.prototype.getKeyword=function(){return document.getElementById("hidden_wpseo_focuskw").value},Xe.prototype.getText=function(){return function(e){let t="";var s;return t=!1===oe(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}(ie)},Xe.prototype.getSlug=function(){return document.getElementById("slug").value},Xe.prototype.getPermalink=function(){const e=this.getSlug();return this.getBaseUrl()+e+"/"},Xe.prototype.getSnippetCite=function(){return this.getSlug()},Xe.prototype.getSnippetTitle=function(){return document.getElementById("hidden_wpseo_title").value},Xe.prototype.getSnippetMeta=function(){const e=document.getElementById("hidden_wpseo_desc");return e?e.value:""},Xe.prototype.getName=function(){return document.getElementById("name").value},Xe.prototype.getBaseUrl=function(){return wpseoScriptData.metabox.base_url},Xe.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("hidden_wpseo_desc").value=e;break;case"snippet_cite":document.getElementById("slug").value=e;break;case"snippet_title":document.getElementById("hidden_wpseo_title").value=e}},Xe.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},Xe.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e)},Xe.prototype.inputElementEventBinder=function(e){const t=["name",ie,"slug","wpseo_focuskw"];for(let s=0;s<t.length;s++)null!==document.getElementById(t[s])&&document.getElementById(t[s]).addEventListener("input",e);!function(e,t){ne(t,["input","change","cut","paste"],e),ne(t,["hide"],ae);const s=["show"];(new ee).isPageBuilderActive()||s.push("init"),ne(t,s,re),ne("content",["focus"],function(e){const t=e.target;(function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+W)})(t)&&(function(e){$(e)(null,[])}(t),YoastSEO.app.disableMarkers()),(0,a.isUndefined)(te)||te.dispatch(l.actions.setMarkerPauseStatus(!0))}),ne("content",["blur"],function(){(0,a.isUndefined)(te)||te.dispatch(l.actions.setMarkerPauseStatus(!1))})}(e,ie)},Xe.prototype.saveScores=function(e){const t=Ge(e);document.getElementById("hidden_wpseo_linkdex").value=e,jQuery(window).trigger("YoastSEO:numericScore",e),Pe(t),Ce(t)},Xe.prototype.saveContentScore=function(e){const t=Ge(e);Ie()||(Pe(t),Ce(t)),Je("#hidden_wpseo_content_score").val(e)},Xe.prototype.saveInclusiveLanguageScore=function(e){const t=Ge(e);Ie()||Me()||(Pe(t),Ce(t)),Je("#hidden_wpseo_inclusive_language_score").val(e)};const Ze=Xe;class et{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){(0,a.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach(t=>{e=(0,a.merge)(e,t())}),e}}window.wp.annotations;const tt=window.wp.richText,st=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:it}=Q.helpers.htmlEntities,ot=e=>{let t=0;return(0,a.forEachRight)(e,e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i}),t},nt="<yoastmark class='yoast-text-mark'>",at="</yoastmark>",rt='<yoastmark class="yoast-text-mark">';function ct(e,t,s,i,o){const n=i.clientId,r=(0,tt.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,a.flatMap)(o,s=>{let o;return o=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,o){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),n=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,n,s);t=e.blockStartOffset,n=e.blockEndOffset}if(i.slice(t,n)===o.slice(t,n))return[{startOffset:t,endOffset:n}];const r=((e,t,s)=>{const i=s.slice(0,e),o=s.slice(0,t),n=((e,t,s,i)=>{const o=[...e.matchAll(st)];s-=ot(o);const n=[...t.matchAll(st)];return{blockStartOffset:s,blockEndOffset:i-=ot(n)}})(i,o,e,t),r=((e,t,s,i)=>{let o=[...e.matchAll(it)];return(0,a.forEachRight)(o,e=>{const[,t]=e;s-=t.length}),o=[...t.matchAll(it)],(0,a.forEachRight)(o,e=>{const[,t]=e;i-=t.length}),{blockStartOffset:s,blockEndOffset:i}})(i,o,e=n.blockStartOffset,t=n.blockEndOffset);return{blockStartOffset:e=r.blockStartOffset,blockEndOffset:t=r.blockEndOffset}})(t,n,i);return[{startOffset:r.blockStartOffset,endOffset:r.blockEndOffset}]}return[]}(s,n,i.name,e,r):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t,s=!0){const i=[];if(0===e.length)return i;let o,n=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,n))>-1;)i.push(o),n=o+t.length;return i}(e,s);if(0===o.length)return[];const n=function(e){let t=e.indexOf(nt);const s=t>=0;s||(t=e.indexOf(rt));let i=null;const o=[];for(;t>=0;){if(i=(e=s?e.replace(nt,""):e.replace(rt,"")).indexOf(at),i<t)return[];e=e.replace(at,""),o.push({startOffset:t,endOffset:i}),t=s?e.indexOf(nt):e.indexOf(rt),i=null}return o}(i),a=[];return n.forEach(e=>{o.forEach(i=>{const o=i+e.startOffset;let n=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(n=i+s.length),a.push({startOffset:o,endOffset:n})})}),a}(r,s),o?o.map(e=>({...e,block:n,richTextIdentifier:t})):[]})}const lt=e=>e[0].toUpperCase()+e.slice(1),dt=(e,t,s,i,o)=>(e=e.map(e=>{const n=`${e.id}-${o[0]}`,a=`${e.id}-${o[1]}`,r=lt(o[0]),c=lt(o[1]),l=e[`json${r}`],d=e[`json${c}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e),marksForSecondSection:e.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e)}))(t,e),h=ct(l,n,s,i,p),g=ct(d,a,s,i,u);return h.concat(g)}),(0,a.flattenDeep)(e)),pt="yoast";let ut=[];const ht={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function gt(){const e=ut.shift();e&&((0,c.dispatch)("core/annotations").__experimentalAddAnnotation(e),wt())}function wt(){(0,a.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(gt,{timeout:1e3}):setTimeout(gt,150)}function ft(e,t){return(0,a.flatMap)(e,e=>{const s=function(e){return e.innerBlocks.length>0}(e)?ft(e.innerBlocks,t):[];return((e,t)=>{return(0,a.flatMap)((s=e.name,ht.hasOwnProperty(s)?ht[s]:[]),s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:dt(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const o=[];return"steps"===e.key&&o.push(dt(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter(e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e),o.push(ct(i,"description",e,t,s))),(0,a.flattenDeep)(o)})(s,e,t):function(e,t,s){const i=e.key,o=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return ct(o,i,e,t,s)}(s,e,t));var s})(e,t).concat(s)})}function mt(e){ut=[],(0,c.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(pt);const t=function(e){return(0,a.uniq)((0,a.flatten)(e.map(e=>{if(!(0,a.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;const s=(0,c.select)("core/block-editor"),i="template-locked"===(0,c.select)("core/editor").getRenderingMode(),o=s.getBlocksByName("core/post-content");let n=i&&null!=o&&o.length?s.getBlocks(o[0]):s.getBlocks();var r;t.length>0&&(n=n.filter(e=>t.some(t=>"core/"+t===e.name))),r=ft(n,e),ut=r.map(e=>({blockClientId:e.block,source:pt,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}})),wt()}function yt(e,t){let s;oe(se)&&((0,a.isUndefined)(s)&&(s=$(tinyMCE.get(se))),s(e,t)),(0,c.select)("core/editor")&&(0,c.select)("core/block-editor")&&(0,a.isFunction)((0,c.select)("core/block-editor").getBlocks)&&(0,c.select)("core/annotations")&&(0,a.isFunction)((0,c.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map(e=>$(e)).forEach(s=>s(e,t))}(e,t),mt(t)),(0,ve.doAction)("yoast.analysis.applyMarks",t)}var _t=jQuery;function St(e,t,s,i,o){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=_t("#post_ID, [name=tag_ID]").val(),this._taxonomy=_t("[name=taxonomy]").val()||"",this._nonce=o,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}St.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,a.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then(()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")}).then(()=>{this._initialized=!0,(0,a.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then(()=>this._refreshAnalysis())}).catch(e=>console.error(e))},St.prototype.setKeyword=function(e){(0,a.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},St.prototype.requestKeywordUsage=function(e){_t.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},St.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,o=t.post_types;i&&(0,a.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=o,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then(()=>this._refreshAnalysis()))};const{refreshSnippetEditor:bt,updateData:vt,setFocusKeyword:Et,setCornerstoneContent:kt,setMarkerStatus:xt,setReadabilityResults:Rt,setSeoResultsForKeyword:Ot}=l.actions;function Tt(e,t,s){var i,o;const n=new et;function r(){const e={slug:o.val()};window.YoastSEO.store.dispatch(vt(e))}function l(e){(0,a.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),(0,a.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let d;function p(e,t){const s=d||"";d=e.getState().analysisData.snippet,!(0,V.isShallowEqualObjects)(s,d)&&t()}!function(){var d,u,h,g,w,f,m,y,_;h=jQuery(".term-description-wrap").find("td"),g=jQuery(".term-description-wrap").find("label"),w=h.find("textarea").val(),f=document.getElementById("wp-description-wrap"),m=h.find("p"),h.html(""),h.append(f).append(m),document.getElementById("description").value=w,g.replaceWith(g.html()),u=new Ze({store:t}),d={elementTarget:[ie,"yoast_wpseo_focuskw","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:(y={},Ie()&&(y.output="does-not-really-exist-but-it-needs-something"),Me()&&(y.contentOutput="also-does-not-really-exist-but-it-needs-something"),y),callbacks:{getData:u.getData.bind(u)},locale:wpseoScriptData.metabox.contentLocale,contentAnalysisActive:Me(),keywordAnalysisActive:Ie(),debouncedRefresh:!1,researcher:new window.yoast.Researcher.default},Ie()&&(t.dispatch(Et(u.getKeyword())),d.callbacks.saveScores=u.saveScores.bind(u),d.callbacks.updatedKeywordsResults=function(e){const s=t.getState().focusKeyword;t.dispatch(Ot(s,e)),t.dispatch(bt())}),Me()&&(t.dispatch(xt("hidden")),d.callbacks.saveContentScore=u.saveContentScore.bind(u),d.callbacks.updatedContentResults=function(e){t.dispatch(Rt(e)),t.dispatch(bt())}),i=new Q.App(d),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=i,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=function(){const e=(0,a.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,Q.createWorker)(e),s=(0,a.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const o=t.innerHTML.slice(214),n=o.indexOf(","),a=o.slice(0,n-1);try{const e=/}}\s*\);/.exec(o).index+2,t=JSON.parse(o.slice(n+1,e));i.push([a,t])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new Q.AnalysisWorkerWrapper(t)}(),window.YoastSEO.analysis.collectData=()=>function(e,t,s,i,o,n){const r=(0,a.cloneDeep)(t.getState());(0,a.merge)(r,s.getData());const c=e.getData();let l=null;if(o){const e="template-locked"===(null==n?void 0:n.getRenderingMode()),t=o.getBlocksByName("core/post-content");l=e&&null!=t&&t.length?o.getBlocks(t[0]):o.getBlocks(),l=JSON.parse(JSON.stringify(l)),l=$e(l)}const d={text:c.content,textTitle:c.title,keyword:r.focusKeyword,synonyms:r.synonyms,description:r.analysisData.snippet.description||r.snippetEditor.data.description,title:r.analysisData.snippet.title||r.snippetEditor.data.title,slug:r.snippetEditor.data.slug,permalink:r.settings.snippetEditor.baseUrl+r.snippetEditor.data.slug,wpBlocks:l,date:r.settings.snippetEditor.date};i.loaded&&(d.title=i._applyModifications("data_page_title",d.title),d.title=i._applyModifications("title",d.title),d.description=i._applyModifications("data_meta_desc",d.description),d.text=i._applyModifications("content",d.text),d.wpBlocks=i._applyModifications("wpBlocks",d.wpBlocks));const p=r.analysisData.snippet.filteredSEOTitle;return d.titleWidth=He(p||r.snippetEditor.data.title),d.locale=De(),d.writingDirection=function(){let e="LTR";return Ae().isRtl&&(e="RTL"),e}(),d.shortcodes=window.wpseoScriptData.analysis.plugins.shortcodes?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[],d.isFrontPage="1"===(0,a.get)(window,"wpseoScriptData.isFrontPage","0"),Q.Paper.parse((0,ve.applyFilters)("yoast.analysis.data",d))}(s,window.YoastSEO.store,n,window.YoastSEO.app.pluggable),window.YoastSEO.analysis.applyMarks=(e,t)=>function(){const e=(0,c.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,c.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?a.noop:yt}()(e,t),window.YoastSEO.app.refresh=(0,a.debounce)(()=>Ve(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u),500),window.YoastSEO.app.registerCustomDataCallback=n.register,window.YoastSEO.app.pluggable=new ce(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,s)=>{if(!(0,a.isUndefined)(i.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(i.defaultSeoAssessor,e,t,s)&&window.YoastSEO.app.pluggable._registerAssessment(i.cornerStoneSeoAssessor,e,t,s)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(Ke),window.YoastSEO.app.refresh()},function(e,t,s){const i=Ae();if(!i.previouslyUsedKeywordActive)return;const o=new St("get_term_keyword_usage",i,e,(0,a.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),(0,a.get)(window,["wpseoScriptData","usedKeywordsNonce"],""));o.init();let n={};s.subscribe(()=>{const e=s.getState()||{};e.focusKeyword!==n.focusKeyword&&(n=e,o.setKeyword(e.focusKeyword))})}(i.refresh,0,t),t.subscribe(p.bind(null,t,i.refresh)),Ie()&&(i.seoAssessor=new Q.TaxonomyAssessor(i.config.researcher),i.seoAssessorPresenter.assessor=i.seoAssessor),window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new be(i,t),function(e,t){let s=[];s=(0,ve.applyFilters)("yoast.analysis.shortcodes",s);const i=wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags;s=s.filter(e=>i.includes(e)),s.length>0&&(t.dispatch(Te(s)),window.YoastSEO.wp.shortcodePlugin=new Re({registerPlugin:e.registerPlugin,registerModification:e.registerModification,pluginReady:e.pluginReady,pluginReloaded:e.pluginReloaded},s))}(i,t),window.YoastSEO.analyzerArgs=d,(o=e("#slug")).on("change",r),u.bindElementEvents((0,a.debounce)(()=>Ve(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u),500)),Ie()&&(Pe(_=Ge(e("#hidden_wpseo_linkdex").val())),Ce(_)),Me()&&function(){var t=Ge(e("#hidden_wpseo_content_score").val());Pe(t),Ce(t)}(),Be()&&function(){const t=Ge(e("#hidden_wpseo_inclusive_language_score").val());Pe(t),Ce(t)}(),window.YoastSEO.analysis.worker.initialize(function(e={}){const t={locale:De(),contentAnalysisActive:Me(),keywordAnalysisActive:Ie(),inclusiveLanguageAnalysisActive:Be(),defaultQueryParams:(0,a.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,a.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,Fe.enabledFeatures)()};return(0,a.merge)(t,e)}({useTaxonomy:!0})).then(()=>{jQuery(window).trigger("YoastSEO:ready")}).catch(Ke),l(i);const S=i.initAssessorPresenters.bind(i);i.initAssessorPresenters=function(){S(),l(i)};let b={title:(v=u).getSnippetTitle(),slug:v.getSnippetCite(),description:v.getSnippetMeta()};var v;!function(e){const s=document.getElementById("hidden_wpseo_is_cornerstone");let i="1"===s.value;t.dispatch(kt(i)),e.changeAssessorOptions({useCornerstone:i}),t.subscribe(()=>{const o=t.getState();o.isCornerstone!==i&&(i=o.isCornerstone,s.value=i?"1":"0",e.changeAssessorOptions({useCornerstone:i}))})}(i);const E=function(e){const t={};if((0,a.isUndefined)(e))return t;t.title=e.title_template;const s=e.metadesc_template;return(0,a.isEmpty)(s)||(t.description=s),t}(wpseoScriptData.metabox);b=function(e,t){const s={...e};return(0,a.forEach)(t,(t,i)=>{(0,a.has)(e,i)&&""===e[i]&&(s[i]=t)}),s}(b,E),t.dispatch(vt(b));let k=t.getState().focusKeyword;le(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,k);const x=(0,a.debounce)(()=>{i.refresh()},50);t.subscribe(()=>{const e=t.getState().focusKeyword;k!==e&&(k=e,le(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,k),document.getElementById("hidden_wpseo_focuskw").value=k,x());const s=function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}(t),i=function(e,t){const s={...e};return(0,a.forEach)(t,(t,i)=>{(0,a.has)(e,i)&&e[i].trim()===t&&(s[i]="")}),s}(s,E);b.title!==s.title&&u.setDataFromSnippet(i.title,"snippet_title"),b.slug!==s.slug&&u.setDataFromSnippet(i.slug,"snippet_cite"),b.description!==s.description&&u.setDataFromSnippet(i.description,"snippet_meta"),b.title=s.title,b.slug=s.slug,b.description=s.description}),qe=!0,window.YoastSEO.app.refresh()}()}window.yoastHideMarkers=!0,window.YoastReplaceVarPlugin=be,window.YoastShortcodePlugin=Oe;let Pt=null;const Ct=()=>{if(null===Pt){const e=(0,c.dispatch)("yoast-seo/editor").runAnalysis;Pt=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new ce(e)}return Pt},At=(e,t,s)=>Ct().loaded?Ct()._applyModifications(e,t,s):t;function Dt(){var e;const{getAnalysisData:t,getEditorDataTitle:s,getIsFrontPage:i}=(0,c.select)("yoast-seo/editor");let o=t();o={...o,textTitle:s(),isFrontPage:i(),shortcodes:Array.isArray(null===(e=window.wpseoScriptData.analysis.plugins.shortcodes)||void 0===e?void 0:e.wpseo_shortcode_tags)?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[]};const n=function(e){return e.title=At("data_page_title",e.title),e.title=At("title",e.title),e.description=At("data_meta_desc",e.description),e.text=At("content",e.text),e}(o);return(0,ve.applyFilters)("yoast.analysis.data",n)}(0,a.debounce)(async function(e,t){const{text:s,...i}=t,o=new Q.Paper(s,i);try{const t=await e.analyze(o),{seo:s,readability:i,inclusiveLanguage:n}=t.result;if(s){const e=s[""];e.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)}),e.results=Qe(e.results),(0,c.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),e.results),(0,c.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,o.getKeyword()),Ne(e.results)}i&&(i.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)}),i.results=Qe(i.results),(0,c.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,c.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),n&&(n.results.forEach(e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)}),n.results=Qe(n.results),(0,c.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(n.results),(0,c.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(n.score)),(0,ve.doAction)("yoast.analysis.run",t,{paper:o})}catch(e){}},500);const Mt=()=>{const{getContentLocale:e}=(0,c.select)("yoast-seo/editor"),t=((...e)=>()=>e.map(e=>e()))(e,Dt),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,c.dispatch)("yoast-seo/editor"),i=(0,a.get)(window,"YoastSEO.analysis.worker.runResearch",a.noop);return()=>{const o=Q.Paper.parse(Dt());i("readingTime",o).then(t=>e(t.result)),i("getFleschReadingScore",o).then(e=>{e.result&&t(e.result)}),i("wordCountInText",o).then(e=>s(e.result))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,a.isEqual)(i,s)||(s=i,t((0,a.clone)(i)))}})(t,s)};i()(()=>{window.wpseoTermScraperL10n=window.wpseoScriptData.metabox,function(e){function t(){e("#copy-home-meta-description").on("click",function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())})}function s(){var t=e("#wpseo-conf");if(t.length){var s=t.attr("action").split("#")[0];t.attr("action",s+window.location.hash)}}function i(){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 o(t){const s=e("#noindex-author-noposts-wpseo-container");t?s.show():s.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,s=t+e(this).outerHeight(),i=e(window).scrollTop(),o=i+e(window).height();return t>i&&s<o},e(window).on("hashchange",function(){i(),s()}),window.setWPOption=function(t,s,i,o){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:s,_wpnonce:o},function(t){t&&e("#"+i).hide()})},window.wpseoCopyHomeMeta=t,window.wpseoSetTabHash=s,e(document).ready(function(){s(),"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 n=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");n.is(":checked")||o(!1),c.on("change",()=>{e(this).is(":checked")||o(!1)}),n.on("change",()=>{e(this).is(":checked")||o(!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("#wpseo-tabs").find("a").on("click",function(t){var s,i,o,n=!0;if(s=e(this),i=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,o=!!s.filter("#first-time-configuration-tab").length,i&&!o&&window.isStepBeingEdited&&(n=confirm((0,r.__)("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"))),n){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var a=e(this).attr("id").replace("-tab",""),c=e("#"+a);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"===a?(e(".notice-yoast").slideUp(),e(".yoast_premium_upsell").slideUp(),e("#sidebar-container").hide()):(e(".notice-yoast").slideDown(),e(".yoast_premium_upsell").slideDown(),e("#sidebar-container").show())}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 s=e(t.currentTarget),i=s.parent().siblings(".toggleable-container");i.toggleClass("toggleable-container-hidden"),s.attr("aria-expanded",!i.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(),i(),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"),s=e("#wpseo-submit-container-fixed");if(!t.length||!s.length)return;function i(){t._wpseoIsInViewport()?s.hide():s.show()}e(window).on("resize scroll",(0,a.debounce)(i,100)),e(window).on("yoast-seo-tab-change",i);const o=e(".wpseo-message");o.length&&window.setTimeout(()=>{o.fadeOut()},5e3),i()}()})}(n()),function(e){function t(e){e&&(e.focus(),e.click())}function s(){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(s){var i=e(this).attr("id"),o=e(this).attr("href"),n=e(o);s.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"===o&&e(".wpseo-meta-section-react").addClass("active"),n.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");const a=function(e,t={}){return new CustomEvent("YoastSEO:metaTabChange",{detail:t})}(0,{metaTabId:i});window.dispatchEvent(a),this&&(t.attr({"aria-selected":"false",tabIndex:"-1"}),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))})}}window.wpseoInitTabs=s,window.wpseo_init_tabs=s,e(".wpseo-meta-section").each(function(t,s){e(s).find(".wpseotab:first").addClass("active")}),window.wpseo_init_tabs(),function(){const s=e(".yoast-aria-tabs"),i=s.find("[role='tab']"),o=s.attr("aria-orientation")||"horizontal";i.attr({"aria-selected":!1,tabIndex:"-1"}),i.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),i.on("keydown",function(s){-1!==[32,35,36,37,38,39,40].indexOf(s.which)&&("horizontal"===o&&-1!==[38,40].indexOf(s.which)||"vertical"===o&&-1!==[37,39].indexOf(s.which)||function(s,i){const o=s.which,n=i.index(e(s.target));switch(o){case 32:s.preventDefault(),t(i[n]);break;case 35:s.preventDefault(),t(i[i.length-1]);break;case 36:s.preventDefault(),t(i[0]);break;case 37:case 38:s.preventDefault(),t(i[n-1<0?i.length-1:n-1]);break;case 39:case 40:s.preventDefault(),t(i[n+1===i.length?0:n+1])}}(s,i))})}();const i=q(),o=new URLSearchParams(window.location.search).get("yoast-tab");if("readability"===o){const t=(0,c.subscribe)(()=>{const{overallScore:s}=(0,c.select)("yoast-seo/editor").getReadabilityResults(),o=e("#wpseo-meta-tab-readability");null!==s&&(t(),o.trigger("click"),i||o.focus())})}if("seo"===o&&!i){const t=(0,c.subscribe)(()=>{const{overallScore:s}=(0,c.select)("yoast-seo/editor").getSeoResults();null!==s&&(t(),e("#yoast-seo-analysis-collapsible-metabox").focus())})}}(n());const e=function(){const e=(0,c.registerStore)("yoast-seo/editor",{reducer:(0,c.combineReducers)(l.reducers),selectors:l.selectors,actions:(0,a.pickBy)(l.actions,e=>"function"==typeof e),controls:t});return(e=>{e.dispatch(l.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}})),e.dispatch(l.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(l.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(l.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(l.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(l.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(l.actions.setDismissedAlerts((0,a.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(l.actions.setCurrentPromotions((0,a.get)(window,"wpseoScriptData.currentPromotions",[]))),e.dispatch(l.actions.setIsPremium(Boolean((0,a.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(l.actions.setPostId(Number((0,a.get)(window,"wpseoScriptData.postId",null)))),e.dispatch(l.actions.setAdminUrl((0,a.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(l.actions.setLinkParams((0,a.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(l.actions.setPluginUrl((0,a.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(l.actions.setWistiaEmbedPermissionValue("1"===(0,a.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1))),e.dispatch(l.actions.loadSnippetEditorData({data:{title:"",description:"",slug:""},templates:{title:(0,a.get)(window,"wpseoScriptData.metabox.title_template",""),description:(0,a.get)(window,"wpseoScriptData.metabox.metadesc_template","")}}))})(e),e}();window.yoast.initEditorIntegration(e);const s=new window.yoast.EditorData(a.noop,e,ie);s.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars),Tt(n(),e,s),(()=>{if((0,c.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,c.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,c.subscribe)((0,a.debounce)(Mt(),1500,{maxWait:3e3}))})()})})();