%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/businessmultisite/wp-content/plugins/wordpress-seo/js/dist/
Upload File :
Create Path :
Current File : /var/www/businessmultisite/wp-content/plugins/wordpress-seo/js/dist/post-edit.js

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=213)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.propTypes},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=window.yoast.styledComponents},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t,n){var r=n(46);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(34).default,i=n(10);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.externals.redux},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.jQuery},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3);function i(){return Object(r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t){e.exports=window.yoast.analysis},function(e,t,n){"use strict";var r=n(3),i={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},o=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(r.defaults)(n,i)};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(r.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(r.indexOf)(this.options.scope,e)>-1},o.prototype.hasAlias=function(){return!Object(r.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 e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,,,function(e,t){e.exports=window.wp.apiFetch},,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 u})),n.d(t,"isTinyMCELoaded",(function(){return p})),n.d(t,"isTinyMCEAvailable",(function(){return d})),n.d(t,"getContentTinyMce",(function(){return h})),n.d(t,"addEventHandler",(function(){return f})),n.d(t,"disableMarkerButtons",(function(){return g})),n.d(t,"enableMarkerButtons",(function(){return m})),n.d(t,"isTextViewActive",(function(){return y})),n.d(t,"wpTextViewOnInitCheck",(function(){return b})),n.d(t,"tinyMceEventBinder",(function(){return w}));var r,i=n(3),o=n(90),s=n(121),a=n(19),c="content",l="description";function u(e){r=e}function p(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function d(e){if(!p())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function h(e){var t,n,r;return n=!1===d(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),r=new RegExp("&amp;","g"),n.replace(r,"&")}function f(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(r){var o=r.editor;o.id===e&&Object(i.forEach)(t,(function(e){o.on(e,n)}))}))}function g(){Object(i.isUndefined)(r)||r.dispatch(a.actions.setMarkerStatus("disabled"))}function m(){Object(i.isUndefined)(r)||r.dispatch(a.actions.setMarkerStatus("enabled"))}function y(){var e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function b(){y()&&(g(),p()&&tinyMCE.on("AddEditor",(function(){m()})))}function w(e,t){f(t,["input","change","cut","paste"],e),f(t,["hide"],g);var n=["show"];(new s.a).isPageBuilderActive()||n.push("init"),f(t,n,m),f("content",["focus"],(function(e){var t=e.target;Object(o.a)(t)&&(Object(o.b)(t),YoastSEO.app.disableMarkers())}))}},,,,function(e,t){e.exports=window.wp.url},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(28),o=n(3);function s(e){return Object(o.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:Object(r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(i.interpreters.scoreToRating(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24),i=n(3);function o(){var e=Object(r.a)();return 1===Object(i.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 r=n(3),i=n(24);function o(){var e=Object(i.a)();return Object(r.get)(e,"contentLocale","en_US")}},,,,function(e,t){e.exports=window.wp.richText},,,,,,,function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24),i=n(3);function o(){var e=Object(r.a)();return 1===Object(i.get)(e,"contentAnalysisActive",0)}},,,,,,,,,function(e,t,n){"use strict";function r(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return r}))},function(e,t){var n,r,i="",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"),r=document.getElementById("a11y-speak-assertive"),null===n&&(n=o("polite")),null===r&&(r=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," "),i===e&&(e+=" "),i=e,r&&"assertive"===t?r.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 a})),n.d(t,"default",(function(){return c})),n.d(t,"initializationDone",(function(){return l}));var r=n(19),i=n(66),o=n(52),s=!1;function a(e){return e.sort((function(e,t){return e._identifier.localeCompare(t._identifier)}))}function c(e,t,n,c,l){var u=t();s&&e.analyze(u).then((function(e){var t=e.result,i=t.seo,s=t.readability;if(i){var p=i[""];p.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),p.results=a(p.results),c.dispatch(r.actions.setSeoResultsForKeyword(u.getKeyword(),p.results)),c.dispatch(Object(o.setOverallSeoScore)(p.score,u.getKeyword())),c.dispatch(r.actions.refreshSnippetEditor()),l.saveScores(p.score,u.getKeyword())}s&&(s.results.forEach((function(e){e.getMarker=function(){return function(){return n(u,e.marks)}}})),s.results=a(s.results),c.dispatch(r.actions.setReadabilityResults(s.results)),c.dispatch(Object(o.setOverallReadabilityScore)(s.score)),c.dispatch(r.actions.refreshSnippetEditor()),l.saveContentScore(s.score))})).catch(i.a)}function l(){s=!0}},,,,function(e,t,n){"use strict";function r(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 r}))},,function(e,t){e.exports=window.wp.blocks},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(28),i=n(3);function o(e,t,n){var o=e.dom,s=e.getContent();s=r.markers.removeMarks(s),Object(i.forEach)(n,(function(e){s=e.applyWithReplace(s)})),e.setContent(s),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 a=o.select("yoastmark");Object(i.forEach)(a,(function(e){e.setAttribute("data-mce-bogus","1")}))}function s(e){return window.test=e,o.bind(null,e)}function a(e){return-1!==e.getContent({format:"raw"}).indexOf("<yoastmark")}function c(e){s(e)(null,[])}},,,,function(e,t){e.exports=window.wp.domReady},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return r}));var r=500},,function(e,t,n){"use strict";function r(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 r}))},function(e,t,n){"use strict";var r=n(18),i=n.n(r),o=n(3);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(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=a({},e);return Object(o.forEach)(t,(function(t,r){Object(o.has)(e,r)&&""===e[r]&&(n[r]=t)})),n},getDataWithoutTemplates:function(e,t){var n=a({},e);return Object(o.forEach)(t,(function(t,r){Object(o.has)(e,r)&&e[r].trim()===t&&(n[r]="")})),n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(24);function o(){var e=Object(i.a)();return Object(r.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return _}));var r=n(18),i=n.n(r),o=n(3),s=(n(150),n(59)),a=n(6);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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){i()(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 u="<yoastmark class='yoast-text-mark'>",p=[],d={"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"}]},h={singleH1:{"core/heading":[{key:"content",filter:function(e){return 1===e.level}}]}};function f(){var e=p.shift();e&&(Object(a.dispatch)("core/annotations").__experimentalAddAnnotation(e),g())}function g(){Object(o.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(f,{timeout:1e3}):setTimeout(f,150)}function m(){return Object(a.select)("core/block-editor")&&Object(o.isFunction)(Object(a.select)("core/block-editor").getBlocks)&&Object(a.select)("core/annotations")&&Object(o.isFunction)(Object(a.dispatch)("core/annotations").__experimentalAddAnnotation)}function y(e){var t=Object(a.select)("yoast-seo/editor").getActiveMarker(),n=h[t]||d;return n.hasOwnProperty(e)?n[e]:[]}function b(e,t,n){var r=e.key,i=t.attributes,a=i[r];if(e.filter&&!e.filter(i))return[];var c=Object(s.create)({html:a,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,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];if(0===e.length)return r;var i,o=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,o))>-1;)r.push(i),o=i+t.length;return r}(e,n);if(0===i.length)return[];var o=function(e){for(var t=e.indexOf(u),n=null,r=[];t>=0;){if((n=(e=e.replace(u,"")).indexOf("</yoastmark>"))<t)return[];e=e.replace("</yoastmark>",""),r.push({startOffset:t,endOffset:n}),t=e.indexOf(u),n=null}return r}(r),s=[];return o.forEach((function(e){i.forEach((function(r){var i=r+e.startOffset,o=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=r+n.length),s.push({startOffset:i,endOffset:o})}))})),s}(c,e);return n?n.map((function(e){return l(l({},e),{},{block:t.clientId,richTextIdentifier:r})})):[]}))}function w(e){p=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(p=[],Object(a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast"),0!==t.length){var n=Object(a.select)("core/block-editor").getBlocks();w(Object(o.flatMap)(n,(function(e){return Object(o.flatMap)(y(e.name),(function(n){return b(n,e,t)}))}))),g()}}function _(){var e=Object(a.select)("core/editor").getSelectedBlock(),t=Object(a.select)("yoast-seo/editor").getActiveMarker();if(e&&t){var n;n=e.clientId,Object(a.select)("core/annotations").__experimentalGetAnnotations().filter((function(e){return e.blockClientId===n&&"yoast"===e.source})).forEach((function(e){Object(a.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)}));var r=Object(a.select)("yoast-seo/editor").getResultById(t);if(void 0!==r){var i=r.marks;w(Object(o.flatMap)(y(e.name),(function(t){return b(t,e,i)}))),g()}}}},function(e,t,n){"use strict";function r(e){var t=jQuery(".yst-traffic-light"),n=t.closest(".wpseo-meta-section-link"),r=jQuery("#wpseo-traffic-light-desc"),i=e.className||"na";t.attr("class","yst-traffic-light "+i),n.attr("aria-describedby","wpseo-traffic-light-desc"),r.length>0?r.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 r}))},function(e,t,n){"use strict";function r(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 r}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n(3),i=n(28),o=n(55);function s(){return Object(r.get)(window,["wpseoAdminL10n","default_query_params"],{})}var a=n(106),c=n(67),l=n(51),u=n(78);function p(){var e=Object(r.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(i.createWorker)(e),n=Object(r.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),o=[];for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){var a=window.document.getElementById("".concat(s,"-js-translations"));if(a){var c=a.innerHTML.slice(214),l=c.indexOf(","),u=c.slice(0,l-1);try{var p=JSON.parse(c.slice(l+1,-4));o.push([u,p])}catch(e){console.warn("Failed to parse translation data for ".concat(s," to send to the Yoast SEO worker"));continue}}}return t.postMessage({dependencies:n,translations:o}),new i.AnalysisWorkerWrapper(t)}function d(){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:s(),logLevel:Object(r.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(u.enabledFeatures)()};t=Object(r.merge)(t,e);var n=Object(a.a)();return Object(r.isUndefined)(n)||Object(r.isUndefined)(n.domain)||(t.translations=n),t}},,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";var r=n(12),i=n.n(r),o=n(13),s=n.n(o),a=n(3),c=function(){function e(){i()(this,e)}return s()(e,[{key:"listen",value:function(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver((function(t){Object(a.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(){i()(this,e)}return s()(e,null,[{key:"isActive",value:function(){return!!window.VCV_I18N}}]),e}(),u={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop},p=function(){function e(){i()(this,e),this.determineActivePageBuilders()}return s()(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(a.defaults)(e,u),this.diviActive&&(new c).listen(e)}},{key:"isClassicEditorHidden",value:function(){return!(!this.diviActive||!c.isTinyMCEHidden())}}]),e}();t.a=p},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(34),i=n.n(r),o=n(12),s=n.n(o),a=n(13),c=n.n(a),l=n(3),u=function(){function e(t){s()(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,r){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 i={callable:t,origin:n,priority:Object(l.isNumber)(r)?r:10};return Object(l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(i),!0}},{key:"_registerAssessment",value:function(e,t,n,r){return Object(l.isString)(t)?Object(l.isObject)(n)?Object(l.isString)(r)?(t=r+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}},{key:"_applyModifications",value:function(e,t,n){var r=this.modifications[e];return!Object(l.isArray)(r)||r.length<1||((r=this._stripIllegalModifications(r)).sort((function(e,t){return e.priority-t.priority})),Object(l.forEach)(r,(function(r){var o=r.callable(t,n);i()(o)===i()(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+r.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,r){!1===t._validateOrigin(n.origin)&&delete e[r]})),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 r=n(110);n.d(t,"DISMISS_ALERT",(function(){return r.DISMISS_ALERT}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=jQuery;function o(e,t,n,r){this._scriptUrl=r,this._options={usedKeywords:t.keyword_usage,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._postID=i("#post_ID, [name=tag_ID]").val(),this._taxonomy=i("[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(r.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(r.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(r.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},o.prototype.requestKeywordUsage=function(e){i.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,i=window.YoastSEO.analysis.worker;t&&Object(r.isArray)(t)&&(this._keywordUsage[e]=t,this._initialized&&i.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((function(){return n._refreshAnalysis()})))}},,function(e,t,n){"use strict";function r(e){e(document).ready((function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each((function(t,n){var r,i,o=((i=(r=e(r=n)).data("target"))&&""!==i||(i=e(r).attr("id").replace(/_button$/,"")),i),s=function(t){return(t=e(t)).data("target-id")}(n),a=e("#"+o),c=e("#"+s),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();a.val(e.url),c.val(e.id)}));var u=e(n);u.click((function(e){e.preventDefault(),l.open()})),u.siblings(".wpseo_image_remove_button").on("click",(function(e){e.preventDefault(),a.val(""),c.val("")}))}))}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(77),i=n.n(r),o=n(3);function s(e){function t(t){var n=!1,r="",o=[],s=["userid","name","user_description"],a=["date"],c=["title","parent_title","excerpt","excerpt_only","caption","focuskw","pt_single","pt_plural","modified","id"],l=["term404","searchphrase"],u=["term_title","term_description"],p=["category","category_description","tag","tag_description"];t.hasClass("posttype-template")?o=o.concat(l,u):t.hasClass("homepage-template")?o=o.concat(s,a,c,l,u,p):t.hasClass("taxonomy-template")?o=o.concat(s,a,c,l):t.hasClass("author-template")?o=o.concat(c,a,l,u,p):t.hasClass("date-template")?o=o.concat(s,c,l,u,p):t.hasClass("search-template")?o=o.concat(s,a,c,u,p,["term404"]):t.hasClass("error404-template")&&(o=o.concat(s,a,c,u,p,["searchphrase"])),e.each(o,(function(o,s){if(r=t.attr("id")+"-"+s+"-warning",-1!==t.val().search("%%"+s+"%%")){t.addClass("wpseo-variable-warning-element");var a=wpseoAdminGlobalL10n.variable_warning.replace("%s","%%"+s+"%%");e("#"+r).length?e("#"+r).html(a):t.after(' <div id="'+r+'" class="wpseo-variable-warning">'+a+"</div>"),i()(wpseoAdminGlobalL10n.variable_warning.replace("%s",s),"assertive"),n=!0}else e("#"+r).length&&e("#"+r).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 r(){var t=e("#wpseo-conf");if(t.length){var n=t.attr("action").split("#")[0];t.attr("action",n+window.location.hash)}}function s(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(),r=e(window).scrollTop(),i=r+e(window).height();return t>r&&n<i},e(window).on("hashchange",r),window.wpseoDetectWrongVariables=t,window.setWPOption=function(t,n,r,i){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:n,_wpnonce:i},(function(t){t&&e("#"+r).hide()}))},window.wpseoCopyHomeMeta=n,window.wpseoSetTabHash=r,e(document).ready((function(){var i=this;r(),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 a=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");a.is(":checked")||s(!1),c.on("change",(function(){e(i).is(":checked")||s(!1)})),a.on("change",(function(){e(i).is(":checked")||s(!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),r=n.parent().siblings(".toggleable-container");r.toggleClass("toggleable-container-hidden"),n.attr("aria-expanded",!r.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")}));var l,u=e("#opengraph"),p=e("#wpseo-opengraph-settings");u.length&&p.length&&(p.toggle(u[0].checked),u.on("change",(function(e){p.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)(i,100)),e(window).on("yoast-seo-tab-change",i);var r=e(".wpseo-message");r.length&&window.setTimeout((function(){r.fadeOut()}),5e3),i()}function i(){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 r=n(144),i=n(19),o=n(3),s=n(76),a=n(29),c=i.actions.removeReplacementVariable,l=i.actions.updateReplacementVariable,u=i.actions.refreshSnippetEditor,p=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],d={},h={},f=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()};f.prototype.registerReplacements=function(){this.addReplacement(new a.a("%%author_first_name%%","author_first_name")),this.addReplacement(new a.a("%%author_last_name%%","author_last_name")),this.addReplacement(new a.a("%%category%%","category")),this.addReplacement(new a.a("%%category_title%%","category_title")),this.addReplacement(new a.a("%%currentdate%%","currentdate")),this.addReplacement(new a.a("%%currentday%%","currentday")),this.addReplacement(new a.a("%%currentmonth%%","currentmonth")),this.addReplacement(new a.a("%%currenttime%%","currenttime")),this.addReplacement(new a.a("%%currentyear%%","currentyear")),this.addReplacement(new a.a("%%date%%","date")),this.addReplacement(new a.a("%%id%%","id")),this.addReplacement(new a.a("%%page%%","page")),this.addReplacement(new a.a("%%permalink%%","permalink")),this.addReplacement(new a.a("%%post_content%%","post_content")),this.addReplacement(new a.a("%%post_month%%","post_month")),this.addReplacement(new a.a("%%post_year%%","post_year")),this.addReplacement(new a.a("%%searchphrase%%","searchphrase")),this.addReplacement(new a.a("%%sitedesc%%","sitedesc")),this.addReplacement(new a.a("%%sitename%%","sitename")),this.addReplacement(new a.a("%%userid%%","userid")),this.addReplacement(new a.a("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new a.a("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new a.a("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new a.a("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new a.a("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new a.a("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new a.a("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new a.a("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new a.a("%%sep%%(\\s*%%sep%%)*","sep"))},f.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))},f.prototype.subscribeToGutenberg=function(){var e=this;if(Object(s.a)()){var t={0:""},n=null,i=wp.data;i.subscribe((function(){var s=i.select("core/editor").getEditedPostAttribute("parent");if(void 0!==s&&n!==s)return n=s,s<1?(e._currentParentPageTitle="",void e.declareReloaded()):Object(o.isUndefined)(t[s])?void r.loadPromise.done((function(){new r.models.Page({id:s}).fetch().then((function(n){e._currentParentPageTitle=n.title.rendered,t[s]=e._currentParentPageTitle,e.declareReloaded()})).fail((function(){e._currentParentPageTitle="",e.declareReloaded()}))})):(e._currentParentPageTitle=t[s],void e.declareReloaded())}))}},f.prototype.addReplacement=function(e){d[e.placeholder]=e},f.prototype.removeReplacement=function(e){delete d[e.getPlaceholder()]},f.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);Object(o.forEach)(p,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},f.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},f.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},f.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},f.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]||""},f.prototype.replacePlaceholders=function(e){return Object(o.forEach)(d,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},f.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(u())},f.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},f.prototype.parseTaxonomies=function(e,t){Object(o.isUndefined)(h[t])&&(h[t]={});var n=[];Object(o.forEach)(e,function(e){var r=(e=jQuery(e)).val(),i=this.getCategoryName(e),o=e.prop("checked");h[t][r]={label:i,checked:o},o&&-1===n.indexOf(i)&&n.push(i)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(l(t,n.join(", ")))},f.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()},f.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)},f.prototype.replaceCustomTaxonomy=function(e){return Object(o.forEach)(h,function(t,n){var r="%%ct_"+n+"%%";"category"===n&&(r="%%"+n+"%%"),e=e.replace(r,this.getTaxonomyReplaceVar(n))}.bind(this)),e},f.prototype.getTaxonomyReplaceVar=function(e){var t=[],n=h[e];return!0===Object(o.isUndefined)(n)?"":(Object(o.forEach)(n,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},f.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val(),r=jQuery("#"+t.id+"-value").val(),i="cf_"+this.sanitizeCustomFieldNames(n),o=n+" (custom field)";this._store.dispatch(l(i,r,o)),this.addReplacement(new a.a("%%".concat(i,"%%"),r,{source:"direct"}))}.bind(this))},f.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))},f.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},f.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},f.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)},f.prototype.removeCustomFields=function(){var e=Object(o.filter)(d,(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))},f.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(s.a)()&&!Object(o.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},f.prototype.hasParentTitle=function(e){return!Object(o.isUndefined)(e)&&!Object(o.isUndefined)(e.prop("options"))},f.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===wpseoScriptData.analysis.plugins.replaceVars.no_parent_text?"":t},f.ReplaceVar=a.a,t.a=f},function(e,t){e.exports=window.wp.api},function(e,t,n){"use strict";var r=n(19),i=n(3),o=n(28);t.a=function(e,t,n){e("morphology",new o.Paper("",{keyword:n})).then((function(e){var n=e.result.keyphraseForms;t.dispatch(r.actions.updateWordsToHighlight(Object(i.uniq)(Object(i.flatten)(n))))})).catch((function(){t.dispatch(r.actions.updateWordsToHighlight([]))}))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),i=n(6),o=n(40),s=n(90),a=n(108),c=null;function l(e,t){o.isTinyMCEAvailable(o.tmceId)&&(null===c&&(c=Object(s.c)(tinyMCE.get(o.tmceId))),c(e,t)),Object(a.b)()&&Object(a.a)(e,t)}function u(){return Object(i.select)("yoast-seo/editor").isMarkingAvailable()?l:r.noop}},function(e,t){e.exports=window.wp.annotations},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(6),i=n(3),o=n(28);function s(e,t){window.YoastSEO.analysis.worker.runResearch("readingTime",new o.Paper(e,{locale:t})).then((function(e){Object(r.dispatch)("yoast-seo/editor").setEstimatedReadingTime(e.result)}))}var a=Object(i.debounce)(s,1500,{maxWait:3e3}),c="",l="",u=null;function p(){var e=Object(r.select)("core/editor").getCurrentPostId(),t=Object(r.select)("core/editor").getCurrentPostType(),n=Object(r.select)("core").getEditedEntityRecord("postType",t,e);if(u!==n){u=n;var i=Object(r.select)("core/editor").getEditedPostAttribute("content"),o=Object(r.select)("yoast-seo/editor").getContentLocale();c===i&&l===o||(c=i,l=o,s(i,o))}}function d(){var e=Object(r.select)("yoast-seo/editor").getEditorDataContent(),t=Object(r.select)("yoast-seo/editor").getContentLocale();c===e&&l===t||(c=e,l=t,s(e,t))}function h(){var e,t,n;!1!==Object(i.get)(window,"wpseoScriptData.analysis.estimatedReadingTimeEnabled",!1)&&(Object(r.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),"1"===window.wpseoScriptData.isElementorEditor?Object(r.subscribe)(Object(i.debounce)(d,1500,{maxWait:3e3})):"1"===window.wpseoScriptData.isBlockEditor?Object(r.subscribe)(Object(i.debounce)(p,1500,{maxWait:3e3})):(e=["input","change","cut","paste"],t="1"===Object(i.get)(window,"wpseoScriptData.isPost","0")?"content":"description",n=Object(r.select)("yoast-seo/editor").getContentLocale(),jQuery(document).on("tinymce-editor-init",(function(r,i){i.id===t&&e.forEach((function(e){i.on(e,(function(){a(i.getContent(),n)}))}))}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=n(87),o=n(55),s=n(28);function a(e,t,n,a,c){var l=Object(r.cloneDeep)(t.getState());Object(r.merge)(l,n.getData());var u=e.getData(),p=null;c&&(p=(p=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 d={text:u.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:p,date:l.settings.snippetEditor.date};return a.loaded&&(d.title=a._applyModifications("data_page_title",d.title),d.title=a._applyModifications("title",d.title),d.description=a._applyModifications("data_meta_desc",d.description),d.text=a._applyModifications("content",d.text),d.wpBlocks=a._applyModifications("wpBlocks",d.wpBlocks)),d.titleWidth=Object(i.a)(d.title),d.locale=Object(o.a)(),s.Paper.parse(d)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(12),i=n.n(r),o=n(13),s=n.n(o),a=n(3),c=function(){function e(){i()(this,e),this._callbacks=[],this.register=this.register.bind(this)}return s()(e,[{key:"register",value:function(e){Object(a.isFunction)(e)&&this._callbacks.push(e)}},{key:"getData",value:function(){var e={};return this._callbacks.forEach((function(t){e=Object(a.merge)(e,t())})),e}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(24),o=n(133);function s(e,t,n){var s=Object(i.a)();if(s.previouslyUsedKeywordActive){var a=Object(r.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),c=new o.a(t,s,e,a);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 a}));var r=n(3),i=n(6),o=n(19),s=n(132);function a(){var e=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(o.reducers),selectors:o.selectors,actions:Object(r.pickBy)(o.actions,(function(e){return"function"==typeof e})),controls:s});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 r(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 r=e(this).attr("id"),i=e(this).attr("href"),o=e(i);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"===i&&e(".wpseo-meta-section-react").addClass("active"),o.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new CustomEvent(e,{detail:t})}("YoastSEO:metaTabChange",{metaTabId:r});window.dispatchEvent(s),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 r,i,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(),r=e(".yoast-aria-tabs"),i=r.find("[role='tab']"),o=r.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(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,r){var i=n.which,o=r.index(e(n.target));switch(i){case 32:n.preventDefault(),t(r[o]);break;case 35:n.preventDefault(),t(r[r.length-1]);break;case 36:n.preventDefault(),t(r[0]);break;case 37:case 38:n.preventDefault(),t(r[o-1<0?r.length-1:o-1]);break;case 39:case 40:n.preventDefault(),t(r[o+1===r.length?0:o+1])}}(n,i))}))}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||x.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=d(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=d(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=d(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=d(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=d(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=d(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:m,paragraph:d(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,o,s,a,c,l,p,d,h,f,g,m,y,v,_;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){var x=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),x&&"paragraph"===x.type?x.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:w(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(c={type:"table",header:b(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),f=0;f<c.align.length;f++)/^ *-+: *$/.test(c.align[f])?c.align[f]="right":/^ *:-+: *$/.test(c.align[f])?c.align[f]="center":/^ *:-+ *$/.test(c.align[f])?c.align[f]="left":c.align[f]=null;for(f=0;f<c.cells.length;f++)c.cells[f]=b(c.cells[f],c.header.length);this.tokens.push(c)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),l={type:"list_start",ordered:y=(s=o[2]).length>1,start:y?+s:"",loose:!1},this.tokens.push(l),p=[],r=!1,m=(o=o[0].match(this.rules.item)).length,f=0;f<m;f++)h=(c=o[f]).length,~(c=c.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+h+"}","gm"),"")),f!==m-1&&(a=n.bullet.exec(o[f+1])[0],(s.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==s)&&(e=o.slice(f+1).join("\n")+e,f=m-1)),i=r||/\n\n(?!\s*$)/.test(c),f!==m-1&&(r="\n"===c.charAt(c.length-1),i||(i=r)),i&&(l.loose=!0),_=void 0,(v=/^\[[ xX]\] /.test(c))&&(_=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:_,loose:i},p.push(d),this.tokens.push(d),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(m=p.length,f=0;f<m;f++)p[f].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),g=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[g]||(this.tokens.links[g]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(c={type:"table",header:b(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),f=0;f<c.align.length;f++)/^ *-+: *$/.test(c.align[f])?c.align[f]="right":/^ *:-+: *$/.test(c.align[f])?c.align[f]="center":/^ *:-+ *$/.test(c.align[f])?c.align[f]="left":c.align[f]=null;for(f=0;f<c.cells.length;f++)c.cells[f]=b(c.cells[f].replace(/^ *\| *| *\| *$/g,""),c.header.length);this.tokens.push(c)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||x.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new s,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function s(e){this.options=e||x.defaults}function a(){}function c(e){this.tokens=[],this.token=null,this.options=e||x.defaults,this.options.renderer=this.options.renderer||new s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,(function(e){return u.replacements[e]}))}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,(function(e){return u.replacements[e]}));return e}function p(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function d(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,n){if(e){try{var r=decodeURIComponent(p(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!g.test(n)&&(n=function(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=w(e,"/",!0)),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=d(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=d(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=d(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=d(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=d(i.reflink).replace("label",i._label).getRegex(),i.normal=y({},i),i.pedantic=y({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=y({},i.normal,{escape:d(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=d(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=y({},i.gfm,{br:d(i.br).replace("{2,}","*").getRegex(),text:d(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,r,i,s,a,c="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),c+=u(s[1]);else if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):u(s[0]):s[0];else if(s=this.rules.link.exec(e)){var l=v(s[2],"()");if(l>-1){var p=4+s[1].length+l;s[2]=s[2].substring(0,l),s[0]=s[0].substring(0,p).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,r=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=s[3]?s[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(s,{href:o.escapes(r),title:o.escapes(i)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),c+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),c+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),c+=this.renderer.codespan(u(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),c+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),c+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),r="@"===s[2]?"mailto:"+(n=u(this.mangle(s[1]))):n=u(s[1]),c+=this.renderer.link(r,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?c+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):u(s[0]):s[0]):c+=this.renderer.text(u(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])r="mailto:"+(n=u(s[0]));else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);n=u(s[0]),r="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),c+=this.renderer.link(r,null,n)}return c},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'<pre><code class="'+this.options.langPrefix+u(r,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"</code></pre>"},s.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},s.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},s.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},s.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},s.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},s.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},s.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},s.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},s.prototype.strong=function(e){return"<strong>"+e+"</strong>"},s.prototype.em=function(e){return"<em>"+e+"</em>"},s.prototype.codespan=function(e){return"<code>"+e+"</code>"},s.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},s.prototype.del=function(e){return"<del>"+e+"</del>"},s.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+u(e)+'"';return t&&(r+=' title="'+t+'"'),r+">"+n+"</a>"},s.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,y({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop(),this.token},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,p(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var s=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,s,a);case"list_item_start":o="";var c=this.token.loose,l=this.token.checked,u=this.token.task;for(this.token.task&&(o+=this.renderer.checkbox(l));"list_item_end"!==this.next().type;)o+=c||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,u,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var d='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(d);console.log(d)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function b(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function w(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function v(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}function _(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function x(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),_(t=y({},x.defaults,t||{}));var i,o,s=t.highlight,a=0;try{i=r.lex(e,t)}catch(e){return n(e)}o=i.length;var l=function(e){if(e)return t.highlight=s,n(e);var r;try{r=c.parse(i,t)}catch(t){e=t}return t.highlight=s,e?n(e):n(null,r)};if(!s||s.length<3)return l();if(delete t.highlight,!o)return l();for(;a<i.length;a++)!function(e){"code"!==e.type?--o||l():s(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--o||l():(e.text=n,e.escaped=!0,void(--o||l()))}))}(i[a])}else try{return t&&(t=y({},x.defaults,t)),_(t),c.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||x.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}m.exec=m,x.options=x.setOptions=function(e){return y(x.defaults,e),x},x.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},x.defaults=x.getDefaults(),x.Parser=c,x.parser=c.parse,x.Renderer=s,x.TextRenderer=a,x.Lexer=r,x.lexer=r.lex,x.InlineLexer=o,x.inlineLexer=o.output,x.Slugger=l,x.parse=x,e.exports=x}(this||"undefined"!=typeof window&&window)}).call(this,n(173))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updateScore",(function(){return xe})),n.d(r,"initialize",(function(){return je}));var i,o=n(94),s=n.n(o),a=n(22),c=n.n(a),l=n(166),u=n(26),p=n.n(u),d=n(12),h=n.n(d),f=n(13),g=n.n(f),m=n(16),y=n.n(m),b=n(17),w=n.n(b),v=n(11),x=n.n(v),k=n(0),O=n(6),j=n(3),S=n(8),E=n.n(S),C=n(1),R=n.n(C),T=n(2),A=n(21),P=n(7),D=n.n(P),I=n(20),M=n(10),B=n.n(M),F=n(38),L=n.n(F),U=n(44),z=D.a.div(i||(i=E()(["\n\tpadding-top: 6px;\n"]))),Y=function(e){var t=e.value,n=e.id,r=e.terms,i=e.onChange;return Object(k.createElement)(z,null,Object(k.createElement)("select",{className:"components-select-control__input",id:n,value:t,onChange:function(e){i(parseInt(e.target.value,10))}},r.map((function(e){return Object(k.createElement)("option",{key:e.id,value:e.id},Object(j.unescape)(e.name))}))))};Y.propTypes={terms:R.a.arrayOf(R.a.shape({id:R.a.string.isRequired,name:R.a.string.isRequired})),onChange:R.a.func.isRequired,id:R.a.string,value:R.a.string};var $,N=Y;var q=D.a.div($||($=E()(["\n\tpadding-top: 16px;\n"]))),V=function(e){y()(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=x()(t);if(n){var i=x()(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return w()(this,e)});function i(e){var t;h()(this,i),(t=r.call(this,e)).onChange=t.onChange.bind(B()(t)),t.updateReplacementVariable=t.updateReplacementVariable.bind(B()(t));var n=e.taxonomy,o=n.fieldId,s=n.name;return t.input=document.getElementById(o),e.setPrimaryTaxonomyId(s,parseInt(t.input.value,10)),t.state={selectedTerms:[],terms:[]},t}return g()(i,[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(j.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.terms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTaxonomyId;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:-1)}},{key:"termIsAvailable",value:function(e){return!!this.state.terms.find((function(t){return t.id===e}))}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=L()({path:Object(U.addQueryArgs)("/wp/v2/".concat(t.restBase),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){var n=e.state;e.setState({terms:t,selectedTerms:e.getSelectedTerms(t,e.props.selectedTermIds)},(function(){0===n.terms.length&&e.state.terms.length>0&&e.updateReplacementVariable(e.props.primaryTaxonomyId)}))})))}},{key:"getSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"updateSelectedTerms",value:function(e,t){var n=this.getSelectedTerms(e,t);this.setState({selectedTerms:n})}},{key:"onChange",value:function(e){var t=this.props.taxonomy.name;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}},{key:"updateReplacementVariable",value:function(e){if("category"===this.props.taxonomy.name){var t=this.state.selectedTerms.find((function(t){return t.id===e}));this.props.updateReplacementVariable("primary_".concat(this.props.taxonomy.name),t?t.name:"")}}},{key:"render",value:function(){var e=this.props,t=e.primaryTaxonomyId,n=e.taxonomy;if(this.state.selectedTerms.length<2)return null;var r="yoast-primary-".concat(n.name,"-picker");return Object(k.createElement)(q,{className:"components-base-control__field"},Object(k.createElement)("label",{htmlFor:r,className:"components-base-control__label"},Object(T.sprintf)(
/* translators: %s expands to the taxonomy name. */
Object(T.__)("Select the primary %s","wordpress-seo"),n.singularLabel.toLowerCase())),Object(k.createElement)(N,{value:t,onChange:this.onChange,id:r,terms:this.state.selectedTerms}))}}]),i}(k.Component);V.propTypes={selectedTermIds:R.a.arrayOf(R.a.number),primaryTaxonomyId:R.a.number,setPrimaryTaxonomyId:R.a.func,updateReplacementVariable:R.a.func,receiveEntityRecords:R.a.func,taxonomy:R.a.shape({name:R.a.string,fieldId:R.a.string,restBase:R.a.string,singularLabel:R.a.string})};var K,Q=V,W=Object(I.compose)([Object(O.withSelect)((function(e,t){var n=e("core/editor"),r=e("yoast-seo/editor"),i=t.taxonomy;return{selectedTermIds:n.getEditedPostAttribute(i.restBase)||[],primaryTaxonomyId:r.getPrimaryTaxonomyId(i.name)}})),Object(O.withDispatch)((function(e){var t=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t.setPrimaryTaxonomyId,updateReplacementVariable:t.updateReplacementVariable}}))])(Q);var Z=null,H=null,G=D.a.div(K||(K=E()(["\n\tmargin: 16px 0 8px;\n"]))),J=function(e){y()(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=x()(t);if(n){var i=x()(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return w()(this,e)});function i(){var e;return h()(this,i),e=r.call(this),Z&&H||(Z=Object(j.get)(window.wpseoPrimaryCategoryL10n,"taxonomies",{}),H=Object(j.values)(Z).map((function(e){return e.name}))),e.state={exceptionCaught:!1,error:null},e}return g()(i,[{key:"componentDidCatch",value:function(e){this.setState({exceptionCaught:!0,error:e})}},{key:"taxonomyHasPrimaryTermSupport",value:function(){return H.includes(this.props.slug)}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.OriginalComponent;if(this.state.exceptionCaught){var r=Object(j.get)(this.state,"error.stack");return Object(k.createElement)(k.Fragment,null,Object(k.createElement)(n,this.props),Object(k.createElement)(G,null,Object(T.sprintf)(
/* translators: %s expands to Yoast SEO. */
Object(T.__)("An error occurred loading the %s primary taxonomy picker.","wordpress-seo"),"Yoast SEO")),r&&Object(k.createElement)(A.ClipboardButton,{isLarge:!0,text:r},Object(T.__)("Copy error","wordpress-seo")))}return this.taxonomyHasPrimaryTermSupport()?Object(k.createElement)(k.Fragment,null,Object(k.createElement)(n,this.props),Object(k.createElement)(W,{taxonomy:Z[t]})):Object(k.createElement)(n,this.props)}}]),i}(k.Component);J.propTypes={OriginalComponent:R.a.func.isRequired,slug:R.a.string.isRequired};var X=J,ee=n(76);function te(e){var t,n,r=wpseoPrimaryCategoryL10n.taxonomies;function i(t){return e("#yoast-wpseo-primary-"+t).val()}function o(t,n){e("#yoast-wpseo-primary-"+t).val(n).trigger("change");var r=Object(O.dispatch)("yoast-seo/editor");if(r){var i=parseInt(n,10);r.setPrimaryTaxonomyId(t,i),"category"===t&&r.updateReplacementVariable("primary_category",function(t){var n=e("#category-all").find("#category-".concat(t," > label"));if(0===n.length)return"";var r=n.clone();return r.children().remove(),r.text().trim()}(i))}}function s(o){var s,a,c;s=e("#"+o+'checklist input[type="checkbox"]:checked');var l=e("#"+o+"checklist li");l.removeClass("wpseo-term-unchecked wpseo-primary-term wpseo-non-primary-term"),e(".wpseo-primary-category-label").remove(),l.addClass("wpseo-term-unchecked"),s.length<=1||s.each((function(s,l){l=e(l),(a=l.closest("li")).removeClass("wpseo-term-unchecked"),1!==e(l).closest("li").children(".wpseo-make-primary-term").length&&function(n,i){var o,s;o=e(i).closest("label"),s=t({taxonomy:r[n],term:o.text()}),o.after(s)}(o,l),l.val()===i(o)?(a.addClass("wpseo-primary-term"),(c=l.closest("label")).find(".wpseo-primary-category-label").remove(),c.append(n({taxonomy:r[o]}))):a.addClass("wpseo-non-primary-term")}))}function a(t){o(t,e("#"+t+'checklist input[type="checkbox"]:checked:first').val()),s(t)}function c(e){""===i(e)&&a(e)}e.fn.initYstSEOPrimaryCategory=function(){return this.each((function(t,n){var r,l=e("#"+n.name+"div");s(n.name),l.on("click",'input[type="checkbox"]',(r=n.name,function(){!1===e(this).prop("checked")&&e(this).val()===i(r)&&a(r),c(r),s(r)})),l.on("wpListAddEnd","#"+n.name+"checklist",function(e){return function(){c(e),s(e)}}(n.name)),l.on("click",".wpseo-make-primary-term",function(t){return function(n){var r;r=e(n.currentTarget).siblings("label").find("input"),o(t,r.val()),s(t),r.trigger("focus")}}(n.name))}))},t=wp.template("primary-term-ui"),n=wp.template("primary-term-screen-reader"),e(_.values(r)).initYstSEOPrimaryCategory(),Object(ee.a)()&&Object(j.get)(window,"wp.hooks.addFilter",j.noop)("editor.PostTaxonomyType","yoast-seo",(function(e){return function(t){y()(o,t);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x()(n);if(r){var i=x()(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return w()(this,e)});function o(){return h()(this,o),i.apply(this,arguments)}return g()(o,[{key:"render",value:function(){return Object(k.createElement)(X,p()({OriginalComponent:e},this.props))}}]),o}(k.Component)}))}var ne=n(28),re=n(120),ie=n(143),oe=n(89),se=function(){function e(t,n,r){h()(this,e),this._registerPlugin=t,this._registerModification=n,this._refreshAnalysis=r,this._reusableBlocks={},this._selectCore=Object(O.select)("core"),this._selectCoreEditor=Object(O.select)("core/editor"),this.reusableBlockChangeListener=this.reusableBlockChangeListener.bind(this),this.parseReusableBlocks=this.parseReusableBlocks.bind(this)}return g()(e,[{key:"register",value:function(){this._registerPlugin("YoastReusableBlocksPlugin",{status:"ready"}),this._registerModification("content",this.parseReusableBlocks,"YoastReusableBlocksPlugin",1),Object(O.subscribe)(Object(j.debounce)(this.reusableBlockChangeListener,500))}},{key:"reusableBlockChangeListener",value:function(){var e=this,t=this._selectCoreEditor.getPostEdits().blocks;if(t){var n=!1;t.forEach((function(t){if(Object(oe.isReusableBlock)(t)){var r=e.getBlockContent(t.attributes.ref);e._reusableBlocks[t.attributes.ref]?e._reusableBlocks[t.attributes.ref].content!==r&&(e._reusableBlocks[t.attributes.ref].content=r,n=!0):(e._reusableBlocks[t.attributes.ref]={id:t.attributes.ref,clientId:t.clientId,content:r},n=!0)}})),n&&this._refreshAnalysis()}}},{key:"parseReusableBlocks",value:function(e){var t=this,n=/<!-- wp:block {"ref":(\d+)} \/-->/g;return e.match(n)?e.replace(n,(function(n,r){return t._reusableBlocks[r]&&t._reusableBlocks[r].content?t._reusableBlocks[r].content:e})):e}},{key:"getBlockContent",value:function(e){var t=this._selectCore.getEditedEntityRecord("postType","wp_block",e);if(t){if(Object(j.isFunction)(t.content))return t.content(t);if(t.blocks)return Object(oe.__unstableSerializeAndClean)(t.blocks);if(t.content)return t.content}return""}}]),e}(),ae=n(34),ce=n.n(ae),le=new RegExp("\\[[^<>&/\\[\\]\0- =]+?( [^\\]]+?)?\\]","g"),ue=new RegExp("\\[/[^<>&/\\[\\]\0- =]+?\\]","g"),pe=function(e){var t=e.registerPlugin,n=e.registerModification,r=e.pluginReady,i=e.pluginReloaded;this._registerModification=n,this._pluginReady=r,this._pluginReloaded=i,t("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();var o="("+wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags.join("|")+")";this.keywordRegex=new RegExp(o,"g"),this.closingTagRegex=new RegExp("\\[\\/"+o+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+o+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))};pe.prototype.declareReady=function(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()},pe.prototype.declareReloaded=function(){this._pluginReloaded("YoastShortcodePlugin")},pe.prototype.registerModifications=function(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")},pe.prototype.removeUnknownShortCodes=function(e){return(e=e.replace(le,"")).replace(ue,"")},pe.prototype.replaceShortcodes=function(e){var t=this.parsedShortcodes;if("string"==typeof e&&t.length>0)for(var n=0;n<t.length;n++)e=e.replace(t[n].shortcode,t[n].output);return this.removeUnknownShortCodes(e)},pe.prototype.loadShortcodes=function(e){var t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)},pe.prototype.bindElementEvents=function(){var e=document.getElementById("content")||!1,t=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))},pe.prototype.getContentTinyMCE=function(){var e=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),e},pe.prototype.getUnparsedShortcodes=function(e){if("object"!==ce()(e))return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+ce()(e)),!1;for(var t=[],n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&this.isUnparsedShortcode(r)&&t.push(r)}return t},pe.prototype.isUnparsedShortcode=function(e){for(var t=!1,n=0;n<this.parsedShortcodes.length;n++)this.parsedShortcodes[n].shortcode===e&&(t=!0);return!1===t},pe.prototype.getShortcodes=function(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+ce()(e)),!1;for(var t=this.matchCapturingShortcodes(e),n=0;n<t.length;n++)e=e.replace(t[n],"");var r=this.matchNonCapturingShortcodes(e);return t.concat(r)},pe.prototype.matchCapturingShortcodes=function(e){for(var t=[],n=(e.match(this.closingTagRegex)||[]).join(" ").match(this.keywordRegex)||[],r=0;r<n.length;r++){var i=n[r],o="\\["+i+"[^\\]]*?\\].*?\\[\\/"+i+"\\]",s=e.match(new RegExp(o,"g"))||[];t=t.concat(s)}return t},pe.prototype.matchNonCapturingShortcodes=function(e){return e.match(this.nonCaptureRegex)||[]},pe.prototype.parseShortcodes=function(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+ce()(t)),!1):"object"===ce()(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()},pe.prototype.saveParsedShortcodes=function(e,t){e=JSON.parse(e);for(var n=0;n<e.length;n++)this.parsedShortcodes.push(e[n]);t()};var de=pe,he=n(184),fe=n.n(he),ge=function(){function e(t,n){h()(this,e),this._registerPlugin=t,this._registerModification=n}return g()(e,[{key:"register",value:function(){this._registerPlugin("YoastMarkdownPlugin",{status:"ready"}),this._registerModification("content",this.parseMarkdown.bind(this),"YoastMarkdownPlugin",1)}},{key:"parseMarkdown",value:function(e){return fe()(e)}}]),e}(),me=n(40),ye=n(121),be=n(131),we=n(145),ve=jQuery;function _e(e,t){return wpseoScriptData.metabox.publish_box.labels[e][t]||""}function xe(e,t){var n=ve("#"+e+"-score"),r="image yoast-logo svg "+t;n.children(".image").attr("class",r);var i=_e(e,t);n.children(".score-text").html(i)}function ke(e,t){var n=ve("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),r=ve("<span />",{class:"score-text",html:_e(e,t)}),i=ve("<span>").attr("class","image yoast-logo svg na");n.append(i).append(r),ve("#yoast-seo-publishbox-section").prepend(n)}function Oe(e){var t=ve("#wpadminbar"),n=ve(e);if(t&&n){var r="fixed"===t.css("position")?t.height():0;ve([document.documentElement,document.body]).animate({scrollTop:n.offset().top-r},1e3),n.trigger("focus"),0===n.parent().siblings().length&&n.trigger("click")}}function je(){wpseoScriptData.metabox.keywordAnalysisActive&&ke("keyword","na"),wpseoScriptData.metabox.contentAnalysisActive&&ke("content","na"),ve("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),Oe("#wpseo-meta-section-readability")})),ve("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),Oe("#yoast-seo-analysis-collapsible-metabox")}))}String.prototype.ucfirst=function(){return this.charAt(0).toUpperCase()+this.substr(1)};var Se=n(109),Ee=n(104),Ce=n(117),Re=n(83),Te=n(156),Ae=n(18),Pe=n.n(Ae),De=n(87),Ie=n(50),Me=n(51);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Pe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le=me.tmceId,Ue=jQuery,ze=function(e){"object"===("undefined"==typeof CKEDITOR?"undefined":ce()(CKEDITOR))&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._data=e.data,this._store=e.store};ze.prototype.getData=function(){var e=this._data.getData(),t=this._store.getState(),n={keyword:Object(Me.a)()?this.getKeyword():"",meta:this.getMeta(),text:e.content,title:e.title,url:e.slug,excerpt:e.excerpt,snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),snippetCite:this.getSnippetCite(),primaryCategory:this.getPrimaryCategory(),searchUrl:this.getSearchUrl(),postUrl:this.getPostUrl(),permalink:this.getPermalink(),titleWidth:Object(De.a)(this.getSnippetTitle())},r={metaTitle:Object(j.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:Object(j.get)(t,["snippetEditor","data","slug"],e.slug),meta:this.getMetaDescForAnalysis(t)};return Fe(Fe({},n),r)},ze.prototype.getKeyword=function(){return document.getElementById("yoast_wpseo_focuskw")&&document.getElementById("yoast_wpseo_focuskw").value||""},ze.prototype.getMetaDescForAnalysis=function(e){var t=Object(j.get)(e,["analysisData","snippet","description"],this.getSnippetMeta());return""!==wpseoScriptData.metabox.metaDescriptionDate&&(t=wpseoScriptData.metabox.metaDescriptionDate+" - "+t),t},ze.prototype.getMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},ze.prototype.getText=function(){return ne.markers.removeMarks(me.getContentTinyMce(Le))},ze.prototype.getTitle=function(){return document.getElementById("title")&&document.getElementById("title").value||""},ze.prototype.getUrl=function(){var e=Object(O.select)("core/editor");if(e)return e.getCurrentPostAttribute("slug");var t="",n=Ue("#new-post-slug");return 0<n.length?t=n.val():null!==document.getElementById("editable-post-name-full")&&(t=document.getElementById("editable-post-name-full").textContent),t},ze.prototype.getExcerpt=function(){var e="";return null!==document.getElementById("excerpt")&&(e=document.getElementById("excerpt")&&document.getElementById("excerpt").value||""),e},ze.prototype.getSnippetTitle=function(){return document.getElementById("yoast_wpseo_title")&&document.getElementById("yoast_wpseo_title").value||""},ze.prototype.getSnippetMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},ze.prototype.getSnippetCite=function(){return this.getUrl()||""},ze.prototype.getPrimaryCategory=function(){var e="",t=Ue("#category-all").find("ul.categorychecklist"),n=t.find("li input:checked");if(1===n.length)return this.getCategoryName(n.parent());var r=t.find(".wpseo-primary-term > label");return r.length?e=this.getCategoryName(r):e},ze.prototype.getSearchUrl=function(){return wpseoScriptData.metabox.search_url},ze.prototype.getPostUrl=function(){return wpseoScriptData.metabox.post_edit_url},ze.prototype.getPermalink=function(){var e=this.getUrl();return wpseoScriptData.metabox.base_url+e},ze.prototype.getCategoryName=function(e){var t=e.clone();return t.children().remove(),t.text().trim()},ze.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("yoast_wpseo_metadesc").value=e;break;case"snippet_cite":if(this.leavePostNameUntouched)return void(this.leavePostNameUntouched=!1);null!==document.getElementById("post_name")&&(document.getElementById("post_name").value=e),null!==document.getElementById("editable-post-name")&&null!==document.getElementById("editable-post-name-full")&&(document.getElementById("editable-post-name").textContent=e,document.getElementById("editable-post-name-full").textContent=e);break;case"snippet_title":document.getElementById("yoast_wpseo_title").value=e}},ze.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},ze.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e),this.changeElementEventBinder(e)},ze.prototype.changeElementEventBinder=function(e){for(var t=["#yoast-wpseo-primary-category",'.categorychecklist input[name="post_category[]"]'],n=0;n<t.length;n++)Ue(t[n]).on("change",e)},ze.prototype.inputElementEventBinder=function(e){for(var t=["excerpt","content","title"],n=0;n<t.length;n++)null!==document.getElementById(t[n])&&document.getElementById(t[n]).addEventListener("input",e);me.tinyMceEventBinder(e,Le)},ze.prototype.saveScores=function(e,t){var n=Object(Ie.a)(e);xe("content",n.className),document.getElementById("yoast_wpseo_linkdex").value=e,""===t&&(n.className="na",n.screenReaderText=Object(T.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),Object(Se.a)(n),Object(Ee.a)(n),xe("keyword",n.className),jQuery(window).trigger("YoastSEO:numericScore",e)},ze.prototype.saveContentScore=function(e){var t=Object(Ie.a)(e);xe("content",t.className),Object(Me.a)()||(Object(Se.a)(t),Object(Ee.a)(t)),Ue("#yoast_wpseo_content_score").val(e)};var Ye=ze,$e=n(106),Ne=n(67),qe=n(105),Ve=n(157),Ke=n(149),Qe=n(102),We=n(66),Ze=n(158),He=n(19),Ge=He.actions.setFocusKeyword,Je=He.actions.setMarkerStatus,Xe=He.actions.updateData,et=He.actions.setCornerstoneContent,tt=He.actions.refreshSnippetEditor,nt=He.actions.setReadabilityResults,rt=He.actions.setSeoResultsForKeyword;function it(e,t,n){if("undefined"!=typeof wpseoScriptData){var i,o,s,a,c,l=new Ve.a;jQuery(document).on("ajaxComplete",(function(e,n,r){if("/admin-ajax.php"===r.url.substr(0-"/admin-ajax.php".length)&&"string"==typeof r.data&&-1!==r.data.indexOf("action=sample-permalink")){a.leavePostNameUntouched=!0;var i={slug:u(n)};t.dispatch(Xe(i))}})),function(){var c,u,g,m;if(i=e("#wpseo_meta"),me.setStore(t),me.wpTextViewOnInitCheck(),(c=new ye.a).isClassicEditorHidden()&&me.disableMarkerButtons(),c.vcActive?me.disableMarkerButtons():c.listen({classicEditorHidden:function(){me.disableMarkerButtons()},classicEditorShown:function(){me.isTextViewActive()||me.enableMarkerButtons()}}),0!==i.length){a=function(e){var n=new Ye({data:e,store:t});return n.leavePostNameUntouched=!1,n}(n),je();var y=function(t){!function(e){(void 0===window.tinyMCE||Object(ee.a)()||"1"!==wpseoScriptData.metabox.show_markers)&&e.dispatch(Je("disabled"))}(t);var n,r={elementTarget:[me.tmceId,"yoast_wpseo_focuskw_text_input","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:(n={},Object(Me.a)()&&(n.output="does-not-really-exist-but-it-needs-something"),Object(Ne.a)()&&(n.contentOutput="also-does-not-really-exist-but-it-needs-something"),n),callbacks:{getData:a.getData.bind(a)},locale:wpseoScriptData.metabox.contentLocale,marker:Object(Ke.a)(t),contentAnalysisActive:Object(Ne.a)(),keywordAnalysisActive:Object(Me.a)(),hasSnippetPreview:!1,debouncedRefresh:!1,researcher:new window.yoast.Researcher.default};Object(Me.a)()&&(t.dispatch(Ge(e("#yoast_wpseo_focuskw").val())),r.callbacks.saveScores=a.saveScores.bind(a),r.callbacks.updatedKeywordsResults=function(e){var n=t.getState().focusKeyword;t.dispatch(rt(n,e)),t.dispatch(tt())}),Object(Ne.a)()&&(r.callbacks.saveContentScore=a.saveContentScore.bind(a),r.callbacks.updatedContentResults=function(e){t.dispatch(nt(e)),t.dispatch(tt())}),o=e("#title");var i=Object($e.a)();return Object(j.isUndefined)(i)||Object(j.isUndefined)(i.domain)||(r.translations=i),r}(t);s=new ne.App(y),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=s,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=Object(Ce.a)(),window.YoastSEO.analysis.collectData=function(){return Object(Te.a)(n,t,l,s.pluggable,Object(O.select)("core/block-editor"))},window.YoastSEO.analysis.applyMarks=function(e,t){return Object(Ke.a)()(e,t)},window.YoastSEO.app.refresh=Object(j.debounce)((function(){return Object(Re.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,a)}),Qe.refreshDelay),window.YoastSEO.app.registerCustomDataCallback=l.register,window.YoastSEO.app.pluggable=new be.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(j.isUndefined)(s.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(s.defaultSeoAssessor,e,t,n)&&window.YoastSEO.app.pluggable._registerAssessment(s.cornerStoneSeoAssessor,e,t,n)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(We.a),window.YoastSEO.app.refresh()},Object(Ze.a)(s.refresh,"get_focus_keyword_usage",t),t.subscribe(d.bind(null,t,s.refresh)),window.YoastSEO.analyzerArgs=y,window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new ie.a(s,t),window.YoastSEO.wp.shortcodePlugin=new de({registerPlugin:s.registerPlugin,registerModification:s.registerModification,pluginReady:s.pluginReady,pluginReloaded:s.pluginReloaded}),Object(ee.a)()&&new se(s.registerPlugin,s.registerModification,window.YoastSEO.app.refresh).register(),wpseoScriptData.metabox.markdownEnabled&&new ge(s.registerPlugin,s.registerModification).register(),window.YoastSEO.wp._tinyMCEHelper=me,Object(Me.a)()&&(u=r,g=e("#yoast_wpseo_linkdex").val(),m=Object(Ie.a)(g),Object(Se.a)(m),Object(Ee.a)(m),u.updateScore("keyword",m.className)),Object(Ne.a)()&&function(t){var n=e("#yoast_wpseo_content_score").val(),r=Object(Ie.a)(n);Object(Ee.a)(r),t.updateScore("content",r.className)}(r),window.YoastSEO.analysis.worker.initialize(Object(Ce.b)()).then((function(){jQuery(window).trigger("YoastSEO:ready")})).catch(We.a),a.bindElementEvents(Object(j.debounce)((function(){return Object(Re.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,a)}),Qe.refreshDelay)),p(s);var b=s.initAssessorPresenters.bind(s);s.initAssessorPresenters=function(){b(),p(s)},n.setRefresh&&n.setRefresh(s.refresh);var w=qe.a.getDataFromCollector(a),v=qe.a.getTemplatesFromL10n(wpseoScriptData.metabox);w=qe.a.getDataWithTemplates(w,v),t.dispatch(Xe(w)),t.dispatch(et("1"===document.getElementById("yoast_wpseo_is_cornerstone").value));var _=t.getState().focusKeyword;Object(we.a)(window.YoastSEO.analysis.worker.runResearch,t,_);var x=Object(j.debounce)((function(){s.refresh()}),50),k=null;if(t.subscribe((function(){var n=t.getState().focusKeyword;_!==n&&(_=n,Object(we.a)(window.YoastSEO.analysis.worker.runResearch,t,_),e("#yoast_wpseo_focuskw").val(_),x());var r=qe.a.getDataFromStore(t),i=qe.a.getDataWithoutTemplates(r,v);w.title!==r.title&&a.setDataFromSnippet(i.title,"snippet_title"),w.slug!==r.slug&&a.setDataFromSnippet(i.slug,"snippet_cite"),w.description!==r.description&&a.setDataFromSnippet(i.description,"snippet_meta");var o=t.getState();k!==o.isCornerstone&&(k=o.isCornerstone,document.getElementById("yoast_wpseo_is_cornerstone").value=o.isCornerstone,s.changeAssessorOptions({useCornerstone:o.isCornerstone})),w.title=r.title,w.slug=r.slug,w.description=r.description})),Object(ee.a)()){var S=f();h(S,t),Object(O.subscribe)((function(){var e=f();e!==S&&h(S=e,t)}))}Object(Re.initializationDone)(),window.YoastSEO.app.refresh()}}()}function u(e){return""===e.responseText?o.val():jQuery("<div>"+e.responseText+"</div>").find("#editable-post-name-full").text()}function p(e){Object(j.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),Object(j.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}function d(e,t){var n=c||"";c=e.getState().analysisData.snippet,!Object(re.isShallowEqualObjects)(n,c)&&t()}function h(e,t){"visual"!==e?t.dispatch(Je("disabled")):t.dispatch(Je("enabled"))}function f(){return Object(O.select)("core/edit-post").getEditorMode()}}window.YoastReplaceVarPlugin=ie.a,window.YoastShortcodePlugin=de;var ot=n(77),st=n.n(ot);var at=n(135),ct=n(136),lt=n(159),ut=n(155);window.wpseoPostScraperL10n=window.wpseoScriptData.metabox,window.wpseoShortcodePluginL10n=window.wpseoScriptData.analysis.plugins.shortcodes,window.YoastSEO=window.YoastSEO||{},s()((function(){Object(l.a)(c.a),"undefined"!=typeof wpseoPrimaryCategoryL10n&&te(c.a);var e=Object(lt.a)();window.yoast.initEditorIntegration(e);var t=new window.yoast.EditorData((function(){}),e);t.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars,window.wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars),it(c.a,e,t),window.wpseoScriptData&&void 0!==window.wpseoScriptData.featuredImage&&function(e){var t,n,r,i=function(e){this._app=e,this.featuredImage=null,this.pluginName="addFeaturedImagePlugin",this.registerPlugin(),this.registerModifications()};function o(){e("#yst_opengraph_image_warning").remove(),n.removeClass("yoast-opengraph-image-notice")}i.prototype.setFeaturedImage=function(e){this.featuredImage=e,this._app.pluginReloaded(this.pluginName)},i.prototype.removeFeaturedImage=function(){this.setFeaturedImage(null)},i.prototype.registerPlugin=function(){this._app.registerPlugin(this.pluginName,{status:"ready"})},i.prototype.registerModifications=function(){this._app.registerModification("content",this.addImageToContent.bind(this),this.pluginName,10)},i.prototype.addImageToContent=function(e){return null!==this.featuredImage&&(e+=this.featuredImage),e};var s,a,c=wp.media.featuredImage.frame();"undefined"!=typeof YoastSEO&&(t=new i(YoastSEO.app),n=e("#postimagediv"),r=n.find(".hndle"),c.on("select",(function(){var i,s,a;!function(t){var i=t.state().get("selection").first().toJSON();i.width<200||i.height<200?0===e("#yst_opengraph_image_warning").length&&(e('<div id="yst_opengraph_image_warning" class="notice notice-error notice-alt"><p>'+wpseoScriptData.featuredImage.featured_image_notice+"</p></div>").insertAfter(r),n.addClass("yoast-opengraph-image-notice"),st()(wpseoScriptData.featuredImage.featured_image_notice,"assertive")):o()}(c),a=(s=c.state().get("selection").first()).get("alt"),i='<img src="'+s.get("url")+'" width="'+s.get("width")+'" height="'+s.get("height")+'" alt="'+a+'"/>',t.setFeaturedImage(i)})),n.on("click","#remove-post-thumbnail",(function(){t.removeFeaturedImage(),o()})),void 0!==e("#set-post-thumbnail > img").prop("src")&&t.setFeaturedImage(e("#set-post-thumbnail ").html()),Object(ee.a)()&&Object(O.subscribe)((function(){var e=Object(O.select)("core/editor").getEditedPostAttribute("featured_media");if(function(e){return"number"==typeof e&&e>0}(e)&&void 0!==(s=Object(O.select)("core").getMedia(e))&&s!==a){a=s;var n='<img src="'.concat(s.source_url,'" alt="').concat(s.alt_text,'" >');t.setFeaturedImage(n)}})))}(c.a),Object(at.a)(c.a),Object(ct.a)(c.a),setTimeout(ut.a,500)}))}]);

Zerion Mini Shell 1.0