This commit is contained in:
apuc committed 2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 files changed
+3285853

No files matched your search

@@ -0,0 +1,332 @@
window.yoast=window.yoast||{},window.yoast.analysis=function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=396)}([,,function(e,t){e.exports=window.lodash},,function(e,t){e.exports=window.wp.i18n},,,,,,,,,,,,,,function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;t.format=function(e){if(!_(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(s,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),l=n[r];r<i;l=n[++r])f(l)||!v(l)?a+=" "+l:a+=" "+o(l);return a},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var s=!1;return function(){if(!s){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),s=!0}return r.apply(this,arguments)}};var i,a={};function o(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,e,n.depth)}function l(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var s=r.inspect(n,e);return _(s)||(s=u(e,s,n)),s}var i=function(e,t){if(T(t))return e.stylize("undefined","undefined");if(_(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0}(e,r);if(i)return i;var a=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),y(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(A(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(y(r))return h(r)}var c,v="",O=!1,C=["{","}"];return p(r)&&(O=!0,C=["[","]"]),A(r)&&(v=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(v=" "+RegExp.prototype.toString.call(r)),b(r)&&(v=" "+Date.prototype.toUTCString.call(r)),y(r)&&(v=" "+h(r)),0!==a.length||O&&0!=r.length?n<0?E(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=O?function(e,t,r,n,s){for(var i=[],a=0,o=t.length;a<o;++a)k(t,String(a))?i.push(d(e,t,r,n,String(a),!0)):i.push("");return s.forEach((function(s){s.match(/^\d+$/)||i.push(d(e,t,r,n,s,!0))})),i}(e,r,n,o,a):a.map((function(t){return d(e,r,n,o,t,O)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,v,C)):C[0]+v+C[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,s,i){var a,o,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),k(n,s)||(a="["+s+"]"),o||(e.seen.indexOf(l.value)<0?(o=f(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(o=i?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),T(a)){if(i&&s.match(/^\d+$/))return o;(a=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9Line truncated
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in introduction%2$s: Well done!","wordpress-seo"),this._config.urlTitle,"</a>")}:this._firstParagraphMatches.foundInParagraph?{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in introduction%3$s: Your keyphrase or its synonyms appear in the first paragraph of the copy, but not within one sentence. %2$sFix that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in introduction%3$s: Your keyphrase or its synonyms do not appear in the first paragraph. %2$sMake sure the topic is clear immediately%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}};function ki(e,t,r){return e>t&&e<=r}function Ni(e,t,r){return e>=t&&e<r}function Ri(e,t,r){return e>=t&&e<=r}var Ii=class extends yi{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this.defaultConfig={parameters:{recommendedMinimum:1,recommendedMaximum:4,acceptableMaximum:8},parametersNoFunctionWordSupport:{recommendedMaximum:6,acceptableMaximum:9},scores:{veryBad:-999,bad:3,okay:6,good:9},countTextIn:{singular:Object(_.__)("word","wordpress-seo"),plural:Object(_.__)("words","wordpress-seo")},urlTitle:Object(Ai.b)("https://yoa.st/33i"),urlCallToAction:Object(Ai.b)("https://yoa.st/33j"),isRelatedKeyphrase:!1},this.identifier="keyphraseLength",this._config=Object(T.merge)(this.defaultConfig,e),this._isProductPage=t}getResult(e,t){this._keyphraseLengthData=t.getResearch("keyphraseLength");const r=new wi;t.getConfig("countCharacters")&&(this._config.countTextIn.singular=Object(_.__)("character","wordpress-seo"),this._config.countTextIn.plural=Object(_.__)("characters","wordpress-seo"));const n=e.getKeyword();this._keyphraseLengthData.functionWords.length>0&&!xr(n).exactMatchRequested&&(this._config.countTextIn.singular=Object(_.__)("content word","wordpress-seo"),this._config.countTextIn.plural=Object(_.__)("content words","wordpress-seo")),t.getConfig("keyphraseLength")?this._config=this.getCustomConfig(t):0===this._keyphraseLengthData.functionWords.length&&(this._config.parameters=Object(T.merge)({},this._config.parameters,this._config.parametersNoFunctionWordSupport)),this._boundaries=this._config.parameters;const s=this.calculateResult();return r.setScore(s.score),r.setText(s.resultText),r.getScore()<9&&(r.setHasJumps(!0),r.setEditFieldName(Object(_.__)("keyphrase","wordpress-seo"))),r}getCustomConfig(e){const t=e.getConfig("keyphraseLength");return this._isProductPage&&t.hasOwnProperty("productPages")?Object(T.merge)(this._config,t.productPages):Object(T.merge)(this._config,t.defaultAnalysis)}calculateResult(){if(this._isProductPage){if(0===this._keyphraseLengthData.keyphraseLength)return this._config.isRelatedKeyphrase?{score:this._config.scores.veryBad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase length%3$s: %2$sSet a keyphrase in order to calculate your SEO score%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.veryBad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase length%3$s: No focus keyphrase was set for this page. %2$sSet a keyphrase in order to calculate your SEO score%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")};if(this._keyphraseLengthData.keyphraseLength<=this._boundaries.acceptableMinimum)return{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com, %5$s expands to the anchor end tag,
%6$s expands to the word 'word' or 'character' or 'content word',
%7$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_._n)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's way less than the recommended minimum of %2$d %7$s. %4$sMake it longer%5$s!","%3$sKeyphrase length%5$s: The keyphrase contains %1$d %7$s. That's way less than the recommended minimum of %2$d %7$s. %4$sMake it longer%5$s!",this._keyphraseLengthData.keyphraseLength,"wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMinimum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.singular,this._config.countTextIn.plural)};if(this._keyphraseLengthData.keyphraseLength>this._boundaries.acceptableMaximum)return{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com,
%5$s expands to the anchor end tag,
%6$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_.__)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's way more than the recommended maximum of %2$d %6$s. %4$sMake it shorter%5$s!","wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.plural)};if(Object(T.inRange)(this._keyphraseLengthData.keyphraseLength,this._boundaries.acceptableMinimum,this._boundaries.recommendedMinimum))return{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com,
%5$s expands to the anchor end tag,
%6$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_.__)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's less than the recommended minimum of %2$d %6$s. %4$sMake it longer%5$s!","wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMinimum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.plural)};if(ki(this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum,this._boundaries.acceptableMaximum))return{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com,
%5$s expands to the anchor end tag,
%6$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_.__)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's more than the recommended maximum of %2$d %6$s. %4$sMake it shorter%5$s!","wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.plural)};if(Ri(this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMinimum,this._boundaries.recommendedMaximum))return{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase length%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}}return this._keyphraseLengthData.keyphraseLength<this._boundaries.recommendedMinimum?this._config.isRelatedKeyphrase?{score:this._config.scores.veryBad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase length%3$s: %2$sSet a keyphrase in order to calculate your SEO score%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.veryBad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase length%3$s: No focus keyphrase was set for this page. %2$sSet a keyphrase in order to calculate your SEO score%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:Object(T.inRange)(this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMinimum,this._boundaries.recommendedMaximum+1)?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase length%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}:Object(T.inRange)(this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum+1,this._boundaries.acceptableMaximum+1)?{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com,
%5$s expands to the anchor end tag,
%6$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_.__)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's more than the recommended maximum of %2$d %6$s. %4$sMake it shorter%5$s!","wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.plural)}:{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators:
%1$d expands to the number of words / characters in the keyphrase,
%2$d expands to the recommended maximum of words / characters in the keyphrase,
%3$s and %4$s expand to links on yoast.com,
%5$s expands to the anchor end tag,
%6$s expands to the word 'words' or 'characters' or 'content words'. */
Object(_.__)("%3$sKeyphrase length%5$s: The keyphrase contains %1$d %6$s. That's way more than the recommended maximum of %2$d %6$s. %4$sMake it shorter%5$s!","wordpress-seo"),this._keyphraseLengthData.keyphraseLength,this._boundaries.recommendedMaximum,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.countTextIn.plural)}}},xi=function(e){return.7+e/3},Di=function(e,t,r,n,s){const i=s?s(e).length:br(e);if(0===i)return 0;const a=r*i/(100*xi(t));if(a<2)return 2;switch(n){case"min":return Math.ceil(a);default:case"max":return Math.floor(a)}},Li=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{noWordForms:{overMaximum:4,maximum:3,minimum:.5},multipleWordForms:{overMaximum:4,maximum:3.5,minimum:.5}},scores:{wayOverMaximum:-50,overMaximum:-10,correctDensity:9,underMinimum:4},urlTitle:Object(Ai.b)("https://yoa.st/33v"),urlCallToAction:Object(Ai.b)("https://yoa.st/33w"),applicableIfTextLongerThan:100};this.identifier="keywordDensity",this._config=Object(T.merge)(t,e)}setBoundaries(e,t,r){this._hasMorphologicalForms?this._boundaries=this._config.parameters.multipleWordForms:this._boundaries=this._config.parameters.noWordForms,this._minRecommendedKeywordCount=Di(e,t,this._boundaries.minimum,"min",r),this._maxRecommendedKeywordCount=Di(e,t,this._boundaries.maximum,"max",r)}getResult(e,t){const r=t.getHelper("getWordsCustomHelper");this._keywordCount=t.getResearch("keywordCount");const n=this._keywordCount.length,s=new wi;this._keywordDensity=t.getResearch("getKeywordDensity"),this._hasMorphologicalForms=!1!==t.getData("morphology");let i=e.getText();i=kr(i),this.setBoundaries(i,n,r),this._keywordDensity=this._keywordDensity*xi(n);const a=this.calculateResult();return s.setScore(a.score),s.setText(a.resultText),s.setHasMarks(this._keywordCount.count>0),s}hasNoMatches(){return 0===this._keywordCount.count}hasTooFewMatches(){return Ni(this._keywordDensity,0,this._boundaries.minimum)||1===this._keywordCount.count}hasGoodNumberOfMatches(){return Ri(this._keywordDensity,this._boundaries.minimum,this._boundaries.maximum)||2===this._keywordCount.count&&this._minRecommendedKeywordCount<=2}hasTooManyMatches(){return ki(this._keywordDensity,this._boundaries.maximum,this._boundaries.overMaximum)}calculateResult(){return this.hasNoMatches()?{score:this._config.scores.underMinimum,resultText:Object(_.sprintf)(
/* Translators:
%1$s and %4$s expand to links to Yoast.com,
%2$s expands to the anchor end tag,
%3$d expands to the recommended minimal number of times the keyphrase should occur in the text. */
Object(_.__)("%1$sKeyphrase density%2$s: The keyphrase was found 0 times. That's less than the recommended minimum of %3$d times for a text of this length. %4$sFocus on your keyphrase%2$s!","wordpress-seo"),this._config.urlTitle,"</a>",this._minRecommendedKeywordCount,this._config.urlCallToAction)}:this.hasTooFewMatches()?{score:this._config.scores.underMinimum,resultText:Object(_.sprintf)(
/* Translators:
%1$s and %4$s expand to links to Yoast.com,
%2$s expands to the anchor end tag,
%3$d expands to the recommended minimal number of times the keyphrase should occur in the text,
%5$d expands to the number of times the keyphrase occurred in the text. */
Object(_._n)("%1$sKeyphrase density%2$s: The keyphrase was found %5$d time. That's less than the recommended minimum of %3$d times for a text of this length. %4$sFocus on your keyphrase%2$s!","%1$sKeyphrase density%2$s: The keyphrase was found %5$d times. That's less than the recommended minimum of %3$d times for a text of this length. %4$sFocus on your keyphrase%2$s!",this._keywordCount.count,"wordpress-seo"),this._config.urlTitle,"</a>",this._minRecommendedKeywordCount,this._config.urlCallToAction,this._keywordCount.count)}:this.hasGoodNumberOfMatches()?{score:this._config.scores.correctDensity,resultText:Object(_.sprintf)(
/* Translators:
%1$s expands to a link to Yoast.com,
%2$s expands to the anchor end tag,
%3$d expands to the number of times the keyphrase occurred in the text. */
Object(_._n)("%1$sKeyphrase density%2$s: The keyphrase was found %3$d time. This is great!","%1$sKeyphrase density%2$s: The keyphrase was found %3$d times. This is great!",this._keywordCount.count,"wordpress-seo"),this._config.urlTitle,"</a>",this._keywordCount.count)}:this.hasTooManyMatches()?{score:this._config.scores.overMaximum,resultText:Object(_.sprintf)(
/* Translators:
%1$s and %4$s expand to links to Yoast.com,
%2$s expands to the anchor end tag,
%3$d expands to the recommended maximal number of times the keyphrase should occur in the text,
%5$d expands to the number of times the keyphrase occurred in the text. */
Object(_._n)("%1$sKeyphrase density%2$s: The keyphrase was found %5$d time. That's more than the recommended maximum of %3$d times for a text of this length. %4$sDon't overoptimize%2$s!","%1$sKeyphrase density%2$s: The keyphrase was found %5$d times. That's more than the recommended maximum of %3$d times for a text of this length. %4$sDon't overoptimize%2$s!",this._keywordCount.count,"wordpress-seo"),this._config.urlTitle,"</a>",this._maxRecommendedKeywordCount,this._config.urlCallToAction,this._keywordCount.count)}:{score:this._config.scores.wayOverMaximum,resultText:Object(_.sprintf)(
/* Translators:
%1$s and %4$s expand to links to Yoast.com,
%2$s expands to the anchor end tag,
%3$d expands to the recommended maximal number of times the keyphrase should occur in the text,
%5$d expands to the number of times the keyphrase occurred in the text. */
Object(_._n)("%1$sKeyphrase density%2$s: The keyphrase was found %5$d time. That's way more than the recommended maximum of %3$d times for a text of this length. %4$sDon't overoptimize%2$s!","%1$sKeyphrase density%2$s: The keyphrase was found %5$d times. That's way more than the recommended maximum of %3$d times for a text of this length. %4$sDon't overoptimize%2$s!",this._keywordCount.count,"wordpress-seo"),this._config.urlTitle,"</a>",this._maxRecommendedKeywordCount,this._config.urlCallToAction,this._keywordCount.count)}}getMarks(){return this._keywordCount.markings}isApplicable(e,t){const r=t.getHelper("customCountLength"),n=t.getConfig("assessmentApplicability").keyphraseDensity;n&&(this._config.applicableIfTextLongerThan=n);let s=e.getText();s=kr(s);const i=r?r(s):It(s).length;return e.hasText()&&e.hasKeyword()&&i>=this._config.applicableIfTextLongerThan}},Mi=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{recommendedMinimum:1},scores:{good:9,ok:6,bad:3},urlTitle:Object(Ai.b)("https://yoa.st/33k"),urlCallToAction:Object(Ai.b)("https://yoa.st/33l")};this.identifier="metaDescriptionKeyword",this._config=Object(T.merge)(t,e)}getResult(e,t){this._keyphraseCounts=t.getResearch("metaDescriptionKeyword");const r=new wi,n=this.calculateResult();return r.setScore(n.score),r.setText(n.resultText),r.getScore()<9&&(r.setHasJumps(!0),r.setEditFieldName(Object(_.__)("meta description","wordpress-seo"))),r}calculateResult(){return 1===this._keyphraseCounts||2===this._keyphraseCounts?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in meta description%2$s: Keyphrase or synonym appear in the meta description. Well done!","wordpress-seo"),this._config.urlTitle,"</a>")}:this._keyphraseCounts>=3?{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/**
* Translators:
* %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag,
* %3$s expands to the number of sentences containing the keyphrase,
* %4$s expands to a link on yoast.com, %5$s expands to the anchor end tag.
*/
Object(_.__)("%1$sKeyphrase in meta description%2$s: The meta description contains the keyphrase %3$s times, which is over the advised maximum of 2 times. %4$sLimit that%5$s!","wordpress-seo"),this._config.urlTitle,"</a>",this._keyphraseCounts,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/**
* Translators:
* %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag.
* %3$s expands to a link on yoast.com, %4$s expands to the anchor end tag.
*/
Object(_.__)("%1$sKeyphrase in meta description%2$s: The meta description has been specified, but it does not contain the keyphrase. %3$sFix that%4$s!","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction,"</a>")}}isApplicable(e){return e.hasKeyword()&&e.hasDescription()}};const Pi=function(e){let t=document.getElementById("yoast-measurement-element");return t||(t=function(){const e=document.createElement("div");return e.id="yoast-measurement-element",e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth};function Fi(){return["en","de","es","fr","it","nl","ru","id","pt","pl","ar","sv","he","hu","nb","tr","cs","sk","el","ja"]}var ji=function(e){return Math.round(e)===e?Math.round(e):Math.round(10*e)/10};function Bi(){return["en","es","de","fr"]}var Ui=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{recommendedMaximum:0},scores:{bad:2},urlTitle:Object(Ai.b)("https://yoa.st/34l"),urlCallToAction:Object(Ai.b)("https://yoa.st/34m")};this.identifier="textCompetingLinks",this._config=Object(T.merge)(t,e)}getResult(e,t){const r=new wi;this.totalAnchorsWithKeyphrase=t.getResearch("getAnchorsWithKeyphrase").anchorsWithKeyphraseCount;const n=this.calculateResult();return Object(T.isUndefined)(n)||(r.setScore(n.score),r.setText(n.resultText),r.setHasMarks(!1)),r}isApplicable(e){return e.hasText()&&e.hasKeyword()}calculateResult(){if(this.totalAnchorsWithKeyphrase>this._config.parameters.recommendedMaximum)return{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sLink keyphrase%3$s: You're linking to another page with the words you want this page to rank for. %2$sDon't do that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}},Hi=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{recommendedMinimum:1},scores:{allInternalFollow:9,someInternalFollow:8,noneInternalFollow:7,noInternal:3},urlTitle:Object(Ai.b)("https://yoa.st/33z"),urlCallToAction:Object(Ai.b)("https://yoa.st/34a")};this.identifier="internalLinks",this._config=Object(T.merge)(t,e)}getResult(e,t){this.linkStatistics=t.getResearch("getLinkStatistics");const r=new wi,n=this.calculateResult();return r.setScore(n.score),r.setText(n.resultText),r}isApplicable(e){return e.hasText()}calculateResult(){return 0===this.linkStatistics.internalTotal?{score:this._config.scores.noInternal,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sInternal links%3$s: No internal links appear in this page, %2$smake sure to add some%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.linkStatistics.internalNofollow===this.linkStatistics.internalTotal?{score:this._config.scores.noneInternalFollow,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sInternal links%3$s: The internal links in this page are all nofollowed. %2$sAdd some good internal links%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.linkStatistics.internalDofollow===this.linkStatistics.internalTotal?{score:this._config.scores.allInternalFollow,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sInternal links%2$s: You have enough internal links. Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:this._config.scores.someInternalFollow,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sInternal links%2$s: There are both nofollowed and normal internal links on this page. Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}}},$i=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{recommendedPosition:0},scores:{good:9,okay:6,bad:2},urlTitle:Object(Ai.b)("https://yoa.st/33g"),urlCallToAction:Object(Ai.b)("https://yoa.st/33h"),feedbackStrings:{bad:Object(_.__)("For the best SEO results write the exact match of your keyphrase in the SEO title, and put the keyphrase at the beginning of the title","wordpress-seo")}};this.identifier="keyphraseInSEOTitle",
/* Translators: This is the name of the 'Keyphrase in SEO title' SEO assessment.
It appears before the feedback in the analysis, for example in the feedback string:
"Keyphrase in SEO title: The focus keyphrase appears at the beginning of the SEO title. Good job!" */
this.name=Object(_.__)("Keyphrase in SEO title","wordpress-seo"),this._config=Object(T.merge)(t,e)}getResult(e,t){const r=A(e.getLocale());this._keyphraseMatches=t.getResearch("findKeyphraseInSEOTitle"),this._keyphrase=Object(T.escape)(e.getKeyword());const n=new wi,s=this.calculateResult(this._keyphrase,r);return n.setScore(s.score),n.setText(s.resultText),n.getScore()<9&&(n.setHasJumps(!0),n.setEditFieldName(Object(_.__)("SEO title","wordpress-seo"))),n}isApplicable(e){return e.hasKeyword()&&e.hasTitle()}calculateResult(e,t){const r=this._config.feedbackStrings;"ja"===t&&(r.bad=Object(_.__)("For the best SEO results include all words of your keyphrase in the SEO title, and put the keyphrase at the beginning of the title","wordpress-seo"));const n=this._keyphraseMatches.exactMatchFound,s=this._keyphraseMatches.position,i=this._keyphraseMatches.allWordsFound,a=this._keyphraseMatches.exactMatchKeyphrase,o=this._config.urlTitle+this.name+"</a>";return!0===n?0===s?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. */
Object(_.__)("%1$s: The exact match of the focus keyphrase appears at the beginning of the SEO title. Good job!","wordpress-seo"),o)}:{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. %2$s expand to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$s: The exact match of the focus keyphrase appears in the SEO title, but not at the beginning. %2$sMove it to the beginning for the best results%3$s.","wordpress-seo"),o,this._config.urlCallToAction,"</a>")}:i?"ja"===t?0===s?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. */
Object(_.__)("%1$s: The focus keyphrase appears at the beginning of the SEO title. Good job!","wordpress-seo"),o,"</a>")}:{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$s: Title does not begin with the focus keyphrase. %2$sMove your focus keyphrase to the beginning of the title%3$s.","wordpress-seo"),o,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$s: Does not contain the exact match. %2$sTry to write the exact match of your keyphrase in the SEO title and put it at the beginning of the title%3$s.","wordpress-seo"),o,this._config.urlCallToAction,"</a>")}:a?{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$s: Does not contain the exact match. %2$sTry to write the exact match of your keyphrase in the SEO title and put it at the beginning of the title%3$s.","wordpress-seo"),o,this._config.urlCallToAction,"</a>",e)}:{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to the title of the "Keyphrase in SEO title" assessment (translated to the current language)
and links to an article on yoast.com. %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the keyphrase of the article, %5$s expands to the call to action text. */
Object(_.__)('%1$s: Not all the words from your keyphrase "%4$s" appear in the SEO title. %2$s%5$s%3$s.',"wordpress-seo"),o,this._config.urlCallToAction,"</a>",e,r.bad)}}};class Ki extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={scores:{okay:6,good:9},urlTitle:Object(Ai.b)("https://yoa.st/33o"),urlCallToAction:Object(Ai.b)("https://yoa.st/33p")};this.identifier="slugKeyword",this._config=Object(T.merge)(t,e)}getResult(e,t){this._keywordInSlug=t.getResearch("keywordCountInSlug");const r=new wi,n=this.calculateResult();return r.setScore(n.score),r.setText(n.resultText),r.getScore()<9&&(r.setHasJumps(!0),r.setEditFieldName(Object(_.__)("slug","wordpress-seo"))),r}isApplicable(e,t){return e.hasKeyword()&&e.hasSlug()&&t.hasResearch("keywordCountInSlug")}calculateResult(){return this._keywordInSlug.keyphraseLength<3?100===this._keywordInSlug.percentWordMatches?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase in slug%2$s: Great work!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase in slug%3$s: (Part of) your keyphrase does not appear in the slug. %2$sChange that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this._keywordInSlug.percentWordMatches>50?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase in slug%2$s: More than half of your keyphrase appears in the slug. That's great!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sKeyphrase in slug%3$s: (Part of) your keyphrase does not appear in the slug. %2$sChange that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}}var qi=Ki,Gi=function(e){return Object(T.uniqBy)(e,(function(e){return e.getOriginal()}))};const zi=/^\s+$/,Wi=/([\s\t\u00A0])/;var Yi=class{constructor(e){this.researcher=e}splitIntoSentences(e){const t=this.researcher.getHelper("memoizedTokenizer")(e,!1);return zi.test(t[t.length-1])&&t.pop(),t.map((function(e){return new class{constructor(e){this.text=e,this.tokens=[],this.sourceCodeRange={}}}(e)}))}splitIntoTokens(e){const t=e.text.split(Wi).filter(e=>""!==e),r=[];return t.forEach(e=>{if(""===e)return;const t=[],n=[];for(;St.test(e);)t.push(e[0]),e=e.slice(1);for(;kt.test(e);)n.unshift(e[e.length-1]),e=e.slice(0,-1);let s=[...t,e,...n];s=s.filter(e=>""!==e),r.push(...s)}),r.map(e=>new class{constructor(e){this.text=e,this.sourceCodeRange={}}}(e))}},Vi=r(201);const Qi=["b","big","i","small","tt","abbr","acronym","cite","code","dfn","em","kbd","strong","samp","time","var","a","bdo","br","img","map","object","q","script","span","sub","sup","button","input","label","select","textarea"];var Xi=function(e){return Qi.includes(e)||"#text"===e};function Ji(e){return"#text"===e.name&&e.value&&e.value.match(/^[\n\s]+$/g)}function Zi(e){return e&&e.childNodes.length>0}function ea(e){return"p"===e}function ta(e){return["h1","h2","h3","h4","h5","h6"].includes(e)}function ra(e){if("#text"===e.nodeName)return new class{constructor(e){this.name="#text",this.value=e}}(e.value);let t=[];Object(T.isEmpty)(e.childNodes)||(t=e.childNodes.map(ra),function(e){return!(ea(e)||Xi(e)||ta(e))}(e.nodeName)&&(t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];let n={};Object(T.isEmpty)(t)||(n={startOffset:t.startTag?t.startTag.endOffset:t.startOffset,endOffset:t.endTag?t.endTag.startOffset:t.endOffset});let s=Nn.createImplicit({},[],n);return e.forEach(e=>{Xi(e.name)&&!Ji(e)?s.childNodes.push(e):(Zi(s)&&(Object(T.isEmpty)(e.sourceCodeLocation)||(Object(T.isEmpty)(s.sourceCodeLocation)||(s.sourceCodeLocation.endOffset=e.sourceCodeLocation.startOffset),n.startOffset=e.sourceCodeLocation.endOffset),r.push(s),s=Nn.createImplicit({},[],n)),r.push(e))}),Zi(s)&&r.push(s),r}(t,e.sourceCodeLocation)));const r=function(e){if(!e)return{};const t={};return e.forEach(e=>{let{name:r,value:n}=e;"class"===r&&(n=new Set(n.split(" "))),t[r]=n}),t}(e.attrs);if(ea(e.nodeName))return new Nn(r,t,e.sourceCodeLocation);if(ta(e.nodeName)){const n=parseInt(e.nodeName[1],10);return new Sn(n,r,t,e.sourceCodeLocation)}return new wn(e.nodeName,r,t,e.sourceCodeLocation)}function na(e){return t=>t.name===e}function sa(e){return t=>!!t.attributes.class&&t.attributes.class.has(e)}const ia=["code","kbd","math","q","samp","script","var","#comment"];var aa=[sa("yoast-table-of-contents"),sa("yoast-reading-time__wrapper"),("breadcrumbs",e=>"breadcrumbs"===e.attributes.id),na("base"),na("blockquote"),na("canvas"),na("code"),na("head"),na("iframe"),na("input"),na("kbd"),na("link"),na("math"),na("meta"),na("meter"),na("noscript"),na("object"),na("portal"),na("pre"),na("progress"),na("q"),na("samp"),na("script"),na("slot"),na("style"),na("svg"),na("template"),na("textarea"),na("title"),na("var")];function oa(e){const t=[];return e.forEach(e=>{ia.includes(e.name)?t.push(e.sourceCodeLocation):(e.sourceCodeLocation.startTag&&t.push(e.sourceCodeLocation.startTag),e.sourceCodeLocation.endTag&&t.push(e.sourceCodeLocation.endTag))}),t.sort((e,t)=>e.startOffset-t.startOffset),t}function la(e,t,r){return e.forEach(e=>{e.startOffset>=t&&e.startOffset<r&&(r+=e.endOffset-e.startOffset)}),r}function ca(e,t){return e.forEach(e=>{e.startOffset===t&&(t+=e.endOffset-e.startOffset)}),t}function ua(e,t){let r,n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(0===t.length||!e.sourceCodeLocation)return t;r=e instanceof Nn&&e.isImplicit?e.sourceCodeLocation.startOffset:s>=0?s:e.sourceCodeLocation.startTag.endOffset;let i=[];const a=e.findAll(e=>e.sourceCodeLocation,!0);return a.length>0&&(i=oa(a)),t.forEach(e=>{n=r+e.text.length,i.length>0&&(n=la(i,r,n),r=ca(i,r)),e.sourceCodeRange={startOffset:r,endOffset:n},r=n}),t}var ha=function e(t,r){return(t instanceof Nn||t instanceof Sn)&&(t.sentences=function(e,t){let r=t.splitIntoSentences(e.innerText());return r=ua(e,r),r.map(r=>function(e,t,r){return t.tokens=r(t),t.tokens=ua(e,t.tokens,t.sourceCodeRange.startOffset),t}(e,r,t.splitIntoTokens))}(t,r)),t.childNodes&&(t.childNodes=t.childNodes.map(t=>e(t,r))),t};function da(e){return ia.includes(e.name)&&(e.childNodes=[]),Object(T.isEmpty)(e.childNodes)||e.childNodes.map(da),e}function pa(e,t){let r=ra(Object(Vi.parseFragment)(e,{sourceCodeLocationInfo:!0}));return r=da(r),r=ha(r,t),function e(t,r){if(!function(e,t){return"#text"!==e.name&&t.some(t=>t(e))}(t,r))return t.childNodes&&(t.childNodes=t.childNodes.filter(t=>e(t,r))),t}(r,aa)}const ga=function(e,t){tLine truncated
/* Translators: %1$s expands to the name of the assessment. */
Object(_.__)("An error occurred in the '%1$s' assessment","wordpress-seo"),r.identifier,e))}var s;return n},ga.prototype.getValidResults=function(){return Object(T.filter)(this.results,function(e){return this.isValidResult(e)}.bind(this))},ga.prototype.isValidResult=function(e){return e.hasScore()&&e.hasText()},ga.prototype.calculateOverallScore=function(){const e=this.getValidResults(),t=e.reduce((e,t)=>e+t.getScore(),0);return Math.round(t/(9*e.length)*100)||0},ga.prototype.addAssessment=function(e,t){return t.hasOwnProperty("identifier")||(t.identifier=e),this.getAssessment(t.identifier)&&this.removeAssessment(t.identifier),this._assessments.push(t),!0},ga.prototype.removeAssessment=function(e){const t=Object(T.findIndex)(this._assessments,(function(t){return t.hasOwnProperty("identifier")&&e===t.identifier}));-1!==t&&this._assessments.splice(t,1)},ga.prototype.getAssessment=function(e){return Object(T.find)(this._assessments,(function(t){return t.hasOwnProperty("identifier")&&e===t.identifier}))},ga.prototype.getApplicableAssessments=function(){const e=this.getAvailableAssessments();return Object(T.filter)(e,function(e){return this.isApplicable(e,this.getPaper(),this._researcher)}.bind(this))};var fa=ga,ma={recommendedMaximumLength:60,maximumLength:80};class _a extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={recommendedMaximumLength:120,maximumLength:156,scores:{noMetaDescription:1,tooLong:6,tooShort:6,correctLength:9},urlTitle:Object(Ai.b)("https://yoa.st/34d"),urlCallToAction:Object(Ai.b)("https://yoa.st/34e")};this.identifier="metaDescriptionLength",this._config=Object(T.merge)(t,e)}getMaximumLength(e){return this.getConfig(e).maximumLength}getConfig(e){let t=this._config;return"ja"===e&&(t=Object(T.merge)(t,ma)),t}getResult(e,t){const r=t.getResearch("metaDescriptionLength"),n=new wi,s=t.getConfig("language"),i=this.getConfig(s);return n.setScore(this.calculateScore(r,s)),n.setText(this.translateScore(r,i)),n.getScore()<9&&(n.setHasJumps(!0),n.setEditFieldName(Object(_.__)("meta description","wordpress-seo"))),n.max=i.maximumLength,n.actual=r,n}calculateScore(e,t){const r=this.getConfig(t);return 0===e?r.scores.noMetaDescription:e<=this._config.recommendedMaximumLength?r.scores.tooShort:e>this._config.maximumLength?r.scores.tooLong:r.scores.correctLength}translateScore(e,t){return 0===e?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to a links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sMeta description length%3$s: No meta description has been specified. Search engines will display copy from the page instead. %2$sMake sure to write one%3$s!","wordpress-seo"),t.urlTitle,t.urlCallToAction,"</a>"):e<=t.recommendedMaximumLength?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$d expands to the number of characters in the meta description, %5$d expands to
the total available number of characters in the meta description */
Object(_.__)("%1$sMeta description length%3$s: The meta description is too short (under %4$d characters). Up to %5$d characters are available. %2$sUse the space%3$s!","wordpress-seo"),t.urlTitle,t.urlCallToAction,"</a>",t.recommendedMaximumLength,t.maximumLength):e>t.maximumLength?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$d expands to the total available number of characters in the meta description */
Object(_.__)("%1$sMeta description length%3$s: The meta description is over %4$d characters. To ensure the entire description will be visible, %2$syou should reduce the length%3$s!","wordpress-seo"),t.urlTitle,t.urlCallToAction,"</a>",t.maximumLength):Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sMeta description length%2$s: Well done!","wordpress-seo"),t.urlTitle,"</a>")}}class Ta extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{lowerBoundary:.3,upperBoundary:.75},scores:{noMatches:3,tooFewMatches:3,goodNumberOfMatches:9,tooManyMatches:3},urlTitle:Object(Ai.b)("https://yoa.st/33m"),urlCallToAction:Object(Ai.b)("https://yoa.st/33n")};this.identifier="subheadingsKeyword",this._config=Object(T.merge)(t,e)}getResult(e,t){this._subHeadings=t.getResearch("matchKeywordInSubheadings");const r=new wi;this._minNumberOfSubheadings=Math.ceil(this._subHeadings.count*this._config.parameters.lowerBoundary),this._maxNumberOfSubheadings=Math.floor(this._subHeadings.count*this._config.parameters.upperBoundary);const n=this.calculateResult();return r.setScore(n.score),r.setText(n.resultText),r}hasSubheadings(e){return Zn(e.getText()).length>0}isApplicable(e){return e.hasText()&&e.hasKeyword()&&this.hasSubheadings(e)}hasTooFewMatches(){return this._subHeadings.matches>0&&this._subHeadings.matches<this._minNumberOfSubheadings}hasTooManyMatches(){return this._subHeadings.count>1&&this._subHeadings.matches>this._maxNumberOfSubheadings}isOneOfOne(){return 1===this._subHeadings.count&&1===this._subHeadings.matches}hasGoodNumberOfMatches(){return Ri(this._subHeadings.matches,this._minNumberOfSubheadings,this._maxNumberOfSubheadings)}calculateResult(){return this.hasTooFewMatches()?{score:this._config.scores.tooFewMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in subheading%3$s: %2$sUse more keyphrases or synonyms in your H2 and H3 subheadings%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.hasTooManyMatches()?{score:this._config.scores.tooManyMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in subheading%3$s: More than 75%% of your H2 and H3 subheadings reflect the topic of your copy. That's too much. %2$sDon't over-optimize%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.isOneOfOne()?{score:this._config.scores.goodNumberOfMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag,
%3$d expands to the number of subheadings containing the keyphrase. */
Object(_.__)("%1$sKeyphrase in subheading%2$s: Your H2 or H3 subheading reflects the topic of your copy. Good job!","wordpress-seo"),this._config.urlTitle,"</a>",this._subHeadings.matches)}:this.hasGoodNumberOfMatches()?{score:this._config.scores.goodNumberOfMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag,
%3$d expands to the number of subheadings containing the keyphrase. */
Object(_._n)("%1$sKeyphrase in subheading%2$s: %3$s of your H2 and H3 subheadings reflects the topic of your copy. Good job!","%1$sKeyphrase in subheading%2$s: %3$s of your H2 and H3 subheadings reflect the topic of your copy. Good job!",this._subHeadings.matches,"wordpress-seo"),this._config.urlTitle,"</a>",this._subHeadings.matches)}:{score:this._config.scores.noMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sKeyphrase in subheading%3$s: %2$sUse more keyphrases or synonyms in your H2 and H3 subheadings%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}}class Ea extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{lowerBoundary:.3,upperBoundary:.75},scores:{withAltGoodNumberOfKeywordMatches:9,withAltTooFewKeywordMatches:6,withAltTooManyKeywordMatches:6,withAltNonKeyword:6,withAlt:6,noAlt:6},urlTitle:Object(Ai.b)("https://yoa.st/4f7"),urlCallToAction:Object(Ai.b)("https://yoa.st/4f6")};this.identifier="imageKeyphrase",this._config=Object(T.merge)(t,e)}getResult(e,t){this.imageCount=t.getResearch("imageCount"),this.altProperties=t.getResearch("altTagCount"),this._minNumberOfKeywordMatches=Math.ceil(this.imageCount*this._config.parameters.lowerBoundary),this._maxNumberOfKeywordMatches=Math.floor(this.imageCount*this._config.parameters.upperBoundary);const r=this.calculateResult(),n=new wi;return n.setScore(r.score),n.setText(r.resultText),n}isApplicable(e,t){return this.imageCount=t.getResearch("imageCount"),e.hasText()&&this.imageCount>0}hasTooFewMatches(){return this.imageCount>4&&this.altProperties.withAltKeyword>0&&this.altProperties.withAltKeyword<this._minNumberOfKeywordMatches}hasGoodNumberOfMatches(){return this.imageCount<5&&this.altProperties.withAltKeyword>0||5===this.imageCount&&Ri(this.altProperties.withAltKeyword,2,4)||this.imageCount>4&&Ri(this.altProperties.withAltKeyword,this._minNumberOfKeywordMatches,this._maxNumberOfKeywordMatches)}hasTooManyMatches(){return this.imageCount>4&&this.altProperties.withAltKeyword>this._maxNumberOfKeywordMatches}calculateResult(){return this.altProperties.withAlt>0?{score:this._config.scores.withAlt,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sImage Keyphrase%3$s: Images on this page have alt attributes, but you have not set your keyphrase. %2$sFix that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.altProperties.withAltNonKeyword>0&&0===this.altProperties.withAltKeyword?{score:this._config.scores.withAltNonKeyword,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sImage Keyphrase%3$s: Images on this page do not have alt attributes with at least half of the words from your keyphrase. %2$sFix that%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.hasTooFewMatches()?{score:this._config.scores.withAltTooFewKeywordMatches,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of images containing an alt attribute with the keyword,
* %2$d expands to the total number of images, %3$s and %4$s expand to links on yoast.com,
* %5$s expands to the anchor end tag. */
Object(_._n)("%3$sImage Keyphrase%5$s: Out of %2$d images on this page, only %1$d has an alt attribute that reflects the topic of your text. %4$sAdd your keyphrase or synonyms to the alt tags of more relevant images%5$s!","%3$sImage Keyphrase%5$s: Out of %2$d images on this page, only %1$d have alt attributes that reflect the topic of your text. %4$sAdd your keyphrase or synonyms to the alt tags of more relevant images%5$s!",this.altProperties.withAltKeyword,"wordpress-seo"),this.altProperties.withAltKeyword,this.imageCount,this._config.urlTitle,this._config.urlCallToAction,"</a>")}:this.hasGoodNumberOfMatches()?{score:this._config.scores.withAltGoodNumberOfKeywordMatches,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com,
* %2$s expands to the anchor end tag. */
Object(_.__)("%1$sImage Keyphrase%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}:this.hasTooManyMatches()?{score:this._config.scores.withAltTooManyKeywordMatches,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of images containing an alt attribute with the keyword,
* %2$d expands to the total number of images, %3$s and %4$s expand to a link on yoast.com,
* %5$s expands to the anchor end tag. */
Object(_.__)("%3$sImage Keyphrase%5$s: Out of %2$d images on this page, %1$d have alt attributes with words from your keyphrase or synonyms. That's a bit much. %4$sOnly include the keyphrase or its synonyms when it really fits the image%5$s.","wordpress-seo"),this.altProperties.withAltKeyword,this.imageCount,this._config.urlTitle,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.noAlt,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sImage Keyphrase%3$s: Images on this page do not have alt attributes that reflect the topic of your text. %2$sAdd your keyphrase or synonyms to the alt tags of relevant images%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}}class va extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super();const r={scores:{bad:3,good:9},recommendedCount:1,urlTitle:Object(Ai.b)("https://yoa.st/4f4"),urlCallToAction:Object(Ai.b)("https://yoa.st/4f5")};this.identifier="images",this._config=Object(T.merge)(r,e),this._countVideos=t}getResult(e,t){this.imageCount=t.getResearch("imageCount"),this.videoCount=t.getResearch("videoCount");const r=this.calculateResult(),n=new wi;return n.setScore(r.score),n.setText(r.resultText),n}isApplicable(e){return e.hasText()}calculateResult(){const e=this._countVideos?this.imageCount+this.videoCount:this.imageCount;if(0===e)return this._countVideos?{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sImages and videos%3$s: No images or videos appear on this page. %2$sAdd some%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}:{score:this._config.scores.bad,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sImages%3$s: No images appear on this page. %2$sAdd some%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")};if(this._config.scores.okay){if(Ri(e,1,3)&&!this._countVideos)return{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %3$s and %4$s expand to links on yoast.com, %5$s expands to the anchor end tag,
* %1$d expands to the number of images found in the text,
* %2$d expands to the recommended number of images in the text, */
Object(_._n)("%3$sImages%5$s: Only %1$d image appears on this page. We recommend at least %2$d. %4$sAdd more relevant images%5$s!","%3$sImages%5$s: Only %1$d images appear on this page. We recommend at least %2$d. %4$sAdd more relevant images%5$s!",e,"wordpress-seo"),e,this._config.recommendedCount,this._config.urlTitle,this._config.urlCallToAction,"</a>")};if(Ri(e,1,3)&&this._countVideos)return{score:this._config.scores.okay,resultText:Object(_.sprintf)(
/* Translators: %3$s and %4$s expand to links on yoast.com, %5$s expands to the anchor end tag,
* %1$d expands to the number of images found in the text,
* %2$d expands to the recommended number of images in the text, */
Object(_._n)("%3$sImages and videos%5$s: Only %1$d image or video appears on this page. We recommend at least %2$d. %4$sAdd more relevant images or videos%5$s!","%3$sImages and videos%5$s: Only %1$d images or videos appear on this page. We recommend at least %2$d. %4$sAdd more relevant images or videos%5$s!",e,"wordpress-seo"),e,this._config.recommendedCount,this._config.urlTitle,this._config.urlCallToAction,"</a>")}}return this._countVideos?{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com,
* %2$s expands to the anchor end tag. */
Object(_.__)("%1$sImages and videos%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:this._config.scores.good,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com,
* %2$s expands to the anchor end tag. */
Object(_.__)("%1$sImages%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>")}}}class ba extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={recommendedMinimum:300,slightlyBelowMinimum:250,belowMinimum:200,veryFarBelowMinimum:100,scores:{recommendedMinimum:9,slightlyBelowMinimum:6,belowMinimum:3,farBelowMinimum:-10,veryFarBelowMinimum:-20},countTextIn:{singular:Object(_.__)("word","wordpress-seo"),plural:Object(_.__)("words","wordpress-seo")},urlTitle:Object(Ai.b)("https://yoa.st/34n"),urlCallToAction:Object(Ai.b)("https://yoa.st/34o"),cornerstoneContent:!1,customContentType:""};this.identifier="textLength",this._config=Object(T.merge)(t,e)}getResult(e,t){const r=t.getResearch("wordCountInText");t.getConfig("textLength")&&(this._config=this.getLanguageSpecificConfig(t)),t.getConfig("countCharacters")&&(this._config.countTextIn.singular=Object(_.__)("character","wordpress-seo"),this._config.countTextIn.plural=Object(_.__)("characters","wordpress-seo"));const n=this.calculateResult(r.count),s=new wi;return s.setScore(n.score),s.setText(n.resultText),s}getLanguageSpecificConfig(e){const t=this._config,r=e.getConfig("textLength");return r.hasOwnProperty(t.customContentType)?Object(T.merge)(t,r[t.customContentType]):!0===t.cornerstoneContent&&""===t.customContentType&&r.hasOwnProperty("defaultCornerstone")?Object(T.merge)(t,r.defaultCornerstone):Object(T.merge)(t,r.defaultAnalysis)}calculateResult(e){if(e>=this._config.recommendedMinimum)return{score:this._config.scores.recommendedMinimum,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of words / characters in the text,
%2$s expands to a link on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the word 'words' or 'characters'. */
Object(_.__)("%2$sText length%3$s: The text contains %1$d %4$s. Good job!","wordpress-seo"),e,this._config.urlTitle,"</a>",this._config.countTextIn.plural)};if(Object(T.inRange)(e,0,this._config.belowMinimum)){let t=this._config.scores.farBelowMinimum;return Object(T.inRange)(e,0,this._config.veryFarBelowMinimum)&&(t=this._config.scores.veryFarBelowMinimum),{score:t,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of words / characters in the text,
%2$s expands to a link on yoast.com, %3$s expands to a link on yoast.com,
%4$s expands to the anchor end tag, %5$d expands to the recommended minimum of words / characters,
%6$s expands to the word 'word' or 'character', %7$s expands to the word 'words' or 'characters'. */
Object(_._n)("%2$sText length%4$s: The text contains %1$d %6$s. This is far below the recommended minimum of %5$d %7$s. %3$sAdd more content%4$s.","%2$sText length%4$s: The text contains %1$d %7$s. This is far below the recommended minimum of %5$d %7$s. %3$sAdd more content%4$s.",e,"wordpress-seo"),e,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.recommendedMinimum,this._config.countTextIn.singular,this._config.countTextIn.plural)}}return Object(T.inRange)(e,this._config.slightlyBelowMinimum,this._config.recommendedMinimum)?!1===this._config.cornerstoneContent?{score:this._config.scores.slightlyBelowMinimum,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of words / characters in the text,
%2$s expands to a link on yoast.com, %3$s expands to a link on yoast.com,
%4$s expands to the anchor end tag, %5$d expands to the recommended minimum of words / characters,
%6$s expands to the word 'words' or 'characters'. */
Object(_.__)("%2$sText length%4$s: The text contains %1$d %6$s. This is slightly below the recommended minimum of %5$d %6$s. %3$sAdd a bit more copy%4$s.","wordpress-seo"),e,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.recommendedMinimum,this._config.countTextIn.plural)}:{score:this._config.scores.slightlyBelowMinimum,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of words / characters in the text,
%2$s expands to a link on yoast.com, %3$s expands to a link on yoast.com,
%4$s expands to the anchor end tag, %5$d expands to the recommended minimum of words / characters,
%6$s expands to the word 'words' or 'characters'. */
Object(_.__)("%2$sText length%4$s: The text contains %1$d %6$s. This is below the recommended minimum of %5$d %6$s. %3$sAdd more content%4$s.","wordpress-seo"),e,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.recommendedMinimum,this._config.countTextIn.plural)}:{score:this._config.scores.belowMinimum,resultText:Object(_.sprintf)(
/* Translators: %1$d expands to the number of words / characters in the text,
%2$s expands to a link on yoast.com, %3$s expands to a link on yoast.com,
%4$s expands to the anchor end tag, %5$d expands to the recommended minimum of words / characters,
%6$s expands to the word 'words' or 'characters'. */
Object(_.__)("%2$sText length%4$s: The text contains %1$d %6$s. This is below the recommended minimum of %5$d %6$s. %3$sAdd more content%4$s.","wordpress-seo"),e,this._config.urlTitle,this._config.urlCallToAction,"</a>",this._config.recommendedMinimum,this._config.countTextIn.plural)}}}class ya extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={scores:{noLinks:3,allNofollowed:7,someNoFollowed:8,allFollowed:9},urlTitle:Object(Ai.b)("https://yoa.st/34f"),urlCallToAction:Object(Ai.b)("https://yoa.st/34g")};this.identifier="externalLinks",this._config=Object(T.merge)(t,e)}getResult(e,t){const r=t.getResearch("getLinkStatistics"),n=new wi;return Object(T.isEmpty)(r)||(n.setScore(this.calculateScore(r)),n.setText(this.translateScore(r))),n}isApplicable(e){return e.hasText()}calculateScore(e){return 0===e.externalTotal?this._config.scores.noLinks:e.externalNofollow===e.externalTotal?this._config.scores.allNofollowed:e.externalDofollow<e.externalTotal?this._config.scores.someNoFollowed:e.externalDofollow===e.externalTotal?this._config.scores.allFollowed:null}translateScore(e){return 0===e.externalTotal?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sOutbound links%3$s: No outbound links appear in this page. %2$sAdd some%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>"):e.externalNofollow===e.externalTotal?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sOutbound links%3$s: All outbound links on this page are nofollowed. %2$sAdd some normal links%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>"):e.externalDofollow===e.externalTotal?Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sOutbound links%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>"):e.externalDofollow<e.externalTotal?Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sOutbound links%2$s: There are both nofollowed and normal outbound links on this page. Good job!","wordpress-seo"),this._config.urlTitle,"</a>"):""}}class Aa extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super();const r={minLength:400,maxLength:600,scores:{noTitle:1,widthTooShort:6,widthTooLong:3,widthCorrect:9},urlTitle:Object(Ai.b)("https://yoa.st/34h"),urlCallToAction:Object(Ai.b)("https://yoa.st/34i")};this._allowShortTitle=t,this.identifier="titleWidth",this._config=Object(T.merge)(r,e)}getMaximumLength(){return 600}getResult(e,t){const r=t.getResearch("pageTitleWidth"),n=new wi;return n.setScore(this.calculateScore(r)),n.setText(this.translateScore(r)),n.getScore()<9&&(n.setHasJumps(!0),n.setEditFieldName(Object(_.__)("SEO title","wordpress-seo"))),n.max=this._config.maxLength,n.actual=r,n}calculateScore(e){return ki(e,1,400)?this._config.scores.widthTooShort:ki(e,this._config.minLength,this._config.maxLength)?this._config.scores.widthCorrect:e>this._config.maxLength?this._config.scores.widthTooLong:this._config.scores.noTitle}translateScore(e){return ki(e,1,400)?this._allowShortTitle?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sSEO title width%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>"):Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sSEO title width%3$s: The SEO title is too short. %2$sUse the space to add keyphrase variations or create compelling call-to-action copy%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>"):ki(e,this._config.minLength,this._config.maxLength)?Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sSEO title width%2$s: Good job!","wordpress-seo"),this._config.urlTitle,"</a>"):e>this._config.maxLength?Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sSEO title width%3$s: The SEO title is wider than the viewable limit. %2$sTry to make it shorter%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>"):Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sSEO title width%3$s: %2$sPlease create an SEO title%3$s.","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}var Oa=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={scores:{onlyFunctionWords:0},urlTitle:Object(Ai.b)("https://yoa.st/functionwordskeyphrase-1"),urlCallToAction:Object(Ai.b)("https://yoa.st/functionwordskeyphrase-2")};this.identifier="functionWordsInKeyphrase",this._config=Object(T.merge)(t,e)}getResult(e,t){this._functionWordsInKeyphrase=t.getResearch("functionWordsInKeyphrase"),this._keyword=Object(T.escape)(e.getKeyword());const r=new wi;return this._functionWordsInKeyphrase&&(r.setScore(this._config.scores.onlyFunctionWords),r.setText(Object(_.sprintf)(
/**
* Translators:
* %1$s and %2$s expand to links on yoast.com,
* %3$s expands to the anchor end tag,
* %4$s expands to the focus keyphrase of the article.
*/
Object(_.__)('%1$sFunction words in keyphrase%3$s: Your keyphrase "%4$s" contains function words only. %2$sLearn more about what makes a good keyphrase.%3$s',"wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>",this._keyword)),r.setHasJumps(!0),r.setEditFieldName(Object(_.__)("keyphrase","wordpress-seo"))),r}isApplicable(e,t){return e.hasKeyword()&&t.hasResearch("functionWordsInKeyphrase")}},Ca=function(e){return"<yoastmark class='yoast-text-mark'>"+e+"</yoastmark>"},wa=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={scores:{textContainsSuperfluousH1:1},urlTitle:Object(Ai.b)("https://yoa.st/3a6"),urlCallToAction:Object(Ai.b)("https://yoa.st/3a7")};this.identifier="singleH1",this._config=Object(T.merge)(t,e)}getResult(e,t){this._h1s=t.getResearch("h1s");const r=new wi,n=this.calculateResult();return Object(T.isUndefined)(n)||(r.setScore(n.score),r.setText(n.resultText),r.setHasMarks(!0)),r}calculateResult(){if(!(this._h1s.length<=1))return{score:this._config.scores.textContainsSuperfluousH1,resultText:Object(_.sprintf)(
/* Translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag */
Object(_.__)("%1$sSingle title%3$s: H1s should only be used as your main title. Find all H1s in your text that aren't your main title and %2$schange them to a lower heading level%3$s!","wordpress-seo"),this._config.urlTitle,this._config.urlCallToAction,"</a>")}}getMarks(){const e=this._h1s;return Object(T.map)(e,(function(e){return new gs({original:"<h1>"+e.content+"</h1>",marked:"<h1>"+Ca(e.content)+"</h1>"})}))}isApplicable(e){return e.hasText()}};const Sa=function(e,t){fa.call(this,e,t),this.type="SEOAssessor",this._assessments=[new Si,new Ii,new Li,new Mi,new _a,new Ta,new Ui,new Ea,new va,new ba,new ya,new $i,new Hi,new Aa({scores:{widthTooShort:9}},!0),new qi,new Oa,new wa]};Object(v.inherits)(Sa,fa);var ka=Sa;class Na extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super();const r={urlTitle:Object(Ai.b)("https://yoa.st/35d"),urlCallToAction:Object(Ai.b)("https://yoa.st/35e"),countTextIn:Object(_.__)("words","wordpress-seo"),parameters:{recommendedLength:150,maximumRecommendedLength:200}};this.identifier="textParagraphTooLong",this._config=Object(T.merge)(r,e),this._isProduct=t}getTooLongParagraphs(e,t){const r=t.parameters.recommendedLength;return Object(T.filter)(e,(function(e){return e.countLength>r}))}getConfig(e){const t=this._config,r=e.getConfig("paragraphLength");return r&&(t.parameters=this._isProduct?r.productPageParams:r.defaultPageParams),t}calculateResult(e,t,r){let n;if(0===e.length)return{};const s=e[0].countLength;return s<=r.parameters.recommendedLength&&(n=9),ki(s,r.parameters.recommendedLength,r.parameters.maximumRecommendedLength)&&(n=6),s>r.parameters.maximumRecommendedLength&&(n=3),n>=7?{score:n,hasMarks:!1,text:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sParagraph length%2$s: None of the paragraphs are too long. Great job!","wordpress-seo"),r.urlTitle,"</a>")}:{score:n,hasMarks:!0,text:Object(_.sprintf)(
/* Translators: %1$s and %5$s expand to a link on yoast.com, %2$s expands to the anchor end tag,
%3$d expands to the number of paragraphs over the recommended word / character limit, %4$d expands to the word / character limit,
%6$s expands to the word 'words' or 'characters'. */
Object(_._n)("%1$sParagraph length%2$s: %3$d of the paragraphs contains more than the recommended maximum of %4$d %6$s. %5$sShorten your paragraphs%2$s!","%1$sParagraph length%2$s: %3$d of the paragraphs contain more than the recommended maximum of %4$d %6$s. %5$sShorten your paragraphs%2$s!",t.length,"wordpress-seo"),r.urlTitle,"</a>",t.length,r.parameters.recommendedLength,r.urlCallToAction,this._config.countTextIn)}}sortParagraphs(e){return e.sort((function(e,t){return t.countLength-e.countLength}))}getMarks(e,t){const r=t.getResearch("getParagraphLength"),n=this.getTooLongParagraphs(r,this.getConfig(t));return Object(T.map)(n,(function(e){const t=ft(e.text),r=Ca(t);return new gs({original:t,marked:r})}))}getResult(e,t){let r=t.getResearch("getParagraphLength");t.getConfig("countCharacters")&&(this._config.countTextIn=Object(_.__)("characters","wordpress-seo")),r=this.sortParagraphs(r);const n=this.getConfig(t),s=this.getTooLongParagraphs(r,n),i=this.calculateResult(r,s,n),a=new wi;return a.setScore(i.score),a.setText(i.text),a.setHasMarks(i.hasMarks),a}isApplicable(e){return this.hasEnoughContentForAssessment(e)}}var Ra=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super();const n={recommendedLength:20,slightlyTooMany:25,farTooMany:30,urlTitle:Object(Ai.b)("https://yoa.st/34v"),urlCallToAction:Object(Ai.b)("https://yoa.st/34w"),countTextIn:Object(_.__)("words","wordpress-seo")};this._config=Object(T.merge)(n,e),this._isCornerstone=t,this._isProduct=r,this.identifier="textSentenceLength"}getResult(e,t){const r=t.getResearch("countSentencesFromText");t.getConfig("sentenceLength")&&(this._config=this.getLanguageSpecificConfig(t)),t.getConfig("countCharacters")&&(this._config.countTextIn=Object(_.__)("characters","wordpress-seo"));const n=this.calculatePercentage(r),s=this.calculateScore(n),i=new wi;return i.setScore(s),i.setText(this.translateScore(s,n)),i.setHasMarks(n>0),i}isApplicable(e){return this.hasEnoughContentForAssessment(e)}getMarks(e,t){const r=t.getResearch("countSentencesFromText");t.getConfig("sentenceLength")&&(this._config=this.getLanguageSpecificConfig(t));const n=this.getTooLongSentences(r);return Object(T.map)(n,(function(e){const t=gt(e.sentence);return new gs({original:t,marked:Ca(t)})}))}getLanguageSpecificConfig(e){const t=this._config,r=e.getConfig("sentenceLength");return r.hasOwnProperty("recommendedLength")&&(t.recommendedLength=r.recommendedLength),!0===this._isCornerstone&&!1===this._isProduct&&r.hasOwnProperty("cornerstonePercentages")?Object(T.merge)(t,r.cornerstonePercentages):!1===this._isCornerstone&&!1===this._isProduct&&r.hasOwnProperty("percentages")?Object(T.merge)(t,r.percentages):t}translateScore(e,t){return e>=7?Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sSentence length%2$s: Great!","wordpress-seo"),this._config.urlTitle,"</a>"):Object(_.sprintf)(
/* Translators: %1$s and %6$s expand to a link on yoast.com, %2$s expands to the anchor end tag,
%3$d expands to percentage of sentences, %4$s expands to the recommended maximum sentence length,
%5$s expands to the recommended maximum percentage, %7$s expands to the word 'words' or 'characters'. */
Object(_.__)("%1$sSentence length%2$s: %3$s of the sentences contain more than %4$s %7$s, which is more than the recommended maximum of %5$s. %6$sTry to shorten the sentences%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",t+"%",this._config.recommendedLength,this._config.slightlyTooMany+"%",this._config.urlCallToAction,this._config.countTextIn)}calculatePercentage(e){let t=0;if(0!==e.length){const r=this.countTooLongSentences(e);t=ji(r/e.length*100)}return t}calculateScore(e){let t;return e<=this._config.slightlyTooMany&&(t=9),ki(e,this._config.slightlyTooMany,this._config.farTooMany)&&(t=6),e>this._config.farTooMany&&(t=3),t}getTooLongSentences(e){return function(e,t){return Object(T.filter)(e,(function(e){return e.sentenceLength>t}))}(e,this._config.recommendedLength)}countTooLongSentences(e){return this.getTooLongSentences(e).length}},Ia=class extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={parameters:{recommendedMaximumLength:300,slightlyTooMany:300,farTooMany:350},countTextIn:Object(_.__)("words","wordpress-seo"),urlTitle:Object(Ai.b)("https://yoa.st/34x"),urlCallToAction:Object(Ai.b)("https://yoa.st/34y"),scores:{goodShortTextNoSubheadings:9,goodSubheadings:9,okSubheadings:6,badSubheadings:3,badLongTextNoSubheadings:2},applicableIfTextLongerThan:300,shouldNotAppearInShortText:!1,cornerstoneContent:!1};this.identifier="subheadingsTooLong",this._config=Object(T.merge)(t,e)}checkTextBeforeFirstSubheadingLength(e){let t={isLong:!1,isVeryLong:!1};if(e.length>0&&""===e[0].subheading&&""!==e[0].text){const r=e[0].countLength;t={isLong:ki(r,this._config.parameters.slightlyTooMany,this._config.parameters.farTooMany),isVeryLong:r>this._config.parameters.farTooMany}}return t}getTextLength(e,t){const r=t.getHelper("customCountLength");let n=e.getText();return n=kr(n),r?r(n):It(n).length}getResult(e,t){this._subheadingTextsLength=t.getResearch("getSubheadingTextLengths"),t.getConfig("subheadingsTooLong")&&(this._config=this.getLanguageSpecificConfig(t)),t.getConfig("countCharacters")&&(this._config.countTextIn=Object(_.__)("characters","wordpress-seo"));const r=this.checkTextBeforeFirstSubheadingLength(this._subheadingTextsLength);this._subheadingTextsLength=this._subheadingTextsLength.sort((function(e,t){return t.countLength-e.countLength}));const n=new wi;n.setIdentifier(this.identifier),this._hasSubheadings=this.hasSubheadings(e),this._tooLongTextsNumber=this.getTooLongSubheadingTexts().length,this._textLength=this.getTextLength(e,t);const s=this.calculateResult(r);return s.resultTextPlural=s.resultTextPlural||"",n.setScore(s.score),n.setText(s.resultText),n.setHasMarks(s.hasMarks),n}getLanguageSpecificConfig(e){const t=this._config,r=e.getConfig("subheadingsTooLong");return!0===t.cornerstoneContent&&r.hasOwnProperty("cornerstoneParameters")?Object(T.merge)(t,r.cornerstoneParameters):Object(T.merge)(t,r.defaultParameters)}isApplicable(e,t){return this._config.shouldNotAppearInShortText?(t.getConfig("subheadingsTooLong")&&(this._config=this.getLanguageSpecificConfig(t)),this.getTextLength(e,t)>this._config.applicableIfTextLongerThan):this.hasEnoughContentForAssessment(e)}hasSubheadings(e){return Jn(e.getText()).length>0}getMarks(){const e=Object(T.map)(this.getTooLongSubheadingTexts(),(function(e){let{subheading:t}=e;t=mt(t);const r=Ca(t);return new gs({original:t,marked:r,fieldsToMark:["heading"]})}));return Object(T.filter)(e,e=>""!==e.getOriginal())}getTooLongSubheadingTexts(){return Object(T.filter)(this._subheadingTextsLength,function(e){return e.countLength>this._config.parameters.recommendedMaximumLength}.bind(this))}calculateResult(e){if(this._textLength>this._config.applicableIfTextLongerThan){if(this._hasSubheadings){if(e.isLong&&this._tooLongTextsNumber<2)return{score:this._config.scores.okSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(
/* Translators: %1$s and %3$s expand to a link to https://yoa.st/headings, %2$s expands to the link closing tag.
* %4$s expands to the recommended number of words following a subheading,
* %5$s expands to the word 'words' or 'characters'.
*/
Object(_.__)("%1$sSubheading distribution%2$s: The beginning of your text is longer than %4$s %5$s and is not separated by any subheadings. %3$sAdd subheadings to improve readability.%2$s","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction,this._config.parameters.recommendedMaximumLength,this._config.countTextIn)};if(e.isVeryLong&&this._tooLongTextsNumber<2)return{score:this._config.scores.badSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(
/* Translators: %1$s and %3$s expand to a link to https://yoa.st/headings, %2$s expands to the link closing tag.
* %4$s expands to the recommended number of words following a subheading,
* %5$s expands to the word 'words' or 'characters'.
*/
Object(_.__)("%1$sSubheading distribution%2$s: The beginning of your text is longer than %4$s %5$s and is not separated by any subheadings. %3$sAdd subheadings to improve readability.%2$s","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction,this._config.parameters.recommendedMaximumLength,this._config.countTextIn)};const t=this._subheadingTextsLength[0].countLength;return t<=this._config.parameters.slightlyTooMany?{score:this._config.scores.goodSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(// Translators: %1$s expands to a link to https://yoa.st/headings, %2$s expands to the link closing tag.
Object(_.__)("%1$sSubheading distribution%2$s: Great job!","wordpress-seo"),this._config.urlTitle,"</a>")}:ki(t,this._config.parameters.slightlyTooMany,this._config.parameters.farTooMany)?{score:this._config.scores.okSubheadings,hasMarks:!0,resultText:Object(_.sprintf)(
/*
* Translators: %1$s and %5$s expand to a link on yoast.com, %3$d to the number of text sections
* not separated by subheadings, %4$d expands to the recommended number of words following a
* subheading, %6$s expands to the word 'words' or 'characters', %2$s expands to the link closing tag.
*/
Object(_._n)("%1$sSubheading distribution%2$s: %3$d section of your text is longer than %4$d %6$s and is not separated by any subheadings. %5$sAdd subheadings to improve readability%2$s.","%1$sSubheading distribution%2$s: %3$d sections of your text are longer than %4$d %6$s and are not separated by any subheadings. %5$sAdd subheadings to improve readability%2$s.",this._tooLongTextsNumber,"wordpress-seo"),this._config.urlTitle,"</a>",this._tooLongTextsNumber,this._config.parameters.recommendedMaximumLength,this._config.urlCallToAction,this._config.countTextIn)}:{score:this._config.scores.badSubheadings,hasMarks:!0,resultText:Object(_.sprintf)(
/* Translators: %1$s and %5$s expand to a link on yoast.com, %3$d to the number of text sections
not separated by subheadings, %4$d expands to the recommended number of words or characters following a
subheading, %6$s expands to the word 'words' or 'characters', %2$s expands to the link closing tag. */
Object(_._n)("%1$sSubheading distribution%2$s: %3$d section of your text is longer than %4$d %6$s and is not separated by any subheadings. %5$sAdd subheadings to improve readability%2$s.","%1$sSubheading distribution%2$s: %3$d sections of your text are longer than %4$d %6$s and are not separated by any subheadings. %5$sAdd subheadings to improve readability%2$s.",this._tooLongTextsNumber,"wordpress-seo"),this._config.urlTitle,"</a>",this._tooLongTextsNumber,this._config.parameters.recommendedMaximumLength,this._config.urlCallToAction,this._config.countTextIn)}}return{score:this._config.scores.badLongTextNoSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(
/* Translators: %1$s and %3$s expand to a link to https://yoa.st/headings, %2$s expands to the link closing tag. */
Object(_.__)("%1$sSubheading distribution%2$s: You are not using any subheadings, although your text is rather long. %3$sTry and add some subheadings%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction)}}return this._hasSubheadings?{score:this._config.scores.goodSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link to https://yoa.st/headings, %2$s expands to the link closing tag. */
Object(_.__)("%1$sSubheading distribution%2$s: Great job!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:this._config.scores.goodShortTextNoSubheadings,hasMarks:!1,resultText:Object(_.sprintf)(
/* Translators: %1$s expands to a link to https://yoa.st/headings, %2$s expands to the link closing tag. */
Object(_.__)("%1$sSubheading distribution%2$s: You are not using any subheadings, but your text is short enough and probably doesn't need them.","wordpress-seo"),this._config.urlTitle,"</a>")}}};class xa extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={urlTitle:Object(Ai.b)("https://yoa.st/34z"),urlCallToAction:Object(Ai.b)("https://yoa.st/35a"),applicableIfTextLongerThan:200};this.identifier="textTransitionWords",this._config=Object(T.merge)(t,e)}calculateTransitionWordPercentage(e){return 0===e.transitionWordSentences||0===e.totalSentences?0:ji(e.transitionWordSentences/e.totalSentences*100)}calculateScoreFromPercentage(e){return e<20?3:Ni(e,20,30)?6:9}calculateTransitionWordResult(e){const t=this.calculateTransitionWordPercentage(e),r=this.calculateScoreFromPercentage(t),n=t>0;return r<7&&0===t?{score:ji(r),hasMarks:n,text:Object(_.sprintf)(
/* Translators: %1$s and %3$s expand to a link to yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sTransition words%2$s: None of the sentences contain transition words. %3$sUse some%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction)}:r<7?{score:ji(r),hasMarks:n,text:Object(_.sprintf)(
/* Translators: %1$s and %4$s expand to a link to yoast.com, %2$s expands to the anchor end tag,
%3$s expands to the percentage of sentences containing transition words */
Object(_.__)("%1$sTransition words%2$s: Only %3$s of the sentences contain transition words, which is not enough. %4$sUse more of them%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",t+"%",this._config.urlCallToAction)}:{score:ji(r),hasMarks:n,text:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
Object(_.__)("%1$sTransition words%2$s: Well done!","wordpress-seo"),this._config.urlTitle,"</a>")}}getResult(e,t){const r=t.getResearch("findTransitionWords"),n=this.calculateTransitionWordResult(r),s=new wi;return s.setScore(n.score),s.setText(n.text),s.setHasMarks(n.hasMarks),s}getMarks(e,t){const r=t.getResearch("findTransitionWords");return Object(T.map)(r.sentenceResults,(function(e){let t=e.sentence;return t=gt(t),new gs({original:t,marked:Ca(t)})}))}isApplicable(e,t){const r=t.getHelper("customCountLength"),n=t.getConfig("assessmentApplicability").transitionWords;n&&(this._config.applicableIfTextLongerThan=n);let s=e.getText();return s=kr(s),(r?r(s):It(s).length)>=this._config.applicableIfTextLongerThan&&t.hasResearch("findTransitionWords")}}class Da extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={urlTitle:Object(Ai.b)("https://yoa.st/34t"),urlCallToAction:Object(Ai.b)("https://yoa.st/34u")};this.identifier="passiveVoice",this._config=Object(T.merge)(t,e)}calculatePassiveVoiceResult(e){let t,r=0;0!==e.total&&(r=ji(e.passives.length/e.total*100));const n=r>0;return r<=10&&(t=9),ki(r,10,15)&&(t=6),r>15&&(t=3),t>=7?{score:t,hasMarks:n,text:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
Object(_.__)("%1$sPassive voice%2$s: You're using enough active voice. That's great!","wordpress-seo"),this._config.urlTitle,"</a>")}:{score:t,hasMarks:n,text:Object(_.sprintf)(
/* Translators: %1$s and %5$s expand to a link on yoast.com, %2$s expands to the anchor end tag,
%3$s expands to the percentage of sentences in passive voice, %4$s expands to the recommended value. */
Object(_.__)("%1$sPassive voice%2$s: %3$s of the sentences contain passive voice, which is more than the recommended maximum of %4$s. %5$sTry to use their active counterparts%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",r+"%","10%",this._config.urlCallToAction)}}getMarks(e,t){const r=t.getResearch("getPassiveVoiceResult");return Object(T.map)(r.passives,(function(e){e=gt(e);const t=Ca(e);return new gs({original:e,marked:t})}))}getResult(e,t){const r=t.getResearch("getPassiveVoiceResult"),n=this.calculatePassiveVoiceResult(r),s=new wi;return s.setScore(n.score),s.setText(n.text),s.setHasMarks(n.hasMarks),s}isApplicable(e,t){return this.hasEnoughContentForAssessment(e)&&t.hasResearch("getPassiveVoiceResult")}}class La extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={urlTitle:Object(Ai.b)("https://yoa.st/35f"),urlCallToAction:Object(Ai.b)("https://yoa.st/35g")};this.identifier="sentenceBeginnings",this._config=Object(T.merge)(t,e)}groupSentenceBeginnings(e){const t=Object(T.partition)(e,(function(e){return e.count>2}));if(0===t[0].length)return{total:0};const r=Object(T.sortBy)(t[0],(function(e){return e.count}));return{total:t[0].length,lowestCount:r[0].count}}calculateSentenceBeginningsResult(e){return e.total>0?{score:3,hasMarks:!0,text:Object(_.sprintf)(
/* Translators: %1$s and %5$s expand to a link on yoast.com, %2$s expands to the anchor end tag,
%3$d expands to the number of consecutive sentences starting with the same word,
%4$d expands to the number of instances where 3 or more consecutive sentences start with the same word. */
Object(_._n)("%1$sConsecutive sentences%2$s: The text contains %3$d consecutive sentences starting with the same word. %5$sTry to mix things up%2$s!","%1$sConsecutive sentences%2$s: The text contains %4$d instances where %3$d or more consecutive sentences start with the same word. %5$sTry to mix things up%2$s!",e.total,"wordpress-seo"),this._config.urlTitle,"</a>",e.lowestCount,e.total,this._config.urlCallToAction)}:{score:9,hasMarks:!1,text:Object(_.sprintf)(
/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag */
Object(_.__)("%1$sConsecutive sentences%2$s: There is enough variety in your sentences. That's great!","wordpress-seo"),this._config.urlTitle,"</a>")}}getMarks(e,t){let r=t.getResearch("getSentenceBeginnings");r=Object(T.filter)(r,(function(e){return e.count>2}));const n=Object(T.map)(r,(function(e){return e.sentences}));return Object(T.map)(Object(T.flatten)(n),(function(e){e=gt(e);const t=Ca(e);return new gs({original:e,marked:t})}))}getResult(e,t){const r=t.getResearch("getSentenceBeginnings"),n=this.groupSentenceBeginnings(r),s=this.calculateSentenceBeginningsResult(n),i=new wi;return i.setScore(s.score),i.setText(s.text),i.setHasMarks(s.hasMarks),i}isApplicable(e,t){return this.hasEnoughContentForAssessment(e)&&t.hasResearch("getSentenceBeginnings")}}class Ma extends yi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const t={urlTitle:Object(Ai.b)("https://yoa.st/35h"),urlCallToAction:Object(Ai.b)("https://yoa.st/35i")};this.identifier="textPresence",this._config=Object(T.merge)(t,e)}getResult(e){if(!this.hasEnoughContentForAssessment(e)){const e=new wi;return e.setText(Object(_.sprintf)(
/* Translators: %1$s and %3$s expand to links to articles on Yoast.com,
%2$s expands to the anchor end tag*/
Object(_.__)("%1$sNot enough content%2$s: %3$sPlease add some content to enable a good analysis%2$s.","wordpress-seo"),this._config.urlTitle,"</a>",this._config.urlCallToAction)),e.setScore(3),e}return new wi}}var Pa=function(e){return-1===e?"error":0===e?"feedback":e<=4?"bad":e>4&&e<=7?"ok":e>7?"good":""};const Fa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fa.call(this,e,t),this.type="contentAssessor",this._assessments=[new Ia,new Na,new Ra,new xa,new Da,new Ma,new La]};r(18).inherits(Fa,fa),Fa.prototype.calculatePenaltyPointsFullSupport=function(e){switch(e){case"bad":return 3;case"ok":return 2;default:case"good":return 0}},Fa.prototype.calculatePenaltyPointsPartialSupport=function(e){switch(e){case"bad":return 4;case"ok":return 2;default:case"good":return 0}},Fa.prototype._allAssessmentsSupported=function(){const e=this._assessments.length;return this.getApplicableAssessments().length===e},Fa.prototype.calculatePenaltyPoints=function(){const e=this.getValidResults(),t=Object(T.map)(e,function(e){const t=Pa(e.getScore());return this._allAssessmentsSupported()?this.calculatePenaltyPointsFullSupport(t):this.calculatePenaltyPointsPartialSupport(t)}.bind(this));return Object(T.sum)(t)},Fa.prototype._ratePenaltyPoints=function(e){if(1===this.getValidResults().length)return 30;if(this._allAssessmentsSupported()){if(e>6)return 30;if(e>4)return 60}else{if(e>4)return 30;if(e>2)return 60}return 90},Fa.prototype.calculateOverallScore=function(){if(0===this.getValidResults().length)return 30;const e=this.calculatePenaltyPoints();return this._ratePenaltyPoints(e)};var ja=Fa;const Ba=function(e,t){fa.call(this,e,t),this.type="taxonomyAssessor",this._assessments=[new Si,new Ii,new Li,new Mi,new _a,new ba({recommendedMinimum:250,slightlyBelowMinimum:200,belowMinimum:100,veryFarBelowMinimum:50,urlTitle:Object(Ai.b)("https://yoa.st/34j"),urlCallToAction:Object(Ai.b)("https://yoa.st/34k"),customContentType:"taxonomyAssessor"}),new $i,new Aa({scores:{widthTooShort:9}},!0),new qi,new Oa,new wa]};Object(v.inherits)(Ba,fa);var Ua=Ba;const Ha={keyword:"",synonyms:"",description:"",title:"",titleWidth:0,slug:"",locale:"en_US",permalink:"",date:"",customData:{},textTitle:"",writingDirection:"LTR"};function $a(e,t){this._text=e||"",this._tree=null,t=t||{},Object(T.defaults)(t,Ha),""===t.locale&&(t.locale=Ha.locale),t.hasOwnProperty("url")&&(console.warn("The 'url' attribute is deprecated, use 'slug' instead."),t.slug=t.url||t.slug);const r=t.keyword.replace(/[‘’“”"'.?!:;,¿¡«»&*@#±^%|~`[\](){}⟨⟩<>/\\–\-\u2014\u00d7\u002b\u0026\s]/g,"");Object(T.isEmpty)(r)&&(t.keyword=Ha.keyword),this._attributes=t}$a.prototype.hasKeyword=function(){return""!==this._attributes.keyword},$a.prototype.getKeyword=function(){return this._attributes.keyword},$a.prototype.hasSynonyms=function(){return""!==this._attributes.synonyms},$a.prototype.getSynonyms=function(){return this._attributes.synonyms},$a.prototype.hasText=function(){return""!==this._text},$a.prototype.getText=function(){return this._text},$a.prototype.setTree=function(e){this._tree=e},$a.prototype.getTree=function(){return this._tree},$a.prototype.hasDescription=function(){return""!==this._attributes.description},$a.prototype.getDescription=function(){return this._attributes.description},$a.prototype.hasTitle=function(){return""!==this._attributes.title},$a.prototype.getTitle=function(){return this._attributes.title},$a.prototype.hasTitleWidth=function(){return 0!==this._attributes.titleWidth},$a.prototype.getTitleWidth=function(){return this._attributes.titleWidth},$a.prototype.hasSlug=function(){return""!==this._attributes.slug},$a.prototype.getSlug=function(){return this._attributes.slug},$a.prototype.hasUrl=function(){return console.warn("This function is deprecated, use hasSlug instead"),this.hasSlug()},$a.prototype.getUrl=function(){return console.warn("This function is deprecated, use getSlug instead"),this.getSlug()},$a.prototype.hasLocale=function(){return""!==this._attributes.locale},$a.prototype.getLocale=function(){return this._attributes.locale},$a.prototype.getWritingDirection=function(){return this._attributes.writingDirection},$a.prototype.hasPermalink=function(){return""!==this._attributes.permalink},$a.prototype.getPermalink=function(){return this._attributes.permalink},$a.prototype.hasDate=function(){return""!==this._attributes.date},$a.prototype.getDate=function(){return this._attributes.date},$a.prototype.hasCustomData=function(){return!Object(T.isEmpty)(this._attributes.customData)},$a.prototype.getCustomData=function(){return this._attributes.customData},$a.prototype.hasTextTitle=function(){return""!==this._attributes.textTitle&&!Object(T.isNil)(this._attributes.textTitle)},$a.prototype.getTextTitle=function(){return this._attributes.textTitle},$a.prototype.serialize=function(){return{_parseClass:"Paper",text:this._text,...this._attributes}},$a.prototype.equals=function(e){return this._text===e.getText()&&Object(T.iLine truncated
/* Translators: %1$s expands to the name of the assessment. */
Object(_.__)("An error occurred in the '%1$s' assessment","wordpress-seo"),e.name)),t}async assessRelatedKeywords(e,t,r){const n=Object.keys(r);return await Promise.all(n.map(n=>{this._relatedKeywords[n]=r[n];const s=Ka.parse({...e.serialize(),keyword:this._relatedKeywords[n].keyword,synonyms:this._relatedKeywords[n].synonyms}),i={oldAssessor:this._relatedKeywordAssessor,treeAssessor:this._relatedKeywordTreeAssessor,scoreAggregator:this._seoScoreAggregator};return this.assess(s,t,i).then(e=>({key:n,results:e}))}))}loadScript(e,t){let{url:r}=t;if(Object(T.isUndefined)(r))return{loaded:!1,url:r,message:"Load Script was called without an URL."};try{this._scope.importScripts(r)}catch(e){return{loaded:!1,url:r,message:e.message}}return{loaded:!0,url:r}}loadScriptDone(e,t){t.loaded?this.send("loadScript:done",e,t):this.send("loadScript:failed",e,t)}analyzeDone(e,t){t.error?this.send("analyze:failed",e,t):this.send("analyze:done",e,t)}analyzeRelatedKeywordsDone(e,t){t.error?this.send("analyzeRelatedKeywords:failed",e,t):this.send("analyzeRelatedKeywords:done",e,t)}customMessage(e,t){let{name:r,data:n}=t;try{return{success:!0,data:this._registeredMessageHandlers[r](n)}}catch(e){return{error:e}}}customMessageDone(e,t){t.success?this.send("customMessage:done",e,t.data):this.send("customMessage:failed",t.error)}registerResearch(e,t){if(!Object(T.isString)(e))throw new Dt("Failed to register the custom research. Expected parameter `name` to be a string.");if(!Object(T.isObject)(t))throw new Dt("Failed to register the custom research. Expected parameter `research` to be a function.");const r=this._researcher;r.hasResearch(e)||r.addResearch(e,t)}runResearch(e,t){let{name:r,paper:n=null}=t;const s=this._researcher.getData("morphology"),i=this._researcher;if(null!==n&&(i.setPaper(n),i.addResearchData("morphology",s),null===n.getTree())){const e=new Yi(i);n.setTree(pa(n.getText(),e))}return i.getResearch(r)}runResearchDone(e,t){t.error?this.send("runResearch:failed",e,t):this.send("runResearch:done",e,t)}registerHelper(e,t){if(!Object(T.isString)(e))throw new Dt("Failed to register the custom helper. Expected parameter `name` to be a string.");if(!Object(T.isObject)(t))throw new Dt("Failed to register the custom helper. Expected parameter `helper` to be a function.");const r=this._researcher;r.hasHelper(e)||r.addHelper(e,t)}registerResearcherConfig(e,t){if(!Object(T.isString)(e))throw new Dt("Failed to register the custom researcher config. Expected parameter `name` to be a string.");if(Object(T.isUndefined)(t)||Object(T.isEmpty)(t))throw new Mt("Failed to register the custom researcher config. Expected parameter `researcherConfig` to be defined.");const r=this._researcher;r.hasConfig(e)||r.addConfig(e,t)}}class fc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.result=e,this.data=t}}var mc=class{constructor(e){this._worker=e,this._requests={},this._autoIncrementedRequestId=-1,this.initialize=this.initialize.bind(this),this.analyze=this.analyze.bind(this),this.analyzeRelatedKeywords=this.analyzeRelatedKeywords.bind(this),this.loadScript=this.loadScript.bind(this),this.sendMessage=this.sendMessage.bind(this),this.runResearch=this.runResearch.bind(this),this.handleMessage=this.handleMessage.bind(this),this.handleMessageError=this.handleMessageError.bind(this),this.handleError=this.handleError.bind(this),this._worker.onmessage=this.handleMessage,this._worker.onmessageerror=this.handleMessageError,this._worker.onerror=this.handleError}handleMessage(e){let{data:{type:t,id:r,payload:n}}=e;const s=this._requests[r];if(s){switch(n=rc(n),t){case"initialize:done":case"loadScript:done":case"customMessage:done":case"runResearch:done":case"analyzeRelatedKeywords:done":case"analyze:done":s.resolve(n);break;case"analyze:failed":case"loadScript:failed":case"customMessage:failed":case"runResearch:failed":case"analyzeRelatedKeywords:failed":s.reject(n);break;default:console.warn("AnalysisWebWorker unrecognized action:",t)}delete this._requests[r]}else console.warn("AnalysisWebWorker unmatched response:",n)}handleMessageError(e){console.warn("AnalysisWebWorker message error:",e)}handleError(e){const t=Object.keys(this._requests),r=t[t.length-1],n=this._requests[r];n?n.reject(e):console.error("AnalysisWebWorker error:",e)}createRequestId(){return this._autoIncrementedRequestId++,this._autoIncrementedRequestId}createRequestPromise(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((r,n)=>{this._requests[e]=new class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._resolve=e,this._reject=t,this._data=r}resolve(){const e=new fc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},this._data);this._resolve(e)}reject(){const e=new fc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},this._data);this._reject(e)}}(r,n,t)})}sendRequest(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.createRequestILine truncated
/* Translators:
%1$s expands to a link to an article on yoast.com,
%2$s expands to an anchor tag. */
Object(_.__)("%1$sPreviously used keyphrase%2$s: You've not used this keyphrase before, very good.","wordpress-seo"),this.urlTitle,"</a>"),score:9}:1===r?(i=`<a href='${this.postUrl.replace("{id}",n)}' target='_blank'>`,{
/* Translators: %1$s and %2$s expand to an admin link where the keyword is already used. %3$s and %4$s
expand to links on yoast.com, %4$s expands to the anchor end tag. */
text:Object(_.sprintf)(Object(_.__)("%3$sPreviously used keyphrase%5$s: You've used this keyphrase %1$sonce before%2$s. %4$sDo not use your keyphrase more than once%5$s.","wordpress-seo"),i,"</a>",this.urlTitle,this.urlCallToAction,"</a>"),score:6}):r>1?(i=s?`<a href='${this.searchUrl.replace("{keyword}",encodeURIComponent(t.getKeyword()))}&post_type=${s}' target='_blank'>`:`<a href='${this.searchUrl.replace("{keyword}",encodeURIComponent(t.getKeyword()))}' target='_blank'>`,{
/* Translators: %1$s and $3$s expand to the admin search page for the keyword, %2$d expands to the number
of times this keyword has been used before, %4$s and %5$s expand to links to yoast.com, %6$s expands to
the anchor end tag */
text:Object(_.sprintf)(Object(_.__)("%4$sPreviously used keyphrase%6$s: You've used this keyphrase %1$s multiple times before%3$s. %5$sDo not use your keyphrase more than once%6$s.","wordpress-seo"),i,r,"</a>",this.urlTitle,this.urlCallToAction,"</a>"),score:1}):void 0},yc.prototype.researchPreviouslyUsedKeywords=function(e){const t=e.getKeyword();let r=0,n="",s=0;return!Object(T.isUndefined)(this.usedKeywords[t])&&this.usedKeywords[t].length>0&&(r=this.usedKeywords[t].length,this.usedKeywordsPostTypes&&(n=this.usedKeywordsPostTypes[t][0]),s=this.usedKeywords[t][0]),{id:s,count:r,postTypeToDisplay:n}},yc.prototype.assess=function(e){var t=this.researchPreviouslyUsedKeywords(e),r=this.scoreAssessment(t,e),n=new wi;return n.setScore(r.score),n.setText(r.text),n};var Ac=yc,Oc=function(e){return e.replace(new RegExp("<yoastmark[^>]*>","g"),"").replace(new RegExp("</yoastmark>","g"),"")},Cc=function(){const e=Object(_.__)("Content optimization:","wordpress-seo");return{feedback:{className:"na",screenReaderText:Object(_.__)("Feedback","wordpress-seo"),fullText:`${e} ${Object(_.__)("Has feedback","wordpress-seo")}`,screenReaderReadabilityText:""},bad:{className:"bad",screenReaderText:Object(_.__)("Needs improvement","wordpress-seo"),fullText:`${e} ${Object(_.__)("Needs improvement","wordpress-seo")}`,screenReaderReadabilityText:Object(_.__)("Needs improvement","wordpress-seo")},ok:{className:"ok",screenReaderText:Object(_.__)("OK SEO score","wordpress-seo"),fullText:`${e} ${Object(_.__)("OK SEO score","wordpress-seo")}`,screenReaderReadabilityText:Object(_.__)("OK","wordpress-seo")},good:{className:"good",screenReaderText:Object(_.__)("Good SEO score","wordpress-seo"),fullText:`${e} ${Object(_.__)("Good SEO score","wordpress-seo")}`,screenReaderReadabilityText:Object(_.__)("Good","wordpress-seo")}}},wc=function(e){this.app=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this.customTests=[],setTimeout(this._pollLoadingPlugins.bind(this),1500)};wc.prototype._registerPlugin=function(e,t){return"string"!=typeof e?(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1):Object(T.isUndefined)(t)||"object"==typeof 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)},wc.prototype._ready=function(e){return"string"!=typeof e?(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1):Object(T.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)},wc.prototype._reloaded=function(e){return"string"!=typeof e?(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1):Object(T.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.app.refresh(),!0)},wc.prototype._registerModification=function(e,t,r,n){if("string"!=typeof e)return console.error("Failed to register modification for plugin "+r+". Expected parameter `modification` to be a string."),!1;if("function"!=typeof t)return console.error("Failed to register modification for plugin "+r+". Expected parameter `callable` to be a function."),!1;if("string"!=typeof r)return console.error("Failed to register modification for plugin "+r+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(r))return console.error("Failed to register modification for plugin "+r+". The integration has not finished loading yet."),!1;var s={callable:t,origin:r,priority:"number"==typeof n?n:10};return Object(T.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(s),!0},wc.prototype._registerTest=function(){console.error("This function is deprecated, please use _registerAssessment")},wc.prototype._registerAssessment=function(e,t,r,n){if(!Object(T.isString)(t))throw new Dt("Failed to register test for plugin "+n+". Expected parameter `name` to be a string.");if(!Object(T.isObject)(r))throw new Dt("Failed to register assessment for plugin "+n+". Expected parameter `assessment` to be a function.");if(!Object(T.isString)(n))throw new Dt("Failed to register assessment for plugin "+n+". Expected parameter `pluginName` to be a string.");return t=n+"-"+t,e.addAssessment(t,r),!0},wc.prototype._pollLoadingPlugins=function(e){e=Object(T.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.app.pluginsLoaded()):e>=this.preloadThreshold?this._pollTimeExceeded():(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))},wc.prototype._allReady=function(){return Object(T.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)},wc.prototype._pollTimeExLine truncated
@@ -0,0 +1,38 @@
window.yoast=window.yoast||{},window.yoast.analysisReport=function(t){var e={};function s(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=t,s.c=e,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)s.d(r,a,function(e){return t[e]}.bind(null,a));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=405)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},10:function(t,e){t.exports=window.yoast.helpers},2:function(t,e){t.exports=window.lodash},3:function(t,e){t.exports=window.React},4:function(t,e){t.exports=window.wp.i18n},405:function(t,e,s){"use strict";s.r(e),s.d(e,"ContentAnalysis",(function(){return M})),s.d(e,"AnalysisResult",(function(){return E})),s.d(e,"AnalysisList",(function(){return v})),s.d(e,"renderRatingToColor",(function(){return O})),s.d(e,"SiteSEOReport",(function(){return T}));var r=s(1),a=s(4),o=s(3),n=s.n(o),i=s(5),l=s.n(i),u=s(0),c=s.n(u),d=s(90),m=s.n(d),p=s(6),g=s(2),b=s(9),k=s(10);const{stripTagsFromHtmlString:B}=k.strings,h=["a","b","strong","em","i"],f=l.a.li`
// This is the height of the IconButtonToggle.
min-height: 24px;
padding: 0;
display: flex;
align-items: flex-start;
`,C=l()(b.SvgIcon)`
margin: 3px 11px 0 0; // icon 13 + 11 right margin = 24 for the 8px grid.
`,y=l.a.p`
margin: 0 16px 0 0;
flex: 1 1 auto;
color: ${t=>t.suppressedText?"rgba(30,30,30,0.5)":"inherit"};
`,x=t=>{let{ariaLabel:e,id:s,className:a,status:o,onClick:n,isPressed:i}=t;return Object(r.createElement)(b.IconButtonToggle,{marksButtonStatus:o,className:a,onClick:n,id:s,icon:"eye",pressed:i,ariaLabel:e})},R=t=>{let{markButtonFactory:e,...s}=t;e=e||x;const{id:a,marker:n,hasMarksButton:i}=s;let l=null;return function(t){return!t.hasMarksButton||"hidden"===t.marksButtonStatus}(s)||(l=e({onClick:s.onButtonClickMarks,status:s.marksButtonStatus,className:s.marksButtonClassName,id:s.buttonIdMarks,isPressed:s.pressed,ariaLabel:s.ariaLabelMarks})),Object(o.useEffect)(()=>{s.onResultChange(a,n,i)},[a,n,i]),Object(r.createElement)(f,null,Object(r.createElement)(C,{icon:"circle",color:s.bulletColor,size:"13px"}),Object(r.createElement)(y,{suppressedText:s.suppressedText},s.hasBetaBadgeLabel&&Object(r.createElement)(b.BetaBadge,null),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:B(s.text,h)}})),l,s.hasEditButton&&s.isPremium&&Object(r.createElement)(b.IconCTAEditButton,{className:s.editButtonClassName,onClick:s.onButtonClickEdit,id:s.buttonIdEdit,icon:"edit",ariaLabel:s.ariaLabelEdit}))};R.propTypes={text:c.a.string.isRequired,suppressedText:c.a.bool,bulletColor:c.a.string.isRequired,hasMarksButton:c.a.bool.isRequired,hasEditButton:c.a.bool,buttonIdMarks:c.a.string.isRequired,buttonIdEdit:c.a.string,pressed:c.a.bool.isRequired,ariaLabelMarks:c.a.string.isRequired,ariaLabelEdit:c.a.string,onButtonClickMarks:c.a.func.isRequired,onButtonClickEdit:c.a.func,marksButtonStatus:c.a.string,marksButtonClassName:c.a.string,markButtonFactory:c.a.func,editButtonClassName:c.a.string,hasBetaBadgeLabel:c.a.bool,isPremium:c.a.bool,onResultChange:c.a.func,id:c.a.string,marker:c.a.oneOfType([c.a.func,c.a.array])},R.defaultProps={suppressedText:!1,marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",hasBetaBadgeLabel:!1,hasEditButton:!1,buttonIdEdit:"",ariaLabelEdit:"",onButtonClickEdit:g.noop,isPremium:!1,onResultChange:g.noop,id:"",marker:g.noop};var E=R;const w=l.a.ul`
margin: 8px 0;
padding: 0;
list-style: none;
`;function O(t){switch(t){case"good":return p.colors.$color_good;case"OK":return p.colors.$color_ok;case"bad":return p.colors.$color_bad;default:return p.colors.$color_score_icon}}function v(t){return Object(r.createElement)(w,{role:"list"},t.results.map(e=>{const s=O(e.rating),o=e.markerId===t.marksButtonActivatedResult,n=e.id+"Mark",i=e.id+"Edit";let l="";l="disabled"===t.marksButtonStatus?Object(a.__)("Marks are disabled in current view","wordpress-seo"):o?Object(a.__)("Remove highlight from the text","wordpress-seo"):Object(a.__)("Highlight this result in the text","wordpress-seo");const u=e.editFieldName,c=""===u?"":Object(a.sprintf)(
/* Translators: %1$s refers to the name of the field that should be edited (keyphrase, meta description,
slug or SEO title). */
Object(a.__)("Edit your %1$s","wordpress-seo"),u);return Object(r.createElement)(E,{key:e.id,id:e.id,text:e.text,marker:e.marker,bulletColor:s,hasMarksButton:e.hasMarks,hasEditButton:e.hasJumps,ariaLabelMarks:l,ariaLabelEdit:c,pressed:o,suppressedText:"upsell"===e.rating,buttonIdMarks:n,buttonIdEdit:i,onButtonClickMarks:()=>t.onMarksButtonClick(e.id,e.marker),onButtonClickEdit:()=>t.onEditButtonClick(e.id),marksButtonClassName:t.marksButtonClassName,editButtonClassName:t.editButtonClassName,marksButtonStatus:t.marksButtonStatus,hasBetaBadgeLabel:e.hasBetaBadge,isPremium:t.isPremium,onResultChange:t.onResultChange,markButtonFactory:t.markButtonFactory})}))}v.propTypes={results:c.a.array.isRequired,marksButtonActivatedResult:c.a.string,marksButtonStatus:c.a.string,marksButtonClassName:c.a.string,editButtonClassName:c.a.string,markButtonFactory:c.a.func,onMarksButtonClick:c.a.func,onEditButtonClick:c.a.func,isPremium:c.a.bool,onResultChange:c.a.func},v.defaultProps={marksButtonActivatedResult:"",marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",onMarksButtonClick:m.a,onEditButtonClick:m.a,isPremium:!1,onResultChange:m.a};const _=l.a.div`
width: 100%;
background-color: white;
border-bottom: 1px solid transparent; // Avoid parent and child margin collapsing.
`,N=l()(b.Collapsible)`
margin-bottom: 8px;
button:first-child svg {
margin: -2px 8px 0 -2px; // Compensate icon size set to 18px.
}
${b.StyledIconsButton} {
padding: 8px 0;
color: ${p.colors.$color_blue}
}
`;class j extends n.a.Component{renderCollapsible(t,e,s){return Object(r.createElement)(N,{initialIsOpen:!0,title:`${t} (${s.length})`,prefixIcon:{icon:"angle-up",color:p.colors.$color_grey_dark,size:"18px"},prefixIconCollapsed:{icon:"angle-down",color:p.colors.$color_grey_dark,size:"18px"},suffixIcon:null,suffixIconCollapsed:null,headingProps:{level:e,fontSize:"13px",fontWeight:"bold"}},Object(r.createElement)(v,{results:s,marksButtonActivatedResult:this.props.activeMarker,marksButtonStatus:this.props.marksButtonStatus,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,markButtonFactory:this.props.markButtonFactory,onMarksButtonClick:this.props.onMarkButtonClick,onEditButtonClick:this.props.onEditButtonClick,isPremium:this.props.isPremium,onResultChange:this.props.onResultChange}))}render(){const{problemsResults:t,improvementsResults:e,goodResults:s,considerationsResults:o,errorsResults:n,upsellResults:i,headingLevel:l,resultCategoryLabels:u}=this.props,c=n.length,d=t.length,m=e.length,p=o.length,g=s.length,b=i.length,k={errors:Object(a.__)("Errors","wordpress-seo"),problems:Object(a.__)("Problems","wordpress-seo"),improvements:Object(a.__)("Improvements","wordpress-seo"),considerations:Object(a.__)("Considerations","wordpress-seo"),goodResults:Object(a.__)("Good results","wordpress-seo")},B=Object.assign(k,u);return Object(r.createElement)(_,null,c>0&&this.renderCollapsible(B.errors,l,n),d+b>0&&this.renderCollapsible(B.problems,l,[...i,...t]),m>0&&this.renderCollapsible(B.improvements,l,e),p>0&&this.renderCollapsible(B.considerations,l,o),g>0&&this.renderCollapsible(B.goodResults,l,s))}}j.propTypes={onMarkButtonClick:c.a.func,onEditButtonClick:c.a.func,problemsResults:c.a.array,improvementsResults:c.a.array,goodResults:c.a.array,considerationsResults:c.a.array,errorsResults:c.a.array,upsellResults:c.a.array,headingLevel:c.a.number,marksButtonStatus:c.a.string,marksButtonClassName:c.a.string,markButtonFactory:c.a.func,editButtonClassName:c.a.string,activeMarker:c.a.string,isPremium:c.a.bool,resultCategoryLabels:c.a.shape({errors:c.a.string,problems:c.a.string,improvements:c.a.string,considerations:c.a.string,goodResults:c.a.string}),onResultChange:c.a.func},j.defaultProps={onMarkButtonClick:()=>{},onEditButtonClick:()=>{},problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[],errorsResults:[],upsellResults:[],headingLevel:4,marksButtonStatus:"enabled",marksButtonClassName:"",markButtonFactory:null,editButtonClassName:"",activeMarker:"",isPremium:!1,resultCategoryLabels:{},onResultChange:()=>{}};var M=j;const S=l.a.div`
`,P=l.a.p`
font-size: 14px;
`,I=t=>Object(r.createElement)(S,{className:t.className},Object(r.createElement)(P,{className:t.className+"__text"},t.seoAssessmentText),Object(r.createElement)(b.StackedProgressBar,{className:"progress",items:t.seoAssessmentItems,barHeight:t.barHeight}),Object(r.createElement)(b.ScoreAssessments,{className:"assessments",items:t.seoAssessmentItems}));I.propTypes={className:c.a.string,seoAssessmentText:c.a.string,seoAssessmentItems:c.a.arrayOf(c.a.shape({html:c.a.string.isRequired,value:c.a.number.isRequired,color:c.a.string.isRequired})),barHeight:c.a.string},I.defaultProps={className:"seo-assessment",seoAssessmentText:"SEO Assessment",seoAssessmentItems:null,barHeight:"24px"};var T=I},5:function(t,e){t.exports=window.yoast.styledComponents},6:function(t,e){t.exports=window.yoast.styleGuide},9:function(t,e){t.exports=window.yoast.componentsNew},90:function(t,e){t.exports=window.lodash.noop}});
@@ -0,0 +1,105 @@
window.yoast=window.yoast||{},window.yoast.components=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=401)}({0:function(e,t){e.exports=window.yoast.propTypes},1:function(e,t){e.exports=window.wp.element},10:function(e,t){e.exports=window.yoast.helpers},110:function(e,t){e.exports=window.yoast.jed},12: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.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},16:function(e,t){e.exports=window.yoast.replacementVariableEditor},19:function(e,t){e.exports=window.yoast.redux},195:function(e,t,n){var r,o,i;o=[e,n(324),n(326),n(327)],void 0===(i="function"==typeof(r=function(e,t,n,r){"use strict";var o=a(t),i=a(n),s=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var l="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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(i.default);function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=c})?r.apply(t,o):r)||(e.exports=i)},196:function(e,t){e.exports=window.lodash.assign},197:function(e,t){e.exports=window.lodash.isUndefined},2:function(e,t){e.exports=window.lodash},26:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=a(n(3)),i=a(n(53)),s=Line truncated
display: flex;
margin-top: 8px;
`;class v extends c.a.Component{render(){return Object(s.createElement)(m,null,Object(s.createElement)(i.Toggle,{id:this.props.id,labelText:Object(b.__)("Mark as cornerstone content","wordpress-seo"),isEnabled:this.props.isEnabled,onSetToggleState:this.props.onToggle,onToggleDisabled:this.props.onToggleDisabled}))}}v.propTypes={id:l.a.string,isEnabled:l.a.bool,onSetToggleState:l.a.func,onToggle:l.a.func,disable:l.a.bool,onToggleDisabled:l.a.func},v.defaultProps={id:"cornerstone-toggle"};var S=v,E=n(12),w=n.n(E);const x=y.a.div`
display: flex;
align-items: center;
min-height: 40px;
margin-bottom: 5px;
`,O=y.a.button`
box-sizing: border-box;
height: 30px;
width: 30px;
background-color: ${o.colors.$color_button};
border-radius: 5px;
cursor: pointer;
outline:none;
margin-right: 8px;
border: 1px solid ${o.colors.$color_button_border};
&:focus {
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
}
`,_=Object(r.makeOutboundLink)(y.a.a`
max-width: 128px;
padding: 6px 0;
margin-right: 8px;
`),T=y.a.span`
max-width: 75px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
display: block;
padding: 3px 8px;
margin-left: auto;
font-size: 0.85em;
background-color: #f3f4f5;
border-radius: 2px;
`,k=e=>{let{value:t,url:n,isActive:r,type:a}=e;const l=Object(b.__)("Copy link","wordpress-seo"),u=Object(b.sprintf)(
/* translators: %s expands to the link value */
Object(b.__)("Copy link to suggested article: %s","wordpress-seo"),t);let c="clipboard";return r&&(c="check"),Object(s.createElement)(x,null,Object(s.createElement)(O,{type:"button",className:"yoast-link-suggestion__copy yoast-tooltip yoast-tooltip-alt yoast-tooltip-s",onBlur:e=>{e.nativeEvent.target.setAttribute("aria-label",u),e.nativeEvent.target.setAttribute("data-label",l)},"data-clipboard-text":n,"aria-label":u,"data-label":l},Object(s.createElement)(i.SvgIcon,{icon:c,color:o.colors.$color_grey_dark}),Object(s.createElement)(i.ScreenReaderText,null,l)),Object(s.createElement)(_,{href:n},t),Object(s.createElement)(T,{title:a},a))};k.propTypes={value:l.a.string.isRequired,url:l.a.string.isRequired,isActive:l.a.bool,type:l.a.string.isRequired},k.defaultProps={isActive:!1};var A=k,j=n(195),L=n.n(j),C=n(26),R=n.n(C),N=n(36);const I=Object(r.makeOutboundLink)(),M=y.a.div`
display: table-cell;
`,P=Object(b.__)("We could not find any relevant articles on your website that you could link to from your post.","wordpress-seo"),F=Object(b.__)("{{a}}Read our article about site structure{{/a}} to learn more about how internal linking can help improve your SEO.","wordpress-seo"),U=Object(b.__)("Consider linking to these {{a}}cornerstone articles:{{/a}}","wordpress-seo"),D=Object(b.__)("Consider linking to these articles:","wordpress-seo");class Y extends c.a.Component{constructor(e){super(e),this.state={clipboard:new L.a(".yoast-link-suggestion__copy")},this.state.clipboard.on("success",this.handleSuccess.bind(this)),this.state.clipboard.on("error",this.handleError.bind(this))}handleSuccess(e){const t=Object(b.__)("Copied!","wordpress-seo");e.trigger.focus(),e.trigger.setAttribute("aria-label",t),e.trigger.setAttribute("data-label",t),Object(N.speak)(t,"assertive")}handleError(e){const t=Object(b.__)("Not supported!","wordpress-seo");e.trigger.el.setAttribute("aria-label",t),e.trigger.setAttribute("data-label",t),Object(N.speak)(t,"assertive")}renderEmptyList(){let e=this.props.customMessages.lengthMessage;return e=""===e?P:e,Object(s.createElement)("div",null,Object(s.createElement)("p",null,e),Object(s.createElement)("p",null,this.props.customMessages.metaMessage),Object(s.createElement)("p",null,this.getArticleLink()))}render(){const e=this.props.suggestions,t=this.props.maxSuggestions;if(0===e.length)return this.renderEmptyList();e.length>t&&(e.length=t);const n=this.getCornerstoneSuggestions(),r=this.getDefaultSuggestions();return Object(s.createElement)(M,null,n,r,Object(s.createElement)("p",null,this.getArticleLink()),Object(s.createElement)("p",null,this.props.customMessages.metaMessage))}getCornerstoneSuggestions(){const e=this.filterSuggestionsByCornerstone(!0);if(0===e.length)return null;const t=R()({mixedString:U,components:{a:Object(s.createElement)(I,{href:"https://yoa.st/metabox-ls-help-cornerstone"})}});return this.getSuggestionsList(t,e)}getDefaultSuggestions(){const e=this.filterSuggestionsByCornerstone(!1);return 0===e.length?null:this.getSuggestionsList(D,e)}getArticleLink(){return R()({mixedString:F,components:{a:Object(s.createElement)(I,{href:"https://yoa.st/site-structure-metabox"})}})}getSuggestionsList(e,t){return Object(s.createElement)("div",null,Object(s.createElement)("p",null,e),t.map((e,t)=>Object(s.createElement)(A,w()({key:t},e))))}filterSuggestionsByCornerstone(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.props.suggestions.filter(t=>t.isCornerstone===e)}}Y.propTypes={suggestions:l.a.array.isRequired,maxSuggestions:l.a.number,customMessages:l.a.object},Y.defaultProps={maxSuggestions:10,customMessages:{lengthMessage:"",metaMessage:""}};var B=Y,W=n(47),H=n(16),$=n(2),V={getFeed:r.getFeed,getCourseFeed:r.getCourseFeed,getPostFeed:r.getPostFeed,makeOutboundLink:r.makeOutboundLink,buildStructuredUrl:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.keys(t);let r=e;return n.forEach(e=>{const n=t[e],o=Object($.isArray)(n)?n.join("/"):n,i=`%${e}%`;r=r.replace(new RegExp(i,"g"),o)}),r}},z=n(110),K=n.n(z),q=n(196),G=n.n(q),X=null;function J(e){X=new K.a(e)}function Q(){return null===X&&(X=new K.a({})),X}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Q();return""===t?r.gettext(e):r.ngettext(e,t,n)}function ee(e){const t=e.displayName||e.name||"",n={translate:Z};class r extends c.a.Component{constructor(e){super(e),this.displayName="Localized"+t}render(){const t=G()({},this.props,n);return Object(s.createElement)(e,t)}}return r}function te(e,t){return{type:"CONTENT_ANALYSIS_SET_SEO_RESULTS_FOR_KEYWORD",keyword:e,results:t}}function ne(e){return{type:"CONTENT_ANALYSIS_SET_READABILITY_RESULTS",results:e}}function re(e){return{type:"CONTENT_ANALYSIS_SET_INCLUSIVE_LANGUAGE_RESULTS",results:e}}function oe(e){return{type:"CONTENT_ANALYSIS_SET_OVERALL_READABILITY_SCORE",overallScore:e}}function ie(e,t){return{type:"CONTENT_ANALYSIS_SET_OVERALL_SEO_SCORE",keyword:t,overallScore:e}}function se(e){return{type:"CONTENT_ANALYSIS_SET_OVERALL_INCLUSIVE_LANGUAGE_SCORE",overallScore:e}}var ae=n(89),le=n.n(ae),ue=n(197),ce=n.n(ue);const de={};function fe(e,t){return Object.assign({},e,{results:t.results})}function pe(e,t){if(ce()(e.results))return Object.assign({},e,{results:[t.result]});const n=le()(e.results,{id:t.result.id});if(-1!==n){const r=e.results.filter((function(t){return t!==e.results[n]}));return Object.assign({},e,{results:r.concat(t.result)})}return Object.assign({},e,{results:[...e.results,t.result]})}function ge(e,t){return Object.assign({},e,{overallScore:t.overallScore})}var he=n(35),ye=n.n(he);const be={};function me(e,t,n){return Object.assign({},e,{[t]:{results:n}})}function ve(e,t){return e[t.keyword]?-1!==le()(e[t.keyword].results,{id:t.result.id})?function(e,t){const n=Array.from(e[t.keyword].results,e=>e Line truncated
display: flex;
flex-direction: column;
`,Ie=y.a.label`
font-size: var(--yoast-font-size-default);
font-weight: var(--yoast-font-weight-bold);
${Object(r.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")};
`,Me=y.a.span`
margin-bottom: 0.5em;
`,Pe=y()(i.InputField)`
flex: 1 !important;
box-sizing: border-box;
max-width: 100%;
margin: 0; // Reset margins inherited from WordPress.
// Hide native X in Edge and IE11.
&::-ms-clear {
display: none;
}
&.has-error {
border-color: ${je} !important;
background-color: ${Le} !important;
&:focus {
box-shadow: 0 0 2px ${je} !important;
}
}
`,Fe=y.a.ul`
color: ${Re};
list-style-type: disc;
list-style-position: outside;
margin: 0;
margin-left: 1.2em;
`,Ue=y.a.li`
color: ${Re};
margin: 0 0 0.5em 0;
`,De=Object(i.addFocusStyle)(y.a.button`
border: 1px solid transparent;
box-shadow: none;
background: none;
flex: 0 0 32px;
height: 32px;
max-width: 32px;
padding: 0;
cursor: pointer;
`);De.propTypes={type:l.a.string,focusColor:l.a.string,focusBackgroundColor:l.a.string,focusBorderColor:l.a.string},De.defaultProps={type:"button",focusColor:o.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:o.colors.$color_blue};const Ye=y()(i.SvgIcon)`
margin-top: 4px;
`,Be=y.a.div`
display: flex;
flex-direction: row;
align-items: center;
&.has-remove-keyword-button {
${Pe} {
${Object(r.getDirectionalStyle)("padding-right: 40px","padding-left: 40px")};
}
${De} {
${Object(r.getDirectionalStyle)("margin-left: -32px","margin-right: -32px")};
}
}
`;class We extends c.a.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){const{id:e,label:t,helpLink:n}=this.props;return Object(s.createElement)(Me,null,Object(s.createElement)(Ie,{htmlFor:e},t),n)}renderErrorMessages(){const e=[...this.props.errorMessages];return!Object($.isEmpty)(e)&&Object(s.createElement)(Fe,null,e.map((e,t)=>Object(s.createElement)(Ue,{key:t},Object(s.createElement)("span",{role:"alert"},e))))}render(){const{id:e,showLabel:t,keyword:n,onRemoveKeyword:r,onBlurKeyword:o,onFocusKeyword:i,hasError:a}=this.props,l=!t,u=r!==$.noop;return Object(s.createElement)(Ne,null,t&&this.renderLabel(),a&&this.renderErrorMessages(),Object(s.createElement)(Be,{className:u?"has-remove-keyword-button":null},Object(s.createElement)(Pe,{"aria-label":l?this.props.label:null,type:"text",id:e,className:a?"has-error":null,onChange:this.handleChange,onFocus:i,onBlur:o,value:n,autoComplete:"off"}),u&&Object(s.createElement)(De,{onClick:r,focusBoxShadowColor:"#084A67"},Object(s.createElement)(Ye,{size:"18px",icon:"times-circle",color:Ce}))))}}We.propTypes={id:l.a.string.isRequired,showLabel:l.a.bool,keyword:l.a.string,onChange:l.a.func.isRequired,onRemoveKeyword:l.a.func,onBlurKeyword:l.a.func,onFocusKeyword:l.a.func,label:l.a.string.isRequired,helpLink:l.a.node,hasError:l.a.bool,errorMessages:l.a.arrayOf(l.a.string)},We.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:$.noop,onBlurKeyword:$.noop,onFocusKeyword:$.noop,helpLink:null,hasError:!1,errorMessages:[]};var He=We;function $e(e){return{type:"SET_WORDS_FOR_INSIGHTS",wordsForInsights:e}}const Ve=[],ze=Object(ke.combineReducers)({prominentWords:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ve,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_WORDS_FOR_INSIGHTS":return t.wordsForInsights;default:return e}}}),Ke=r.getDirectionalStyle,qe=()=>(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `OnboardingWizard` from the `@yoast/configuration-wizard` package instead."),null),Ge=()=>(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `MessageBox` from the `@yoast/configuration-wizard` package instead."),null),Xe=()=>(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `LoadingIndicator` from the `@yoast/configuration-wizard` package instead."),null)},47:function(e,t){e.exports=window.yoast.searchMetadataPreviews},5:function(e,t){e.exports=window.yoast.styledComponents},53:function(e,t,n){"use strict";var r=n(3),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(37),s=n(54),a=n(55),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}var c=/\/+/g;function d(e){return(""+e).replace(c,"$&/")}var f,p,g=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var o,s,a=e.result,l=e.keyPrefix,u=e.func,c=e.context,f=u.call(c,t,e.count++);Array.isArray(f)?m(f,a,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,s=l+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+n,f=r.cloneElement(o,{key:s},void 0!==o.props?o.props.children:void 0)),a.push(f))}function m(e,t,n,r,i){var a="";null!=n&&(a=d(n)+"/");var c=y.getPooled(t,a,r,i);!function(e,t,n){null==e||function e(t,n,r,i){var a,c=typeof t;if("undefined"!==c&&"boolean"!==c||(t=null),null===t||"string"===c||"number"===c||"object"===c&&t.$$typeof===o)return r(i,t,""===n?"."+u(t,0):n),1;var d=0,f=""===n?".":n+":";if(Array.isArray(t))for(var p=0;p<t.length;p++)d+=e(a=t[p],f+u(a,p),r,i);else{var g=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(g)for(var h,y=g.call(t),b=0;!(h=y.next()).done;)d+=e(a=h.value,f+u(a,b++),r,i);else if("object"===c){var m=""+t;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===m?"object with keys {"+Object.keys(t).join(", ")+"}":m,"")}}return d}(e,"",t,n)}(e,b,c),y.release(c)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(p=y).instancePool=[],p.getPooled=f||g,p.poolSize||(p.poolSize=10),p.release=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return a(!1,"React.addons.createFragment do Line truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.draftJs=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=221)}([,,,function(t,e){t.exports=window.React},,,,,,,,,,function(t,e,r){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return a(t)?t:U(t)}function n(t){return s(t)?t:q(t)}function i(t){return u(t)?t:H(t)}function o(t){return a(t)&&!c(t)?t:W(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[p])}function u(t){return!(!t||!t[h])}function c(t){return s(t)||u(t)}function l(t){return!(!t||!t[d])}e(n,r),e(i,r),e(o,r),r.isIterable=a,r.isKeyed=s,r.isIndexed=u,r.isAssociative=c,r.isOrdered=l,r.Keyed=n,r.Indexed=i,r.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",g={},y={value:!1},v={value:!1};function m(t){return t.value=!1,t}function _(t){t&&(t.value=!0)}function b(){}function S(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function w(t){return void 0===t.size&&(t.size=t.__iterate(k)),t.size}function x(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?w(t)+e:e}function k(){return!0}function C(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function E(t,e){return D(t,e,0)}function O(t,e){return D(t,e,e)}function D(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var T,K,M,A="function"==typeof Symbol&&Symbol.iterator,I=A||"@@iterator";function B(t){this.next=t}function L(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function R(){return{value:void 0,done:!0}}function N(t){return!!z(t)}function F(t){return t&&"function"==typeof t.next}function P(t){var e=z(t);return e&&e.call(t)}function z(t){var e=t&&(A&&t[A]||t["@@iterator"]);if("function"==typeof e)return e}function j(t){return t&&"number"==typeof t.length}function U(t){return null==t?$():a(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new G(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function q(t){return null==t?$().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():Z(t)}function H(t){return null==t?$():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():Q(t)}function W(t){return(null==t?$():a(t)?s(t)?t.entrySeq():t:Q(t)).toSetSeq()}function V(t){this._array=t,this.size=t.length}function G(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function J(t){this._iterable=t,this.size=t.length||t.size}function X(t){this._iterator=t,this._iteratorCache=[]}function Y(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function $(){return T||(T=new V([]))}function Z(t){var e=Array.isArray(t)?new V(t).fromEntrySeq():F(t)?new X(t).fromEntrySeq():N(t)?new J(t).fromEntrySeq():"object"==typeof t?new G(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function Q(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return j(t)?new V(t):F(t)?new X(t):N(t)?new J(t):void 0}function et(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[r?o-a:a];if(!1===e(s[1],n?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function rt(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,a=0;return new B((function(){var t=i[r?o-a:a];return a++>o?{value:void 0,done:!0}:L(e,n?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,r)}function nt(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,H(r).map((function(n,i){return t(e,n,i,r)}))):ot(r)?e.call(i,n,q(r).map((function(n,i){return t(e,n,i,r)}))):r}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?H(t).map(it).toList():ot(t)?q(t).map(it).toMap():t}function ot(t){return t&&(t.constructor===Object||void 0===t.constructor)}function at(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())==Line truncated
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.featureFlag=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return 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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=212)}({212:function(e,t,n){"use strict";n.r(t),n.d(t,"isFeatureEnabled",(function(){return r})),n.d(t,"enableFeatures",(function(){return u})),n.d(t,"enabledFeatures",(function(){return o}));const r=function(e){return!!self.wpseoFeatureFlags&&self.wpseoFeatureFlags.includes(e)},u=function(e){self.wpseoFeatureFlags||(self.wpseoFeatureFlags=[]),e.forEach(e=>{self.wpseoFeatureFlags.includes(e)||self.wpseoFeatureFlags.push(e)})},o=function(){return self.wpseoFeatureFlags||[]}}});
@@ -0,0 +1,30 @@
window.yoast=window.yoast||{},window.yoast.helpers=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=400)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},12:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},181:function(t,e,n){(function(e){(function(){"use strict";var e=this;function n(t){return"string"==typeof t}function r(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function i(t,e,n){return(i=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:o).apply(null,arguments)}function a(t){var e=st;function n(){}n.prototype=e.prototype,t.G=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.F=function(t,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return e.prototype[n].apply(t,o)}}var s=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function u(t,e){return-1!=t.indexOf(e)}function c(t,e){return t<e?-1:t>e?1:0}var l,f=Array.prototype.indexOf?function(t,e,n){return Array.prototype.indexOf.call(t,e,n)}:function(t,e,r){if(r=null==r?0:0>r?Math.max(0,t.length+r):r,n(t))return n(e)&&1==e.length?t.indexOf(e,r):-1;for(;r<t.length;r++)if(r in t&&t[r]===e)return r;return-1},h=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=n(t)?t.split(""):t,a=0;a<o;a++)a in i&&e.call(r,i[a],a,t)},p=Array.prototype.filter?function(t,e,n){return Array.prototype.filter.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=[],a=0,s=n(t)?t.split(""):t,u=0;u<o;u++)if(u in s){var c=s[u];e.call(r,c,u,t)&&(i[a++]=c)}return i},d=Array.prototype.reduce?function(t,e,n,r){return r&&(e=i(e,r)),Array.prototype.reduce.call(t,e,n)}:function(t,e,n,r){var o=n;return h(t,(function(n,i){o=e.call(r,o,n,i,t)})),o},y=Array.prototype.some?function(t,e,n){return Array.prototype.some.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=n(t)?t.split(""):t,a=0;a<o;a++)if(a in i&&e.call(r,i[a],a,t))return!0;return!1};function g(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}t:{var b=e.navigator;if(b){var m=b.userAgent;if(m){l=m;break t}}l=""}var w,v,E=u(l,"Opera")||u(l,"OPR"),x=u(l,"Trident")||u(l,"MSIE"),T=u(l,"Edge"),N=u(l,"Gecko")&&!(u(l.toLowerCase(),"webkit")&&!u(l,"Edge"))&&!(u(l,"Trident")||u(l,"MSIE"))&&!u(l,"Edge"),_=u(l.toLowerCase(),"webkit")&&!u(l,"Edge");function O(){var t=e.document;return t?t.documentMode:void 0}t:{var j="",R=(v=l,N?/rv\:([^\);]+)(\)|;)/.exec(v):T?/Edge\/([\d\.]+)/.exec(v):x?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v):_?/WebKit\/(\S+)/.exec(v):E?/(?:Version)[ \/]?(\S+)/.exec(v):void 0);if(R&&(j=R?R[1]:""),x){var P=O();if(null!=P&&P>parseFloat(j)){w=String(P);break t}}w=j}var A={};function S(t){if(!A[t]){for(var e=0,n=s(String(w)).split("."),r=s(String(t)).split("."),o=Math.max(n.length,r.length),i=0;0==e&&i<o;i++){var a=n[i]||"",u=r[i]||"",l=/(\d*)(\D*)/g,f=/(\d*)(\D*)/g;do{var h=l.exec(a)||["","",""],p=f.exec(u)||["","",""];if(0==h[0].length&&0==p[0].length)break;e=c(0==h[1].length?0:parseInt(h[1],10),0==p[1].length?0:parseInt(p[1],10))||c(0==h[2].length,0==p[2].length)||c(h[2],p[2])}while(0==e)}A[t]=0<=e}}var D=e.document,I=D&&x?O()||("CSS1Compat"==D.compatMode?parseInt(w,10):5):void 0,B=x&&!(9<=Number(I)),k=x&&!(8<=Number(I));function C(t,e,n,r){this.a=t,this.nodeName=n,this.nodeValue=r,this.nodeType=2,this.parentNode=this.ownerElement=e}function U(t,e){var n=k&&"href"==e.nodeName?t.getAttribute(e.nodeName,2):e.nodeValue;retuLine truncated
width: ${t=>t.size};
height: ${t=>t.size};
flex: none;
`;class A extends _.a.Component{render(){const{iconSet:t,icon:e,className:n,color:r,size:o}=this.props,i=t[e];if(!i)return console.warn(`Invalid icon name ("${e}") passed to the SvgIcon component.`),null;const a=i.path,s=i.viewbox,u=["yoast-svg-icon","yoast-svg-icon-"+e,n].filter(Boolean).join(" "),c=i.CustomComponent?i.CustomComponent:P;return Object(E.createElement)(c,{"aria-hidden":!0,role:"img",focusable:"false",size:o,className:u,xmlns:"http://www.w3.org/2000/svg",viewBox:s,fill:r},Object(R.isArray)(a)?a:Object(E.createElement)("path",{d:a}))}}A.propTypes={icon:T.a.string.isRequired,iconSet:T.a.object.isRequired,color:T.a.string,size:T.a.string,className:T.a.string},A.defaultProps={size:"16px",color:"currentColor",className:""};var S,D=t=>{const e=e=>Object(E.createElement)(A,v()({},e,{iconSet:t}));return e.propTypes={icon:T.a.string.isRequired,color:T.a.string,size:T.a.string,className:T.a.string},e.defaultProps={size:"16px",color:"currentColor",className:""},e},I=function(){return[" ","\\n","\\r","\\t"," "," ",".",",","'","(",")",'"',"+","-",";","!","?",":","/","»","«","‹","›","<",">"]},B=function(t){return(t=(t=t.replace(/\s{2,}/g," ")).replace(/\s\.$/,".")).replace(/^\s+|\s+$/g,"")},k=n(50),C=n.n(k),U=["address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"],F=["b","big","i","small","tt","abbr","acronym","cite","code","dfn","em","kbd","strong","samp","time","var","a","bdo","br","img","map","object","q","script","span","sub","sup","button","input","label","select","textarea"],M=(new RegExp("^("+U.join("|")+")$","i"),new RegExp("^("+F.join("|")+")$","i"),new RegExp("^<("+U.join("|")+")[^>]*?>$","i")),L=new RegExp("^</("+U.join("|")+")[^>]*?>$","i"),Y=new RegExp("^<("+F.join("|")+")[^>]*>$","i"),H=new RegExp("^</("+F.join("|")+")[^>]*>$","i"),$=/^<([^>\s/]+)[^>]*>$/,q=/^<\/([^>\s]+)[^>]*>$/,V=/^[^<]+$/,G=/^<[^><]*$/,z=/<!--(.|[\r\n])*?-->/g,X=[];Object(R.memoize)((function(t){var e=[],n=0,r="",o="",i="";return t=t.replace(z,""),X=[],(S=C()((function(t){X.push(t)}))).addRule(V,"content"),S.addRule(G,"greater-than-sign-content"),S.addRule(M,"block-start"),S.addRule(L,"block-end"),S.addRule(Y,"inline-start"),S.addRule(H,"inline-end"),S.addRule($,"other-element-start"),S.addRule(q,"other-element-end"),S.onText(t),S.end(),Object(R.forEach)(X,(function(t,a){var s=X[a+1];switch(t.type){case"content":case"greater-than-sign-content":case"inline-start":case"inline-end":case"other-tag":case"other-element-start":case"other-element-end":case"greater than sign":s&&(0!==n||"block-start"!==s.type&&"block-end"!==s.type)?o+=t.src:(o+=t.src,e.push(o),r="",o="",i="");break;case"block-start":0!==n&&(""!==o.trim()&&e.push(o),o="",i=""),n++,r=t.src;break;case"block-end":n--,i=t.src,""!==r&&""!==i?e.push(r+o+i):""!==o.trim()&&e.push(o),r="",o="",i=""}n<0&&(n=0)})),e})),new RegExp("^<("+U.join("|")+")[^>]*?>","i"),new RegExp("</("+U.join("|")+")[^>]*?>$","i");var W=function(t){return t=t.replace(/(<([^>]+)>)/gi," "),B(t)};const Q=["script","style"],J=[":","https:","http:"],K={a:["href","target","rel"]},Z=(t,e,n)=>{const r=[];t.forEach(t=>{if(t.nodeType!==Node.ELEMENT_NODE)return;const o=t.nodeName.toLowerCase();Q.includes(o)?t.remove():(Z(t.childNodes,e,n),e.includes(o)?((t,e)=>{t.getAttributeNames().forEach(n=>{e.includes(n)?"href"===n&&"a"===t.nodeName.toLowerCase()&&(J.includes(t.protocol)||t.removeAttribute(n)):t.removeAttribute(n)})})(t,n[o]||K[o]||[]):r.push(t))}),r.forEach(t=>t.replaceWith(...t.childNodes))},tt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new DOMParser,o=r.parseFromString(t,"text/html");return Z(o.body.childNodes,e,n),o.body.innerHTML};function et(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.filter(Boolean).join(e)}var nt=n(4);const rt=j.a.span`
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
// Safari+VoiceOver bug see PR 308 and My Yoast issues 445, 712 and PR 715.
transform: translateY(1em);
`,ot=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";class e extends _.a.Component{constructor(t){super(t),this.isYoastLink=this.isYoastLink.bind(this)}isYoastLink(t){return/yoast\.com|yoast\.test|yoa\.st/.test(t)}render(){if(!this.props.href)return null;const e=this.isYoastLink(this.props.href),n=Object.assign({},this.props,{target:"_blank",rel:e?this.props.rel:"noopener"});return _.a.createElement(t,n,this.props.children,_.a.createElement(rt,null,Object(nt.__)("(Opens in a new browser tab)","wordpress-seo")))}}return e.propTypes={children:T.a.oneOfType([T.a.node]),href:T.a.string,rel:T.a.string},e.defaultProps={children:null,href:null,rel:null},e};var it=t=>e=>t.map(t=>t(e)).filter(t=>!0!==t),at=it([t=>{const{width:e,height:n}=t,r=Object(nt.sprintf)(
/* Translators: %d expands to the minimum width, %d expands to the minimum hight */
Object(nt.__)("Your image dimensions are not suitable. The minimum dimensions are %dx%d pixels.","wordpress-seo"),200,200);return!(e<200||n<200)||r},t=>{const{type:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to the jpg format, %s expands to the png format, %s expands to the gif format. */
Object(nt.__)("The format of the uploaded image is not supported. The supported formats are: %s, %s, %s and %s.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return!!["jpg","png","gif","jpeg","webp"].includes(e)||n}]),st=it([(t,e)=>{const{width:n,height:r}=t,o=Object(nt.__)("Your image dimensions are not suitable. The minimum dimensions are %dx%d pixels. The maximum dimensions are %dx%d pixels.","wordpress-seo"),i=n>4096||r>4096;
/* Translators: %d expands to the minimum width, %d expands to the minimum height,
%d expands to the maximum width, %d expands to the maximum height. */return e&&(n<300||r<157||i)?Object(nt.sprintf)(o,300,157,4096,4096):!(n<200||r<200||i)||Object(nt.sprintf)(o,200,200,4096,4096)},t=>{const{type:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to the gif format, %s expands to the gif format. */
Object(nt.__)("You have uploaded a %s. Please note that, if it’s an animated %s, only the first frame will be used.","wordpress-seo"),"GIF","GIF"),r=Object(nt.sprintf)(
/* Translators: %s expands to the jpg format, %s expands to the png format, %s expands to the gif format. */
Object(nt.__)("The format of the uploaded image is not supported. The supported formats are: %s, %s, %s and %s.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return!!["jpg","jpeg","png","webp"].includes(e)||("gif"===e?n:r)},t=>{const{bytes:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to Twitter, %s expands to the 5MB size. */
Object(nt.__)("The file size of the uploaded image is too large for %s. File size must be less than %s.","wordpress-seo"),"Twitter","5MB");return!(e>=5)||n}]);const ut=t=>document.querySelector(t),ct=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n=>{const r=ut(t);if(r){const t=Array.isArray(n)?n.join(","):n;r.value=t}e&&e(n)}},lt=t=>{const e=ut(t);return e?e.value:null}},5:function(t,e){t.exports=window.yoast.styledComponents},50:function(t,e){var n=function(t,e){var n;for(n=0;n<t.length;n++)if(t[n].regex.test(e))return t[n]},r=function(t,e){var r,o,i;for(r=0;r<e.length;r++)if(o=n(t,e.substring(0,r+1)))i=o;else if(i)return{max_index:r,rule:i};return i?{max_index:e.length,rule:i}:void 0};t.exports=function(t){var e="",o=[],i=1,a=1,s=function(e,n){t({type:n,src:e,line:i,col:a});var r=e.split("\n");i+=r.length-1,a=(r.length>1?1:a)+r[r.length-1].length};return{addRule:function(t,e){o.push({regex:t,type:e})},onText:function(t){for(var n=e+t,i=r(o,n);i&&i.max_index!==n.length;)s(n.substring(0,i.max_index),i.rule.type),n=n.substring(i.max_index),i=r(o,n);e=n},end:function(){if(0!==e.length){var t=n(o,e);if(!t){var r=new Error("unable to tokenize");throw r.tokenizer2={buffer:e,line:i,col:a},r}s(e,t.type)}}}}}});
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.jed=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=316)}({316:function(t,e,r){!function(r,n){var i=Array.prototype,s=Object.prototype,o=i.slice,l=s.hasOwnProperty,a=i.forEach,h={},c={forEach:function(t,e,r){var n,i,s;if(null!==t)if(a&&t.forEach===a)t.forEach(e,r);else if(t.length===+t.length){for(n=0,i=t.length;n<i;n++)if(n in t&&e.call(r,t[n],n,t)===h)return}else for(s in t)if(l.call(t,s)&&e.call(r,t[s],s,t)===h)return},extend:function(t){return this.forEach(o.call(arguments,1),(function(e){for(var r in e)t[r]=e[r]})),t}},u=function(t){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=c.extend({},this.defaults,t),this.textdomain(this.options.domain),t.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+t.domain+"`")};function p(t){return u.PF.compile(t||"nplurals=2; plural=(n != 1);")}function f(t,e){this._key=t,this._i18n=e}u.context_delimiter=String.fromCharCode(4),c.extend(f.prototype,{onDomain:function(t){return this._domain=t,this},withContext:function(t){return this._context=t,this},ifPlural:function(t,e){return this._val=t,this._pkey=e,this},fetch:function(t){return"[object Array]"!={}.toString.call(t)&&(t=[].slice.call(arguments,0)),(t&&t.length?u.sprintf:function(t){return t})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),t)}}),c.extend(u.prototype,{translate:function(t){return new f(t,this)},textdomain:function(t){if(!t)return this._textdomain;this._textdomain=t},gettext:function(t){return this.dcnpgettext.call(this,void 0,void 0,t)},dgettext:function(t,e){return this.dcnpgettext.call(this,t,void 0,e)},dcgettext:function(t,e){return this.dcnpgettext.call(this,t,void 0,e)},ngettext:function(t,e,r){return this.dcnpgettext.call(this,void 0,void 0,t,e,r)},dngettext:function(t,e,r,n){return this.dcnpgettext.call(this,t,void 0,e,r,n)},dcngettext:function(t,e,r,n){return this.dcnpgettext.call(this,t,void 0,e,r,n)},pgettext:function(t,e){return this.dcnpgettext.call(this,void 0,t,e)},dpgettext:function(t,e,r){return this.dcnpgettext.call(this,t,e,r)},dcpgettext:function(t,e,r){return this.dcnpgettext.call(this,t,e,r)},npgettext:function(t,e,r,n){return this.dcnpgettext.call(this,void 0,t,e,r,n)},dnpgettext:function(t,e,r,n,i){return this.dcnpgettext.call(this,t,e,r,n,i)},dcnpgettext:function(t,e,r,n,i){var s;if(n=n||r,t=t||this._textdomain,!this.options)return(s=new u).dcnpgettext.call(s,void 0,void 0,r,n,i);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[t])throw new Error("Domain `"+t+"` was not found.");if(!this.options.locale_data[t][""])throw new Error("No locale meta information provided.");if(!r)throw new Error("No translation key found.");var o,l,a,h=e?e+u.context_delimiter+r:r,c=this.options.locale_data,f=c[t],d=(c.messages||this.defaults.locale_data.messages)[""],y=f[""].plural_forms||f[""]["Plural-Forms"]||f[""]["plural-forms"]||d.plural_forms||d["Plural-Forms"]||d["plural-forms"];if(void 0===i)a=0;else{if("number"!=typeof i&&(i=parseInt(i,10),isNaN(i)))throw new Error("The number that was passed in is not a number.");a=p(y)(i)}if(!f)throw new Error("No domain named `"+t+"` could be found.");return!(o=f[h])||a>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(h,t),l=[r,n],!0===this.options.debug&&console.log(l[p(y)(i)]),l[p()(i)]):(l=o[a])||(l=[r,n])[p()(i)]}});var d,y=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var r=[];e>0;r[--e]=t);return r.join("")}var r=function(){return r.cache.hasOwnProperty(arguments[0])||(r.cache[arguments[0]]=r.parse(arguments[0])),r.format.call(null,r.cache[arguments[0]],arguments)};return r.format=function(r,n){var i,s,o,l,a,h,c,u=1,p=r.length,f="",d=[];for(s=0;s<p;s++)if("string"===(f=t(r[s])))d.push(r[s]);else if("array"===f){if((l=r[s])[2])for(i=n[u],o=0;o<l[2].length;o++){if(!i.hasOwnProperty(l[2][o]))throw y('[sprLine truncated
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.propTypes=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=317)}({317:function(e,t,r){e.exports=r(318)()},318:function(e,t,r){"use strict";var n=r(319);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,u){if(u!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},319:function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}});
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.reactHelmet=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=320)}({0:function(e,t){e.exports=window.yoast.propTypes},190:function(e,t,r){"use strict";var n,o=r(3),i=(n=o)&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function f(){c=e(s.map((function(e){return e.props}))),l.canUseDOM?t(c):r&&(c=r(c))}var l=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),f()},a.render=function(){return i.createElement(n,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a(l,"canUseDOM",u),l}}},20:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},29:function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,u,c=a(e),s=1;s<arguments.length;s++){for(var f in r=Object(arguments[s]))o.call(r,f)&&(c[f]=r[f]);if(n){u=n(r);for(var l=0;l<u.length;l++)i.call(r,u[l])&&(c[u[l]]=r[u[l]])}}return c}},3:function(e,t){e.exports=window.React},320:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"Helmet",(function(){return Q}));var n,o,i,a,u=r(0),c=r.n(u),s=r(190),f=r.n(s),l=r(66),p=r.n(l),d=r(3),y=r.n(d),h=r(29),b=r.n(h),m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},T=(Object.keys(m).map((function(e){return m[e]})),"charset"),v={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.keys(v).reduce((function(e,t){return e[v[t]]=t,e}),{}),w=[m.NOSCRIPT,m.SCRIPT,m.STYLE],O="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},A=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},C=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),S=Object.assign||function(eLine truncated
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.redux=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=404)}({108:function(e,t,n){"use strict";(function(e,r){var o,i=n(191);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var u=Object(i.a)(o);t.a=u}).call(this,n(20),n(321)(e))},191:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},20: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},321:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},404:function(e,t,n){"use strict";n.r(t),n.d(t,"createStore",(function(){return u})),n.d(t,"combineReducers",(function(){return a})),n.d(t,"bindActionCreators",(function(){return d})),n.d(t,"applyMiddleware",(function(){return p})),n.d(t,"compose",(function(){return s}));var r=n(87),o=n.n(r),i=n(108);function u(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,a=t,f=[],d=f,s=!1;function l(){d===f&&(d=f.slice())}function p(){return a}function y(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return l(),d.push(e),function(){if(t){t=!1,l();var n=d.indexOf(e);d.splice(n,1)}}}function b(e){if(!o()(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(s)throw new Error("Reducers may not dispatch actions.");try{s=!0,a=c(a,e)}finally{s=!1}for(var t=f=d,n=0;n<t.length;n++)(0,t[n])();return e}return b({type:"@@redux/INIT"}),(r={dispatch:b,subscribe:y,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,b({type:"@@redux/INIT"})}})[i.a]=function(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[i.a]=function(){return this},e},r}function c(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n),u=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:"@@redux/INIT"}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. Don\'t try to handle @@redux/INIT or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){u=e}return function(){var e=arguments.length>0&&void 0!==aLine truncated
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.reduxJsToolkit=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}return 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=395)}({111:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var i=r();i.withExtraArgument=r,t.a=i},17:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[B]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===G}(e)||Array.isArray(e)||!!e[K]||!!e.constructor[K]||d(e)||p(e))}function u(e){return i(e)||r(23,e),e[B].t}function c(e,t,n){void 0===n&&(n=!1),0===a(e)?(n?Object.keys:J)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function a(e){var t=e[B];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function f(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t,n){var r=a(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function s(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return V&&e instanceof Map}function p(e){return U&&e instanceof Set}function v(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[B];for(var n=J(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function h(e,t){return void 0===t&&(t=!1),b(e)||i(e)||!o(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&c(e,(function(e,t){return h(t,!0)}),!0)),e}function g(){r(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=H[e];return t||r(18,e),t}function w(){return F}function O(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){P(e),e.p.forEach(S),e.p=null}function P(e){e===F&&(F=e.l)}function A(e){return F={p:[],l:F,h:e,m:!0,_:0}}function S(e){var t=e[B];0===t.i||1===t.i?t.j():t.O=!0}function E(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||m("ES5").S(t,e,i),i?(n[B].P&&(j(t),r(4)),o(e)&&(e=_(t,e),t.l||T(t,e)),t.u&&m("Patches").M(n[B].t,e,t.u,t.s)):e=_(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==X?e:void 0}function _(e,t,n){if(b(t))return t;var r=t[B];if(!r)return c(t,(function(i,o){return k(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=y(r.k):r.o;c(3===r.i?new Set(i):i,(function(t,o){return k(e,r,i,t,o,n)})),T(e,i,!1),n&&e.u&&m("Patches").R(r,n,e.u,e.s)}return r.o}function k(e,t,n,r,u,c){if(i(u)){var a=_(e,u,c&&t&&3!==t.i&&!f(t.D,r)?c.concat(r):void 0);if(l(n,r,a),!i(a))return;e.m=!1}if(o(u)&&!b(u)){if(!e.h.F&&e._<1)return;_(e,u),t&&t.A.l||T(e,u)}}function T(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&h(t,n)}function x(e,t){var n=e[B];return(n?v(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function D(e){e.o||(e.o=y(e.t))}function R(e,t,n){var r=d(t)?m("MapSet").N(t,n):p(t)?m("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=Q;n&&(i=[r],o=Y);var u=Proxy.revocable(i,o),c=u.revoke,a=u.proxy;return r.k=a,r.j=c,a}(t,n):m("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function C(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[B],i=a(t);if(r){if(!r.P&&(r.i<4||!m("ES5").K(r)))return r.t;r.I=!0,n=L(t,i),r.I=!1}else n=L(t,i);return c(n,(function(t,i){r&&function(e,t){return 2===aLine truncated
@@ -0,0 +1,83 @@
window.yoast=window.yoast||{},window.yoast.replacementVariableEditor=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=399)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},10:function(t,e){t.exports=window.yoast.helpers},106:function(t,e){t.exports=window.wp.components},107:function(t,e){t.exports=window.lodash.escapeRegExp},11:function(t,e){t.exports=window.yoast.draftJs},13:function(t,e,n){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return s(t)?t:V(t)}function r(t){return a(t)?t:U(t)}function i(t){return u(t)?t:W(t)}function o(t){return s(t)&&!c(t)?t:N(t)}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[p])}function u(t){return!(!t||!t[l])}function c(t){return a(t)||u(t)}function f(t){return!(!t||!t[d])}e(r,n),e(i,n),e(o,n),n.isIterable=s,n.isKeyed=a,n.isIndexed=u,n.isAssociative=c,n.isOrdered=f,n.Keyed=r,n.Indexed=i,n.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",l="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",v={},_={value:!1},y={value:!1};function g(t){return t.value=!1,t}function m(t){t&&(t.value=!0)}function b(){}function w(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function S(t){return void 0===t.size&&(t.size=t.__iterate(O)),t.size}function E(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?S(t)+e:e}function O(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function I(t,e){return M(t,e,0)}function z(t,e){return M(t,e,e)}function M(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var D,k,C,R="function"==typeof Symbol&&Symbol.iterator,A=R||"@@iterator";function q(t){this.next=t}function j(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function P(t){return!!T(t)}function F(t){return t&&"function"==typeof t.next}function K(t){var e=T(t);return e&&e.call(t)}function T(t){var e=t&&(R&&t[R]||t["@@iterator"]);if("function"==typeof e)return e}function L(t){return t&&"number"==typeof t.length}function V(t){return null==t?Q():s(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new J(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function U(t){return null==t?Q().toKeyedSeq():s(t)?a(t)?t.toSeq():t.fromEntrySeq():G(t)}function W(t){return null==t?Q():s(t)?a(t)?t.entrySeq():t.toIndexedSeq():Z(t)}function N(t){return(null==t?Q():s(t)?a(t)?t.entrySeq():t:Z(t)).toSetSeq()}function H(t){this._array=t,this.size=t.length}function J(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function Y(t){this._iterator=t,this._iteratorCache=[]}function X(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Q(){return D||(D=new H([]))}function G(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():F(t)?new Y(t).fromEntrySeq():P(t)?new $(t).fromEntrySeq():"object"==typeof t?new J(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function Z(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return L(t)?new H(t):F(t)?new Y(t):P(t)?new $(t):void 0}function et(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,s=0;s<=o;s++){var a=i[n?o-s:s];if(!1===e(a[1],r?a[0]:s,t))return s+1}return s}return t.__iterateUncached(e,n)}function nt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,s=0;return new q((function(){var t=i[n?o-s:s];return s++>o?{value:void 0,done:!0}:j(e,r?t[0]:s-1,t[1])}))}return t.__iteratorUncached(e,n)}function rt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,W(n).map((function(r,i){return t(e,r,i,n)}))):ot(n)?e.call(i,r,U(n).map((function(r,i){return t(e,r,i,n)}))):n}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?W(t)Line truncated
color: ${Re.colors.$color_white};
background-color: ${Re.colors.$color_pink_dark};
padding: 0 8px;
margin: 0 2px;
line-height: 1.71428571; // 24px based on 14px font-size
border-radius: 17px;
cursor: default;
&:hover {
color: ${Re.colors.$color_white};
background-color: ${Re.colors.$color_pink_dark};
}
`,qe=t=>{let{children:e,className:n}=t;return Object(r.createElement)(Ae,{className:Ce()("yst-replacevar__mention",n),spellCheck:!1},e)};qe.propTypes={children:u.a.node.isRequired,className:u.a.string.isRequired};var je=n(10);const Be=/%%([A-Za-z0-9_]+)%%/g;function Pe(t){return"%%"+t+"%%"}function Fe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e].reverse().forEach(e=>{const{start:n,end:r,replacementText:i}=e,o=t.slice(0,n),s=t.slice(r,t.length);t=o+i+s}),t}function Ke(t,e,n){return t>=e&&t<=n}function Te(t,e){let{start:n=0,end:r=t.getText().length}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.getText().slice(n,r),o=[];return t.findEntityRanges(t=>!!t.getEntity(),(i,s)=>{if(Ke(i,n,r)&&Ke(s,n,r)){const r=e(t.getEntityAt(i));r.data.mention&&o.push({start:i-n,end:s-n,replacementText:Pe(r.data.mention.replaceName)})}}),Fe(i,o)}function Le(t,e){let n=e;return t.forEach(t=>{t.name===e&&t.label&&(n=t.label)}),n}function Ve(t,e){const n=t.getCurrentContent().getBlockMap();let r=t;return n.forEach(t=>{const{text:n,key:i}=t;[...function(t){const e=[];let n;for(;n=Be.exec(t);){const[t,r]=n;e.push({name:r,start:n.index,length:t.length})}return e}(n)].reverse().forEach(t=>{t=function(t){return{...t,start:t.start,end:t.start+t.length,delta:t.label.length-t.length}}(t=function(t,e){return{...t,label:Le(e,t.name)}}(t,e));let n=r.getSelection();n=function(t,e,n){const{start:r,end:i,delta:o}=n;if(t.hasEdgeWithin(e,r,i)){const e=i+o;t=t.merge({anchorOffset:e,focusOffset:e})}else t.focusOffset>i&&(t=t.merge({anchorOffset:t.anchorOffset+o,focusOffset:t.focusOffset+o}));return t}(n,i,t);const o=function(t,e,n,r){const i=t.getCurrentContent(),o=function(t,e){const n=e.getAnchorKey(),r=t.getCurrentContent().getBlockForKey(n),i=e.getStartOffset(),o=e.getEndOffset();return r.getText().slice(i,o)}(t,l.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end+1}));if(!Object(je.getWordBoundaries)().includes(o)){const o=l.SelectionState.createEmpty(n).merge({anchorOffset:r.end,focusOffset:r.end}),s=l.Modifier.insertText(i,o," ");t=l.EditorState.push(t,s,"insert-characters"),e.getAnchorOffset()>=r.start&&(e=e.merge({anchorOffset:e.getAnchorOffset()+1,focusOffset:e.getFocusOffset()+1}))}return{editorState:t,selection:e}}(r,n,i,t);r=function(t,e,n){let r=t.getCurrentContent();const i=l.SelectionState.createEmpty(n).merge({anchorOffset:e.start,focusOffset:e.end});r=function(t,e){const n={mention:{replaceName:e.name}};return t.createEntity("%mention","IMMUTABLE",n)}(r,e);const o=l.Modifier.replaceText(r,i,e.label,null,r.getLastCreatedEntityKey());return l.EditorState.push(t,o,"apply-entity")}(o.editorState,t,i),r=l.EditorState.acceptSelection(r,o.selection)})}),r}function Ue(t,e){return Ve(l.EditorState.createWithContent(l.ContentState.createFromText(t)),e)}const We=(t,e)=>{const n=t.charAt(e);return 0===n.length||/\s/.test(n)},Ne=(t,e)=>{const n=e.getAnchorKey();return t.getBlockForKey(n)},He=t=>{const e=t.getCurrentContent(),n=t.getSelection(),r=l.Modifier.removeRange(e,n,"backward");return l.EditorState.push(t,r,"remove-range")};function Je(t,e,n){const r=t.getBlockForKey(e);let i=null;return r.findEntityRanges(t=>t.getEntity()===n,(t,e)=>{i={start:t,end:e}}),i}function $e(t,e,n){const r=t.getBlockForKey(e).getEntityAt(n),i=Je(t,e,r);return null===i||i.start===n?null:r}function Ye(t,e){const{start:n,end:r}=e;return t.getStartOffset()<=n&&t.getEndOffset()>=r}const Xe=ze.a.div`
div {
z-index: 10995;
}
> div {
max-height: 450px;
overflow-y: auto;
}
`,Qe=new RegExp("(?:\\p{RI}\\p{RI}|\\p{Emoji}(?:\\p{Emoji_Modifier}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(?:\\u{200D}\\p{Emoji}(?:\\p{Emoji_Modifier}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*)","gu");class Ge extends s.a.Component{constructor(t){super(t);const{content:e,replacementVariables:n,recommendedReplacementVariables:r}=this.props,i=Ue(e,n),o=this.determineCurrentReplacementVariables(n,r);this.state={editorState:i,searchValue:"",isSuggestionsOpen:!1,editorKey:this.props.fieldId,suggestions:this.mapReplacementVariablesToSuggestions(o)},this._serializedContent=e,this.initializeBinds(),this.initializeDraftJsPlugins()}initializeBinds(){this.onChange=this.onChange.bind(this),this.handleKeyCommand=this.handleKeyCommand.bind(this),this.onSearchChange=this.onSearchChange.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.handleCopyCutEvent=this.handleCopyCutEvent.bind(this),this.debouncedA11ySpeak=_e()(xe.speak.bind(this),500),this.onSuggestionsOpenChange=this.onSuggestionsOpenChange.bind(this)}initializeDraftJsPlugins(){const t=function(t){void 0===t&&(t={});var e,n,r,i,o,a,u,c={keyBindingFn:void 0,handleKeyCommand:void 0,handleReturn:void 0,onChange:void 0},f={ariaHasPopup:"false",ariaExpanded:!1,ariaOwneeID:void 0,ariaActiveDescendantID:void 0},h=Object(d.Map)(),p=Object(d.Map)(),l=!1,v={getEditorState:void 0,setEditorState:void 0,getPortalClientRect:function(t){return p.get(t)()},getAllSearches:function(){return h},isEscaped:function(t){return e===t},escapeSearch:function(t){e=t},resetEscapedSearch:function(){e=void 0},register:function(t){h=h.set(t,t)},updatePortalClientRect:function(t,e){p=p.set(t,e)},unregister:function(t){h=h.delete(t),p=p.delete(t)},getIsOpened:function(){return l},setIsOpened:function(t){l=t},getReferenceElement:function(){return n},setReferenceElement:function(t){n=t}},_=t,y=_.mentionPrefix,g=void 0===y?"":y,m=_.theme,b=void 0===m?ie:m,w=_.positionSuggestions,S=_.mentionComponent,E=_.mentionSuggestionsComponent,O=void 0===E?ee:E,x=_.entityMutability,I=void 0===x?"SEGMENTED":x,z=_.mentionTrigger,M=void 0===z?"@":z,k=_.mentionRegExp,C=void 0===k?"[\\w-À-ÖØ-öø-ÿĀ-ňŊ-ſА-я぀-ゟ゠-ヿ㄰-㆏가-힣一-龥؀-ۿÀ-ỹ]":k,R=_.supportWhitespace,A=void 0!==R&&R,q=_.popperOptions,j="string"==typeof M?[M]:M,B={ariaProps:f,callbacks:c,theme:b,store:v,entityMutability:I,positionSuggestions:w,mentionTriggers:j,mentionPrefix:g,popperOptions:q};return{MentionSuggestions:function(t){return s.a.createElement(O,jt({},t,B))},decorators:[{strategy:oe(j),component:function(t){return s.a.createElement(Lt,jt({},t,{theme:b,mentionComponent:S}))}},{strategy:(r=j,i=A,o=C,a="("+r.map((function(t){return D()(t)})).join("|")+")",u=i?new RegExp(a+"("+o+"|\\s)*","g"):new RegExp("(\\s|^)"+a+o+"*","g"),function(t,e){!function(t,e,n,r){var i=e.getText();e.findEntityRanges((function(t){return!t.getEntity()}),(function(e,o){var s=i.slice(e,o);n?function(t,e,n,r){for(var i,o,s=t.lastIndex;null!==(i=t.exec(e))&&t.lastIndex!==s;){s=t.lastIndex;var a=(o=n+i.index)+i[0].length;ae(e,i.index)&&r(o,a)}}(t,s,e,r):function(t,e,n,r){for(var i,o,s=t.lastIndex;null!==(i=t.exec(e))&&t.lastIndex!==s;){s=t.lastIndex;var a=(o=n+i.index)+i[0].length;se.test(e[o])&&(o+=1),r(o,a)}}(t,s,e,r)}))}(u,t,i,e)}),component:function(t){return s.a.createElement(re,jt({},t,{store:v}))}}],getAccessibilityProps:function(){return{role:"combobox",ariaAutoComplete:"list",ariaHasPopup:f.ariaHasPopup,ariaExpanded:f.ariaExpanded,ariaActiveDescendantID:f.ariaActiveDescendantID,ariaOwneeID:f.ariaOwneeID}},initialize:function(t){var e=t.getEditorState,n=t.setEditorState;v.getEditorState=e,v.setEditorState=n},keyBindingFn:function(t){return c.keyBindingFn&&c.keyBindingFn(t)},handleReturn:function(t){return c.handleReturn&&c.handleReturn(t)},onChange:function(t){return c.onChange?c.onChange(t):t}}}({mentionTrigger:"%",entityMutability:"IMMUTABLE",mentionComponent:qe}),e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},de,t),{blockRenderMap:Object(ue.Map)({unstyled:{element:"div"}}),onChange:function(e){var n=e.getCurrentContent().getBlocksAsArray();if(n.length>1)e=he(e,n,t);else{var r=n[0],i=r.getText(),o=r.getCharacterList(),s=t.stripEntities&&le(o);if(ce.test(i)||s){i=fe(i),t.stripEntities&&(o=o.map(pe)),r=new l.ContentBlock({key:Object(l.genKey)(),text:i,type:"unstyled",characterList:o,depth:0});var a=l.ContentState.createFromBlockArray([r]);e=l.EditorState.push(e,a,"insert-characters")}}return e},handleReturn:function(t){return"handled"}}}({stripEntities:!1});this.pluginList={mentionsPlugin:t,singleLinePlugin:{...e,handleReturn:()=>{}}},this.pluginList=Object(i.applyFilters)("yoast.replacementVariableEditor.pluginList",this.pluginList)}serializeContent(t){const e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";const n=t.getBlockMap();return n.map(e=>Te(e,e=>t.getEntity(e))).join(e)}(t.getCurrentContent());this._ser Line truncated
.public-DraftStyleDefault-block {
line-height: 1.85714285; // 26px based on 14px font-size
}
.public-DraftEditorPlaceholder-root {
color: ${"#707070"};
line-height: 1.85714285; // 26px based on 14px font-size
}
.public-DraftEditorPlaceholder-hasFocus {
color: ${"#707070"};
}
`,nn=ze()(tn.VariableEditorInputContainer)`
min-height: 72px;
padding: 4px 5px;
line-height: 1.85714285; // 26px based on 14px font-size
.public-DraftEditorPlaceholder-root {
color: ${"#707070"};
position: absolute;
line-height: 1.85714285; // 26px based on 14px font-size
}
.public-DraftEditorPlaceholder-hasFocus {
color: ${"#707070"};
position: absolute;
}
`,rn=ze.a.div`
display: flex;
flex-wrap: wrap;
align-items: center;
margin: 16px 0 0 0;
`,on=ze()(tn.Button)`
color: #303030;
box-sizing: border-box;
border-radius: 4px;
box-shadow: inset 0 -2px 0 0 rgba(0,0,0,0.1);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
padding: 4px;
border: 1px solid #dbdbdb;
font-size: 14px;
font-weight: 400;
line-height: 1.5;
margin-bottom: 5px;
max-width: 200px;
padding: 0 0.5em;
`,sn=ze()(on)`
font-size: 13px;
margin-bottom: 0; /* Override StandardButton margin instead of changing that. */
& svg {
${Object(je.getDirectionalStyle)("margin-right","margin-left")}: 7px;
fill: ${Re.colors.$color_grey_dark};
}
`,an=ze.a.div`
display: inline-flex;
gap: 0.5em;
margin-inline-start: auto;
margin-bottom: 5px;
`;class un extends s.a.Component{constructor(t){switch(super(t),this.uniqueId=f()("replacement-variable-editor-field-"),t.type){case"description":this.InputContainer=nn;break;case"title":this.InputContainer=en;break;default:this.InputContainer=en}t.withCaret&&(this.InputContainer=Object(Re.withCaretStyles)(this.InputContainer)),this.triggerReplacementVariableSuggestions=this.triggerReplacementVariableSuggestions.bind(this)}triggerReplacementVariableSuggestions(){this.ref.triggerReplacementVariableSuggestions()}render(){const{label:t,onChange:e,content:n,onFocus:s,onBlur:a,isActive:u,isHovered:c,onSearchChange:f,replacementVariables:l,recommendedReplacementVariables:d,editorRef:v,placeholder:_,fieldId:y,onMouseEnter:g,onMouseLeave:m,hasNewBadge:b,isDisabled:w,hasPremiumBadge:S,type:E}=this.props,O=this.InputContainer,x=Object(i.applyFilters)("yoast.replacementVariableEditor.additionalButtons",[],{fieldId:y,type:E});return Object(r.createElement)(rn,{className:["yst-replacevar",w&&"yst-replacevar--disabled"].filter(Boolean).join(" "),onMouseEnter:g,onMouseLeave:m},Object(r.createElement)(tn.SimulatedLabel,{className:"yst-replacevar__label",id:this.uniqueId,onClick:s},t),S&&Object(r.createElement)(tn.PremiumBadge,{inLabel:!0}),b&&Object(r.createElement)(tn.NewBadge,{inLabel:!0}),Object(r.createElement)(an,{className:"yst-replacevar__buttons"},Object(r.createElement)(p.Slot,{name:"yoast.replacementVariableEditor.additionalButtons."+y}),x.map((t,e)=>Object(r.createElement)(o.Fragment,{key:`additional-button-${e}-${y}`},t)),Object(r.createElement)(p.Slot,{key:"PluginComponent-"+y,name:"PluginComponent-"+y}),Object(r.createElement)(sn,{className:"yst-replacevar__button-insert",onClick:this.triggerReplacementVariableSuggestions,disabled:w},Object(h.__)("Insert variable","wordpress-seo"))),Object(r.createElement)(O,{className:"yst-replacevar__editor",onClick:s,isActive:u&&!w,isHovered:c},Object(r.createElement)(Ze,{fieldId:y,placeholder:_,content:n,onChange:e,onFocus:s,onBlur:a,onSearchChange:f,replacementVariables:l,recommendedReplacementVariables:d,ref:t=>{this.ref=t,v(t)},ariaLabelledBy:this.uniqueId,isDisabled:w})))}}un.propTypes={editorRef:u.a.func,content:u.a.string.isRequired,onChange:u.a.func.isRequired,onBlur:u.a.func,onSearchChange:u.a.func,replacementVariables:Me,recommendedReplacementVariables:De,isActive:u.a.bool,isHovered:u.a.bool,withCaret:u.a.bool,onFocus:u.a.func,label:u.a.string,placeholder:u.a.string,type:u.a.oneOf(["title","description"]).isRequired,fieldId:u.a.string,onMouseEnter:u.a.func,onMouseLeave:u.a.func,hasNewBadge:u.a.bool,isDisabled:u.a.bool,hasPremiumBadge:u.a.bool},un.defaultProps={onFocus:()=>{},onBlur:()=>{},onSearchChange:null,replacementVariables:[],recommendedReplacementVariables:[],fieldId:"",placeholder:"",label:"",withCaret:!1,isHovered:!1,isActive:!1,editorRef:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var cn=un;const fn=ze.a.section`
padding: ${t=>t.padding?t.padding:"0 20px"};
`;class hn extends s.a.Component{constructor(t){super(t),this.elements={title:null,description:null},this.setRef=this.setRef.bind(this),this.setTitleRef=this.setTitleRef.bind(this),this.setDescriptionRef=this.setDescriptionRef.bind(this),this.triggerReplacementVariableSuggestions=this.triggerReplacementVariableSuggestions.bind(this),this.onFocusTitle=this.onFocusTitle.bind(this),this.onChangeTitle=this.onChangeTitle.bind(this),this.onFocusDescription=this.onFocusDescription.bind(this),this.onChangeDescription=this.onChangeDescription.bind(this)}setRef(t,e){this.elements[t]=e}setTitleRef(t){this.setRef("title",t)}setDescriptionRef(t){this.setRef("description",t)}componentDidUpdate(t){this.focusOnActiveFieldChange(t.activeField)}focusOnActiveFieldChange(t){const{activeField:e}=this.props;e&&e!==t&&this.elements[e].focus()}triggerReplacementVariableSuggestions(t){this.elements[t].triggerReplacementVariableSuggestions()}onFocusTitle(){this.props.onFocus("title")}onChangeTitle(t){this.props.onChange("title",t)}onFocusDescription(){this.props.onFocus("description")}onChangeDescription(t){this.props.onChange("description",t)}render(){const{descriptionEditorFieldPlaceholder:t,activeField:e,hoveredField:n,replacementVariables:i,recommendedReplacementVariables:o,onBlur:s,data:{title:a,description:u},containerPadding:c,fieldIds:f,labels:p,hasNewBadge:l,isDisabled:d,hasPremiumBadge:v}=this.props;return Object(r.createElement)(fn,{padding:c},Object(r.createElement)(cn,{type:"title",label:p.title||Object(h.__)("SEO title","wordpress-seo"),onFocus:this.onFocusTitle,onBlur:s,isActive:"title"===e,isHovered:"title"===n,editorRef:this.setTitleRef,replacementVariables:i,recommendedReplacementVariables:o,content:a,onChange:this.onChangeTitle,fieldId:f.title,hasNewBadge:l,isDisabled:d,hasPremiumBadge:v}),Object(r.createElement)(cn,{type:"description",placeholder:t,label:p.description||Object(h.__)("Meta description","wordpress-seo"),onFocus:this.onFocusDescription,onBlur:s,isActive:"description"===e,isHovered:"description"===n,editorRef:this.setDescriptionRef,replacementVariables:i,recommendedReplacementVariables:o,content:u,onChange:this.onChangeDescription,fieldId:f.description,hasNewBadge:l,isDisabled:d,hasPremiumBadge:v}))}}hn.propTypes={replacementVariables:Me,recommendedReplacementVariables:De,onChange:u.a.func.isRequired,onFocus:u.a.func,onBlur:u.a.func,data:u.a.shape({title:u.a.string,description:u.a.string}).isRequired,activeField:u.a.oneOf(["title","description"]),hoveredField:u.a.oneOf(["title","description"]),descriptionEditorFieldPlaceholder:u.a.string,containerPadding:u.a.string,fieldIds:u.a.shape({title:u.a.string.isRequired,description:u.a.string.isRequired}).isRequired,labels:u.a.shape({title:u.a.string,description:u.a.string}),hasNewBadge:u.a.bool,isDisabled:u.a.bool,hasPremiumBadge:u.a.bool},hn.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],onFocus:()=>{},onBlur:()=>{},containerPadding:"0 20px",descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1,activeField:"",hoveredField:""};var pn=hn;class ln extends s.a.Component{constructor(t){super(t),this.state={activeField:null,hoveredField:null},this.setFieldFocus=this.setFieldFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.onClick=this.onClick.bind(this),this.onBlur=this.onBlur.bind(this)}handleChange(t,e){this.props.onChange(t,e)}setFieldFocus(t){this.setState({activeField:t})}onBlur(){this.setState({activeField:null})}onClick(t){this.setFieldFocus(t)}render(){const{data:t,replacementVariables:e,recommendedReplacementVariables:n,descriptionEditorFieldPlaceholder:i,hasPaperStyle:o,fieldIds:s,labels:a,hasNewBadge:u,isDisabled:c,hasPremiumBadge:f}=this.props,{activeField:h,hoveredField:p}=this.state;return Object(r.createElement)(tn.ErrorBoundary,null,Object(r.createElement)(pn,{descriptionEditorFieldPlaceholder:i,data:t,activeField:h,hoveredField:p,onChange:this.handleChange,onFocus:this.setFieldFocus,onBlur:this.onBlur,replacementVariables:e,recommendedReplacementVariables:n,containerPadding:o?"0 20px":"0",fieldIds:s,labels:a,hasNewBadge:u,isDisabled:c,hasPremiumBadge:f}))}}ln.propTypes={replacementVariables:Me,recommendedReplacementVariables:De,data:u.a.shape({title:u.a.string.isRequired,description:u.a.string.isRequired}).isRequired,onChange:u.a.func.isRequired,descriptionEditorFieldPlaceholder:u.a.string,hasPaperStyle:u.a.bool,fieldIds:u.a.shape({title:u.a.string.isRequired,description:u.a.string.isRequired}).isRequired,labels:u.a.shape({title:u.a.string,description:u.a.string}),hasNewBadge:u.a.bool,isDisabled:u.a.bool,hasPremiumBadge:u.a.bool},ln.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],hasPaperStyle:!0,descriptionEditorFieldPlaceholder:null,labels:{},hasNewBadge:!1,isDisabled:!1,hasPremiumBadge:!1};var dn=ln},4:function(t,e){t.exports=window.wp.i18n},5:function(t,e){t.exports=window.yoast.styledComponents},51:function(t,e){t.exports=window Line truncated
@@ -0,0 +1,308 @@
window.yoast=window.yoast||{},window.yoast.searchMetadataPreviews=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=402)}({0:function(e,t){e.exports=window.yoast.propTypes},1:function(e,t){e.exports=window.wp.element},10:function(e,t){e.exports=window.yoast.helpers},116:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}(n(0)),o=a(n(3)),r=a(n(34)),s=n(72);function a(e){return e&&e.__esModule?e:{default:e}}n(117),t.UNMOUNTED="unmounted",t.EXITED="exited",t.ENTERING="entering",t.ENTERED="entered",t.EXITING="exiting";var l=function(e){var t,n;function i(t,n){var i;i=e.call(this,t,n)||this;var o,r=n.transitionGroup,s=r&&!r.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?s?(o="exited",i.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",i.state={status:o},i.nextCallback=null,i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getChildContext=function(){return{transitionGroup:null}},i.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=r.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},s.performEnter=function(e,t){var n=this,i=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,r=this.getTimeouts(),s=o?r.appear:r.enter;t||i?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,s,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},s.performExit=function(e){var t=this,n=this.props.exit,i=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,i.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var i=null==t&&!this.props.addEndListener;e&&!i?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnLine truncated
overflow: auto;
width: ${e=>e.widthValue}px;
padding: 0 ${e=>e.paddingValue}px;
max-width: 100%;
box-sizing: border-box;
`,g=a.a.div`
width: ${e=>e.widthValue}px;
`,f=a.a.div`
text-align: center;
margin: 1em 0 5px;
`,m=a.a.div`
display: inline-block;
box-sizing: border-box;
&:before{
display: inline-block;
margin-right: 10px;
font-size: 20px;
line-height: inherit;
vertical-align: text-top;
content: "\\21c4";
box-sizing: border-box;
}
`;class b extends o.Component{constructor(e){super(e),this.state={showScrollHint:!1},this.setContainerRef=this.setContainerRef.bind(this),this.determineSize=d()(this.determineSize.bind(this),100)}setContainerRef(e){if(!e)return null;this._container=e,this.determineSize(),window.addEventListener("resize",this.determineSize)}determineSize(){const e=this._container.offsetWidth;this.setState({showScrollHint:e<this.props.width})}componentWillUnmount(){window.removeEventListener("resize",this.determineSize)}render(){const{width:e,padding:t,children:n,className:o,id:s}=this.props,a=e-2*t;return Object(i.createElement)(r.a.Fragment,null,Object(i.createElement)(h,{id:s,className:o,widthValue:e,paddingValue:t,ref:this.setContainerRef},Object(i.createElement)(g,{widthValue:a},n)),this.state.showScrollHint&&Object(i.createElement)(f,null,Object(i.createElement)(m,null,Object(u.__)("Scroll to see the preview content.","wordpress-seo"))))}}b.propTypes={id:c.a.string,width:c.a.number.isRequired,padding:c.a.number,children:c.a.node.isRequired,className:c.a.string},b.defaultProps={id:"",padding:0,className:""};var v=n(51),x=n.n(v),E=n(9),y=n(10),w=n(6),O=n(186);const S=a.a.div`
& > :first-child {
overflow: hidden;
transition: height ${e=>e.duration+"ms"} ease-out;
}
`;class j extends r.a.Component{resetHeight(e){e.style.height="0"}setHeight(e){const t=function(e){return Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight)}(e);e.style.height=t+"px"}removeHeight(e){e.style.height=null}render(){return Object(i.createElement)(S,{duration:this.props.duration},Object(i.createElement)(O.CSSTransition,{in:this.props.isOpen,timeout:this.props.duration,classNames:"slide",unmountOnExit:!0,onEnter:this.resetHeight,onEntering:this.setHeight,onEntered:this.removeHeight,onExit:this.setHeight,onExiting:this.resetHeight},this.props.children))}}j.propTypes={isOpen:c.a.bool.isRequired,duration:c.a.number,children:c.a.node},j.defaultProps={duration:300,children:[]};const C=a.a.div`
max-width: 600px;
font-weight: normal;
// Don't apply a bottom margin to avoid "jumpiness".
margin: ${Object(y.getDirectionalStyle)("0 20px 0 25px","0 20px 0 15px")};
`,R=a.a.div`
max-width: ${e=>e.panelMaxWidth};
`,_=a()(E.Button)`
min-width: 14px;
min-height: 14px;
width: 30px;
height: 30px;
border-radius: 50%;
border: 1px solid transparent;
box-shadow: none;
display: block;
margin: -44px -10px 10px 0;
background-color: transparent;
float: ${Object(y.getDirectionalStyle)("right","left")};
padding: ${Object(y.getDirectionalStyle)("3px 0 0 6px","3px 0 0 5px")};
&:hover {
color: ${w.colors.$color_blue};
}
&:focus {
border: 1px solid ${w.colors.$color_blue};
outline: none;
box-shadow: 0 0 3px ${Object(w.rgba)(w.colors.$color_blue_dark,.8)};
svg {
fill: ${w.colors.$color_blue};
color: ${w.colors.$color_blue};
}
}
&:active {
box-shadow: none;
}
`,M=a()(E.SvgIcon)`
&:hover {
fill: ${w.colors.$color_blue};
}
`;class T extends r.a.Component{constructor(e){super(e),this.state={isExpanded:!1},this.uniqueId=x()("yoast-help-"),this.onButtonClick=this.onButtonClick.bind(this)}onButtonClick(){this.setState(e=>({isExpanded:!e.isExpanded}))}render(){const e=this.uniqueId+"-panel",{isExpanded:t}=this.state;return Object(i.createElement)(C,{className:this.props.className},Object(i.createElement)(_,{className:this.props.className+"__button",onClick:this.onButtonClick,"aria-expanded":t,"aria-controls":t?e:null,"aria-label":this.props.helpTextButtonLabel},Object(i.createElement)(M,{size:"16px",color:w.colors.$color_grey_text,icon:"question-circle"})),Object(i.createElement)(j,{isOpen:t},Object(i.createElement)(R,{id:e,className:this.props.className+"__panel",panelMaxWidth:this.props.panelMaxWidth},Object(i.createElement)(E.HelpText,null,this.props.helpText))))}}T.propTypes={className:c.a.string,helpTextButtonLabel:c.a.string.isRequired,panelMaxWidth:c.a.string,helpText:c.a.oneOfType([c.a.string,c.a.array])},T.defaultProps={className:"yoast-help",panelMaxWidth:null,helpText:""};var P=T,F=n(12),A=n.n(F),k=n(26),D=n.n(k),N=n(187),I=n.n(N),V=n(30),L=n(2);const U=a.a.span`
color: #70757a;
line-height: 1.7;
`;function B(e){const{shoppingData:t}=e,n=Object(u.sprintf)(Object(u.__)("Rating: %s","wordpress-seo"),Object(L.round)(2*t.rating,1)+"/10"),r=Object(u.sprintf)(Object(u.__)("%s reviews","wordpress-seo"),t.reviewCount);
/* Translators: %s expands to the actual rating, e.g. 8/10. */return Object(i.createElement)(U,null,t.reviewCount>0&&Object(i.createElement)(o.Fragment,null,Object(i.createElement)(E.StarRating,{rating:t.rating}),Object(i.createElement)("span",null," ",n," · "),Object(i.createElement)("span",null,r," · ")),t.price&&Object(i.createElement)(o.Fragment,null,Object(i.createElement)("span",{dangerouslySetInnerHTML:{__html:t.price}})),t.availability&&Object(i.createElement)("span",null," · "+Object(L.capitalize)(t.availability)))}var $=B;B.propTypes={shoppingData:c.a.shape({rating:c.a.number,reviewCount:c.a.number,availability:c.a.string,price:c.a.string}).isRequired};const z=a.a.div`
display: flex;
margin-top: -16px;
line-height: 1.6;
`,W=a.a.div`
flex: 1;
max-width: 50%;
`,H=a.a.div`
flex: 1;
max-width: 25%;
`,q=a.a.div`
color: #70757a;
`;function G(e){const{shoppingData:t}=e;return Object(i.createElement)(z,null,t.rating>0&&Object(i.createElement)(W,{className:"yoast-shopping-data-preview__column"},Object(i.createElement)("div",{className:"yoast-shopping-data-preview__upper"},Object(u.__)("Rating","wordpress-seo")),Object(i.createElement)(q,{className:"yoast-shopping-data-preview__lower"},Object(i.createElement)("span",null,Object(L.round)(2*t.rating,1),"/10 "),Object(i.createElement)(E.StarRating,{rating:t.rating}),Object(i.createElement)("span",null," (",t.reviewCount,")"))),t.price&&Object(i.createElement)(H,{className:"yoast-shopping-data-preview__column"},Object(i.createElement)("div",{className:"yoast-shopping-data-preview__upper"},Object(u.__)("Price","wordpress-seo")),Object(i.createElement)(q,{className:"yoast-shopping-data-preview__lower",dangerouslySetInnerHTML:{__html:t.price}})),t.availability&&Object(i.createElement)(H,{className:"yoast-shopping-data-preview__column"},Object(i.createElement)("div",{className:"yoast-shopping-data-preview__upper"},Object(u.__)("Availability","wordpress-seo")),Object(i.createElement)(q,{className:"yoast-shopping-data-preview__lower"},Object(L.capitalize)(t.availability))))}var Q=G;G.propTypes={shoppingData:c.a.shape({rating:c.a.number,reviewCount:c.a.number,availability:c.a.string,price:c.a.string}).isRequired};const K=["desktop","mobile"],{transliterate:X,createRegexFromArray:Y,replaceDiacritics:J}=V.languageProcessing,Z=a()(b)`
background-color: #fff;
font-family: arial, sans-serif;
box-sizing: border-box;
`,ee=a.a.div`
border-bottom: 1px hidden #fff;
border-radius: 8px;
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
font-family: Arial, Roboto-Regular, HelveticaNeue, sans-serif;
max-width: ${400}px;
box-sizing: border-box;
font-size: 14px;
`,te=a.a.div`
cursor: pointer;
position: relative;
`;function ne(e,t,n){return a()(e)`
&::before {
display: block;
position: absolute;
top: 0;
${Object(y.getDirectionalStyle)("left","right")}: ${()=>"desktop"===n?"-22px":"-40px"};
width: 22px;
height: 22px;
background-image: url( ${Object(y.getDirectionalStyle)(Object(w.angleRight)(t),Object(w.angleLeft)(t))} );
background-size: 24px;
background-repeat: no-repeat;
background-position: center;
content: "";
}
`}const ie=a.a.div`
color: ${e=>"desktop"===e.screenMode?"#1a0dab":"#1558d6"};
text-decoration: none;
font-size: ${e=>(e.screenMode,"20px")};
line-height: ${e=>"desktop"===e.screenMode?"1.3":"26px"};
font-weight: normal;
margin: 0;
display: inline-block;
overflow: hidden;
max-width: ${600}px;
vertical-align: top;
text-overflow: ellipsis;
`,oe=a()(ie)`
max-width: ${600}px;
vertical-align: top;
text-overflow: ellipsis;
`,re=a.a.span`
display: inline-block;
max-width: ${e=>"desktop"===e.screenMode?240:100}px;
overflow: hidden;
vertical-align: top;
text-overflow: ellipsis;
margin-left: 4px;
`,se=a.a.span`
white-space: nowrap;
`,ae=a.a.span`
display: inline-block;
max-height: 52px; // max two lines of text
padding-top: 1px;
vertical-align: top;
overflow: hidden;
text-overflow: ellipsis;
`,le=a.a.div`
display: inline-block;
cursor: pointer;
position: relative;
width: calc( 100% + 7px );
white-space: nowrap;
font-size: 14px;
line-height: 16px;
vertical-align: top;
`;le.displayName="BaseUrl";const ce=a()(le)`
display: flex;
align-items: center;
overflow: hidden;
justify-content: space-between;
text-overflow: ellipsis;
max-width: 100%;
margin-bottom: 12px;
padding-top: 1px;
line-height: 20px;
vertical-align: bottom;
`;ce.displayName="BaseUrlOverflowContainer";const pe=a.a.span`
font-size: ${e=>"desktop"===e.screenMode?"14px":"12px"};
line-height: ${e=>"desktop"===e.screenMode?"1.3":"20px"};
color: ${e=>"desktop"===e.screenMode?"#4d5156":"#3c4043"};
flex-grow: 1;
`,de=a.a.span`
color: ${e=>"desktop"===e.screenMode?"#4d5156":"#70757a"};
`,ue=a.a.div`
width: 28px;
height: 28px;
margin-right: 12px;
border-radius: 50px;
display: flex;
align-items: center;
justify-content: center;
background: #f1f3f4;
min-width: 28px;
`;ce.displayName="SnippetPreview__BaseUrlOverflowContainer";const he=a.a.div`
color: ${e=>(e.isDescriptionPlaceholder,"#4d5156")};
cursor: pointer;
position: relative;
max-width: ${600}px;
padding-top: ${e=>"desktop"===e.screenMode?"0":"1px"};
font-size: 14px;
line-height: 1.58;
`,ge=a.a.div`
color: ${"#3c4043"};
font-size: 14px;
cursor: pointer;
position: relative;
line-height: 1.4;
max-width: ${600}px;
/* Clearing pseudo element to contain the floated image. */
&:after {
display: table;
content: "";
clear: both;
}
`,fe=a.a.div`
float: right;
width: 104px;
height: 104px;
margin: 4px 0 4px 16px;
border-radius: 8px;
overflow: hidden;
`,me=a.a.img`
/* Higher specificity is necessary to make sure inherited CSS rules don't alter the image ratio. */
&&& {
display: block;
width: 104px;
height: 104px;
object-fit: cover;
}
`,be=a.a.div`
padding: 12px 16px;
&:first-child {
margin-bottom: -16px;
}
`,ve=a.a.div`
line-height: 18x;
font-size: 14px;
color: black;
max-width: ${e=>"desktop"===e.screenMode?"100%":"300px"};
overflow: hidden;
`,xe=a.a.div`
`,Ee=a.a.span`
display: inline-block;
height: 18px;
line-height: 18px;
padding-left: 8px;
vertical-align:bottom;
`,ye=a.a.span`
color: ${e=>"desktop"===e.screenMode?"#777":"#70757a"};
`,we=a.a.img`
width: 18px;
height: 18px;
margin: 0 5px;
vertical-align: middle;
`,Oe=a.a.div`
background-size: 100% 100%;
display: inline-block;
height: 12px;
width: 12px;
margin-bottom: -1px;
opacity: 0.46;
margin-right: 6px;
background-image: url( ${"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAABr0lEQVR4AbWWJYCUURhFD04Zi7hrLzgFd4nzV9x6wKHinmYb7g4zq71gIw2LWBnZ3Q8df/fh96Tn/t2HVIw4CVKk+fSFNCkSxInxW1pFkhLmoMRjVvFLmkEX5ocuZuBVPw5jv8hh+iEU5QEmuMK+prz7RN3dPMMEGQYzxpH/lGjzou5jgl7mAvOdZfcbF+jbm3MAbFZ7VX9SJnlL1D8UMyjLe+BrAYDb+jJUr59JrlNWRtcqX9GkrPCR4QBAf4qYJAkQoyQrbKKs8RiaEjEI0GvvQ1mLMC9xaBFFBaZS1TbMSwJSomg39erDF+TxpCCNOXjGQJTCvG6qn4ZPzkcxA61Tjhaf4KMj+6Q3XvW6Lopraa8IozRQxIi0a7NXorULc5JyHX/3F3q+0PsFYytVTaGgjz/AvCyiegE69IUsPxHNBMpa738i6tGWlzkAABjKe/+j9YeRHGVd9oWRnwe2ewDASp/L/UqoPQ5AmFeYZMavBP8dAJz0GWWDHQlzXApMdz4KYUfKICcxkKeOfGmQyrIPcgE9m+g/+kT812/Nr3+0kqzitxQjoKXh6xfor99nlEdFjyvH15gAAAAASUVORK5CYII="} );
`,Se=e=>{try{return decodeURI(e)}catch(t){return e}},je=e=>{let{screenMode:t}=e;return Object(i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"desktop"===t?"#4d5156":"#70757a",style:{width:"18px"}},Object(i.createElement)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))};je.propTypes={screenMode:c.a.string.isRequired};class Ce extends o.PureComponent{constructor(e){super(e),this.state={title:e.title,description:e.description,isDescriptionPlaceholder:!0},this.setTitleRef=this.setTitleRef.bind(this),this.setDescriptionRef=this.setDescriptionRef.bind(this)}setTitleRef(e){this._titleElement=e}setDescriptionRef(e){this._descriptionElement=e}hasOverflowedContent(e){return Math.abs(e.clientHeight-e.scrollHeight)>=2}fitTitle(){const e=this._titleElement;if(this.hasOverflowedContent(e)){let t=this.state.title;const n=e.clientWidth/3;t.length>n&&(t=t.substring(0,n));const i=this.dropLastWord(t);this.setState({title:i})}}dropLastWord(e){const t=e.split(" ");return t.pop(),t.join(" ")}getTitle(){return this.props.title!==this.state.title?this.state.title+" ...":this.props.title}getDescription(){return this.props.description?I()(this.props.description,{length:156,separator:" ",omission:" ..."}):Object(u.__)("Please provide a meta description by editing the snippet below. If you don’t, Google will try to find a relevant part of your post to show in the search results.","wordpress-seo")}renderDate(){const e="desktop"===this.props.mode?"—":"-";return this.props.date&&Object(i.createElement)(ye,{screenMode:this.props.mode},this.props.date," ",e," ")}addCaretStyles(e,t){const{mode:n,hoveredField:i,activeField:o}=this.props;return o===e?ne(t,w.colors.$color_snippet_active,n):i===e?ne(t,w.colors.$color_snippet_hover,n):t}getBreadcrumbs(e){const{breadcrumbs:t}=this.props;let n;try{n=new URL(e)}catch(t){return{hostname:e,breadcrumbs:""}}const i=Se(n.hostname);let o=t||n.pathname.split("/");return o=o.filter(e=>Boolean(e)).map(e=>Se(e)),{hostname:i,breadcrumbs:" › "+o.join(" › ")}}renderUrl(){const{url:e,onMouseUp:t,onMouseEnter:n,onMouseLeave:o,mode:s,faviconSrc:a,siteName:l}=this.props,c="mobile"===s,{hostname:p,breadcrumbs:d}=this.getBreadcrumbs(e),h=this.addCaretStyles("url",le);return Object(i.createElement)(r.a.Fragment,null,Object(i.createElement)(E.ScreenReaderText,null,Object(u.__)("Url preview","wordpress-seo")+":"),Object(i.createElement)(h,null,Object(i.createElement)(ce,{onMouseUp:t.bind(null,"url"),onMouseEnter:n.bind(null,"url"),onMouseLeave:o.bind(null),screenMode:s},Object(i.createElement)(ue,null,Object(i.createElement)(we,{src:a||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVR4AWL4//8/RRjO8Iucx+noO0MWUDo16FYABMGP6ZfUcRnWtm27jVPbtm3bttuH2t3eFPcY9pLz7NxiLjCyVd87pKnHyqXyxtCs8APd0rnyxiu4qSeA3QEDrAwBDrT1s1Rc/OrjLZwqVmOSu6+Lamcpp2KKMA9PH1BYXMe1mUP5qotvXTywsOEEYHXxrY+3cqk6TMkYpNr2FeoY3KIr0RPtn9wQ2unlA+GMkRw6+9TFw4YTwDUzx/JVvARj9KaedXRO8P5B1Du2S32smzqUrcKGEyA+uAgQjKX7zf0boWHGfn71jIKj2689gxp7OAGShNcBUmLMPVjZuiKcA2vuWHHDCQxMCz629kXAIU4ApY15QwggAFbfOP9DhgBJ+nWVJ1AZAfICAj1pAlY6hCADZnveQf7bQIwzVONGJonhLIlS9gr5mFg44Xd+4S3XHoGNPdJl1INIwKyEgHckEhgTe1bGiFY9GSFBYUwLh1IkiJUbY407E7syBSFxKTszEoiE/YdrgCEayDmtaJwCI9uu8TKMuZSVfSa4BpGgzvomBR/INhLGzrqDotp01ZR8pn/1L0JN9d9XNyx0AAAAAElFTkSuQmCC",alt:""})),Object(i.createElement)(pe,{screenMode:s},Object(i.createElement)(ve,{screenMode:s},l),Object(i.createElement)(de,{screenMode:s},p),Object(i.createElement)(re,{screenMode:s},d),!c&&Object(i.createElement)(Ee,null,Object(i.createElement)(je,{screenMode:s}))),c&&Object(i.createElement)(je,{screenMode:s}))))}componentWillReceiveProps(e){const t={};this.props.title!==e.title&&(t.title=e.title),this.props.description!==e.description&&(t.description=e.description),this.setState(t)}componentDidUpdate(){this.setState({isDescriptionPlaceholder:!this.props.description}),"mobile"===this.props.mode&&(clearTimeout(this.fitTitleTimeout),this.fitTitleTimeout=setTimeout(()=>{this.fitTitle()},10))}componentDidMount(){this.setState({isDescriptionPlaceholder:!this.props.description})}componentWillUnmount(){clearTimeout(this.fitTitleTimeout)}renderDescription(){const{wordsToHighlight:e,locale:t,onMouseUp:n,onMouseLeave:o,onMouseEnter:r,mode:s,mobileImageSrc:a}=this.props,l=this.renderDate(),c={isDescriptionPlaceholder:this.state.isDescriptionPlaceholder,onMouseUp:n.bind(null,"description"),onMouseEnter:r.bind(null,"description"),onMouseLeave:o.bind(null)};if("desktop"===s){const n=this.addCaretStyles("description",he);return Object(i.createElement)(n,A()({},c,{ref:this.setDescriptionRef}),l,function(e,t,n,o){if(0===t.length)return n;let r=n;const s=[];t.forEach((function(t){t=t,s.push(t);const n=X(t,e);n!==t&&s.push(n)}));const a=Y(s,!1,"",!1);return r=r.replace(a,(function(e){return`{{strong}}${e}{{/strong}}`})),D()({mixedString:r,components:{strong:Object(i.createElemenLine truncated
border: none;
width: 100%;
height: inherit;
line-height: 1.71428571; // 24px based on 14px font-size
font-family: inherit;
font-size: inherit;
color: inherit;
&:focus {
outline: 0;
}
`,Fe=Object(w.withCaretStyles)(E.VariableEditorInputContainer);class Ae extends r.a.Component{constructor(e){super(e),this.elements={title:null,slug:null,description:null},this.uniqueId=x()("snippet-editor-field-"),this.setRef=this.setRef.bind(this),this.setTitleRef=this.setTitleRef.bind(this),this.setSlugRef=this.setSlugRef.bind(this),this.setDescriptionRef=this.setDescriptionRef.bind(this),this.triggerReplacementVariableSuggestions=this.triggerReplacementVariableSuggestions.bind(this),this.onFocusTitle=this.onFocusTitle.bind(this),this.onChangeTitle=this.onChangeTitle.bind(this),this.onFocusSlug=this.onFocusSlug.bind(this),this.focusSlug=this.focusSlug.bind(this),this.onChangeSlug=this.onChangeSlug.bind(this),this.onFocusDescription=this.onFocusDescription.bind(this),this.onChangeDescription=this.onChangeDescription.bind(this)}setRef(e,t){this.elements[e]=t}setTitleRef(e){this.setRef("title",e)}setSlugRef(e){this.setRef("slug",e)}setDescriptionRef(e){this.setRef("description",e)}componentDidUpdate(e){e.activeField!==this.props.activeField&&this.focusOnActiveFieldChange()}focusOnActiveFieldChange(){const{activeField:e}=this.props,t=e?this.elements[e]:null;t&&t.focus()}triggerReplacementVariableSuggestions(e){this.elements[e].triggerReplacementVariableSuggestions()}onFocusTitle(){this.props.onFocus("title")}onChangeTitle(e){this.props.onChange("title",e)}onFocusSlug(){this.props.onFocus("slug")}focusSlug(){this.elements.slug.focus()}onChangeSlug(e){this.props.onChange("slug",e.target.value)}onFocusDescription(){this.props.onFocus("description")}onChangeDescription(e){this.props.onChange("description",e)}render(){const{activeField:e,hoveredField:t,onReplacementVariableSearchChange:n,replacementVariables:o,recommendedReplacementVariables:r,titleLengthProgress:s,descriptionLengthProgress:a,onBlur:l,descriptionEditorFieldPlaceholder:c,data:{title:p,slug:d,description:h},containerPadding:g,titleInputId:f,slugInputId:m,descriptionInputId:b}=this.props,v=this.uniqueId+"-slug";return Object(i.createElement)(Re.StyledEditor,{padding:g},Object(i.createElement)(Re.ReplacementVariableEditor,{withCaret:!0,label:Object(u.__)("SEO title","wordpress-seo"),onFocus:this.onFocusTitle,onBlur:l,isActive:"title"===e,isHovered:"title"===t,editorRef:this.setTitleRef,replacementVariables:o,recommendedReplacementVariables:r,content:p,onChange:this.onChangeTitle,onSearchChange:n,fieldId:f,type:"title"}),Object(i.createElement)(E.ProgressBar,{max:s.max,value:s.actual,progressColor:this.getProgressColor(s.score)}),Object(i.createElement)(E.SimulatedLabel,{id:v,onClick:this.onFocusSlug},Object(u.__)("Slug","wordpress-seo")),Object(i.createElement)(Fe,{onClick:this.focusSlug,isActive:"slug"===e,isHovered:"slug"===t},Object(i.createElement)(Pe,{value:d,onChange:this.onChangeSlug,onFocus:this.onFocusSlug,onBlur:l,ref:this.setSlugRef,"aria-labelledby":this.uniqueId+"-slug",id:m})),Object(i.createElement)(Re.ReplacementVariableEditor,{withCaret:!0,type:"description",placeholder:c,label:Object(u.__)("Meta description","wordpress-seo"),onFocus:this.onFocusDescription,onBlur:l,isActive:"description"===e,isHovered:"description"===t,editorRef:this.setDescriptionRef,replacementVariables:o,recommendedReplacementVariables:r,content:h,onChange:this.onChangeDescription,onSearchChange:n,fieldId:b}),Object(i.createElement)(E.ProgressBar,{max:a.max,value:a.actual,progressColor:this.getProgressColor(a.score)}))}getProgressColor(e){return e>=7?w.colors.$color_good:e>=5?w.colors.$color_ok:w.colors.$color_bad}}Ae.propTypes={replacementVariables:Re.replacementVariablesShape,recommendedReplacementVariables:Re.recommendedReplacementVariablesShape,onChange:c.a.func.isRequired,onFocus:c.a.func,onBlur:c.a.func,onReplacementVariableSearchChange:c.a.func,data:c.a.shape({title:c.a.string.isRequired,slug:c.a.string.isRequired,description:c.a.string.isRequired}).isRequired,activeField:c.a.oneOf(["title","slug","description"]),hoveredField:c.a.oneOf(["title","slug","description"]),titleLengthProgress:Te,descriptionLengthProgress:Te,descriptionEditorFieldPlaceholder:c.a.string,containerPadding:c.a.string,titleInputId:c.a.string,slugInputId:c.a.string,descriptionInputId:c.a.string},Ae.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],onFocus:()=>{},onBlur:()=>{},onReplacementVariableSearchChange:null,activeField:null,hoveredField:null,titleLengthProgress:{max:600,actual:0,score:0},descriptionLengthProgress:{max:156,actual:0,score:0},descriptionEditorFieldPlaceholder:null,containerPadding:"0 20px",titleInputId:"yoast-google-preview-title",slugInputId:"yoast-google-preview-slug",descriptionInputId:"yoast-google-preview-description"};var ke=Ae;const De=a.a.fieldset`
border: 0;
padding: 0;
margin: 0 0 16px;
`,Ne=a.a.legend`
margin: 8px 0;
padding: 0;
color: ${w.colors.$color_headings};
font-size: 14px;
font-weight: 600;
`,Ie=a()(E.Label)`
${Object(y.getDirectionalStyle)("margin-right: 16px","margin-left: 16px")};
color: inherit;
font-size: 14px;
line-height: 1.71428571;
cursor: pointer;
/* Helps RTL in Chrome */
display: inline-block;
`,Ve=a()(E.Input)`
&& {
${Object(y.getDirectionalStyle)("margin: 0 8px 0 0","margin: 0 0 0 8px")};
cursor: pointer;
}
`;class Le extends o.Component{constructor(e){super(e),this.switchToMobile=this.props.onChange.bind(this,"mobile"),this.switchToDesktop=this.props.onChange.bind(this,"desktop")}render(){const{active:e,mobileModeInputId:t,desktopModeInputId:n}=this.props,o=t.length>0?t:"yoast-google-preview-mode-mobile",r=n.length>0?n:"yoast-google-preview-mode-desktop";return Object(i.createElement)(De,null,Object(i.createElement)(Ne,null,Object(u.__)("Preview as:","wordpress-seo")),Object(i.createElement)(Ve,{onChange:this.switchToMobile,type:"radio",name:"screen",value:"mobile",optionalAttributes:{id:o,checked:"mobile"===e}}),Object(i.createElement)(Ie,{for:o},Object(u.__)("Mobile result","wordpress-seo")),Object(i.createElement)(Ve,{onChange:this.switchToDesktop,type:"radio",name:"screen",value:"desktop",optionalAttributes:{id:r,checked:"desktop"===e}}),Object(i.createElement)(Ie,{for:r},Object(u.__)("Desktop result","wordpress-seo")))}}Le.propTypes={onChange:c.a.func.isRequired,active:c.a.oneOf(K),mobileModeInputId:c.a.string,desktopModeInputId:c.a.string},Le.defaultProps={active:"mobile",mobileModeInputId:"",desktopModeInputId:""};var Ue=Le;const Be=a()(E.Button)`
height: 33px;
border: 1px solid #dbdbdb;
box-shadow: none;
font-family: Arial, Roboto-Regular, HelveticaNeue, sans-serif;
`,$e=a()(Be)`
margin: ${Object(y.getDirectionalStyle)("10px 0 0 4px","10px 4px 0 0")};
fill: ${w.colors.$color_grey_dark};
padding-left: 8px;
& svg {
${Object(y.getDirectionalStyle)("margin-right","margin-left")}: 7px;
}
`,ze=a()(Be)`
margin-top: 24px;
`,We=new RegExp("(%%sep%%|%%sitename%%)","g");class He extends r.a.Component{constructor(e){super(e);const t=this.mapDataToMeasurements(e.data);this.state={isOpen:!e.showCloseButton,activeField:null,hoveredField:null,titleLengthProgress:_e(t.filteredSEOTitle),descriptionLengthProgress:Me(t.description,this.props.date,this.props.isCornerstone,this.props.isTaxonomy,this.props.locale)},this.setFieldFocus=this.setFieldFocus.bind(this),this.unsetFieldFocus=this.unsetFieldFocus.bind(this),this.onChangeMode=this.onChangeMode.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this),this.setEditButtonRef=this.setEditButtonRef.bind(this),this.handleChange=this.handleChange.bind(this),this.haveReplaceVarsChanged=this.haveReplaceVarsChanged.bind(this)}shallowCompareData(e,t){let n=!1;return e.data.description===t.data.description&&e.data.slug===t.data.slug&&e.data.title===t.data.title&&e.isCornerstone===t.isCornerstone&&e.isTaxonomy===t.isTaxonomy&&e.locale===t.locale||(n=!0),this.haveReplaceVarsChanged(e.replacementVariables,t.replacementVariables)&&(n=!0),n}haveReplaceVarsChanged(e,t){return JSON.stringify(e)!==JSON.stringify(t)}componentWillReceiveProps(e){if(this.shallowCompareData(this.props,e)){const t=this.mapDataToMeasurements(e.data,e.replacementVariables);this.setState({titleLengthProgress:_e(t.filteredSEOTitle),descriptionLengthProgress:Me(t.description,e.date,e.isCornerstone,e.isTaxonomy,e.locale)}),this.props.onChangeAnalysisData(t)}}handleChange(e,t){this.props.onChange(e,t);const n=this.mapDataToMeasurements({...this.props.data,[e]:t});this.props.onChangeAnalysisData(n)}renderEditor(){const{data:e,descriptionEditorFieldPlaceholder:t,onReplacementVariableSearchChange:n,replacementVariables:o,recommendedReplacementVariables:s,hasPaperStyle:a,showCloseButton:l,idSuffix:c}=this.props,{activeField:p,hoveredField:d,isOpen:h,titleLengthProgress:g,descriptionLengthProgress:f}=this.state;return h?Object(i.createElement)(r.a.Fragment,null,Object(i.createElement)(ke,{data:e,activeField:p,hoveredField:d,onChange:this.handleChange,onFocus:this.setFieldFocus,onBlur:this.unsetFieldFocus,onReplacementVariableSearchChange:n,replacementVariables:o,recommendedReplacementVariables:s,titleLengthProgress:g,descriptionLengthProgress:f,descriptionEditorFieldPlaceholder:t,containerPadding:a?"0 20px":"0",titleInputId:Object(y.join)(["yoast-google-preview-title",c]),slugInputId:Object(y.join)(["yoast-google-preview-slug",c]),descriptionInputId:Object(y.join)(["yoast-google-preview-description",c])}),l&&Object(i.createElement)(ze,{onClick:this.close},Object(u.__)("Close snippet editor","wordpress-seo"))):null}setFieldFocus(e){e=this.mapFieldToEditor(e),this.setState({activeField:e})}unsetFieldFocus(){this.setState({activeField:null})}onChangeMode(e){this.props.onChange("mode",e)}onMouseUp(e){this.state.isOpen?this.setFieldFocus(e):this.open().then(this.setFieldFocus.bind(this,e))}onMouseEnter(e){this.setState({hoveredField:this.mapFieldToEditor(e)})}onMouseLeave(){this.setState({hoveredField:null})}open(){return new Promise(e=>{this.setState({isOpen:!0},e)})}close(){this.setState({isOpen:!1,activeField:null},()=>{this._editButton.focus()})}processReplacementVariables(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.replacementVariables;if(this.props.applyReplacementVariables)return this.props.applyReplacementVariables(e);for(const{name:n,value:i}of t)e=e.replace(new RegExp("%%"+Object(L.escapeRegExp)(n)+"%%","g"),i);return e}mapDataToMeasurements(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.replacementVariables;const{baseUrl:n,mapEditorDataToPreview:i}=this.props;let o=this.processReplacementVariables(e.description,t);o=V.languageProcessing.stripSpaces(o);const r=n.replace(/^https?:\/\//i,""),s=e.title.replace(We,""),a={title:this.processReplacementVariables(e.title,t),url:n+e.slug,description:o,filteredSEOTitle:this.processReplacementVariables(s,t)};return i?i(a,{shortenedBaseUrl:r}):a}mapDataToPreview(e){return{title:e.title,url:e.url,description:e.description}}mapFieldToPreview(e){return"slug"===e&&(e="url"),e}mapFieldToEditor(e){return"url"===e&&(e="slug"),e}setEditButtonRef(e){this._editButton=e}render(){const{data:e,mode:t,date:n,locale:o,keyword:r,wordsToHighlight:s,showCloseButton:a,faviconSrc:l,mobileImageSrc:c,idSuffix:p,shoppingData:d,siteName:h}=this.props,{activeField:g,hoveredField:f,isOpen:m}=this.state,b=this.mapDataToMeasurements(e),v=this.mapDataToPreview(b);return Object(i.createElement)(E.ErrorBoundary,null,Object(i.createElement)("div",null,Object(i.createElement)(Ue,{onChange:this.onChangeMode,active:t,mobileModeInputId:Object(y.join)(["yoast-google-preview-mode-mobile",p]),desktopModeInputId:Object(y.join)(["yoast-google-preview-mode-desktop",p])}),Object(i.createElement)(Ce,A()({keyword:r,wordsToHighli Line truncated
@@ -0,0 +1,20 @@
window.yoast=window.yoast||{},window.yoast.socialMetadataForms=function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=403)}({0:function(e,t){e.exports=window.yoast.propTypes},1:function(e,t){e.exports=window.wp.element},10:function(e,t){e.exports=window.yoast.helpers},16:function(e,t){e.exports=window.yoast.replacementVariableEditor},19:function(e,t){e.exports=window.yoast.redux},2:function(e,t){e.exports=window.lodash},3:function(e,t){e.exports=window.React},4:function(e,t){e.exports=window.wp.i18n},403:function(e,t,i){"use strict";i.r(t),i.d(t,"FACEBOOK_IMAGE_SIZES",(function(){return I})),i.d(t,"TWITTER_IMAGE_SIZES",(function(){return v})),i.d(t,"determineFacebookImageMode",(function(){return w})),i.d(t,"socialReducer",(function(){return R})),i.d(t,"SocialMetadataPreviewForm",(function(){return $})),i.d(t,"actions",(function(){return n})),i.d(t,"selectorsFactory",(function(){return S}));var n={};i.r(n),i.d(n,"SET_SOCIAL_TITLE",(function(){return o})),i.d(n,"SET_SOCIAL_DESCRIPTION",(function(){return r})),i.d(n,"SET_SOCIAL_IMAGE_URL",(function(){return a})),i.d(n,"SET_SOCIAL_IMAGE_TYPE",(function(){return c})),i.d(n,"SET_SOCIAL_IMAGE_ID",(function(){return s})),i.d(n,"SET_SOCIAL_IMAGE",(function(){return l})),i.d(n,"CLEAR_SOCIAL_IMAGE",(function(){return d})),i.d(n,"setSocialPreviewTitle",(function(){return u})),i.d(n,"setSocialPreviewDescription",(function(){return p})),i.d(n,"setSocialPreviewImageUrl",(function(){return g})),i.d(n,"setSocialPreviewImageType",(function(){return m})),i.d(n,"setSocialPreviewImageId",(function(){return h})),i.d(n,"setSocialPreviewImage",(function(){return f})),i.d(n,"clearSocialPreviewImage",(function(){return b}));const o="SET_SOCIAL_TITLE",r="SET_SOCIAL_DESCRIPTION",a="SET_SOCIAL_IMAGE_URL",c="SET_SOCIAL_IMAGE_TYPE",s="SET_SOCIAL_IMAGE_ID",l="SET_SOCIAL_IMAGE",d="CLEAR_SOCIAL_IMAGE",u=(e,t)=>({type:o,platform:t,title:e}),p=(e,t)=>({type:r,platform:t,description:e}),g=(e,t)=>({type:a,platform:t,imageUrl:e}),m=(e,t)=>({type:c,platform:t,imageType:e}),h=(e,t)=>({type:s,platform:t,imageId:e}),f=(e,t)=>({type:l,platform:t,image:e}),b=e=>({type:d,platform:e});var E=i(2),S=e=>{const t={getFacebookData:t=>Object(E.get)(t,e+".facebook",{}),getFacebookTitle:e=>t.getFacebookData(e).title,getFacebookDescription:e=>t.getFacebookData(e).description,getFacebookImageUrl:e=>t.getFacebookData(e).image.url,getFacebookImageType:e=>t.getFacebookData(e).image.type,getTwitterData:t=>Object(E.get)(t,e+".twitter",{}),getTwitterTitle:e=>t.getTwitterData(e).title,getTwitterDescription:e=>t.getTwitterData(e).description,getTwitterImageUrl:e=>t.getTwitterData(e).image.url,getTwitterImageType:e=>t.getTwitterData(e).image.type};return t};const v={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},I={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}};var w=function(e){const{largeThreshold:t}=I;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"},T=i(19);const y={title:"",description:"",warnings:[],image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o:return{...e,title:t.title};case r:return{...e,description:t.description};case l:return{...e,image:{...t.image}};case a:return{...e,image:{...e.image,url:t.imageUrl}};case c:return{...e,image:{...e.image,type:t.imageType}};case s:return{...e,image:{...e.image,id:t.imageId}};case d:return{...e,image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};default:return e}}function O(e,t){return(i,n)=>{const{platform:o}=n;return void 0===i?y:o!==t?i:e(i,n)}}var R=Object(T.combineReducers)({facebook:O(_,"facebook"),twitter:O(_,"twitter")}),A=i(1),C=i(4),j=i(10),M=i(16),x=i(6),D=i(0),L=i.n(D),P=i(3),k=i(5),F=i.n(k),H=i(9);const V=e=>e?x.colors.$color_snippet_focus:x.colors.$color_snippet_hover,q=F.a.div`
position: relative;`,G=F.a.div`
display: ${e=>e.isActive||e.isHovered?"block":"none"};
::before {
position: absolute;
top: -2px;
${Object(j.getDirectionalStyle)("left","right")}: -25px;
width: 24px;
height: 24px;
background-image: url(
${e=>Object(j.getDirectionalStyle)(Object(x.angleRight)(V(e.isActive)),Object(x.angleLeft)(V(e.isActive)))}
);
color: ${e=>V(e.isActive)};
background-size: 24px;
background-repeat: no-repeat;
background-position: center;
content: "";
}
`;G.propTypes={isActive:L.a.bool,isHovered:L.a.bool},G.defaultProps={isActive:!1,isHovered:!1};const U=(W=H.ImageSelect,function e(t){e.propTypes={isActive:L.a.bool.isRequired,isHovered:L.a.bool.isRequired};const{isActive:i,isHovered:n,...o}=t;return Object(A.createElement)(q,null,Object(A.createElement)(G,{isActive:i,isHovered:n}),Object(A.createElement)(W,o))});var W;class B extends P.Component{constructor(e){super(e),this.onImageEnter=e.onMouseHover.bind(this,"image"),this.onTitleEnter=e.onMouseHover.bind(this,"title"),this.onDescriptionEnter=e.onMouseHover.bind(this,"description"),this.onLeave=e.onMouseHover.bind(this,""),this.onImageSelectBlur=e.onSelect.bind(this,""),this.onSelectTitleEditor=this.onSelectEditor.bind(this,"title"),this.onSelectDescriptionEditor=this.onSelectEditor.bind(this,"description"),this.onDeselectEditor=this.onSelectEditor.bind(this,""),this.onTitleEditorRef=this.onSetEditorRef.bind(this,"title"),this.onDescriptionEditorRef=this.onSetEditorRef.bind(this,"description")}onSelectEditor(e){this.props.onSelect(e)}onSetEditorRef(e,t){this.props.setEditorRef(e,t)}render(){const{socialMediumName:e,onSelectImageClick:t,onRemoveImageClick:i,title:n,titleInputPlaceholder:o,description:r,descriptionInputPlaceholder:a,onTitleChange:c,onDescriptionChange:s,onReplacementVariableSearchChange:l,hoveredField:d,activeField:u,isPremium:p,replacementVariables:g,recommendedReplacementVariables:m,imageWarnings:h,imageUrl:f,imageAltText:b,idSuffix:E}=this.props,S=!!f,v=Object(C.sprintf)(Object(C.__)("%s image","wordpress-seo"),e),I=Object(C.sprintf)(Object(C.__)("%s title","wordpress-seo"),e),w=Object(C.sprintf)(Object(C.__)("%s description","wordpress-seo"),e),T=e.toLowerCase();return Object(A.createElement)(P.Fragment,null,Object(A.createElement)(U,{label:v,onClick:t,onRemoveImageClick:i,warnings:h,imageSelected:S,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave,isActive:"image"===u,isHovered:"image"===d,imageUrl:f,imageAltText:b,hasPreview:!p,imageUrlInputId:Object(j.join)([T,"url-input",E]),selectImageButtonId:Object(j.join)([T,"select-button",E]),replaceImageButtonId:Object(j.join)([T,"replace-button",E]),removeImageButtonId:Object(j.join)([T,"remove-button",E])}),Object(A.createElement)(M.ReplacementVariableEditor,{onChange:c,content:n,placeholder:o,replacementVariables:g,recommendedReplacementVariables:m,type:"title",fieldId:Object(j.join)([T,"title-input",E]),label:I,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onSearchChange:l,isActive:"title"===u,isHovered:"title"===d,withCaret:!0,onFocus:this.onSelectTitleEditor,onBlur:this.onDeselectEditor,editorRef:this.onTitleEditorRef}),Object(A.createElement)(M.ReplacementVariableEditor,{onChange:s,content:r,placeholder:a,replacementVariables:g,recommendedReplacementVariables:m,type:"description",fieldId:Object(j.join)([T,"description-input",E]),label:w,onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onSearchChange:l,isActive:"description"===u,isHovered:"description"===d,withCaret:!0,onFocus:this.onSelectDescriptionEditor,onBlur:this.onDeselectEditor,editorRef:this.onDescriptionEditorRef}))}}B.propTypes={socialMediumName:L.a.oneOf(["Twitter","Facebook"]).isRequired,onSelectImageClick:L.a.func.isRequired,onRemoveImageClick:L.a.func.isRequired,title:L.a.string.isRequired,description:L.a.string.isRequired,onTitleChange:L.a.func.isRequired,onDescriptionChange:L.a.func.isRequired,onReplacementVariableSearchChange:L.a.func,isPremium:L.a.bool,hoveredField:L.a.string,activeField:L.a.string,onSelect:L.a.func,replacementVariables:M.replacementVariablesShape,recommendedReplacementVariables:L.a.arrayOf(L.a.string),imageWarnings:L.a.array,imageUrl:L.a.string,imageAltText:L.a.string,titleInputPlaceholder:L.a.string,descriptionInputPlaceholder:L.a.string,setEditorRef:L.a.func,onMouseHover:L.a.func,idSuffix:L.a.string},B.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],imageWarnings:[],hoveredField:"",activeField:"",onSelect:()=>{},onReplacementVariableSearchChange:null,imageUrl:"",imageAltText:"",titleInputPlaceholder:"",descriptionInputPlaceholder:"",isPremium:!1,setEditorRef:()=>{},onMouseHover:()=>{},idSuffix:""};var $=B},5:function(e,t){e.exports=window.yoast.styledComponents},6:function(e,t){e.exports=window.yoast.styleGuide},9:function(e,t){e.exports=window.yoast.componentsNew}});
@@ -0,0 +1,13 @@
window.yoast=window.yoast||{},window.yoast.styleGuide=function(e){var t={};function o(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(r,l,function(t){return e[t]}.bind(null,l));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=406)}({10:function(e,t){e.exports=window.yoast.helpers},119:function(e){e.exports=JSON.parse('{"mobile":"768px","tablet":"1224px"}')},406:function(e,t,o){"use strict";o.r(t),o.d(t,"colors",(function(){return r})),o.d(t,"breakpoints",(function(){return l})),o.d(t,"rgba",(function(){return $})),o.d(t,"withCaretStyles",(function(){return u})),o.d(t,"angleRight",(function(){return n})),o.d(t,"angleLeft",(function(){return i}));var r=o(67),l=o(119),_=o(5),c=o.n(_),a=o(10);const n=e=>"data:image/svg+xml;charset=utf8,"+encodeURIComponent('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="'+e+'" d="M1152 896q0 26-19 45l-448 448q-19 19-45 19t-45-19-19-45v-896q0-26 19-45t45-19 45 19l448 448q19 19 19 45z" /></svg>'),i=e=>"data:image/svg+xml;charset=utf8,"+encodeURIComponent('<svg width="1792" height="1792" viewBox="0 0 192 512" xmlns="http://www.w3.org/2000/svg"><path fill="'+e+'" d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"/></svg>');function $(e,t){return"rgba( "+function(e){if("string"!=typeof e)throw new Error("Please pass a string representation of a color in hex notation.");if(e.match(/^#[a-fA-F0-9]{6}$/))return parseInt(`${e[1]}${e[2]}`,16)+", "+parseInt(`${e[3]}${e[4]}`,16)+", "+parseInt(`${e[5]}${e[6]}`,16);if(e.match(/^#[a-fA-F0-9]{3}$/))return parseInt(`${e[1]}${e[1]}`,16)+", "+parseInt(`${e[2]}${e[2]}`,16)+", "+parseInt(` ${e[3]}${e[3]}`,16);throw new Error("Couldn't parse the color string. Please provide the color as a string in hex notation.")}(e)+", "+t+" )"}const u=e=>c()(e)`
&::before {
display: block;
position: absolute;
top: 4px;
${Object(a.getDirectionalStyle)("left","right")}: -25px;
width: 24px;
height: 24px;
background-image: url( ${d} );
background-size: 25px;
content: "";
}
`;function d(e){return Object(a.getDirectionalStyle)(n(p(e)),i(p(e)))(e)}function p(e){return e.isActive?r.$color_snippet_focus:e.isHovered?r.$color_snippet_hover:"transparent"}},5:function(e,t){e.exports=window.yoast.styledComponents},67:function(e){e.exports=JSON.parse('{"$palette_white":"#fff","$palette_grey_ultra_light":"#f7f7f7","$palette_grey_light":"#f1f1f1","$palette_grey_medium_light":"#e2e4e7","$palette_grey":"#ddd","$palette_grey_medium":"#ccc","$palette_grey_disabled":"#a0a5aa","$palette_grey_medium_dark":"#888","$palette_grey_text_light":"#767676","$palette_grey_text":"#616161","$palette_grey_dark":"#555","$palette_black":"#000","$palette_purple":"#5d237a","$palette_purple_dark":"#6c2548","$palette_pink":"#d73763","$palette_pink_light":"#e1bee7","$palette_pink_dark":"#a4286a","$palette_blue":"#0066cd","$palette_blue_light":"#a9a9ce","$palette_blue_medium":"#1e8cbe","$palette_blue_link":"#0073aa","$palette_blue_focus":"#5b9dd9","$palette_yoast_focus":"#007fff","$palette_blue_dark":"#084a67","$palette_green":"#77b227","$palette_green_light":"#7ad03a","$palette_green_medium_light":"#64a60a","$palette_green_medium":"#008a00","$palette_green_blue":"#009288","$palette_orange":"#dc5c04","$palette_orange_light":"#ee7c1b","$palette_red":"#dc3232","$palette_red_light":"#f9bdbd","$palette_yellow":"#ffeb3b","$palette_yellow_score":"#f5c819","$palette_button_upsell":"#fec228","$palette_button_upsell_hover":"#f2ae01","$palette_link_text":"#004973","$palette_error_background":"#f9dcdc","$palette_error_text":"#8f1919","$palette_error_emphasis":"#dc3232","$palette_info_background":"#cce5ff","$palette_info_text":"#00468f","$palette_info_emphasis":"#007dff","$palette_success_background":"#e2f2cc","$palette_success_text":"#395315","$palette_success_emphasis":"#6ea029","$palette_warning_background":"#fff3cd","$palette_warning_text":"#674e00","$palette_warning_emphasis":"#ffc201","$color_bad":"#dc3232","$color_ok":"#ee7c1b","$color_good":"#7ad03a","$color_noindex":"#1e8cbe","$color_score_icon":"#888","$color_white":"#fff","$color_black":"#000","$color_green":"#77b227","$color_green_medium":"#008a00","$color_green_blue":"#009288","$color_grey":"#ddd","$color_grey_dark":"#555","$color_purple":"#5d237a","$color_purple_dark":"#6c2548","$color_pink":"#d73763","$color_pink_light":"#e1bee7","$color_pink_dark":"#a4286a","$color_blue":"#0066cd","$color_blue_light":"#a9a9ce","$color_blue_dark":"#084a67","$color_red":"#dc3232","$color_border_light":"#f7f7f7","$color_border_gutenberg":"#e2e4e7","$color_border":"#ccc","$color_input_border":"#ddd","$color_help_text":"#767676","$color_upsell_text":"#767676","$color_background_light":"#f7f7f7","$color_button":"#f7f7f7","$color_button_text":"#555","$color_button_border":"#ccc","$color_button_hover":"#fff","$color_button_border_hover":"#888","$color_button_text_hover":"#000","$color_button_border_active":"#000","$color_button_upsell":"#fec228","$color_button_upsell_hover":"#f2ae01","$color_headings":"#555","$color_marker_inactive":"#555","$color_marker_active":"#fff","$color_marker_disabled":"#a0a5aa","$color_error":"#dc3232","$color_orange":"#dc5c04","$color_orange_hover":"#c35204","$color_grey_hover":"#cecece","$color_pink_hover":"#cc2956","$color_grey_cta":"#ddd","$color_grey_line":"#ddd","$color_grey_quote":"#616161","$color_grey_text":"#616161","$color_grey_text_light":"#767676","$color_snippet_focus":"#1e8cbe","$color_snippet_hover":"#ccc","$color_snippet_active":"#555","$color_blue_link":"#0073aa","$color_blue_focus":"#5b9dd9","$color_blue_focus_shadow":"#1e8cbe","$color_yoast_focus":"#007fff","$color_yoast_focus_outer":"rgba(0,127,255,0.25)","$color_grey_medium_dark":"#888","$color_green_medium_light":"#64a60a","$color_grey_disabled":"#a0a5aa","$color_grey_medium":"#ccc","$color_grey_light":"#f1f1f1","$color_yellow":"#ffeb3b","$color_yellow_score":"#f5c819","$color_error_message":"#f9bdbd","$color_alert_link_text":"#004973","$color_alert_error_text":"#8f1919","$color_alert_error_background":"#f9dcdc","$color_alert_info_text":"#00468f","$color_alert_info_background":"#cce5ff","$color_alert_success_text":"#395315","$color_alert_success_background":"#e2f2cc","$color_alert_warning_text":"#674e00","$color_alert_warning_background":"#fff3cd"}')}});
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.styledComponents=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=322)}({109:function(e,t,r){"use strict";var n=r(88),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},112:function(e,t,r){"use strict";var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|reLine truncated
@@ -0,0 +1 @@
window.yoast=window.yoast||{},window.yoast.uiLibrary=function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=397)}({0:function(e,t){e.exports=window.yoast.propTypes},1:function(e,t){e.exports=window.wp.element},188:function(e,t,a){!function(e,t){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var n=a(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s={error:null},o=function(e){var t,a;function o(){for(var t,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}a=e,(t=o).prototype=Object.create(a.prototype),t.prototype.constructor=t,r(t,a),o.getDerivedStateFromError=function(e){return{error:e}};var l=o.prototype;return l.reset=function(){this.setState(s)},l.componentDidCatch=function(e,t){var a,n;null==(a=(n=this.props).onError)||a.call(n,e,t)},l.componentDidUpdate=function(e,t){var a,n,r,s,o=this.state.error,l=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(s=l)&&(s=[]),r.length!==s.length||r.some((function(e,t){return!Object.is(e,s[t])})))&&(null==(a=(n=this.props).onResetKeysChange)||a.call(n,e.resetKeys,l),this.reset())},l.render=function(){var e=this.state.error,t=this.props,a=t.fallbackRender,r=t.FallbackComponent,s=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(s))return s;if("function"==typeof a)return a(o);if(r)return n.createElement(r,o);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(n.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var t=n.useState(null),a=t[0],r=t[1];if(null!=e)throw e;if(null!=a)throw a;return r},e.withErrorBoundary=function(e,t){var a=function(a){return n.createElement(o,t,n.createElement(e,a))},r=e.displayName||e.name||"Unknown";return a.displayName="withErrorBoundary("+r+")",a},Object.defineProperty(e,"__esModule",{value:!0})}(t,a(3))},189:function(e,t){e.exports=window.yoast.reduxJsToolkit},2:function(e,t){e.exports=window.lodash},3:function(e,t){e.exports=window.React},34:function(e,t){e.exports=window.ReactDOM},397:function(e,t,a){"use strict";a.r(t),a.d(t,"Alert",(function(){return S})),a.d(t,"Autocomplete",(function(){return Dt})),a.d(t,"Badge",(function(){return zt})),a.d(t,"Button",(function(){return Xt})),a.d(t,"Checkbox",(function(){return la})),a.d(t,"Code",(function(){return pa})),a.d(t,"ErrorBoundary",(function(){return ba})),a.d(t,"Label",(function(){return na})),a.d(t,"Link",(function(){return ga})),a.d(t,"Paper",(function(){return wa})),a.d(t,"ProgressBar",(function(){return Sa})),a.d(t,"Radio",(function(){return Fa})),a.d(t,"Select",(function(){return sn})),a.d(t,"SkeletonLoader",(function(){return ln})),a.d(t,"Spinner",(function(){return Kt})),a.d(t,"Table",(function(){return yn})),a.d(t,"TagInput",(function(){return jn})),a.d(t,"TextInput",(function(){return Rn})),a.d(t,"Textarea",(function(){return Sn})),a.d(t,"Title",(function(){return In})),a.d(t,"Toggle",(function(){return Zn})),a.d(t,"ValidationIcon",(function(){return E})),a.d(t,"ValidationInput",(function(){return St})),a.d(t,"ValidationMessage",(function(){return R})),a.d(t,"AutocompleteField",(function(){return ar})),a.d(t,"Card",(function(){return cr})),a.d(t,"CheckboxGroup",(function(){return dr})),a.d(t,"ChildrenLimiter",(function(){return hr})),a.d(t,"FeatureUpsell",(function(){return Nr})),a.d(t,"FileImport",(function(){return qr})),a.d(t,"Modal",(function(){return ks})),a.d(t,"Notifications",(function(){return Ds})),a.d(t,"Pagination",(function(){return Qs})),a.d(t,"RadioGroup",(function(){return Xs})),a.d(t,"Root",(funcLine truncated