AlkantarClanX12
Current Path : /home/thanudqk/siampokernew.org/wp-content/plugins/wordpress-seo/js/dist/ |
Current File : /home/thanudqk/siampokernew.org/wp-content/plugins/wordpress-seo/js/dist/classic-editor-1580.js |
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[6],[function(e,t){e.exports=window.lodash},function(e,t,n){e.exports=n(22)()},function(e,t){e.exports=React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.yoast.componentsNew},function(e,t){e.exports=window.yoast.helpers},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.yoast.styledComponents},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})};var r=n(0)},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_SNIPPET_EDITOR_DATA=t.UPDATE_WORDS_TO_HIGHLIGHT=t.REFRESH=t.REMOVE_REPLACEMENT_VARIABLE=t.UPDATE_REPLACEMENT_VARIABLE=t.UPDATE_DATA=t.SWITCH_MODE=void 0,t.switchMode=function(e){return{type:a,mode:e}},t.updateData=function(e){return{type:o,data:e}},t.updateReplacementVariable=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a="string"==typeof t?(0,r.decodeHTML)(t):t;return{type:i,name:e,value:a,label:n}},t.updateWordsToHighlight=function(e){return{type:u,wordsToHighlight:e}},t.removeReplacementVariable=function(e){return{type:s,name:e}},t.refreshSnippetEditor=function(){return{type:l,time:(new Date).getMilliseconds()}};var r=n(6),a=t.SWITCH_MODE="SNIPPET_EDITOR_SWITCH_MODE",o=t.UPDATE_DATA="SNIPPET_EDITOR_UPDATE_DATA",i=t.UPDATE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",s=t.REMOVE_REPLACEMENT_VARIABLE="SNIPPET_EDITOR_REMOVE_REPLACEMENT_VARIABLE",l=t.REFRESH="SNIPPET_EDITOR_REFRESH",u=t.UPDATE_WORDS_TO_HIGHLIGHT="SNIPPET_EDITOR_UPDATE_WORDS_TO_HIGHLIGHT";t.LOAD_SNIPPET_EDITOR_DATA="LOAD_SNIPPET_EDITOR_DATA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationConsumer=t.LocationProvider=t.LocationContext=void 0;var r=n(4),a=t.LocationContext=(0,r.createContext)();t.LocationProvider=a.Provider,t.LocationConsumer=a.Consumer},function(e,t){e.exports=window.yoast.components},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSeoResultsForKeyword=t.setReadabilityResults=t.setOverallSeoScore=t.setOverallReadabilityScore=void 0;var r=n(43);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var a=n(44);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=n(69);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(35);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var s=n(70);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var l=n(71);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var u=n(45);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var c=n(36);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(29);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var p=n(46);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=n(47);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var m=n(48);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})});var y=n(50);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var h=n(73);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var _=n(51);Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})});var g=n(37);Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})});var v=n(13);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var w=n(52);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}})});var b=n(53);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})});var E=n(54);Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}})});var T=n(15);Object.defineProperty(t,"setReadabilityResults",{enumerable:!0,get:function(){return T.setReadabilityResults}}),Object.defineProperty(t,"setSeoResultsForKeyword",{enumerable:!0,get:function(){return T.setSeoResultsForKeyword}});var k=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.setOverallReadabilityScore=function(e){return k.default.readabilityScore=e,(0,T.setOverallReadabilityScore)(e)},t.setOverallSeoScore=function(e,t){return k.default.seoScore=e,(0,T.setOverallSeoScore)(e,t)}},function(e,t){e.exports=window.yoast.reactRedux},function(e,t){e.exports=window.yoast.styleGuide},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},a=s(n(2)),o=s(n(78)),i=s(n(81));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function u(e,t){var n,i,s,c,d,p,f,m,y=[],h={};for(p=0;p<e.length;p++)if("string"!==(d=e[p]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+l);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],s=p;break}y.push(t[d.value])}else y.push(d.value);return n&&(c=function(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}(s,e),f=u(e.slice(s+1,c),t),i=a.default.cloneElement(n,{},f),y.push(i),c<e.length-1&&(m=u(e.slice(c+1),t),y=y.concat(m))),1===y.length?y[0]:(y.forEach(function(e,t){e&&(h["interpolation-child-"+t]=e)}),(0,o.default)(h))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,i.default)(t);try{return u(o,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.isNil)(e)||(e/=10);return function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:""};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:""}}}(a.helpers.scoreToRating(e))};var r=n(3),a=n(11),o=n(0)},function(e,t,n){"use strict";var r=n(23),a=n(24),o=n(25);e.exports=function(){function e(e,t,n,r,i,s){s!==o&&a(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,a,o,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,o,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"keyphraseElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_focuskw":"hidden_wpseo_focuskw")}},{key:"isCornerstoneElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_is_cornerstone":"hidden_wpseo_is_cornerstone")}},{key:"seoScoreElement",get:function(){return document.getElementById("yoast_wpseo_linkdex")}},{key:"readabilityScoreElement",get:function(){return document.getElementById("yoast_wpseo_content_score")}},{key:"keyphrase",set:function(t){e.keyphraseElement.value=t},get:function(){return e.keyphraseElement.value}},{key:"isCornerstone",set:function(t){e.isCornerstoneElement.value=t?"1":"0"},get:function(){return"1"===e.isCornerstoneElement.value}},{key:"seoScore",set:function(t){e.seoScoreElement.value=t},get:function(){return e.seoScoreElement.value}},{key:"readabilityScore",set:function(t){e.readabilityScoreElement.value=t},get:function(){return e.readabilityScoreElement.value}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconForScore=function(e){var t={icon:"seo-score-none",color:a.colors.$color_grey_disabled};switch(e){case"loading":t={icon:"loading-spinner",color:a.colors.$color_green_medium_light};break;case"good":t={icon:"seo-score-good",color:a.colors.$color_green_medium};break;case"ok":t={icon:"seo-score-ok",color:a.colors.$color_ok};break;case"bad":t={icon:"seo-score-bad",color:a.colors.$color_red}}return t},t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return n;for(var r=0;r<e.length;r++){var a=e[r];if(a.text){var o=i(a,t);n=s(o,n)}}return n};var r=n(11),a=n(18),o=r.helpers.scoreToRating;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.getIdentifier(),r={score:e.score,rating:o(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:n,text:e.text,markerId:t.length>0?t+":"+n:n};return"ok"===r.rating&&(r.rating="OK"),r}function s(e,t){switch(e.rating){case"error":t.errorsResults.push(e);break;case"feedback":t.considerationsResults.push(e);break;case"bad":t.problemsResults.push(e);break;case"OK":t.improvementsResults.push(e);break;case"good":t.goodResults.push(e)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(4),a=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function o(e){var t=e.target,n=e.children,a=t;return"string"==typeof t&&(a=document.getElementById(t)),a?(0,r.createPortal)(n,a):null}o.propTypes={target:a.default.oneOfType([a.default.string,a.default.object]).isRequired,children:a.default.node.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_MARKER_STATUS="WPSEO_SET_MARKER_STATUS";t.setMarkerStatus=function(e){return{type:r,marksButtonStatus:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyReplaceUsingPlugin=t.nonReplaceVars=void 0;var r=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};t.fillReplacementVariables=function(e,t){(0,a.forEach)(e,function(e,n){l.includes(n)||t.dispatch((0,o.updateReplacementVariable)(n,e))})},t.handlePrefixes=u,t.createLabelFromName=c,t.pushNewReplaceVar=function(e,t){return e.push({name:t.name,label:t.label||c(t.name),value:t.value}),e},t.replaceSpaces=d,t.prepareCustomFieldForDispatch=p,t.prepareCustomTaxonomyForDispatch=f,t.mapCustomTaxonomies=function(e,t){if(!e.custom_taxonomies)return e;return(0,a.forEach)(e.custom_taxonomies,function(e,n){var r=f(n),a=r.name,i=r.label,s=r.descriptionName,l=r.descriptionLabel;t.dispatch((0,o.updateReplacementVariable)(a,e.name,i)),t.dispatch((0,o.updateReplacementVariable)(s,e.description,l))}),(0,a.omit)(r({},e),"custom_taxonomies")},t.mapCustomFields=function(e,t){if(!e.custom_fields)return e;return(0,a.forEach)(e.custom_fields,function(e,n){var r=p(n),a=r.name,i=r.label;t.dispatch((0,o.updateReplacementVariable)(a,e,i))}),(0,a.omit)(r({},e),"custom_fields")},t.excerptFromContent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;if((e=(e=wp.sanitize.stripTags(e)).trim()).length<=t)return e;return(e=e.substring(0,t)).substring(0,e.lastIndexOf(" "))};var a=n(0),o=n(13),i=n(40),s=n(6).strings.stripHTMLTags,l=t.nonReplaceVars=["slug","content","contentImage","snippetPreviewImageURL"];function u(e){if(!["ct_","cf_","pt_"].includes(e.substr(0,3)))return e.replace(/_/g," ");var t=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),t){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function c(e){return e=u(e),(0,i.firstToUpperCase)(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/\s/g,t)}function p(e){return{name:"cf_"+d(e),label:(0,i.firstToUpperCase)(e+" (custom field)")}}function f(e){var t=d(e);return{name:"ct_"+t,label:(0,i.firstToUpperCase)(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:(0,i.firstToUpperCase)(e+" description (custom taxonomy)")}}t.applyReplaceUsingPlugin=function(e){var t=(0,a.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,a.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=(0,a.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],a.identity);return{url:e.url,title:s(t(e.title)),description:s(t(e.description))}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:s(n("data_page_title",e.title)),description:s(n("data_meta_desc",e.description))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(4),o=n(5),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var s=function(e){var t=(0,a.useState)(!1),n=r(t,2),i=n[0],s=n[1],l=e.prefixIcon;return wp.element.createElement("div",{className:"yoast components-panel__body "+(i?"is-opened":"")},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{onClick:function(){s(!i)},className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-icon-span",style:{fill:""+(l&&l.color||"")}},l&&wp.element.createElement(o.SvgIcon,{icon:l.icon,color:l.color,size:l.size})),wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),wp.element.createElement("span",{className:"yoast-chevron","aria-hidden":"true"}))),i&&e.children)};t.default=s,s.propTypes={title:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,prefixIcon:i.default.object,subTitle:i.default.string},s.defaultProps={prefixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.default=function(){return(0,a.createHigherOrderComponent)(function(e){return(0,a.pure)(function(t){var n=(0,o.useContext)(i.LocationContext);return(0,o.createElement)(e,r({},t,{location:n}))})},"withLocation")};var a=n(10),o=n(4),i=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),a=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(n(8));var i=(0,a.makeOutboundLink)(o.default.a.withConfig({displayName:"HelpLink",componentId:"qyhmof-0"})(["display:inline-block;position:relative;outline:none;text-decoration:none;border-radius:100%;width:24px;height:24px;margin:-4px 0;vertical-align:middle;color:",";&:hover,&:focus{color:",";}&:active{color:",';}&::before{position:absolute;top:0;left:0;padding:2px;content:"\f223";}'],r.colors.$color_help_text,r.colors.$color_snippet_focus,r.colors.$color_help_text));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n(5);var o=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default)(a.Collapsible).withConfig({displayName:"MetaboxCollapsible__StyledMetaboxCollapsible",componentId:"k2tood-0"})(['h2 > button{padding-left:24px;padding-top:16px;&:hover{background-color:#f0f0f0;}}div[class^="collapsible_content"]{padding:24px 0;margin:0 24px;border-top:1px solid rgba(0,0,0,0.2);}']);t.default=function(e){return wp.element.createElement(o,r({hasPadding:!0,hasSeparator:!0},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleCornerstoneContent=t.setCornerstoneContent=t.loadCornerstoneContent=t.SET_CORNERSTONE_CONTENT=t.TOGGLE_CORNERSTONE_CONTENT=t.LOAD_CORNERSTONE_CONTENT=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));t.LOAD_CORNERSTONE_CONTENT="WPSEO_LOAD_CORNERSTONE_CONTENT";var a=t.TOGGLE_CORNERSTONE_CONTENT="WPSEO_TOGGLE_CORNERSTONE_CONTENT",o=t.SET_CORNERSTONE_CONTENT="WPSEO_SET_CORNERSTONE_CONTENT";t.loadCornerstoneContent=function(){return{type:o,isCornerstone:r.default.isCornerstone}},t.setCornerstoneContent=function(e){return r.default.isCornerstone=e,{type:o,isCornerstone:e}},t.toggleCornerstoneContent=function(){return r.default.isCornerstone=!r.default.isCornerstone,{type:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setFocusKeyword=t.loadFocusKeyword=t.SET_FOCUS_KEYWORD=t.LOAD_FOCUS_KEYWORD=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(26));var a=t.LOAD_FOCUS_KEYWORD="WPSEO_LOAD_FOCUS_KEYWORD",o=t.SET_FOCUS_KEYWORD="WPSEO_SET_FOCUS_KEYWORD";t.loadFocusKeyword=function(){return{type:a,keyword:r.default.keyphrase}},t.setFocusKeyword=function(e){return r.default.keyphrase=e,{type:o,keyword:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_SETTINGS="SET_SETTINGS",a=t.SET_CONTENT_IMAGE="SET_CONTENT_IMAGE";t.setSettings=function(e){return{type:r,settings:e}},t.setContentImage=function(e){return{type:a,src:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultModalClassName=void 0;var r=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},a=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(12);var i=t.defaultModalClassName="yoast yoast-gutenberg-modal",s=function(e){var t=e.title,n=e.className,a=e.showYoastIcon,i=e.additionalClassName,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["title","className","showYoastIcon","additionalClassName"]),l=a?wp.element.createElement("span",{className:"yoast-icon"}):null;return wp.element.createElement(o.Modal,r({title:t,className:n+" "+i,icon:l},s),e.children)};s.propTypes={title:a.default.string,className:a.default.string,showYoastIcon:a.default.bool,children:a.default.oneOfType([a.default.node,a.default.arrayOf(a.default.node)]),additionalClassName:a.default.string},s.defaultProps={title:"Yoast SEO",className:i,showYoastIcon:!0,children:null,additionalClassName:""},t.default=s},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstToUpperCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.stripHTML=function(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setActiveMarker=function(e){return{type:r,activeMarker:e}};var r=t.SET_ACTIVE_MARKER="WPSEO_SET_ACTIVE_MARKER"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadAdvancedSettingsData=t.setCanonical=t.setBreadcrumbsTitle=t.setAdvanced=t.setNoFollow=t.setNoIndex=t.LOAD_ADVANCED_SETTINGS=t.SET_CANONICAL_URL=t.SET_BREADCRUMBS_TITLE=t.SET_ADVANCED=t.SET_NO_FOLLOW=t.SET_NO_INDEX=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(68));var a=t.SET_NO_INDEX="SET_NO_INDEX",o=t.SET_NO_FOLLOW="SET_NO_FOLLOW",i=t.SET_ADVANCED="SET_ADVANCED",s=t.SET_BREADCRUMBS_TITLE="SET_BREADCRUMBS_TITLE",l=t.SET_CANONICAL_URL="SET_CANONICAL_URL",u=t.LOAD_ADVANCED_SETTINGS="LOAD_ADVANCED_SETTINGS";t.setNoIndex=function(e){return r.default.noIndex=e,{type:a,value:e}},t.setNoFollow=function(e){return r.default.noFollow=e,{type:o,value:e}},t.setAdvanced=function(e){return r.default.advanced=e.join(","),{type:i,value:e}},t.setBreadcrumbsTitle=function(e){return r.default.breadcrumbsTitle=e,{type:s,value:e}},t.setCanonical=function(e){return r.default.canonical=e,{type:l,value:e}},t.loadAdvancedSettingsData=function(){return{type:u,settings:{noIndex:r.default.noIndex,noFollow:r.default.noFollow,advanced:r.default.advanced.split(","),breadcrumbsTitle:r.default.breadcrumbsTitle,canonical:r.default.canonical,isLoading:!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_ESTIMATED_READING_TIME=t.SET_ESTIMATED_READING_TIME=void 0,t.setEstimatedReadingTime=function(e){return r.default.estimatedReadingTime=e,{type:a,estimatedReadingTime:e}},t.loadEstimatedReadingTime=function(){return{type:o,estimatedReadingTime:r.default.estimatedReadingTime}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(72));var a=t.SET_ESTIMATED_READING_TIME="SET_ESTIMATED_READING_TIME",o=t.LOAD_ESTIMATED_READING_TIME="LOAD_ESTIMATED_READING_TIME"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMarkerPauseStatus=function(e){return{type:r,isMarkerPaused:e}};var r=t.SET_MARKER_PAUSE_STATUS="WPSEO_SET_MARKER_PAUSE_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_PRIMARY_TAXONOMY="WPSEO_SET_PRIMARY_TAXONOMY";t.setPrimaryTaxonomyId=function(e,t){return{type:r,taxonomy:e,termId:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaArticleData=t.getSchemaPageData=t.setArticleType=t.setPageType=t.GET_SCHEMA_ARTICLE_DATA=t.GET_SCHEMA_PAGE_DATA=t.SET_ARTICLE_TYPE=t.SET_PAGE_TYPE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(49));var a=t.SET_PAGE_TYPE="SET_PAGE_TYPE",o=t.SET_ARTICLE_TYPE="SET_ARTICLE_TYPE",i=t.GET_SCHEMA_PAGE_DATA="GET_SCHEMA_PAGE_DATA",s=t.GET_SCHEMA_ARTICLE_DATA="GET_SCHEMA_ARTICLE_DATA";t.setPageType=function(e){return r.default.pageType=e,{type:a,pageType:e}},t.setArticleType=function(e){return r.default.articleType=e,{type:o,articleType:e}},t.getSchemaPageData=function(){return{type:i,pageType:r.default.pageType,defaultPageType:r.default.defaultPageType}},t.getSchemaArticleData=function(){return{type:s,articleType:r.default.articleType,defaultArticleType:r.default.defaultArticleType}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBlockValidation=function(e){return{type:r,validation:e}},t.resetBlockValidation=function(){return{type:a}};var r=t.ADD_BLOCK_VALIDATION="WPSEO_ADD_BLOCK_VALIDATION",a=t.RESET_BLOCK_VALIDATIONS="WPSEO_CLEAR_BLOCK_VALIDATIONS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushNewRequest=function(e,t){return{type:s,countryCode:e,keyphrase:t}},t.setSEMrushRequestSucceeded=function(e){return{type:a,response:e}},t.setSEMrushRequestFailed=function(e){return{type:o,response:e}},t.setSEMrushSetRequestLimitReached=function(){return{type:i}},t.setSEMrushChangeCountry=function(e){return{type:r,countryCode:e}},t.setSEMrushNoResultsFound=function(){return{type:l}},t.setSEMrushLoginStatus=function(e){return{type:u,loginStatus:e}};var r=t.CHANGE_COUNTRY="CHANGE_COUNTRY",a=t.SET_REQUEST_SUCCEEDED="SET_REQUEST_SUCCEEDED",o=t.SET_REQUEST_FAILED="SET_REQUEST_FAILED",i=t.SET_REQUEST_LIMIT_REACHED="SET_LIMIT_REACHED",s=t.NEW_REQUEST="NEW_REQUEST",l=t.NO_DATA_FOUND="NO_DATA_FOUND",u=t.SET_LOGIN_STATUS="SET_LOGIN_STATUS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadTwitterPreviewData=t.clearTwitterPreviewImage=t.setTwitterPreviewImage=t.setTwitterPreviewDescription=t.setTwitterPreviewTitle=t.LOAD_TWITTER_PREVIEW=t.CLEAR_TWITTER_IMAGE=t.SET_TWITTER_IMAGE=t.SET_TWITTER_DESCRIPTION=t.SET_TWITTER_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(74));var a=t.SET_TWITTER_TITLE="SET_TWITTER_TITLE",o=t.SET_TWITTER_DESCRIPTION="SET_TWITTER_DESCRIPTION",i=t.SET_TWITTER_IMAGE="SET_TWITTER_IMAGE",s=t.CLEAR_TWITTER_IMAGE="CLEAR_TWITTER_IMAGE",l=t.LOAD_TWITTER_PREVIEW="LOAD_TWITTER_PREVIEW";t.setTwitterPreviewTitle=function(e){return r.default.title=e,{type:a,title:e}},t.setTwitterPreviewDescription=function(e){return r.default.description=e,{type:o,description:e}},t.setTwitterPreviewImage=function(e){return r.default.imageId=e.id,r.default.imageUrl=e.url,{type:i,image:e}},t.clearTwitterPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadTwitterPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFacebookPreviewData=t.clearFacebookPreviewImage=t.setFacebookPreviewImage=t.setFacebookPreviewDescription=t.setFacebookPreviewTitle=t.LOAD_FACEBOOK_PREVIEW=t.CLEAR_FACEBOOK_IMAGE=t.SET_FACEBOOK_IMAGE=t.SET_FACEBOOK_DESCRIPTION=t.SET_FACEBOOK_TITLE=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(75));var a=t.SET_FACEBOOK_TITLE="SET_FACEBOOK_TITLE",o=t.SET_FACEBOOK_DESCRIPTION="SET_FACEBOOK_DESCRIPTION",i=t.SET_FACEBOOK_IMAGE="SET_FACEBOOK_IMAGE",s=t.CLEAR_FACEBOOK_IMAGE="CLEAR_FACEBOOK_IMAGE",l=t.LOAD_FACEBOOK_PREVIEW="LOAD_FACEBOOK_PREVIEW";t.setFacebookPreviewTitle=function(e){return r.default.title=e,{type:a,title:e}},t.setFacebookPreviewDescription=function(e){return r.default.description=e,{type:o,description:e}},t.setFacebookPreviewImage=function(e){return r.default.imageUrl=e.url,r.default.imageId=e.id,{type:i,image:e}},t.clearFacebookPreviewImage=function(){return r.default.imageId="",r.default.imageUrl="",{type:s}},t.loadFacebookPreviewData=function(){return{type:l,imageId:r.default.imageId,imageUrl:r.default.imageUrl,description:r.default.description,title:r.default.title}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setWarningMessage=function(e){return{type:r,message:e}};var r=t.SET_WARNING_MESSAGE="SET_WARNING_MESSAGE"},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},,,function(e,t){e.exports=window.yoast.replacementVariableEditor},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),a=n(10),o=function(e){return e&&e.__esModule?e:{default:e}}(n(113));t.default=(0,a.compose)([(0,r.withSelect)(function(e){return{activeMarker:(0,e("yoast-seo/editor").getActiveMarker)()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor");return{setActiveMarker:t.setActiveMarker,setMarkerPauseStatus:t.setMarkerPauseStatus}})])(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.termsTmceId=t.tmceId=void 0,t.setStore=function(e){s=e},t.isTinyMCELoaded=l,t.isTinyMCEAvailable=u,t.getContentTinyMce=function(e){var t="";t=!1===u(e)||!1===function(e){return null!==document.getElementById(e+"_ifr")}(e)?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent();return function(e){var t=new RegExp("&","g");return e.replace(t,"&")}(t)},t.addEventHandler=c,t.disableMarkerButtons=d,t.enableMarkerButtons=p,t.isTextViewActive=f,t.wpTextViewOnInitCheck=function(){if(!f())return;d(),l()&&tinyMCE.on("AddEditor",function(){p()})},t.tinyMceEventBinder=function(e,t){c(t,["input","change","cut","paste"],e),c(t,["hide"],d);var n=["show"];(new o.default).isPageBuilderActive()||n.push("init");c(t,n,p),c("content",["focus"],function(e){var t=e.target;(0,a.editorHasMarks)(t)&&((0,a.editorRemoveMarks)(t),YoastSEO.app.disableMarkers())})};var r=n(0),a=n(127),o=function(e){return e&&e.__esModule?e:{default:e}}(n(148)),i=n(29);var s=void 0;t.tmceId="content",t.termsTmceId="description";function l(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function u(e){if(!l())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function c(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",function(a){var o=a.editor;o.id===e&&(0,r.forEach)(t,function(e){o.on(e,n)})})}function d(){(0,r.isUndefined)(s)||s.dispatch((0,i.setMarkerStatus)("disabled"))}function p(){(0,r.isUndefined)(s)||s.dispatch((0,i.setMarkerStatus)("enabled"))}function f(){var e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"noIndexElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_meta-robots-noindex":"hidden_wpseo_noindex")}},{key:"noFollowElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-nofollow")}},{key:"advancedElement",get:function(){return document.getElementById("yoast_wpseo_meta-robots-adv")}},{key:"breadcrumbsTitleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_bctitle":"hidden_wpseo_bctitle")}},{key:"canonicalElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_canonical":"hidden_wpseo_canonical")}},{key:"noIndex",get:function(){return e.noIndexElement&&e.noIndexElement.value||""},set:function(t){e.noIndexElement.value=t}},{key:"noFollow",get:function(){return e.noFollowElement&&e.noFollowElement.value||""},set:function(t){e.noFollowElement.value=t}},{key:"advanced",get:function(){return e.advancedElement&&e.advancedElement.value||""},set:function(t){e.advancedElement.value=t}},{key:"breadcrumbsTitle",get:function(){return e.breadcrumbsTitleElement&&e.breadcrumbsTitleElement.value||""},set:function(t){e.breadcrumbsTitleElement.value=t}},{key:"canonical",get:function(){return e.canonicalElement&&e.canonicalElement.value||""},set:function(t){e.canonicalElement.value=t}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateAnalysisData=function(e){return{type:r,data:e}},t.runAnalysis=function(){return{type:a,timestamp:Date.now()}};var r=t.UPDATE_SNIPPET_DATA="SNIPPET_EDITOR_UPDATE_ANALYSIS_DATA",a=t.RUN_ANALYSIS="RUN_ANALYSIS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEditorDataContent=function(e){return{type:r,content:e}},t.setEditorDataTitle=function(e){return{type:a,title:e}},t.setEditorDataExcerpt=function(e){return{type:o,excerpt:e}},t.setEditorDataImageUrl=function(e){return{type:i,imageUrl:e}};var r=t.SET_EDITOR_DATA_CONTENT="SET_EDITOR_DATA_CONTENT",a=t.SET_EDITOR_DATA_TITLE="SET_EDITOR_DATA_TITLE",o=t.SET_EDITOR_DATA_EXCERPT="SET_EDITOR_DATA_EXCERPT",i=t.SET_EDITOR_DATA_IMAGE_URL="SET_EDITOR_DATA_IMAGE_URL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openEditorModal=function(e){return{type:r,modalKey:e}},t.closeEditorModal=function(){return{type:a}};var r=t.OPEN_EDITOR_MODAL="OPEN_MODAL",a=t.CLOSE_EDITOR_MODAL="CLOSE_MODAL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"estimatedReadingTimeElement",get:function(){return document.getElementById("yoast_wpseo_estimated-reading-time-minutes")}},{key:"estimatedReadingTime",get:function(){return e.estimatedReadingTimeElement&&e.estimatedReadingTimeElement.value||""},set:function(t){e.estimatedReadingTimeElement.value=t}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSEMrushDismissModal=function(){return{type:r}},t.setSEMrushOpenModal=function(e){return{type:a,location:e}},t.setSEMrushNoKeyphraseMessage=function(){return{type:o}};var r=t.MODAL_DISMISS="MODAL_DISMISS",a=t.MODAL_OPEN="MODAL_OPEN",o=t.MODAL_OPEN_NO_KEYPHRASE="MODAL_OPEN_NO_KEYPHRASE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-title":"hidden_wpseo_twitter-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-description":"hidden_wpseo_twitter-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image-id":"hidden_wpseo_twitter-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_twitter-image":"hidden_wpseo_twitter-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-title":"hidden_wpseo_opengraph-title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-description":"hidden_wpseo_opengraph-description")}},{key:"imageIdElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image-id":"hidden_wpseo_opengraph-image-id")}},{key:"imageUrlElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_opengraph-image":"hidden_wpseo_opengraph-image")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",set:function(t){e.descriptionElement.value=t},get:function(){return e.descriptionElement.value}},{key:"imageId",set:function(t){e.imageIdElement.value=t},get:function(){return e.imageIdElement.value}},{key:"imageUrl",set:function(t){e.imageUrlElement.value=t},get:function(){return e.imageUrlElement.value}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCloseEvent=void 0;var r=n(3),a=n(4),o=u(n(38)),i=u(n(1)),s=u(n(112)),l=n(14);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.isCloseEvent=function(e){return"blur"!==e.type||!(!e.relatedTarget||!e.relatedTarget.querySelector(".components-modal__screen-overlay"))},d=function(e){var t=e.id,n=e.postTypeName,i=e.children,u=e.title,d=e.isOpen,p=e.close,f=e.open,m=(0,a.useCallback)(function(e){c(e)&&p()},[p]);return wp.element.createElement(a.Fragment,null,d&&wp.element.createElement(l.LocationProvider,{value:"modal"},wp.element.createElement(o.default,{title:u,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal"},wp.element.createElement("div",{className:"yoast-content-container"},wp.element.createElement("div",{className:"yoast-modal-content"},i)),wp.element.createElement("div",{className:"yoast-notice-container"},wp.element.createElement("hr",null),wp.element.createElement("div",{className:"yoast-button-container"},wp.element.createElement("p",null,(0,r.sprintf)((0,r.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),wp.element.createElement("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},(0,r.sprintf)((0,r.__)("Return to your %s","wordpress-seo"),n)))))),wp.element.createElement(s.default,{id:t+"-open-button",title:u,suffixIcon:{size:"20px",icon:"pencil-square"},onClick:f}))};d.propTypes={id:i.default.string.isRequired,postTypeName:i.default.string.isRequired,children:i.default.oneOfType([i.default.node,i.default.arrayOf(i.default.node)]).isRequired,title:i.default.string.isRequired,isOpen:i.default.bool.isRequired,open:i.default.func.isRequired,close:i.default.func.isRequired},t.default=d},function(e,t){e.exports=window.yoast.analysisReport},function(e,t,n){"use strict";var r=n(2),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(39),i=n(79),s=n(80),l=".",u=":",c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function p(e,t){return e&&"object"==typeof e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function f(e,t,n,r){var o,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===a)return n(r,e,""===t?l+p(e,0):t),1;var m=0,y=""===t?l:t+u;if(Array.isArray(e))for(var h=0;h<e.length;h++)m+=f(o=e[h],y+p(o,h),n,r);else{var _=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(_){0;for(var g,v=_.call(e),w=0;!(g=v.next()).done;)m+=f(o=g.value,y+p(o,w++),n,r)}else if("object"===s){0;var b=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return m}var m=/\/+/g;function y(e){return(""+e).replace(m,"$&/")}var h=_,_=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){i(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)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function w(e,t,n){var a=e.result,i=e.keyPrefix,s=e.func,l=e.context,u=s.call(l,t,e.count++);Array.isArray(u)?b(u,a,n,o.thatReturnsArgument):null!=u&&(r.isValidElement(u)&&(u=function(e,t){return r.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}(u,i+(!u.key||t&&t.key===u.key?"":y(u.key)+"/")+n)),a.push(u))}function b(e,t,n,r,a){var o="";null!=n&&(o=y(n)+"/");var i=v.getPooled(t,o,r,a);!function(e,t,n){null==e||f(e,"",t,n)}(e,w,i),v.release(i)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||h,n.poolSize||(n.poolSize=10),n.release=g}(v,function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)});e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,o.thatReturnsArgument);return t}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,a,o,i,s,l){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,o,i,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(39);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkFieldsShape=void 0;var r=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},a=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}}(),o=n(4),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.linkFieldsShape=i.default.shape({value:i.default.string.isRequired,onChange:i.default.func.isRequired});t.default=function(e){return function(t){return function(n){function s(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=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,(s.__proto__||Object.getPrototypeOf(s)).call(this,t));n.elements={};var r={};return n.fields=e(t),n.fields.forEach(function(e){var t=e.name,a=e.fieldId,o=document.getElementById(a);o&&(n.elements[t]=o,r[t]={value:o.value,onChange:n.onChange.bind(n,t)})}),n.state=r,n}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)}(s,o.Component),a(s,[{key:"onChange",value:function(e,t){var n=this;this.setState(r({},this.state,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,r({},this.state[e],{value:t}))),function(){n.elements[e]&&(n.elements[e].value=t)})}},{key:"render",value:function(){var e=this.props,n=e.children,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return wp.element.createElement(t,r({},a,this.state),n)}}],[{key:"propTypes",get:function(){return{children:i.default.node}}}]),s}()}}},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalIcon=t.ModalContainer=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),a=n(5),o=n(6);t.ModalContainer=r.default.div.withConfig({displayName:"Container__ModalContainer",componentId:"sc-1onoh63-0"})(["min-width:600px;@media screen and ( max-width:680px ){min-width:0;width:86vw;}"]),t.ModalIcon=(0,r.default)(a.Icon).withConfig({displayName:"Container__ModalIcon",componentId:"sc-1onoh63-1"})(["float:",";margin:",";&&{width:150px;height:150px;@media screen and ( max-width:680px ){width:80px;height:80px;}}"],(0,o.getDirectionalStyle)("right","left"),(0,o.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),a=s(n(1)),o=n(27),i=s(n(28));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.target,n=e.scoreIndicator;return wp.element.createElement(i.default,{target:t},wp.element.createElement(r.SvgIcon,(0,o.getIconForScore)(n)))};l.propTypes={target:a.default.string.isRequired,scoreIndicator:a.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(4),o=u(n(19)),i=u(n(1)),s=u(n(8)),l=n(6);function u(e){return e&&e.__esModule?e:{default:e}}var c=s.default.ul.withConfig({displayName:"UpsellBox__StyledList",componentId:"gjf66g-0"})(['list-style:none;margin:0 0 16px;padding:0;li{margin:5px 0 0 0;padding-left:16px;}span[aria-hidden="true"]:before{margin:0 8px 0 -16px;font-weight:bold;content:"+";}']),d=s.default.small.withConfig({displayName:"UpsellBox__ButtonLabel",componentId:"gjf66g-1"})(["display:block;"]),p=(0,l.makeOutboundLink)(),f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,e))}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,a.Component),r(t,[{key:"createBenefitsList",value:function(e){return e.length>0&&wp.element.createElement(c,{role:"list"},e.map(function(e,t){return wp.element.createElement("li",{key:t},wp.element.createElement("span",{"aria-hidden":"true"}),(0,o.default)({mixedString:e.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"),components:{strong:wp.element.createElement("strong",null)}}))}))}},{key:"createInfoParagraphs",value:function(e){return e.map(function(e,t){return wp.element.createElement("p",{key:t},e)})}},{key:"render",value:function(){return wp.element.createElement("div",null,this.createInfoParagraphs(this.props.infoParagraphs),this.createBenefitsList(this.props.benefits),wp.element.createElement(p,this.props.upsellButton,this.props.upsellButtonText,this.props.upsellButtonHasCaret&&wp.element.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),wp.element.createElement(d,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel))}}]),t}();f.propTypes={benefits:i.default.array,infoParagraphs:i.default.array,upsellButton:i.default.object,upsellButtonText:i.default.string.isRequired,upsellButtonLabel:i.default.string,upsellButtonHasCaret:i.default.bool},f.defaultProps={infoParagraphs:[],benefits:[],upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var a=function(e){var t=e.children;return wp.element.createElement("div",null,t)};a.propTypes={renderPriority:r.default.number.isRequired,children:r.default.node.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(4),o=u(n(1)),i=u(n(171)),s=n(172),l=n(59);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.state={activeField:"",hoveredField:""},n.setHoveredField=n.setHoveredField.bind(n),n.setActiveField=n.setActiveField.bind(n),n.setEditorRef=n.setEditorRef.bind(n),n.setEditorFocus=n.setEditorFocus.bind(n),n}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,a.Component),r(t,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},function(){return t.setEditorFocus(e)})}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,o=e.onRemoveImageClick,l=e.socialMediumName,u=e.imageWarnings,c=e.description,d=e.descriptionInputPlaceholder,p=e.imageUrl,f=e.title,m=e.titleInputPlaceholder,y=e.replacementVariables,h=e.recommendedReplacementVariables,_=e.isPremium,g=e.location;return wp.element.createElement(a.Fragment,null,wp.element.createElement(i.default,{socialMediumName:l}),wp.element.createElement(s.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:l,title:f,titleInputPlaceholder:m,onRemoveImageClick:o,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:d,imageWarnings:u,replacementVariables:y,recommendedReplacementVariables:h,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:_,setEditorRef:this.setEditorRef,idSuffix:g}))}}]),t}();c.propTypes={title:o.default.string.isRequired,onTitleChange:o.default.func.isRequired,description:o.default.string.isRequired,onDescriptionChange:o.default.func.isRequired,imageUrl:o.default.string.isRequired,onSelectImageClick:o.default.func.isRequired,onRemoveImageClick:o.default.func.isRequired,socialMediumName:o.default.string.isRequired,isPremium:o.default.bool,imageWarnings:o.default.array,descriptionInputPlaceholder:o.default.string,titleInputPlaceholder:o.default.string,replacementVariables:l.replacementVariablesShape,recommendedReplacementVariables:l.recommendedReplacementVariablesShape,location:o.default.string},c.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",location:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(17),o=n(8),i=n(14);var s=function(e){var t=e.store,n=e.theme,r=e.location,s=e.children;return wp.element.createElement(i.LocationProvider,{value:r},wp.element.createElement(o.ThemeProvider,{theme:n},wp.element.createElement(a.Provider,{store:t},s)))};s.propTypes={store:r.default.object.isRequired,theme:r.default.object.isRequired,location:r.default.oneOf(["sidebar","metabox","modal"]).isRequired,children:r.default.element.isRequired},t.default=s},,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),a=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=function(e){return wp.element.createElement("div",{className:"yoast components-panel__body"},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement("button",{id:e.id,onClick:e.onClick,className:"components-button components-panel__body-toggle"},wp.element.createElement("span",{className:"yoast-title-container"},wp.element.createElement("div",{className:"yoast-title"},e.title),wp.element.createElement("div",{className:"yoast-subtitle"},e.subTitle)),e.suffixIcon&&wp.element.createElement(r.SvgIcon,{size:e.suffixIcon.size,icon:e.suffixIcon.icon}))))};t.default=o,o.propTypes={onClick:a.default.func.isRequired,title:a.default.string.isRequired,id:a.default.string,subTitle:a.default.string,suffixIcon:a.default.object},o.defaultProps={id:"",suffixIcon:null,subTitle:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=u(n(1)),o=n(77),i=n(4),s=n(11),l=u(n(27));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e)),r=n.props.results;return n.state={mappedResults:{}},null!==r&&(n.state={mappedResults:(0,l.default)(r,n.props.keywordKey)}),n.handleMarkButtonClick=n.handleMarkButtonClick.bind(n),n}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,i.Component),r(t,[{key:"componentDidUpdate",value:function(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:(0,l.default)(this.props.results,this.props.keywordKey)})}},{key:"handleMarkButtonClick",value:function(e,t){var n=this.props.keywordKey.length>0?this.props.keywordKey+":"+e:e;n===this.props.activeMarker?(this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()):(this.props.setActiveMarker(n),t())}},{key:"removeMarkers",value:function(){window.YoastSEO.analysis.applyMarks(new s.Paper("",{}),[])}},{key:"render",value:function(){var e=this.state.mappedResults,t=e.errorsResults,n=e.improvementsResults,r=e.goodResults,a=e.considerationsResults,s=e.problemsResults;return wp.element.createElement(i.Fragment,null,wp.element.createElement(o.ContentAnalysis,{errorsResults:t,problemsResults:s,improvementsResults:n,considerationsResults:a,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,marksButtonClassName:this.props.marksButtonClassName,marksButtonStatus:this.props.marksButtonStatus,headingLevel:3,keywordKey:this.props.keywordKey}))}}]),t}();c.propTypes={results:a.default.array,marksButtonClassName:a.default.string,marksButtonStatus:a.default.string,setActiveMarker:a.default.func.isRequired,setMarkerPauseStatus:a.default.func.isRequired,activeMarker:a.default.string,keywordKey:a.default.string},c.defaultProps={results:null,marksButtonStatus:"enabled",marksButtonClassName:"",activeMarker:null,keywordKey:""},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(1)),a=s(n(8)),o=n(5),i=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,a.default)(o.StyledSection).withConfig({displayName:"SnippetPreviewSection__Section",componentId:"gjy5w5-0"})(["&","{padding:0;& ","{",":20px;margin-left:",";}}"],o.StyledSectionBase,o.StyledHeading,(0,i.getDirectionalStyle)("padding-left","padding-right"),(0,i.getDirectionalStyle)("0","20px")),u=function(e){var t=e.children,n=e.title,r=e.icon,a=e.hasPaperStyle;return wp.element.createElement(l,{headingLevel:3,headingText:n,headingIcon:r,headingIconColor:"#555",hasPaperStyle:a},t)};u.propTypes={children:r.default.element,title:r.default.string,icon:r.default.string,hasPaperStyle:r.default.bool},u.defaultProps={hasPaperStyle:!0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaTypeOptionsPropType=void 0;var r=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}}(),a=n(4),o=n(3),i=n(5),s=c(n(1)),l=n(83),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.initialPageType=e.pageType.value,n.initialArticleType=e.articleType?e.articleType.value:"None",n.state={schema_page_type:n.initialPageType,schema_article_type:n.initialArticleType},n.handleOptionFocus=n.handleOptionFocus.bind(n),n}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,a.Component),r(t,[{key:"shouldShowAlert",value:function(){return this.state.schema_page_type!==this.initialPageType||this.state.schema_article_type!==this.initialArticleType}},{key:"handleOptionFocus",value:function(e,t){this.setState(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}},{key:"render",value:function(){return wp.element.createElement(a.Fragment,null,wp.element.createElement(i.FieldGroup,{label:(0,o.__)("Schema settings","wordpress-seo"),linkTo:"https://yoa.st/404",linkText:(0,o.__)("Learn more about the schema settings","wordpress-seo"),description:(0,o.sprintf)((0,o.__)("Choose how your %1$s should be described by default in your site's schema.org markup. You can change these settings for individual %1$s.","wordpress-seo"),this.props.postTypeName)}),this.shouldShowAlert()&&wp.element.createElement(i.Alert,{type:"warning"},(0,o.sprintf)((0,o._n)("Upon saving, this setting will apply to all of your %1$s. %1$s that are manually configured will be left untouched.","Upon saving, these settings will apply to all of your %1$s. %1$s that are manually configured will be left untouched.",this.props.articleType?2:1,"wordpress-seo"),this.props.postTypeName)),wp.element.createElement(i.Select,{id:"schema-page-type-"+this.props.postType,name:"schema_page_type",options:this.props.pageTypeOptions,label:(0,o.__)("Default Page type","wordpress-seo"),onChange:this.props.pageType.onChange,selected:this.props.pageType.value,onOptionFocus:this.handleOptionFocus}),this.props.articleType&&wp.element.createElement(i.Select,{id:"schema-article-type-"+this.props.postType,name:"schema_article_type",options:this.props.articleTypeOptions,label:(0,o.__)("Default Article type","wordpress-seo"),onChange:this.props.articleType.onChange,onOptionFocus:this.handleOptionFocus,selected:this.props.articleType.value}))}}]),t}(),p=t.schemaTypeOptionsPropType=s.default.arrayOf(s.default.shape({name:s.default.string,value:s.default.string}));d.propTypes={postType:s.default.string.isRequired,postTypeName:s.default.string.isRequired,pageType:l.linkFieldsShape.isRequired,articleType:l.linkFieldsShape,pageTypeOptions:p.isRequired,articleTypeOptions:p.isRequired},d.defaultProps={articleType:null},t.default=(0,u.default)(function(e){return[{name:"pageType",fieldId:e.pageTypeFieldId},{name:"articleType",fieldId:e.articleTypeFieldId}]})(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),a=n(10),o=function(e){return e&&e.__esModule?e:{default:e}}(n(117));t.default=(0,a.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,a=t.getSEMrushRequestLimitReached,o=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,l=t.getSEMrushRequestHasData,u=t.getSEMrushRequestKeyphrase;return{keyphrase:n(),countryCode:r(),requestLimitReached:a(),response:o(),isSuccess:i(),isPending:s(),requestHasData:l(),lastRequestKeyphrase:u()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest,a=t.setSEMrushRequestSucceeded,o=t.setSEMrushRequestFailed,i=t.setSEMrushSetRequestLimitReached,s=t.setSEMrushNoResultsFound;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)},setRequestSucceeded:function(e){a(e)},setRequestFailed:function(e){o(e)},setRequestLimitReached:function(){i()},setNoResultsFound:function(){s()}}})])(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasError=h,t.getUserMessage=_,t.hasMaximumRelatedKeyphrases=g,t.default=v;var r=n(4),a=n(3),o=y(n(1)),i=n(0),s=y(n(118)),l=y(n(119)),u=y(n(120)),c=y(n(121)),d=y(n(124)),p=y(n(125)),f=y(n(126)),m=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return!(0,i.isEmpty)(e)&&"error"in e}function _(e){var t=e.isPending,n=e.requestLimitReached,r=e.isSuccess,o=e.response,i=e.requestHasData;return t?wp.element.createElement(s.default,null):n?wp.element.createElement(l.default,null):!r&&h(o)?wp.element.createElement(p.default,null):i?void 0:wp.element.createElement("p",null,(0,a.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}function g(e){return e&&e.length>=4}function v(e){var t=e.response,n=e.lastRequestKeyphrase,a=e.keyphrase,o=e.newRequest,i=e.setCountry,s=e.renderAction,l=e.countryCode,p=e.requestLimitReached,y=e.setRequestFailed,h=e.setNoResultsFound,v=e.relatedKeyphrases,w=e.setRequestSucceeded,b=e.setRequestLimitReached,E=(0,m.default)().isPremium;return wp.element.createElement(r.Fragment,null,!p&&wp.element.createElement(r.Fragment,null,!E&&wp.element.createElement(d.default,null),E&&g(v)&&wp.element.createElement(f.default,null),wp.element.createElement(u.default,{countryCode:l,setCountry:i,newRequest:o,keyphrase:a,setRequestFailed:y,setNoResultsFound:h,setRequestSucceeded:w,setRequestLimitReached:b,response:t,lastRequestKeyphrase:n})),_(e),wp.element.createElement(c.default,{keyphrase:a,relatedKeyphrases:v,countryCode:l,renderAction:s,data:t}))}v.propTypes={keyphrase:o.default.string,relatedKeyphrases:o.default.array,renderAction:o.default.func,requestLimitReached:o.default.bool,countryCode:o.default.string.isRequired,setCountry:o.default.func.isRequired,newRequest:o.default.func.isRequired,setRequestSucceeded:o.default.func.isRequired,setRequestLimitReached:o.default.func.isRequired,setRequestFailed:o.default.func.isRequired,setNoResultsFound:o.default.func.isRequired,response:o.default.object,lastRequestKeyphrase:o.default.string},v.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(5);t.default=function(){return wp.element.createElement("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,r.sprintf)((0,r.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","SEMrush")," ",wp.element.createElement(a.SvgIcon,{icon:"loading-spinner"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(4),o=(0,n(6).makeOutboundLink)();t.default=function(){return wp.element.createElement(a.Fragment,null,wp.element.createElement("p",null,(0,r.sprintf)((0,r.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"SEMrush")),wp.element.createElement(o,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,r.sprintf)((0,r.__)("Upgrade your %s plan","wordpress-seo"),"SEMrush"),wp.element.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEMrushCountrySelector=void 0;var r=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}}(),a=c(n(1)),o=n(4),i=c(n(55)),s=n(56),l=n(3),u=n(5);function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(a,o){try{var i=t[a](o),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}("next")})}}var p="yoast-semrush-country-selector",f=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}],m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.relatedKeyphrasesRequest=n.relatedKeyphrasesRequest.bind(n),n.onChangeHandler=n.onChangeHandler.bind(n),n}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,o.Component),r(t,[{key:"componentDidMount",value:function(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}},{key:"storeCountryCode",value:function(e){(0,i.default)({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}},{key:"relatedKeyphrasesRequest",value:function(){var e=d(regeneratorRuntime.mark(function e(){var t,n,r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.keyphrase,r=t.countryCode,(0,t.newRequest)(r,n),this.storeCountryCode(r),e.next=5,this.doRequest(n,r);case 5:if(200!==(a=e.sent).status){e.next=9;break}return this.handleSuccessResponse(a),e.abrupt("return");case 9:this.handleFailedResponse(a);case 10:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"handleSuccessResponse",value:function(e){var t=this.props,n=t.setNoResultsFound,r=t.setRequestSucceeded;0!==e.results.rows.length?r(e):n()}},{key:"handleFailedResponse",value:function(e){var t=this.props,n=t.setRequestLimitReached,r=t.setRequestFailed;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?n():r(e))}},{key:"doRequest",value:function(){var e=d(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.default)({path:(0,s.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:n})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"onChangeHandler",value:function(e){this.props.setCountry(e)}},{key:"render",value:function(){return wp.element.createElement("div",{id:p},wp.element.createElement(u.SingleSelect,{id:p+"-select",label:(0,l.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:f,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),wp.element.createElement(u.NewButton,{id:p+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,l.__)("Select country","wordpress-seo")))}}]),t}();m.propTypes={keyphrase:a.default.string,countryCode:a.default.string,response:a.default.object,lastRequestKeyphrase:a.default.string,setCountry:a.default.func.isRequired,newRequest:a.default.func.isRequired,setNoResultsFound:a.default.func.isRequired,setRequestSucceeded:a.default.func.isRequired,setRequestLimitReached:a.default.func.isRequired,setRequestFailed:a.default.func.isRequired},m.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};t.SEMrushCountrySelector=function(e){return wp.element.createElement(u.ErrorBoundary,null,wp.element.createElement(m,e))},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=d(n(1)),o=n(4),i=n(3),s=n(0),l=n(6),u=d(n(122)),c=d(n(33));function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,l.makeOutboundLink)(),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.transformTrendDataToChartPoints=n.transformTrendDataToChartPoints.bind(n),n.getAreaChartDataTableHeaderLabels=n.getAreaChartDataTableHeaderLabels.bind(n),n.mapAreaChartDataToTableData=n.mapAreaChartDataToTableData.bind(n),n}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,o.Component),r(t,[{key:"transformTrendDataToChartPoints",value:function(e){return e.split(",").map(function(e,t){return{x:t,y:parseFloat(e)}})}},{key:"getAreaChartDataTableHeaderLabels",value:function(){return[(0,i.__)("Twelve months ago","wordpress-seo"),(0,i.__)("Eleven months ago","wordpress-seo"),(0,i.__)("Ten months ago","wordpress-seo"),(0,i.__)("Nine months ago","wordpress-seo"),(0,i.__)("Eight months ago","wordpress-seo"),(0,i.__)("Seven months ago","wordpress-seo"),(0,i.__)("Six months ago","wordpress-seo"),(0,i.__)("Five months ago","wordpress-seo"),(0,i.__)("Four months ago","wordpress-seo"),(0,i.__)("Three months ago","wordpress-seo"),(0,i.__)("Two months ago","wordpress-seo"),(0,i.__)("Last month","wordpress-seo")]}},{key:"mapAreaChartDataToTableData",value:function(e){return Math.round(100*e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.keyphrase,r=t.relatedKeyphrases,a=t.countryCode,l=t.data,d=t.renderAction,f="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(n)+"&db="+encodeURIComponent(a);return l&&!(0,s.isEmpty)(l.results)&&wp.element.createElement(o.Fragment,null,wp.element.createElement("table",{className:"yoast yoast-table"},wp.element.createElement("thead",null,wp.element.createElement("tr",null,wp.element.createElement("th",{scope:"col",className:"yoast-table--primary"},(0,i.__)("Related keyphrase","wordpress-seo")),wp.element.createElement("th",{scope:"col",abbr:(0,i.__)("Volume","wordpress-seo")},(0,i.__)("Volume","wordpress-seo"),wp.element.createElement(c.default,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Learn more about the related keyphrases volume","wordpress-seo")))),wp.element.createElement("th",{scope:"col",abbr:(0,i.__)("Trend","wordpress-seo")},(0,i.__)("Trend","wordpress-seo"),wp.element.createElement(c.default,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Learn more about the related keyphrases trend","wordpress-seo")))),d&&wp.element.createElement("td",{className:"yoast-table--nobreak"}))),wp.element.createElement("tbody",null,l.results.rows.map(function(t,n){var a=t[0],o=e.transformTrendDataToChartPoints(t[2]),s=e.getAreaChartDataTableHeaderLabels();return wp.element.createElement("tr",{key:n},wp.element.createElement("td",null,a),wp.element.createElement("td",null,t[1]),wp.element.createElement("td",{className:"yoast-table--nopadding"},wp.element.createElement(u.default,{width:66,height:24,data:o,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:e.mapAreaChartDataToTableData,dataTableCaption:(0,i.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:s})),d&&wp.element.createElement("td",{className:"yoast-table--nobreak"},d(a,r)))}))),wp.element.createElement("p",{style:{marginBottom:0}},wp.element.createElement(p,{href:f},(0,i.sprintf)((0,i.__)("Get more insights at %s","wordpress-seo"),"SEMrush"))))}}]),t}();f.propTypes={data:a.default.object,keyphrase:a.default.string,relatedKeyphrases:a.default.array,countryCode:a.default.string,renderAction:a.default.func},f.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),a=n(4),o=i(n(123));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=function(e){var t=e.data,n=e.width,r=e.height,i=e.fillColor,l=e.strokeColor,u=e.strokeWidth,c=e.className,d=e.mapChartDataToTableData,p=e.dataTableCaption,f=e.dataTableHeaderLabels,m=e.isDataTableVisuallyHidden,y=Math.max(1,Math.max.apply(Math,s(t.map(function(e){return e.x})))),h=Math.max(1,Math.max.apply(Math,s(t.map(function(e){return e.y})))),_=r-u,g=t.map(function(e){return e.x/y*n+","+(_-e.y/h*_+u)}).join(" "),v="0,"+(_+u)+" "+g+" "+n+","+(_+u);return wp.element.createElement(a.Fragment,null,wp.element.createElement("svg",{width:n,height:r,viewBox:"0 0 "+n+" "+r,className:c,role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("polygon",{fill:i,points:v}),wp.element.createElement("polyline",{fill:"none",stroke:l,strokeWidth:u,strokeLinejoin:"round",strokeLinecap:"round",points:g})),d&&wp.element.createElement(o.default,{data:t,mapChartDataToTableData:d,dataTableCaption:p,dataTableHeaderLabels:f,isDataTableVisuallyHidden:m}))};l.propTypes={data:r.default.arrayOf(r.default.shape({x:r.default.number,y:r.default.number})).isRequired,width:r.default.number.isRequired,height:r.default.number.isRequired,fillColor:r.default.string,strokeColor:r.default.string,strokeWidth:r.default.number,className:r.default.string,mapChartDataToTableData:r.default.func,dataTableCaption:r.default.string.isRequired,dataTableHeaderLabels:r.default.array.isRequired,isDataTableVisuallyHidden:r.default.bool},l.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(3);var o=function(e){var t=e.data,n=e.mapChartDataToTableData,r=e.dataTableCaption,o=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden;return t.length!==o.length?wp.element.createElement("p",null,(0,a.__)("The number of headers and header labels don't match.","wordpress-seo")):wp.element.createElement("div",{className:i?"screen-reader-text":null},wp.element.createElement("table",null,wp.element.createElement("caption",null,r),wp.element.createElement("thead",null,wp.element.createElement("tr",null,o.map(function(e,t){return wp.element.createElement("th",{key:t},e)}))),wp.element.createElement("tbody",null,wp.element.createElement("tr",null,t.map(function(e,t){return wp.element.createElement("td",{key:t},n(e.y))})))))};o.propTypes={data:r.default.arrayOf(r.default.shape({x:r.default.number,y:r.default.number})).isRequired,mapChartDataToTableData:r.default.func,dataTableCaption:r.default.string.isRequired,dataTableHeaderLabels:r.default.array.isRequired,isDataTableVisuallyHidden:r.default.bool},o.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(5),o=(0,n(6).makeOutboundLink)();t.default=function(){return wp.element.createElement(a.Alert,{type:"info"},(0,r.sprintf)((0,r.__)("Would you like to be able to add these related keyphrases to the %s analysis so you can optimize your content even further?","wordpress-seo"),"Yoast SEO")+" ",wp.element.createElement(o,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,r.sprintf)((0,r.__)("Check out %s!","wordpress-seo"),"Yoast SEO Premium")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(5);t.default=function(){return wp.element.createElement(a.Alert,{type:"error"},(0,r.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(5);t.default=function(){return wp.element.createElement(a.Alert,{type:"warning"},(0,r.sprintf)((0,r.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tinyMCEDecorator=l,t.editorHasMarks=function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+i)},t.editorRemoveMarks=function(e){l(e)(null,[])};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),a=n(0);var o=r.default.markers.removeMarks,i="yoastmark";function s(e,t,n){var r=e.dom,s=e.getContent();s=o(s),(0,a.forEach)(n,function(e){s=e.applyWithReplace(s)}),e.setContent(s),function(e){var t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);var l=r.select(i);(0,a.forEach)(l,function(e){e.setAttribute("data-mce-bogus","1")})}function l(e){return window.test=e,s.bind(null,e)}},,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),a=n(7),o=s(n(158)),i=s(n(32));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.compose)([(0,a.withSelect)(function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),(0,a.withDispatch)(function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}}),(0,i.default)()])(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeywordInput=void 0;var r=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}}(),a=n(4),o=n(12),i=n(3),s=y(n(1)),l=n(17),u=n(15),c=y(n(8)),d=n(16),p=y(n(33)),f=n(14),m=y(n(160));function y(e){return e&&e.__esModule?e:{default:e}}var h=c.default.div.withConfig({displayName:"KeywordInput__KeywordInputContainer",componentId:"sc-16tnggn-0"})(["padding:16px;border-bottom:1px solid transparent;"]),_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.validate=n.validate.bind(n),n}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,a.Component),r(t,[{key:"validate",value:function(){var e=[];return 0===this.props.keyword.trim().length&&this.props.displayNoKeyphraseMessage&&e.push((0,i.__)("Please enter a focus keyphrase first to get related keyphrases","wordpress-seo")),this.props.keyword.includes(",")&&e.push((0,i.__)("Are you trying to use multiple keyphrases? You should add them separately below.","wordpress-seo")),this.props.keyword.length>191&&e.push((0,i.__)("Your keyphrase is too long. It can be a maximum of 191 characters.","wordpress-seo")),e}},{key:"render",value:function(){var e=this,n=this.validate();return wp.element.createElement(f.LocationConsumer,null,function(r){return wp.element.createElement("div",{style:"sidebar"===r?{borderBottom:"1px solid #f0f0f0"}:{}},wp.element.createElement(h,{location:r},wp.element.createElement(u.KeywordInput,{id:"focus-keyword-input-"+r,onChange:e.props.onFocusKeywordChange,keyword:e.props.keyword,label:(0,i.__)("Focus keyphrase","wordpress-seo"),helpLink:t.renderHelpLink(),onBlurKeyword:e.props.onBlurKeyword,onFocusKeyword:e.props.onFocusKeyword,hasError:n.length>0,errorMessages:n}),e.props.isSEMrushIntegrationActive&&wp.element.createElement(m.default,{location:r,keyphrase:e.props.keyword})),wp.element.createElement(o.Slot,{name:"YoastAfterKeywordInput"+(r.charAt(0).toUpperCase()+r.slice(1))}))})}}],[{key:"renderHelpLink",value:function(){return wp.element.createElement(p.default,{href:wpseoAdminL10n["shortlinks.focus_keyword_info"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,i.__)("Help on choosing the perfect focus keyphrase","wordpress-seo")))}}]),t}();_.propTypes={keyword:s.default.string,onFocusKeywordChange:s.default.func.isRequired,onFocusKeyword:s.default.func.isRequired,onBlurKeyword:s.default.func.isRequired,isSEMrushIntegrationActive:s.default.bool,displayNoKeyphraseMessage:s.default.bool},_.defaultProps={keyword:"",isSEMrushIntegrationActive:!1,displayNoKeyphraseMessage:!1},t.KeywordInput=_,t.default=(0,l.connect)(function(e){return{keyword:e.focusKeyword,displayNoKeyphraseMessage:e.SEMrushModal.displayNoKeyphraseMessage}},function(e){return{onFocusKeywordChange:function(t){e((0,d.setFocusKeyword)(t))},onFocusKeyword:function(){e((0,d.setMarkerPauseStatus)(!0))},onBlurKeyword:function(){e((0,d.setMarkerPauseStatus)(!1))}}})(_)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=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}}(),o=n(4),i=n(7),s=v(n(1)),l=v(n(8)),u=n(3),c=n(0),d=v(n(95)),p=v(n(61)),f=v(n(31)),m=v(n(21)),y=n(27),h=n(14),_=v(n(33)),g=v(n(163));function v(e){return e&&e.__esModule?e:{default:e}}var w=l.default.span.withConfig({displayName:"ReadabilityAnalysis__AnalysisHeader",componentId:"z9f9eh-0"})(["font-size:1em;font-weight:bold;margin:0 0 8px;display:block;"]),b=l.default.div.withConfig({displayName:"ReadabilityAnalysis__ReadabilityResultsTabContainer",componentId:"z9f9eh-1"})(["padding:16px;"]),E=(0,l.default)(_.default).withConfig({displayName:"ReadabilityAnalysis__StyledHelpLink",componentId:"z9f9eh-2"})(["margin:-8px 0 -4px 4px;"]),T=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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,o.Component),a(t,[{key:"renderResults",value:function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(w,null,(0,u.__)("Analysis results","wordpress-seo"),wp.element.createElement(E,{href:wpseoAdminL10n["shortlinks.readability_analysis_info"],className:"dashicons"},wp.element.createElement("span",{className:"screen-reader-text"},(0,u.__)("Learn more about the readability analysis","wordpress-seo")))),wp.element.createElement(p.default,{results:this.props.results,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:this.props.marksButtonStatus}))}},{key:"render",value:function(){var e=this,t=(0,m.default)(this.props.overallScore);return(0,c.isNil)(this.props.overallScore)&&(t.className="loading"),wp.element.createElement(h.LocationConsumer,null,function(n){return"sidebar"===n?wp.element.createElement(f.default,{title:(0,u.__)("Readability analysis","wordpress-seo"),titleScreenReaderText:t.screenReaderReadabilityText,prefixIcon:(0,y.getIconForScore)(t.className),prefixIconCollapsed:(0,y.getIconForScore)(t.className),id:"yoast-readability-analysis-collapsible-"+n},e.renderResults()):"metabox"===n?wp.element.createElement(g.default,{target:"wpseo-metabox-readability-root"},wp.element.createElement(b,null,wp.element.createElement(d.default,{target:"wpseo-readability-score-icon",scoreIndicator:t.className}),e.renderResults())):void 0})}}]),t}();T.propTypes={results:s.default.array.isRequired,marksButtonStatus:s.default.string.isRequired,overallScore:s.default.number},T.defaultProps={overallScore:null},t.default=(0,i.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getReadabilityResults,a=t.getMarkButtonStatus;return r({},n(),{marksButtonStatus:a()})})(T)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(4),o=k(n(1)),i=n(17),s=k(n(8)),l=n(3),u=n(5),c=n(18),d=k(n(95)),p=k(n(31)),f=k(n(34)),m=k(n(61)),y=k(n(21)),h=n(27),_=k(n(164)),g=k(n(165)),v=k(n(166)),w=n(14),b=k(n(167)),E=n(94),T=k(n(168));function k(e){return e&&e.__esModule?e:{default:e}}var O=s.default.span.withConfig({displayName:"SeoAnalysis__AnalysisHeader",componentId:"sc-18qlxmf-0"})(["font-size:1em;font-weight:bold;margin:1.5em 0 1em;display:block;"]),S=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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,a.Component),r(t,[{key:"renderSynonymsUpsell",value:function(e){var t={classes:{openButton:"wpseo-keyword-synonyms button-link"},labels:{open:"+ "+(0,l.__)("Add synonyms","wordpress-seo"),modalAriaLabel:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),heading:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium")}},n=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_synonyms_link"],r=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_synonyms_button"];return"sidebar"===e.toLowerCase()&&(n=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_synonyms_link"],r=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_synonyms_button"]),wp.element.createElement(g.default,t,wp.element.createElement(E.ModalContainer,null,wp.element.createElement(E.ModalIcon,{icon:u.YoastSeoIcon}),wp.element.createElement("h2",null,(0,l.__)("Would you like to add keyphrase synonyms?","wordpress-seo")),wp.element.createElement(_.default,{link:n,buyLink:r})))}},{key:"renderMultipleKeywordsUpsell",value:function(e){var t={classes:{openButton:"wpseo-multiple-keywords button-link"},labels:{open:"+ "+(0,l.__)("Add related keyphrase","wordpress-seo"),modalAriaLabel:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),heading:(0,l.sprintf)((0,l.__)("Get %s","wordpress-seo"),"Yoast SEO Premium")}},n=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_additional_link"],r=wpseoAdminL10n["shortlinks.upsell.metabox.focus_keyword_additional_button"];return"sidebar"===e.toLowerCase()&&(n=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_additional_link"],r=wpseoAdminL10n["shortlinks.upsell.sidebar.focus_keyword_additional_button"]),wp.element.createElement(g.default,t,wp.element.createElement(E.ModalContainer,null,wp.element.createElement(E.ModalIcon,{icon:u.YoastSeoIcon}),wp.element.createElement("h2",null,(0,l.__)("Would you like to add a related keyphrase?","wordpress-seo")),wp.element.createElement(v.default,{link:n,buyLink:r})))}},{key:"renderKeywordUpsell",value:function(e){var t=wpseoAdminL10n["shortlinks.upsell.metabox.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.metabox.additional_button"],r=f.default;return"sidebar"===e.toLowerCase()&&(t=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_link"],n=wpseoAdminL10n["shortlinks.upsell.sidebar.additional_button"],r=p.default),wp.element.createElement(r,{prefixIcon:{icon:"plus",color:c.colors.$color_grey_medium_dark},prefixIconCollapsed:{icon:"plus",color:c.colors.$color_grey_medium_dark},title:(0,l.__)("Add related keyphrase","wordpress-seo"),id:"yoast-additional-keyphrase-collapsible-"+e},wp.element.createElement(v.default,{link:t,buyLink:n}))}},{key:"renderWordFormsUpsell",value:function(e){return wp.element.createElement(b.default,{url:"sidebar"===e?wpseoAdminL10n["shortlinks.upsell.sidebar.morphology_upsell_sidebar"]:wpseoAdminL10n["shortlinks.upsell.sidebar.morphology_upsell_metabox"],alignment:"sidebar"===e?"vertical":"horizontal"})}},{key:"renderTabIcon",value:function(e,t){return"metabox"!==e?null:wp.element.createElement(d.default,{target:"wpseo-seo-score-icon",scoreIndicator:t})}},{key:"render",value:function(){var e=this,t=(0,y.default)(this.props.overallScore);return"loading"!==t.className&&""===this.props.keyword&&(t.className="na",t.screenReaderReadabilityText=(0,l.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),wp.element.createElement(w.LocationConsumer,null,function(n){var r="metabox"===n?f.default:p.default;return wp.element.createElement(a.Fragment,null,wp.element.createElement(r,{title:(0,l.__)("SEO analysis","wordpress-seo"),titleScreenReaderText:t.screenReaderReadabilityText,prefixIcon:(0,h.getIconForScore)(t.className),prefixIconCollapsed:(0,h.getIconForScore)(t.className),subTitle:e.props.keyword,id:"yoast-seo-analysis-collapsible-"+n},wp.element.createElement(T.default,{location:n}),e.props.shouldUpsell&&wp.element.createElement(a.Fragment,null,e.renderSynonymsUpsell(n),e.renderMultipleKeywordsUpsell(n)),e.props.shouldUpsellWordFormRecognition&&e.renderWordFormsUpsell(n),wp.element.createElement(O,null,(0,l.__)("Analysis results","wordpress-seo")),wp.element.createElement(m.default,{results:e.props.results,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:e.props.marksButtonStatus})),e.props.shouldUpsell&&e.renderKeywordUpsell(n),e.renderTabIcon(n,t.className))})}}]),t}();S.propTypes={results:o.default.array,marksButtonStatus:o.default.string,keyword:o.default.string,shouldUpsell:o.default.bool,shouldUpsellWordFormRecognition:o.default.bool,overallScore:o.default.number},S.defaultProps={results:[],marksButtonStatus:null,keyword:"",shouldUpsell:!1,shouldUpsellWordFormRecognition:!1,overallScore:null},t.default=(0,i.connect)(function(e,t){var n=t.hideMarksButtons?"disabled":e.marksButtonStatus,r=e.focusKeyword,a=[],o=null;return e.analysis.seo[r]&&(a=e.analysis.seo[r].results,o=e.analysis.seo[r].overallScore),{results:a,marksButtonStatus:n,keyword:r,overallScore:o}})(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n(10),o=n(7),i=n(4),s=n(3),l=p(n(1)),u=p(n(174)),c=p(n(49)),d=p(n(32));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=null!==c.default.articleTypeInput;(0,i.useEffect)(function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);var n=window.wpseoScriptData.metabox.schema,a=n.pageTypeOptions,o=n.articleTypeOptions,l={articleTypeLabel:(0,s.__)("Article type","wordpress-seo"),pageTypeLabel:(0,s.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,s.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,s.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:a,articleTypeOptions:o},d=r({},e,l,function(e){return"metabox"===e?{helpTextLink:"https://yoa.st/400",additionalHelpTextLink:"https://yoa.st/402",isMetabox:!0}:{helpTextLink:"https://yoa.st/401",additionalHelpTextLink:"https://yoa.st/403",isMetabox:!1}}(e.location));return wp.element.createElement(u.default,d)};f.propTypes={displayFooter:l.default.bool.isRequired,schemaPageTypeSelected:l.default.string.isRequired,schemaArticleTypeSelected:l.default.string.isRequired,defaultArticleType:l.default.string.isRequired,defaultPageType:l.default.string.isRequired,loadSchemaPageData:l.default.func.isRequired,loadSchemaArticleData:l.default.func.isRequired,schemaPageTypeChange:l.default.func.isRequired,schemaArticleTypeChange:l.default.func.isRequired,location:l.default.string.isRequired},t.default=(0,a.compose)([(0,o.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,a=t.getDefaultPageType,o=t.getArticleType,i=t.getDefaultArticleType;return{displayFooter:n().displaySchemaSettingsFooter,schemaPageTypeSelected:r(),schemaArticleTypeSelected:o(),defaultArticleType:i(),defaultPageType:a()}}),(0,o.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}}),(0,d.default)()])(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),a=n(7),o=function(e){return e&&e.__esModule?e:{default:e}}(n(175));t.default=(0,r.compose)([(0,a.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,a=t.getAdvanced,o=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,l=t.getEditorContext,u=(0,t.getPreferences)(),c=u.isBreadcrumbsDisabled,d=u.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:a(),breadcrumbsTitle:o(),canonical:i(),isLoading:s(),editorContext:l(),isBreadcrumbsDisabled:c,isPrivateBlog:d}}),(0,a.withDispatch)(function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}})])(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e.length)return e;return(0,r.flatten)(e).sort(function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority})};var r=n(0)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(0),o=s(n(176)),i=s(n(177));function s(e){return e&&e.__esModule?e:{default:e}}var l={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop},u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.determineActivePageBuilders()}return r(e,[{key:"determineActivePageBuilders",value:function(){o.default.isActive()&&(this.diviActive=!0),i.default.isActive()&&(this.vcActive=!0)}},{key:"isPageBuilderActive",value:function(){return this.diviActive||this.vcActive}},{key:"listen",value:function(e){(this.callbacks=(0,a.defaults)(e,l),this.diviActive)&&(new o.default).listen(e)}},{key:"isClassicEditorHidden",value:function(){return!(!this.diviActive||!o.default.isTinyMCEHidden())}}]),e}();t.default=u},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=n(3),a=n(5),o=n(6),i=c(n(1)),s=c(n(159)),l=c(n(34)),u=c(n(31));function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,o.makeOutboundLink)();function p(e){var t=e.isCornerstone,n=e.onChange,i=e.learnMoreUrl,c=e.location,p="metabox"===c?l.default:u.default;return wp.element.createElement(p,{id:(0,o.join)(["yoast-cornerstone-collapsible",c]),title:(0,r.__)("Cornerstone content","wordpress-seo")},wp.element.createElement(a.HelpText,null,(0,r.__)("Cornerstone content should be the most important and extensive articles on your site.","wordpress-seo")+" ",wp.element.createElement(d,{href:i},(0,r.__)("Learn more about Cornerstone Content.","wordpress-seo"))),wp.element.createElement(s.default,{id:(0,o.join)(["yoast-cornerstone",c]),isEnabled:t,onToggle:n}))}p.propTypes={isCornerstone:i.default.bool,onChange:i.default.func,learnMoreUrl:i.default.string.isRequired,location:i.default.string},p.defaultProps={isCornerstone:!0,onChange:function(){},location:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(4),o=u(n(1)),i=u(n(8)),s=n(5),l=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c=i.default.div.withConfig({displayName:"CornerstoneToggle__Cornerstone",componentId:"sc-5dq4y-0"})(["display:flex;margin-top:8px;"]),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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,a.Component),r(t,[{key:"render",value:function(){return wp.element.createElement(c,null,wp.element.createElement(s.Toggle,{id:this.props.id,labelText:(0,l.__)("Mark as cornerstone content","wordpress-seo"),isEnabled:this.props.isEnabled,onSetToggleState:this.props.onToggle,onToggleDisabled:this.props.onToggleDisabled}))}}]),t}();d.propTypes={id:o.default.string,isEnabled:o.default.bool,onToggle:o.default.func,onToggleDisabled:o.default.func},d.defaultProps={id:"cornerstone-toggle",isEnabled:!0,onToggle:function(){},onToggleDisabled:function(){}},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),a=n(10),o=function(e){return e&&e.__esModule?e:{default:e}}(n(161));t.default=(0,a.compose)([(0,r.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getSEMrushModalOpen,r=t.getSEMrushLoginStatus;return{whichModalOpen:n(),isLoggedIn:r()}}),(0,r.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushNoKeyphraseMessage,r=t.setSEMrushOpenModal,a=t.setSEMrushDismissModal,o=t.setSEMrushLoginStatus;return{onOpenWithNoKeyphrase:function(){n()},onOpen:function(e){r(e)},onClose:function(){a()},onAuthentication:function(e){o(e)}}})])(o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(4),o=n(12),i=m(n(55)),s=n(3),l=m(n(1)),u=n(5),c=n(94),d=m(n(38)),p=m(n(162)),f=n(76);function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(a,o){try{var i=t[a](o),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}("next")})}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.onModalOpen=n.onModalOpen.bind(n),n.onModalClose=n.onModalClose.bind(n),n.onLinkClick=n.onLinkClick.bind(n),n.listenToMessages=n.listenToMessages.bind(n),n}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,a.Component),r(t,[{key:"onModalOpen",value:function(){this.props.keyphrase.trim()?this.props.onOpen(this.props.location):this.props.onOpenWithNoKeyphrase()}},{key:"onModalClose",value:function(e){(0,f.isCloseEvent)(e)&&this.props.onClose()}},{key:"onLinkClick",value:function(e){if(e.preventDefault(),this.props.keyphrase.trim()){var t=e.target.href,n=["top="+(window.top.outerHeight/2+window.top.screenY-285),"left="+(window.top.outerWidth/2+window.top.screenX-170),"width=340","height=570","resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(t,"SEMrush_login",n.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.listenToMessages,!1)}else this.props.onOpenWithNoKeyphrase()}},{key:"listenToMessages",value:function(){var e=y(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,r=t.source,"https://oauth.semrush.com"===t.origin&&this.popup===r){e.next=3;break}return e.abrupt("return");case 3:if("semrush:oauth:success"!==n.type){e.next=8;break}return this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),e.next=8,this.performAuthenticationRequest(n);case 8:"semrush:oauth:denied"===n.type&&(this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),this.props.onAuthentication(!1));case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"performAuthenticationRequest",value:function(){var e=y(regeneratorRuntime.mark(function e(t){var n,r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new URL(t.url),r=n.searchParams.get("code"),e.next=5,(0,i.default)({path:"yoast/v1/semrush/authenticate",method:"POST",data:{code:r}});case 5:200===(a=e.sent).status?(this.props.onAuthentication(!0),this.onModalOpen(),this.popup.close()):console.error(a.error),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0.message);case 12:case"end":return e.stop()}},e,this,[[0,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props,t=e.keyphrase,n=e.location,r=e.whichModalOpen,i=e.isLoggedIn;return wp.element.createElement(a.Fragment,null,i&&wp.element.createElement("div",{className:"yoast"},wp.element.createElement(u.NewButton,{variant:"secondary",id:"yoast-get-related-keyphrases-"+n,onClick:this.onModalOpen},(0,s.__)("Get related keyphrases","wordpress-seo"))),t&&r===n&&wp.element.createElement(d.default,{title:(0,s.__)("Related keyphrases","wordpress-seo"),onRequestClose:this.onModalClose,icon:wp.element.createElement(p.default,null),additionalClassName:"yoast-related-keyphrases-modal"},wp.element.createElement(c.ModalContainer,{className:"yoast-gutenberg-modal__content yoast-related-keyphrases-modal__content"},wp.element.createElement(o.Slot,{name:"YoastRelatedKeyphrases"}))),!i&&wp.element.createElement("div",{className:"yoast"},wp.element.createElement(u.ButtonStyledLink,{variant:"secondary",id:"yoast-get-related-keyphrases-"+n,href:"https://oauth.semrush.com/oauth2/authorize?ref=1513012826&client_id=yoast&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Fyoast%2Fsuccess&response_type=code&scope=user.id",onClick:this.onLinkClick},(0,s.__)("Get related keyphrases","wordpress-seo"),wp.element.createElement("span",{className:"screen-reader-text"},(0,s.__)("(Opens in a new browser window)","wordpress-seo")))))}}]),t}();h.propTypes={keyphrase:l.default.string,location:l.default.string,whichModalOpen:l.default.oneOf(["none","metabox","sidebar"]),isLoggedIn:l.default.bool,onOpen:l.default.func.isRequired,onOpenWithNoKeyphrase:l.default.func.isRequired,onClose:l.default.func.isRequired,onAuthentication:l.default.func.isRequired},h.defaultProps={keyphrase:"",location:"",whichModalOpen:"none",isLoggedIn:!1},t.default=h},function(e,t,n){var r=n(2);function a(e){return r.createElement("svg",e,[r.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z",key:0}),r.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"3.81",key:1})])}a.defaultProps={viewBox:"0 0 425 456.27",role:"img","aria-hidden":"true",focusable:"false"},e.exports=a,a.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(28)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.target,n=e.children;return wp.element.createElement(r.default,{target:t},n)}i.propTypes={target:a.default.string.isRequired,children:a.default.node.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(19)),a=n(3),o=n(6),i=l(n(1)),s=l(n(96));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.makeOutboundLink)(),c=function(e){var t=(0,a.sprintf)((0,a.__)("Great news: you can, with %1$s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=(0,r.default)({mixedString:t,components:{link:wp.element.createElement(u,{href:e.link})}}),o=["<strong>"+(0,a.__)("Rank better with synonyms & related keyphrases","wordpress-seo")+"</strong>",(0,a.sprintf)((0,a.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,a.__)("Superfast internal linking suggestions","wordpress-seo")+"</strong>",(0,a.sprintf)((0,a.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,a.__)("24/7 email support","wordpress-seo")+"</strong>","<strong>"+(0,a.__)("No ads!","wordpress-seo")+"</strong>"],i=(0,a.sprintf)((0,a.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(s.default,{infoParagraphs:[n,i],benefits:o,upsellButtonText:(0,a.sprintf)((0,a.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null},upsellButtonLabel:(0,a.__)("1 year free support and updates included!","wordpress-seo")})};c.propTypes={link:i.default.string.isRequired,buyLink:i.default.string.isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(38),o=d(a),i=n(4),s=d(n(1)),l=d(n(8)),u=n(3),c=n(5);function d(e){return e&&e.__esModule?e:{default:e}}var p=l.default.button.withConfig({displayName:"SeoAnalysisModal__StyledButton",componentId:"sc-62v5uw-0"})(["&&{display:flex;align-items:center;}.yoast-svg-icon{margin:1px 7px 0 0;fill:currentColor;}"]),f={open:(0,u.__)("Open","wordpress-seo"),heading:"",closeIconButton:(0,u.__)("Close","wordpress-seo"),closeButton:""},m=function(e){var t=(0,i.useState)(!1),n=r(t,2),a=n[0],s=n[1],l=Object.assign({},f,e.labels),u=(0,i.useCallback)(function(){return s(!1)},[]),d=(0,i.useCallback)(function(){return s(!0)},[]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(p,{type:"button",onClick:d,className:e.classes.openButton+" yoast-modal__button-open"},e.openButtonIcon&&wp.element.createElement(c.SvgIcon,{icon:e.openButtonIcon,size:"13px"}),l.open),a&&wp.element.createElement(o.default,{onRequestClose:u,className:e.className,title:l.heading},e.children))};m.propTypes={openButtonIcon:s.default.string,labels:s.default.shape({open:s.default.string,modalAriaLabel:s.default.string.isRequired,heading:s.default.string,closeIconButton:s.default.string,closeButton:s.default.string}).isRequired,classes:s.default.shape({openButton:s.default.string,closeIconButton:s.default.string,closeButton:s.default.string}),className:s.default.string,children:s.default.any.isRequired},m.defaultProps={className:a.defaultModalClassName,openButtonIcon:"",classes:{}},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(19)),a=n(6),o=n(3),i=l(n(96)),s=l(n(1));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,a.makeOutboundLink)(),c=function(e){var t=(0,o.sprintf)((0,o.__)("Great news: you can, with %s!","wordpress-seo"),"{{link}}Yoast SEO Premium{{/link}}"),n=[(0,o.sprintf)((0,o.__)("%1$sNo more dead links%2$s: easy redirect manager","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,o.__)("Superfast internal linking suggestions","wordpress-seo")+"</strong>",(0,o.sprintf)((0,o.__)("%1$sSocial media preview%2$s: Facebook & Twitter","wordpress-seo"),"<strong>","</strong>"),"<strong>"+(0,o.__)("24/7 email support","wordpress-seo")+"</strong>","<strong>"+(0,o.__)("No ads!","wordpress-seo")+"</strong>"],a=(0,r.default)({mixedString:t,components:{link:wp.element.createElement(u,{href:e.link})}}),s=(0,o.sprintf)((0,o.__)("Other benefits of %s for you:","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(i.default,{infoParagraphs:[a,s],benefits:n,upsellButtonText:(0,o.sprintf)((0,o.__)("Get %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null},upsellButtonLabel:(0,o.__)("1 year free support and updates included!","wordpress-seo")})};c.propTypes={link:s.default.string.isRequired,buyLink:s.default.string.isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(1)),a=u(n(8)),o=n(3),i=n(6),s=n(18),l=n(5);function u(e){return e&&e.__esModule?e:{default:e}}var c=a.default.p.withConfig({displayName:"AnalysisUpsell__TextContainer",componentId:"sc-1qakqs0-0"})(["color:",";margin:0;padding-right:8px;"],s.colors.$color_upsell_text),d=a.default.div.withConfig({displayName:"AnalysisUpsell__Container",componentId:"sc-1qakqs0-1"})(["font-size:1em;display:flex;flex-direction:",";",":4px solid ",";margin:16px 0;padding:0 0 0 8px;max-width:600px;> ","{margin-bottom:",";}"],function(e){return"horizontal"===e.alignment?"row":"column"},(0,i.getDirectionalStyle)("border-left","border-right"),s.colors.$color_pink_dark,c,function(e){return"vertical"===e.alignment&&"16px"}),p=(0,a.default)(l.SvgIcon).withConfig({displayName:"AnalysisUpsell__Caret",componentId:"sc-1qakqs0-2"})(["margin:",";transform:",";"],(0,i.getDirectionalStyle)("0 0 0 4px","0 4px 0 0"),(0,i.getDirectionalStyle)("rotate(0deg)","rotate(180deg)")),f=(0,i.makeOutboundLink)(l.UpsellLinkButton),m=function(e){var t=e.alignment,n=e.url;return wp.element.createElement(d,{alignment:t},wp.element.createElement(c,null,(0,o.sprintf)((0,o.__)("Did you know %s also analyzes the different word forms of your keyphrase, like plurals and past tenses?","wordpress-seo"),"Yoast SEO Premium")),wp.element.createElement("div",null,wp.element.createElement(f,{href:n,className:"UpsellLinkButton"},(0,o.sprintf)((0,o.__)("Go %s!","wordpress-seo"),"Premium"),wp.element.createElement(p,{icon:"arrow-right",size:"8px",color:s.colors.$color_black}))))};m.propTypes={alignment:r.default.oneOf(["horizontal","vertical"]),url:r.default.string.isRequired},m.defaultProps={alignment:"vertical"},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(12),a=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function o(e){var t=e.location;return wp.element.createElement(r.Slot,{name:"yoast-synonyms-"+t})}o.propTypes={location:a.default.string.isRequired}},function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(12),o=s(n(1)),i=s(n(98));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return(0,r.useEffect)(function(){setTimeout(e.onLoad)},[]),e.isPremium?wp.element.createElement(a.Slot,{name:"YoastTwitterPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):wp.element.createElement(i.default,e)};l.propTypes={isPremium:o.default.bool.isRequired,onLoad:o.default.func.isRequired,location:o.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=c(n(8)),o=c(n(19)),i=c(n(1)),s=n(3),l=n(5),u=n(6);function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.default)(l.Alert).withConfig({displayName:"SocialUpsell__PremiumInfoText",componentId:"sc-113ceom-0"})(["p{margin:0;}"]),p=(0,u.makeOutboundLink)(),f=function(e){var t=(0,s.sprintf)((0,s.__)("Do you want to preview what it will look like if people share this post on %s? You can, with %s.","wordpress-seo"),e.socialMediumName," {{strong}}Yoast SEO Premium{{/strong}}"),n=(0,s.sprintf)((0,s.__)("Find out why you should upgrade to %s","wordpress-seo"),"Yoast SEO Premium");return wp.element.createElement(r.Fragment,null,wp.element.createElement(d,{type:"info"},(0,o.default)({mixedString:t,components:{strong:wp.element.createElement("b",null)}}),wp.element.createElement("br",null),wp.element.createElement(p,{href:"https://yoast.com/reasons-to-upgrade/"},wp.element.createElement("p",null,n))))};f.propTypes={socialMediumName:i.default.oneOf(["Twitter","Facebook"]).isRequired},t.default=f},function(e,t){e.exports=window.yoast.socialMetadataForms},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(12),o=s(n(1)),i=s(n(98));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return(0,r.useEffect)(function(){setTimeout(e.onLoad)},[]),e.isPremium?wp.element.createElement(a.Slot,{name:"YoastFacebookPremium"+(e.location.charAt(0).toUpperCase()+e.location.slice(1)),fillProps:e}):wp.element.createElement(i.default,e)};l.propTypes={isPremium:o.default.bool.isRequired,onLoad:o.default.func.isRequired,location:o.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(3),o=n(5),i=n(6),s=d(n(19)),l=d(n(1)),u=d(n(8)),c=n(115);function d(e){return e&&e.__esModule?e:{default:e}}var p=u.default.div.withConfig({displayName:"SchemaTab__SchemaContainer",componentId:"sc-166btxs-0"})(["padding:16px;"]),f=function(e,t,n){var r=e.find(function(e){return e.value===t});return[{name:(0,a.sprintf)((0,a.__)("Default for %1$s (%2$s)","wordpress-seo"),n,r?r.name:""),value:""}].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))},m=function(e){return(0,s.default)({mixedString:function(e){return(0,a.sprintf)((0,a.__)("You can change the default type for %1$s in your %2$sSearch Appearance Settings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}")}(e),components:{link:wp.element.createElement("a",{href:"/wp-admin/admin.php?page=wpseo_titles#top#post-types",target:"_blank"})}})},y=function(e){var t=f(e.pageTypeOptions,e.defaultPageType,e.postTypeName),n=f(e.articleTypeOptions,e.defaultArticleType,e.postTypeName);return wp.element.createElement(r.Fragment,null,wp.element.createElement(o.FieldGroup,{label:e.helpTextTitle,linkTo:e.helpTextLink,linkText:(0,a.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:e.helpTextDescription}),wp.element.createElement(o.FieldGroup,{label:(0,a.__)("What type of page or content is this?","wordpress-seo"),linkTo:e.additionalHelpTextLink,linkText:(0,a.__)("Learn more about page or content types","wordpress-seo")}),wp.element.createElement(o.Select,{id:(0,i.join)(["yoast-schema-page-type",e.location]),options:t,label:(0,a.__)("Page type","wordpress-seo"),onChange:e.schemaPageTypeChange,selected:e.schemaPageTypeSelected}),e.showArticleTypeInput&&wp.element.createElement(o.Select,{id:(0,i.join)(["yoast-schema-article-type",e.location]),options:n,label:(0,a.__)("Article type","wordpress-seo"),onChange:e.schemaArticleTypeChange,selected:e.schemaArticleTypeSelected}),e.displayFooter&&wp.element.createElement("p",null,m(e.postTypeName)))};y.propTypes={schemaPageTypeChange:l.default.func,schemaPageTypeSelected:l.default.string,pageTypeOptions:c.schemaTypeOptionsPropType.isRequired,schemaArticleTypeChange:l.default.func,schemaArticleTypeSelected:l.default.string,articleTypeOptions:c.schemaTypeOptionsPropType.isRequired,showArticleTypeInput:l.default.bool.isRequired,additionalHelpTextLink:l.default.string.isRequired,helpTextLink:l.default.string.isRequired,helpTextTitle:l.default.string.isRequired,helpTextDescription:l.default.string.isRequired,postTypeName:l.default.string.isRequired,displayFooter:l.default.bool,defaultPageType:l.default.string.isRequired,defaultArticleType:l.default.string.isRequired,location:l.default.string.isRequired},y.defaultProps={schemaPageTypeChange:function(){},schemaPageTypeSelected:null,schemaArticleTypeChange:function(){},schemaArticleTypeSelected:null,displayFooter:!1};var h=function(e){return e.isMetabox?(0,r.createPortal)(wp.element.createElement(p,null,wp.element.createElement(y,e)),document.getElementById("wpseo-meta-section-schema")):wp.element.createElement(y,e)};h.propTypes={showArticleTypeInput:l.default.bool,articleTypeLabel:l.default.string,additionalHelpTextLink:l.default.string,pageTypeLabel:l.default.string.isRequired,helpTextLink:l.default.string.isRequired,helpTextTitle:l.default.string.isRequired,helpTextDescription:l.default.string.isRequired,isMetabox:l.default.bool.isRequired,postTypeName:l.default.string.isRequired,displayFooter:l.default.bool,loadSchemaArticleData:l.default.func.isRequired,loadSchemaPageData:l.default.func.isRequired,location:l.default.string.isRequired},h.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(3),o=n(5),i=n(6),s=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),l=n(14);var u=function(e){var t=(0,a.__)("No","wordpress-seo"),n=(0,a.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:(0,a.sprintf)((0,a.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:(0,a.sprintf)((0,a.__)("%s (current default for %s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]},c=function(e){var t=e.noIndex,n=e.onNoIndexChange,s=e.editorContext,c=e.isPrivateBlog,d=u(s);return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(r.Fragment,null,c&&wp.element.createElement(o.Alert,{type:"warning"},(0,a.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),wp.element.createElement(o.Select,{label:(0,a.sprintf)((0,a.__)("Allow search engines to show this %s in search results?","wordpress-seo"),s.postTypeNameSingular),onChange:n,id:(0,i.join)(["yoast-meta-robots-noindex",e]),options:d,selected:t,linkTo:"https://yoa.st/allow-search-engines",linkText:(0,a.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))})};c.propTypes={noIndex:s.default.string.isRequired,onNoIndexChange:s.default.func.isRequired,editorContext:s.default.object.isRequired,isPrivateBlog:s.default.bool},c.defaultProps={isPrivateBlog:!1};var d=function(e){var t=e.noFollow,n=e.onNoFollowChange,r=e.postTypeName;return wp.element.createElement(l.LocationConsumer,null,function(e){var s=(0,i.join)(["yoast-meta-robots-nofollow",e]);return wp.element.createElement(o.RadioButtonGroup,{id:s,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,a.sprintf)((0,a.__)("Should search engines follow links on this %s","wordpress-seo"),r),groupName:s,onChange:n,selected:t,linkTo:"https://yoa.st/follow-links",linkText:(0,a.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})})};d.propTypes={noFollow:s.default.string.isRequired,onNoFollowChange:s.default.func.isRequired,postTypeName:s.default.string.isRequired};var p=function(e){var t=e.advanced,n=e.onAdvancedChange;return wp.element.createElement(l.LocationConsumer,null,function(e){var r=(0,i.join)(["yoast-meta-robots-advanced",e]),s=r+"-input";return wp.element.createElement(o.MultiSelect,{label:(0,a.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:s,options:[{name:(0,a.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,a.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,a.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:"https://yoa.st/meta-robots-advanced",linkText:(0,a.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})})};p.propTypes={advanced:s.default.array.isRequired,onAdvancedChange:s.default.func.isRequired};var f=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(o.TextInput,{label:(0,a.__)("Breadcrumbs Title","wordpress-seo"),id:(0,i.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:"https://yoa.st/breadcrumbs-title",linkText:(0,a.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})})};f.propTypes={breadcrumbsTitle:s.default.string.isRequired,onBreadcrumbsTitleChange:s.default.func.isRequired};var m=function(e){var t=e.canonical,n=e.onCanonicalChange;return wp.element.createElement(l.LocationConsumer,null,function(e){return wp.element.createElement(o.TextInput,{label:(0,a.__)("Canonical URL","wordpress-seo"),id:(0,i.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url",linkText:(0,a.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})})};m.propTypes={canonical:s.default.string.isRequired,onCanonicalChange:s.default.func.isRequired};var y=function(e){var t=e.noIndex,n=e.noFollow,a=e.advanced,o=e.breadcrumbsTitle,i=e.canonical,s=e.onNoIndexChange,l=e.onNoFollowChange,u=e.onAdvancedChange,y=e.onBreadcrumbsTitleChange,h=e.onCanonicalChange,_=e.onLoad,g=e.isLoading,v=e.editorContext,w=e.isBreadcrumbsDisabled,b=e.isPrivateBlog;(0,r.useEffect)(function(){setTimeout(function(){g&&_()})});var E={noIndex:t,onNoIndexChange:s,editorContext:v,isPrivateBlog:b},T={noFollow:n,onNoFollowChange:l,postTypeName:v.postTypeNameSingular},k={advanced:a,onAdvancedChange:u},O={breadcrumbsTitle:o,onBreadcrumbsTitleChange:y},S={canonical:i,onCanonicalChange:h};return g?null:wp.element.createElement(r.Fragment,null,wp.element.createElement(c,E),v.isPost&&wp.element.createElement(d,T),v.isPost&&wp.element.createElement(p,k),!w&&wp.element.createElement(f,O),wp.element.createElement(m,S))};y.propTypes={noIndex:s.default.string.isRequired,canonical:s.default.string.isRequired,onNoIndexChange:s.default.func.isRequired,onCanonicalChange:s.default.func.isRequired,onLoad:s.default.func.isRequired,isLoading:s.default.bool.isRequired,editorContext:s.default.object.isRequired,isBreadcrumbsDisabled:s.default.bool.isRequired,isPrivateBlog:s.default.bool,advanced:s.default.array,onAdvancedChange:s.default.func,noFollow:s.default.string,onNoFollowChange:s.default.func,breadcrumbsTitle:s.default.string,onBreadcrumbsTitleChange:s.default.func},y.defaultProps={advanced:[],onAdvancedChange:function(){},noFollow:"",onNoFollowChange:function(){},breadcrumbsTitle:"",onBreadcrumbsTitleChange:function(){},isPrivateBlog:!1},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n(0);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"listen",value:function(e){(this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer)&&new MutationObserver(function(t){(0,a.forEach)(t,function(t){"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())})}).observe(this.classicEditorContainer,{attributes:!0})}}],[{key:"isActive",value:function(){return!!document.getElementById("et_pb_main_editor_wrap")}},{key:"isTinyMCEHidden",value:function(){var e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"isActive",value:function(){return!!window.VCV_I18N}}]),e}();t.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),a=n(5);t.default=(0,r.connect)(function(e){return{message:e.warning.message}})(a.Warning)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapEditorDataToPreview=void 0;var r=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};t.mapStateToProps=f,t.mapDispatchToProps=m;var a=n(17),o=n(169),i=n(3),s=n(7),l=n(14),u=n(16),c=function(e){return e&&e.__esModule?e:{default:e}}(n(114)),d=n(30);var p=t.mapEditorDataToPreview=function(e,t){var n=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(n=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[n]&&(e.url=e.url.slice(0,n)+e.url.slice(n+1)),(0,d.applyReplaceUsingPlugin)(e)};function f(e){return e.snippetEditor.replacementVariables.forEach(function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),r({},e.snippetEditor,{keyword:e.focusKeyword,baseUrl:e.settings.snippetEditor.baseUrl,date:e.settings.snippetEditor.date,recommendedReplacementVariables:e.settings.snippetEditor.recommendedReplacementVariables,faviconSrc:e.settings.snippetEditor.siteIconUrl,mobileImageSrc:e.snippetEditor.data.snippetPreviewImageURL})}function m(e){return{onChange:function(t,n){var r=(0,u.updateData)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n));if("mode"===t&&(r=(0,u.switchMode)(n)),e(r),"slug"===t){var a=(0,s.dispatch)("core/editor");a&&a.editPost({slug:n})}},onChangeAnalysisData:function(t){e((0,u.updateAnalysisData)(t))}}}t.default=(0,a.connect)(f,m)(function(e){return wp.element.createElement(l.LocationConsumer,null,function(t){return wp.element.createElement(c.default,{icon:"eye",hasPaperStyle:e.hasPaperStyle},wp.element.createElement(o.SnippetEditor,r({},e,{descriptionPlaceholder:(0,i.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:p,showCloseButton:!1,idSuffix:t})))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),a=n(7),o=n(3),i=n(6),s=c(n(170)),l=c(n(9)),u=c(n(32));function c(e){return e&&e.__esModule?e:{default:e}}var d=null,p=function(){return(d||(d=window.wp.media()).on("select",function(){var e=d.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:(0,i.validateTwitterImage)(t)})}),d).open()};t.default=(0,r.compose)([(0,a.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,a=t.getTwitterImageUrl,i=t.getFacebookImageUrl,s=t.getFacebookTitle,u=t.getFacebookDescription,c=t.getDescriptionFallback,d=t.getTitleFallback,p=t.getTwitterWarnings,f=t.getTwitterImageType,m=t.getImageFallback,y=t.getRecommendedReplaceVars,h=t.getReplaceVars,_=t.getSiteUrl,g=t.getAuthorName,v=(0,o.sprintf)((0,o.__)("Modify your %s title by editing it right here...","wordpress-seo"),"Twitter"),w=(0,o.sprintf)((0,o.__)("Modify your %s description by editing it right here...","wordpress-seo"),"Twitter");return{imageUrl:a(),imageFallbackUrl:i()||m(),recommendedReplacementVariables:y(),replacementVariables:h(),description:n(),descriptionPreviewFallback:u()||c()||w,title:r(),titlePreviewFallback:s()||d()||v,imageWarnings:p(),authorName:g(),siteUrl:_(),isPremium:!!(0,l.default)().isPremium,isLarge:"summary"!==f(),titleInputPlaceholder:v,descriptionInputPlaceholder:w,socialMediumName:"Twitter"}}),(0,a.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setTwitterPreviewTitle,r=t.setTwitterPreviewDescription,a=t.clearTwitterPreviewImage,o=t.loadTwitterPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}}),(0,u.default)()])(s.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),a=n(7),o=n(3),i=n(6),s=c(n(173)),l=c(n(9)),u=c(n(32));function c(e){return e&&e.__esModule?e:{default:e}}var d=null,p=function(){return(d||(d=window.wp.media()).on("select",function(){var e=d.state().get("selection").first(),t={type:e.attributes.subtype,width:e.attributes.width,height:e.attributes.height};(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage({url:e.attributes.url,id:e.attributes.id,warnings:(0,i.validateFacebookImage)(t)})}),d).open()};t.default=(0,r.compose)([(0,a.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescriptionFallback,a=t.getFacebookTitle,i=t.getTitleFallback,s=t.getFacebookImageUrl,u=t.getImageFallback,c=t.getFacebookWarnings,d=t.getRecommendedReplaceVars,p=t.getReplaceVars,f=t.getSiteUrl,m=t.getAuthorName,y=(0,o.sprintf)((0,o.__)("Modify your %s title by editing it right here...","wordpress-seo"),"Facebook"),h=(0,o.sprintf)((0,o.__)("Modify your %s description by editing it right here...","wordpress-seo"),"Facebook");return{imageUrl:s(),imageFallbackUrl:u(),recommendedReplacementVariables:d(),replacementVariables:p(),description:n(),descriptionPreviewFallback:r()||h,title:a(),titlePreviewFallback:i()||y,imageWarnings:c(),authorName:m(),siteUrl:f(),isPremium:!!(0,l.default)().isPremium,titleInputPlaceholder:y,descriptionInputPlaceholder:h,socialMediumName:"Facebook"}}),(0,a.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setFacebookPreviewTitle,r=t.setFacebookPreviewDescription,a=t.clearFacebookPreviewImage,o=t.loadFacebookPreviewData;return{onSelectImageClick:p,onRemoveImageClick:a,onDescriptionChange:r,onTitleChange:n,onLoad:o}}),(0,u.default)()])(s.default)},,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(1)),a=s(n(254)),o=s(n(255)),i=s(n(28));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.target,n=e.store,r=e.theme;return wp.element.createElement(i.default,{target:t},wp.element.createElement(a.default,{store:n,theme:r}),wp.element.createElement(o.default,{store:n,theme:r}))}l.propTypes={target:r.default.string.isRequired,store:r.default.object,theme:r.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.store,n=e.theme;return wp.element.createElement(o.default,{store:t,theme:n,location:"metabox"},wp.element.createElement(r.Slot,{name:"YoastMetabox"},function(e){return(0,a.default)(e)}))};var r=n(12),a=i(n(146)),o=i(n(99));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(256)),a=n(17);t.default=(0,a.connect)(function(e,t){return{settings:e.preferences,store:t.store}})(r.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var r=n(12),a=n(3),o=g(n(1)),i=g(n(140)),s=g(n(236)),l=g(n(235)),u=g(n(141)),c=g(n(142)),d=g(n(143)),p=g(n(34)),f=g(n(97)),m=g(n(145)),y=g(n(257)),h=g(n(144)),_=g(n(116));function g(e){return e&&e.__esModule?e:{default:e}}function v(e){var t=e.settings;return wp.element.createElement(r.Fill,{name:"YoastMetabox"},wp.element.createElement(f.default,{renderPriority:1},wp.element.createElement(l.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(f.default,{renderPriority:8},wp.element.createElement(u.default,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&wp.element.createElement(r.Fill,{name:"YoastRelatedKeyphrases"},wp.element.createElement(_.default,null))),wp.element.createElement(f.default,{renderPriority:9},wp.element.createElement(p.default,{id:"yoast-snippet-editor-metabox",title:(0,a.__)("Google preview","wordpress-seo"),initialIsOpen:!0},wp.element.createElement(s.default,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&wp.element.createElement(f.default,{renderPriority:10},wp.element.createElement(c.default,null)),t.isKeywordAnalysisActive&&wp.element.createElement(f.default,{renderPriority:20},wp.element.createElement(d.default,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive})),t.isCornerstoneActive&&wp.element.createElement(f.default,{renderPriority:30},wp.element.createElement(i.default,null)),t.displayAdvancedTab&&wp.element.createElement(f.default,{renderPriority:40},wp.element.createElement(p.default,{id:"collapsible-advanced-settings",title:(0,a.__)("Advanced","wordpress-seo")},wp.element.createElement(m.default,null))),t.displaySchemaSettings&&wp.element.createElement(f.default,{renderPriority:50},wp.element.createElement(h.default,null)),wp.element.createElement(f.default,{renderPriority:-1},wp.element.createElement(y.default,{target:"wpseo-section-social"})))}v.propTypes={settings:o.default.object.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(n(1)),a=i(n(258)),o=i(n(28));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.target;return wp.element.createElement(o.default,{target:t},wp.element.createElement(a.default,null))}s.propTypes={target:r.default.string.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(n(259));t.default=(0,r.withSelect)(function(e){var t=(0,e("yoast-seo/editor").getPreferences)();return{displayFacebook:t.displayFacebook,displayTwitter:t.displayTwitter}})(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=u(n(34)),o=n(3),i=u(n(1)),s=u(n(238)),l=u(n(237));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.displayFacebook,n=e.displayTwitter;return wp.element.createElement(r.Fragment,null,t&&wp.element.createElement(a.default,{hasSeparator:!1,title:(0,o.sprintf)((0,o.__)("%s preview","wordpress-seo"),"Facebook"),initialIsOpen:!0},wp.element.createElement(s.default,null)),n&&wp.element.createElement(a.default,{title:(0,o.sprintf)((0,o.__)("%s preview","wordpress-seo"),"Twitter"),hasSeparator:t,initialIsOpen:!0},wp.element.createElement(l.default,null)))};c.propTypes={displayFacebook:i.default.bool.isRequired,displayTwitter:i.default.bool.isRequired},t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=o(n(392)),a=o(n(394));function o(e){return e&&e.__esModule?e:{default:e}}window.yoast=window.yoast||{},window.yoast.initEditorIntegration=r.default,window.yoast.EditorData=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=r.registerReactComponent,(0,r.renderClassicEditorMetabox)(e)};var r=n(393)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();t.renderClassicEditorMetabox=function(e){var t=(0,s.default)();c=(0,a.createRef)();var n={isRtl:t.isRtl};(0,a.render)(wp.element.createElement(o.SlotFillProvider,null,wp.element.createElement(i.default,{target:"wpseo-metabox-root",store:e,theme:n}),wp.element.createElement(d,{ref:c})),document.getElementById("wpseo-metabox-root")),u.forEach(function(e){c.current.registerComponent(e.key,e.Component)})},t.registerReactComponent=function(e,t){null===c||null===c.current?u.push({key:e,Component:t}):c.current.registerComponent(e,t)};var a=n(4),o=n(12),i=l(n(253)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}var u=[],c=null,d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,e));return n.state={registeredComponents:[]},n}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,a.Component),r(t,[{key:"registerComponent",value:function(e,t){this.setState({registeredComponents:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.state.registeredComponents),[{key:e,Component:t}])})}},{key:"render",value:function(){return this.state.registeredComponents.map(function(e){var t=e.Component,n=e.key;return wp.element.createElement(t,{key:n})})}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=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}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),i=n(0),s=n(13),l=n(37),u=n(30),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(62));var d=o.default.markers.removeMarks,p=jQuery,f=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"content";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._refresh=t,this._store=n,this._initialData={},this._previousData={},this._tinyMceId=r,this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}return a(e,[{key:"initialize",value:function(e){this._initialData=this.getInitialData(e),(0,u.fillReplacementVariables)(this._initialData,this._store),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage()}},{key:"subscribeToSnippetPreviewImage",value:function(){var e=this;if(!(0,i.isUndefined)(wp.media)&&!(0,i.isUndefined)(wp.media.featuredImage)){p("#postimagediv").on("click","#remove-post-thumbnail",function(){e.featuredImageIsSet=!1,e.setImageInSnippetPreview(e.getContentImage())});var t=wp.media.featuredImage.frame();t.on("select",function(){var n=t.state().get("selection").first().attributes.url;n&&(e.featuredImageIsSet=!0,e.setImageInSnippetPreview(n))}),c.addEventHandler(this._tinyMceId,["init"],function(){var t=e.getContentImage(),n=e.getFeaturedImage()||t||null;e._store.dispatch((0,l.setContentImage)(t)),e.setImageInSnippetPreview(n)}),c.addEventHandler(this._tinyMceId,["change"],(0,i.debounce)(function(){if(!e.featuredImageIsSet){var t=e.getContentImage();e._store.dispatch((0,l.setContentImage)(t)),e.setImageInSnippetPreview(t)}},1e3))}}},{key:"getFeaturedImage",value:function(){var e=p("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}},{key:"setImageInSnippetPreview",value:function(e){this._store.dispatch((0,s.updateData)({snippetPreviewImageURL:e}))}},{key:"getContentImage",value:function(){if(this.featuredImageIsSet)return"";var e=this.getContent(),t=o.default.string.imageInText(e),n="";if(0===t.length)return n;do{var r=t.shift(),a=(r=p(r)).prop("src");a&&(n=a)}while(""===n&&t.length>0);return n}},{key:"getTitle",value:function(){var e=document.getElementById("title");return e&&e.value||""}},{key:"getExcerpt",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("excerpt"),n=t&&t.value||"";return""!==n||!1===e?n:(0,u.excerptFromContent)(this.getContent())}},{key:"getSlug",value:function(){var e="",t=document.getElementById("new-post-slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}},{key:"getContent",value:function(){var e=this._tinyMceId;return d(c.getContentTinyMce(e))}},{key:"subscribeToElements",value:function(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}},{key:"subscribeToInputElement",value:function(e,t){var n=this,r=document.getElementById(e);r&&r.addEventListener("input",function(e){n.updateReplacementData(e,t)})}},{key:"updateReplacementData",value:function(e,t){var n=e.target.value;"excerpt"===t&&""===n&&(n=this.getExcerpt()),this._initialData[t]=n,this._store.dispatch((0,s.updateReplacementVariable)(t,n))}},{key:"isShallowEqual",value:function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e.hasOwnProperty(n)&&(!(n in t)||e[n]!==t[n]))return!1;return!0}},{key:"refreshYoastSEO",value:function(){var e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}},{key:"handleEditorChange",value:function(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch((0,s.updateReplacementVariable)("excerpt",e.excerpt)),this._store.dispatch((0,s.updateReplacementVariable)("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL)}},{key:"subscribeToStore",value:function(){this.subscriber=(0,i.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}},{key:"getInitialData",value:function(e){return e=(0,u.mapCustomFields)(e,this._store),e=(0,u.mapCustomTaxonomies)(e,this._store),r({},e,{title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:this.getContent()})}},{key:"getData",value:function(){return r({},this._store.getState().snippetEditor.data,{content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)})}}]),e}();t.default=f}],[[391,0]]]);