Version Description
[Jun 30, 2021] =
* Improved: [HUGE!] Made more huge code improvements that have made the plugin even FASTER. Also, reduced the number of queries related to Rank Math on the Homepage and the Archive pages to improve performance further. Rank Math is indeed one of the FASTEST SEO PLUGINS
* Added: Power Words for the Swedish language
* Improved: Sitemap was accessible even after adding zeros to the URL. It should only be accessed via its URL now
* Improved: If website files are not writable, then the .htaccess editor will be disabled
* Improved: The plugin will always use the WordPress installation charset
instead of the server now
* Updated: Action Scheduler vendor library for better performance and compatibility
* Fixed: OpenGraph image was not working on the WooCommerce Shop Page
* Fixed: Sitelinks Searchbox Schema was printing on the paginated pages
* Fixed: Posts of hidden WPML languages were shown in sitemaps
* Fixed: Option to filter posts by SEO Score was not working
* Fixed: Conflicts with the Astra Theme's FAQ accordion add-on
Full changelog can be found here - Rank Math SEO changelog
Release Info
Developer | rankmath |
Plugin | WordPress SEO Plugin – Rank Math |
Version | 1.0.67 |
Comparing to | |
See all releases |
Code changes from version 1.0.66.1 to 1.0.67
- assets/admin/js/divi.js +1 -1
- assets/admin/js/elementor.js +1 -1
- assets/admin/js/gutenberg-formats.js +1 -1
- assets/admin/js/gutenberg.js +1 -1
- assets/vendor/powerwords/de.php +1 -1
- assets/vendor/powerwords/id.php +1 -2
- assets/vendor/powerwords/sv.php +1 -0
- includes/admin/class-admin-helper.php +4 -1
- includes/admin/class-post-filters.php +11 -4
- includes/class-cmb2.php +1 -1
- includes/class-installer.php +0 -1
- includes/class-updates.php +1 -0
- includes/helpers/class-conditional.php +31 -0
- includes/metaboxes/general.php +2 -2
- includes/modules/404-monitor/class-db.php +0 -1
- includes/modules/404-monitor/class-monitor.php +0 -1
- includes/modules/404-monitor/class-table.php +0 -2
- includes/modules/robots-txt/class-robots-txt.php +4 -1
- includes/modules/robots-txt/options.php +1 -1
- includes/modules/schema/assets/js/schema-classic.js +0 -1
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.element},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.compose},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,n){var r=n(20),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(16),a=n(24);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=wp.url},function(e,t,n){var r=n(12),a=n(22),i=n(23),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},,,,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(21))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(12),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,function(e,t){e.exports=React},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){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},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=l(n(26)),i=l(n(36)),o=l(n(39));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],g={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,i.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=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 i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t){e.exports=wp.blockEditor},function(e,t){e.exports=Tagify},function(e,t,n){var r=n(13),a=n(40),i=n(41),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return g?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,b&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(g)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(i(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,function(e,t,n){"use strict";var r=n(26),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(27),o=n(37),l=n(38),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,g=h.call(e),b=0;!(f=g.next()).done;)p+=u(i=f.value,m+s(i,b++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(27);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){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(42),a=n(13),i=n(14),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(43),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updateKeywords",(function(){return N})),n.d(r,"updatePillarContent",(function(){return M})),n.d(r,"toggleFrontendScore",(function(){return F})),n.d(r,"updateAnalysisScore",(function(){return U})),n.d(r,"updateCanonicalUrl",(function(){return B})),n.d(r,"updateAdvancedRobots",(function(){return L})),n.d(r,"updateRobots",(function(){return H})),n.d(r,"updateBreadcrumbTitle",(function(){return z})),n.d(r,"resetDirtyMetadata",(function(){return G})),n.d(r,"updateFacebookTitle",(function(){return K})),n.d(r,"updateFacebookDescription",(function(){return $})),n.d(r,"updateFacebookImage",(function(){return V})),n.d(r,"updateFacebookImageID",(function(){return W})),n.d(r,"updateFacebookHasOverlay",(function(){return Y})),n.d(r,"updateFacebookImageOverlay",(function(){return q})),n.d(r,"updateAppData",(function(){return A})),n.d(r,"updateAppUi",(function(){return R})),n.d(r,"updatePostID",(function(){return Q})),n.d(r,"updatePermalink",(function(){return Z})),n.d(r,"updateTitle",(function(){return J})),n.d(r,"updateDescription",(function(){return X})),n.d(r,"updateFeaturedImage",(function(){return ee})),n.d(r,"updatePrimaryTermID",(function(){return te})),n.d(r,"updateRedirection",(function(){return ne})),n.d(r,"updateRedirectionItem",(function(){return re})),n.d(r,"resetRedirection",(function(){return ae})),n.d(r,"updateHasRedirect",(function(){return ie})),n.d(r,"updateSerpTitle",(function(){return pe})),n.d(r,"updateSerpDescription",(function(){return me})),n.d(r,"toggleSnippetEditor",(function(){return de})),n.d(r,"updateSnippetPreviewType",(function(){return he})),n.d(r,"toggleTrendsCta",(function(){return fe})),n.d(r,"updateTwitterUseFacebook",(function(){return ge})),n.d(r,"updateTwitterCardType",(function(){return be})),n.d(r,"updateTwitterTitle",(function(){return we})),n.d(r,"updateTwitterDescription",(function(){return ye})),n.d(r,"updateTwitterAuthor",(function(){return ve})),n.d(r,"updateTwitterImageID",(function(){return ke})),n.d(r,"updateTwitterImage",(function(){return Oe})),n.d(r,"updateTwitterHasOverlay",(function(){return _e})),n.d(r,"updateTwitterImageOverlay",(function(){return Ee})),n.d(r,"updateTwitterPlayerUrl",(function(){return je})),n.d(r,"updateTwitterPlayerSize",(function(){return Te})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Se})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return Ie})),n.d(r,"updateTwitterAppDescription",(function(){return Ce})),n.d(r,"updateTwitterAppIphoneID",(function(){return De})),n.d(r,"updateTwitterAppIphoneName",(function(){return Pe})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return xe})),n.d(r,"updateTwitterAppIpadID",(function(){return Ae})),n.d(r,"updateTwitterAppIpadName",(function(){return Re})),n.d(r,"updateTwitterAppIpadUrl",(function(){return Ne})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return Me})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return Fe})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return Ue})),n.d(r,"updateTwitterAppCountry",(function(){return Be})),n.d(r,"toggleLoaded",(function(){return Le})),n.d(r,"updateSelectedKeyword",(function(){return He})),n.d(r,"refreshResults",(function(){return ze})),n.d(r,"setVersion",(function(){return Ge})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return Ke})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return $e})),n.d(r,"toggleSchemaEditor",(function(){return Qe})),n.d(r,"toggleSchemaTemplates",(function(){return Ze})),n.d(r,"schemaUpdated",(function(){return Je})),n.d(r,"setEditingSchemaId",(function(){return Xe})),n.d(r,"setEditorTab",(function(){return et})),n.d(r,"setTemplateTab",(function(){return tt})),n.d(r,"updateEditSchemas",(function(){return nt})),n.d(r,"updateSchemas",(function(){return rt})),n.d(r,"updateEditSchema",(function(){return at})),n.d(r,"saveSchema",(function(){return it})),n.d(r,"deleteSchema",(function(){return ot})),n.d(r,"saveTemplate",(function(){return lt}));var a={};n.r(a),n.d(a,"appData",(function(){return ht})),n.d(a,"appUi",(function(){return yt}));var i={};n.r(i),n.d(i,"getAppData",(function(){return vt})),n.d(i,"getDirtyMetadata",(function(){return kt})),n.d(i,"getAnalysisScore",(function(){return Ot})),n.d(i,"getKeywords",(function(){return _t})),n.d(i,"getPillarContent",(function(){return Et})),n.d(i,"getRobots",(function(){return jt})),n.d(i,"getAdvancedRobots",(function(){return Tt})),n.d(i,"getCanonicalUrl",(function(){return St})),n.d(i,"getBreadcrumbTitle",(function(){return It})),n.d(i,"getRichSnippets",(function(){return Ct})),n.d(i,"getShowScoreFrontend",(function(){return Dt})),n.d(i,"isLoaded",(function(){return Pt})),n.d(i,"getSelectedKeyword",(function(){return xt})),n.d(i,"isRefreshing",(function(){return At})),n.d(i,"isPro",(function(){return Rt})),n.d(i,"isDiviPageSettingsBarActive",(function(){return Nt})),n.d(i,"isDiviRankMathModalActive",(function(){return Mt})),n.d(i,"getFacebookTitle",(function(){return Ft})),n.d(i,"getFacebookDescription",(function(){return Ut})),n.d(i,"getFacebookAuthor",(function(){return Bt})),n.d(i,"getFacebookImageID",(function(){return Lt})),n.d(i,"getFacebookImage",(function(){return Ht})),n.d(i,"getFacebookHasOverlay",(function(){return zt})),n.d(i,"getFacebookImageOverlay",(function(){return Gt})),n.d(i,"getPostID",(function(){return Kt})),n.d(i,"getTitle",(function(){return $t})),n.d(i,"getPermalink",(function(){return Vt})),n.d(i,"getDescription",(function(){return Wt})),n.d(i,"getFeaturedImage",(function(){return Yt})),n.d(i,"getFeaturedImageHtml",(function(){return qt})),n.d(i,"getPrimaryTermID",(function(){return Qt})),n.d(i,"getRedirectionID",(function(){return Zt})),n.d(i,"getRedirectionType",(function(){return Jt})),n.d(i,"getRedirectionUrl",(function(){return Xt})),n.d(i,"getRedirectionItem",(function(){return en})),n.d(i,"hasRedirect",(function(){return tn})),n.d(i,"getSerpTitle",(function(){return nn})),n.d(i,"getSerpDescription",(function(){return rn})),n.d(i,"isSnippetEditorOpen",(function(){return an})),n.d(i,"getSnippetPreviewType",(function(){return on})),n.d(i,"isTrendsCtaOpen",(function(){return ln})),n.d(i,"isSchemaEditorOpen",(function(){return cn})),n.d(i,"isSchemaTemplatesOpen",(function(){return sn})),n.d(i,"hasSchemaUpdated",(function(){return un})),n.d(i,"getSchemas",(function(){return pn})),n.d(i,"getEditSchemas",(function(){return mn})),n.d(i,"getEditingSchema",(function(){return dn})),n.d(i,"getPreviewSchema",(function(){return hn})),n.d(i,"getEditorTab",(function(){return fn})),n.d(i,"getTemplateTab",(function(){return gn})),n.d(i,"getTwitterUseFacebook",(function(){return bn})),n.d(i,"getTwitterCardType",(function(){return wn})),n.d(i,"getTwitterTitle",(function(){return yn})),n.d(i,"getTwitterDescription",(function(){return vn})),n.d(i,"getTwitterAuthor",(function(){return kn})),n.d(i,"getTwitterImageID",(function(){return On})),n.d(i,"getTwitterImage",(function(){return _n})),n.d(i,"getTwitterHasOverlay",(function(){return En})),n.d(i,"getTwitterImageOverlay",(function(){return jn})),n.d(i,"getTwitterAppDescription",(function(){return Tn})),n.d(i,"getTwitterAppIphoneID",(function(){return Sn})),n.d(i,"getTwitterAppIphoneName",(function(){return In})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Cn})),n.d(i,"getTwitterAppIpadID",(function(){return Dn})),n.d(i,"getTwitterAppIpadName",(function(){return Pn})),n.d(i,"getTwitterAppIpadUrl",(function(){return xn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return An})),n.d(i,"getTwitterAppGoogleplayName",(function(){return Rn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nn})),n.d(i,"getTwitterAppCountry",(function(){return Mn})),n.d(i,"getTwitterPlayerUrl",(function(){return Fn})),n.d(i,"getTwitterPlayerSize",(function(){return Un})),n.d(i,"getTwitterPlayerStream",(function(){return Bn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return Ln}));var o=n(10),l=n.n(o),c=n(1),s=n(29),u=n(4),p=n(8),m=n(2),d=Object(m.createSlotFill)("RankMathAfterEditor"),h=d.Fill,f=d.Slot,g=function(e){var t=e.children,n=e.className;return wp.element.createElement(h,null,wp.element.createElement(m.PanelRow,{className:n},t))};g.Slot=f;var b=g,w=Object(m.createSlotFill)("RankMathAdvancedTab"),y=w.Fill,v=w.Slot,k=function(e){var t=e.children,n=e.className;return wp.element.createElement(y,null,wp.element.createElement(m.PanelRow,{className:n},t))};k.Slot=v;var O=k,_=Object(m.createSlotFill)("RankMathAfterFocusKeyword"),E=_.Fill,j=_.Slot,T=function(e){var t=e.children,n=e.className;return wp.element.createElement(E,null,wp.element.createElement("div",{className:n},t))};T.Slot=j;var S=T,I=n(9),C=n(5),D=n.n(C);function P(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)}}var x=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():D()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},D.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&P(t.prototype,n),r&&P(t,r),e}());function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(p.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(p.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(p.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function R(e,t){return Object(p.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function N(e){return x.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),A("keywords",e,"rank_math_focus_keyword")}function M(e){return A("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function F(e){return A("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function U(e){return A("score",e,"rank_math_seo_score")}function B(e){return A("canonicalUrl",e,"rank_math_canonical_url")}function L(e){return A("advancedRobots",e,"rank_math_advanced_robots")}function H(e){return A("robots",e,"rank_math_robots",Object.keys(e))}function z(e){return A("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function G(){return A("dirtyMetadata",{})}function K(e){return A("facebookTitle",e,"rank_math_facebook_title")}function $(e){return A("facebookDescription",e,"rank_math_facebook_description")}function V(e){return A("facebookImage",e,"rank_math_facebook_image")}function W(e){return A("facebookImageID",e,"rank_math_facebook_image_id")}function Y(e){return A("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function q(e){return A("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function Q(e){return rankMath.objectID=e,A("postID",e)}function Z(e){return A("permalink",e,"permalink")}function J(e){return A("title",e,"rank_math_title")}function X(e){return A("description",e,"rank_math_description")}function ee(e){return A("featuredImage",e)}function te(e,t){return A("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function ne(e,t){return A(e,t)}function re(e){return R("redirectionItem",e)}function ae(){return R("redirectionItem",{})}function ie(e){return R("hasRedirect",e)}var oe=n(3),le=document.createElement("div"),ce=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),le.innerHTML=e,e=le.textContent,le.textContent=""),e},se=function(e,t){return e=(e=I.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(oe.truncate)(e,{length:t,separator:" "}):e},ue=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=t.content?function(e){if(Object(oe.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(oe.filter)(I.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(oe.filter)(t,(function(e){return Object(oe.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<r.length)return se(r[0],160)}return se(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(oe.isUndefined)(n)||Object(oe.isEmpty)(n)?r:n;if(x.setVariable("excerpt",a),x.setVariable("seo_description",a),""!==(e=ce(Object(p.applyFilters)("rankMath/description",e))))return I.Helpers.cleanText(e);if(!Object(oe.isUndefined)(n)&&!Object(oe.isEmpty)(n))return I.Helpers.cleanText(n);var i=rankMath.assessor.serpData.descriptionTemplate;return Object(oe.isUndefined)(i)||""===i?r:I.Helpers.cleanText(i)};function pe(e){return e=x.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),R("serpTitle",e)}function me(e){return e=x.swap(ue(e)),rankMathEditor.refresh("description"),R("serpDescription",e)}function de(e){return R("isSnippetEditorOpen",e)}function he(e){return R("snippetPreviewType",e)}function fe(e){return R("isTrendsCtaOpen",e)}function ge(e){return A("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function be(e){return A("twitterCardType",e,"rank_math_twitter_card_type")}function we(e){return A("twitterTitle",e,"rank_math_twitter_title")}function ye(e){return A("twitterDescription",e,"rank_math_twitter_description")}function ve(e){return A("twitterAuthor",e,"rank_math_twitter_author")}function ke(e){return A("twitterImageID",e,"rank_math_twitter_image_id")}function Oe(e){return A("twitterImage",e,"rank_math_twitter_image")}function _e(e){return A("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Ee(e){return A("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function je(e){return A("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Te(e){return A("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Se(e){return A("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function Ie(e){return A("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function Ce(e){return A("twitterAppDescription",e,"rank_math_twitter_app_description")}function De(e){return A("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function Pe(e){return A("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function xe(e){return A("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function Ae(e){return A("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function Re(e){return A("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function Ne(e){return A("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function Me(e){return A("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function Fe(e){return A("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function Ue(e){return A("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function Be(e){return A("twitterAppCountry",e,"rank_math_twitter_app_country")}function Le(e){return R("isLoaded",e)}function He(e){return R("selectedKeyword",e)}function ze(){return R("refreshResults",Date.now())}function Ge(){return R("isPro",!0)}function Ke(e){return R("isDiviPageSettingsBarActive",e)}function $e(e){return R("isDiviRankMathModalActive",e)}var Ve=n(0);function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){return R("isSchemaEditorOpen",e)}function Ze(e){return R("isSchemaTemplatesOpen",e)}function Je(e){return R("schemaUpdated",e)}function Xe(e){return R("editingSchemaId",e)}function et(e){return R("editorTab",e)}function tt(e){return R("templateTab",e)}function nt(e){return R("editSchemas",e)}function rt(e){return A("schemas",e)}function at(e,t){var n=Ye({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,R("editSchemas",n)}function it(e,t){var n=Ye({},Object(c.select)("rank-math").getSchemas());return n[e]=t,A("schemas",n)}function ot(e){var t=Ye({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(p.doAction)("rank_math_schema_trash",e),A("schemas",t,"rank_math_delete_"+e,"")}function lt(e,t,n){return l()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(oe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ve.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=rankMath.assessor.serpData,mt=rankMath.assessor.hasRedirection,dt={postID:null,title:pt.title?pt.title:pt.titleTemplate,description:pt.description,keywords:pt.focusKeywords,pillarContent:pt.pillarContent,featuredImage:"",permalink:!1,primaryTerm:pt.primaryTerm,robots:pt.robots,advancedRobots:pt.advancedRobots,canonicalUrl:pt.canonicalUrl,breadcrumbTitle:pt.breadcrumbTitle,showScoreFrontend:pt.showScoreFrontend,redirectionID:mt?Object(oe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:mt?Object(oe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:mt?Object(oe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:pt.facebookTitle,facebookImage:pt.facebookImage,facebookImageID:pt.facebookImageID,facebookAuthor:pt.facebookAuthor,facebookDescription:pt.facebookDescription,facebookHasOverlay:pt.facebookHasOverlay,facebookImageOverlay:pt.facebookImageOverlay,twitterTitle:pt.twitterTitle,twitterImage:pt.twitterImage,twitterAuthor:pt.twitterAuthor,twitterImageID:pt.twitterImageID,twitterCardType:pt.twitterCardType,twitterUseFacebook:pt.twitterUseFacebook,twitterDescription:pt.twitterDescription,twitterHasOverlay:pt.twitterHasOverlay,twitterImageOverlay:pt.twitterImageOverlay,twitterPlayerUrl:pt.twitterPlayerUrl,twitterPlayerSize:pt.twitterPlayerSize,twitterPlayerStream:pt.twitterPlayerStream,twitterPlayerStreamCtype:pt.twitterPlayerStreamCtype,twitterAppDescription:pt.twitterAppDescription,twitterAppIphoneName:pt.twitterAppIphoneName,twitterAppIphoneID:pt.twitterAppIphoneID,twitterAppIphoneUrl:pt.twitterAppIphoneUrl,twitterAppIpadName:pt.twitterAppIpadName,twitterAppIpadID:pt.twitterAppIpadID,twitterAppIpadUrl:pt.twitterAppIpadUrl,twitterAppGoogleplayName:pt.twitterAppGoogleplayName,twitterAppGoogleplayID:pt.twitterAppGoogleplayID,twitterAppGoogleplayUrl:pt.twitterAppGoogleplayUrl,twitterAppCountry:pt.twitterAppCountry,schemas:Object(oe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ht(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt,n=arguments.length>1?arguments[1]:void 0,r=st({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?st(st({},t),{},{dirtyMetadata:n.value}):st(st({},t),{},(ut(e={},n.key,n.value),ut(e,"dirtyMetadata",r),e)):t}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.id",""))||!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?gt(gt({},e),{},bt({},t.key,t.value)):e}function vt(e){return e.appData}function kt(e){return e.appData.dirtyMetadata}function Ot(e){return e.appData.score}function _t(e){return e.appData.keywords}function Et(e){return e.appData.pillarContent}function jt(e){return e.appData.robots}function Tt(e){return e.appData.advancedRobots}function St(e){return e.appData.canonicalUrl}function It(e){return e.appData.breadcrumbTitle}function Ct(e){return"todo"}function Dt(e){return e.appData.showScoreFrontend}function Pt(e){return e.appUi.isLoaded}function xt(e){return e.appUi.selectedKeyword}function At(e){return e.appUi.refreshResults}function Rt(e){return e.appUi.isPro}function Nt(e){return e.appUi.isDiviPageSettingsBarActive}function Mt(e){return e.appUi.isDiviRankMathModalActive}function Ft(e){return e.appData.facebookTitle}function Ut(e){return e.appData.facebookDescription}function Bt(e){return e.appData.facebookAuthor}function Lt(e){return e.appData.facebookImageID}function Ht(e){return e.appData.facebookImage}function zt(e){return e.appData.facebookHasOverlay}function Gt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function Kt(e){return e.appData.postID}function $t(e){return e.appData.title}function Vt(e){return e.appData.permalink}function Wt(e){return e.appData.description}function Yt(e){return e.appData.featuredImage}function qt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Qt(e){return e.appData.primaryTerm}function Zt(e){return e.appData.redirectionID}function Jt(e){return e.appData.redirectionType}function Xt(e){return e.appData.redirectionUrl}function en(e){return e.appUi.redirectionItem}function tn(e){return e.appUi.hasRedirect}function nn(e){return ce(e.appUi.serpTitle)}function rn(e){return e.appUi.serpDescription}function an(e){return e.appUi.isSnippetEditorOpen}function on(e){return e.appUi.snippetPreviewType}function ln(e){return e.appUi.isTrendsCtaOpen}function cn(e){return e.appUi.isSchemaEditorOpen}function sn(e){return e.appUi.isSchemaTemplatesOpen}function un(e){return e.appUi.schemaUpdated}function pn(e){return e.appData.schemas}function mn(e){return e.appUi.editSchemas}function dn(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function hn(e){return e.appData.schemas[e.appUi.editingSchemaId]}function fn(e){return e.appUi.editorTab}function gn(e){return e.appUi.templateTab}function bn(e){return e.appData.twitterUseFacebook}function wn(e){return e.appData.twitterCardType}function yn(e){return e.appData.twitterTitle}function vn(e){return e.appData.twitterDescription}function kn(e){return e.appData.twitterAuthor}function On(e){return e.appData.twitterImageID}function _n(e){return e.appData.twitterImage}function En(e){return e.appData.twitterHasOverlay}function jn(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Tn(e){return e.appData.twitterAppDescription}function Sn(e){return e.appData.twitterAppIphoneID}function In(e){return e.appData.twitterAppIphoneName}function Cn(e){return e.appData.twitterAppIphoneUrl}function Dn(e){return e.appData.twitterAppIpadID}function Pn(e){return e.appData.twitterAppIpadName}function xn(e){return e.appData.twitterAppIpadUrl}function An(e){return e.appData.twitterAppGoogleplayID}function Rn(e){return e.appData.twitterAppGoogleplayName}function Nn(e){return e.appData.twitterAppGoogleplayUrl}function Mn(e){return e.appData.twitterAppCountry}function Fn(e){return e.appData.twitterPlayerUrl}function Un(e){return e.appData.twitterPlayerSize}function Bn(e){return e.appData.twitterPlayerStream}function Ln(e){return e.appData.twitterPlayerStreamCtype}var Hn=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function zn(){return Hn}function Gn(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)}}var Kn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new I.Analyzer({i18n:Ve,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(p.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(p.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(p.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(oe.isObject)(e)||Object(oe.isEmpty)(e)?e:I.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=zn().getState(),r=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(n.appUi.serpTitle),a.setPermalink(r.slug),a.setDescription(n.appUi.serpDescription),a.setUrl(r.permalink),a.setText(Object(p.applyFilters)("rank_math_content",r.content)),a.setKeyword(e),a.setKeywords(t),Object(oe.isUndefined)(r.featuredImage)||(a.setThumbnail(r.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(r.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(oe.debounce)((function(t){var n=zn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(p.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var i=e.getPaper(I.Helpers.removeDiacritics(t),r),o=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(o,i).then((function(e){rankMathEditor.resultManager.update(i.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=zn().getState().appData.keywords;return I.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=zn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&Gn(t.prototype,n),r&&Gn(t,r),e}();function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(p.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(p.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,r;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(Ve.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Ve.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Ve.sprintf)(Object(Ve.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Ve.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&$n(t.prototype,n),r&&$n(t,r),e}();function Wn(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)}}var Yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){zn(),this.resultManager=new I.ResultManager,this.assessor=new Kn(e),new Vn,Object(p.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&Wn(t.prototype,n),r&&Wn(t,r),e}();function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function Xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Jn(i,r,a,o,l,"next",e)}function l(e){Jn(i,r,a,o,l,"throw",e)}o(void 0)}))}}function er(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)}}var tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var t,n,r,a,i,o;return t=e,(n=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(oe.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(e){this.etSettingsData.title=e}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".et_pb_section").each((function(){e.push(D()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(oe.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return D()("<div />");var e=D()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return e.length<1?D()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(e){this.etSettingsData.excerpt=e}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+Object(c.select)("rank-math").getPermalink()}},{key:"getSlug",value:function(){var e=D()(document).find("#rank-math-editor-permalink");return e.length?e.val():Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_name",this.getPermalink().replace(rankMath.homeUrl,"").replace(/\//g,""))}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=Xn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=4;break}return e.next=3,this.fetchFeaturedImageId();case 3:t=e.sent;case 4:if(!this.isValidMediaId(t)||!t){e.next=10;break}return e.next=7,this.fetchWpMedia(t);case 7:this._featuredImage=e.sent,e.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=Xn(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,l()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(oe.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(e){return t=!!e.success&&e.featImgId}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=Xn(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,l()({path:"/wp-json/wp/v2/media/".concat(t),method:"GET"}).then((function(e){return n=e}));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToDivi",value:function(){var e=this;this.setTitle(Object(oe.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(oe.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(c.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(oe.debounce)(this.refresh,500),Object(c.subscribe)(this.subscriber),D()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){e.savePost(),e.saveRedirection(),e.saveSchemas()})),Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){if(t)switch(n){case"et_pb_post_settings_title":e.setTitle(t),e.subscriber();break;case"et_pb_post_settings_excerpt":e.setExcerpt(t),e.subscriber();break;case"et_pb_post_settings_image":e.setFeaturedImage(parseInt(t)),e.subscriber()}return t})),window.addEventListener("message",(function(t){"et_fb_section_content_change"===t.data.etBuilderEvent&&e.subscriber()}))}},{key:"refresh",value:function(){var e=Qn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(e),!Object(oe.isEqual)(e,this._data)&&e.id&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var e=Object(c.select)("rank-math").getDirtyMetadata();Object(oe.isEmpty)(e)||(l()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(oe.isString)(e)&&Object(c.dispatch)("rank-math").updatePermalink(e)})),Object(c.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(c.select)("rank-math").getRedirectionItem();Object(oe.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),l()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(c.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(c.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(c.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(c.select)("rank-math").getSchemas();if(!Object(oe.isEmpty)(e)&&!Object(oe.isEqual)(e,Object(oe.get)(rankMath,"schemas",{}))){var t=Object(c.select)("rank-math").getEditSchemas();l()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(oe.isEmpty)(n)){var r=Qn({},e),a=Qn({},t);Object(oe.map)(n,(function(e,t){r["schema-"+e]=Qn({},r[t]),a["schema-"+e]=Qn({},a[t]),delete r[t],delete a[t]})),Object(c.dispatch)("rank-math").updateSchemas(r),Object(c.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(oe.isInteger)(e.id))return this.initialize?void Object(oe.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(oe.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(c.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(c.dispatch)("rank-math").updatePostID(e),Object(c.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){x.setVariable("title",e),Object(c.dispatch)("rank-math").updateSerpTitle(Object(c.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){x.setVariable("excerpt",e),x.setVariable("excerpt_only",e),x.setVariable("wc_shortdesc",e),x.setVariable("seo_description",e),Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(c.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&er(t.prototype,n),r&&er(t,r),e}(),nr=n(7),rr=n.n(nr),ar=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},ir=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(c.select)("rank-math").isDiviRankMathModalActive())},className:rr()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(ar,null))},or=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(ir,null))};function lr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=D()(document),this.$body=D()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=D()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=D()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var e=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",e),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!e)},initSettingsBar:function(){var e=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(u.render)(Object(u.createElement)(or),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),this.attachRmSettingsBar(e)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(e){this.hideModalOnOutsideClick(e.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var e=this.isEtSettingsBarActive(),t=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),Object(c.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(e),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(c.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(t),Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(c.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(e){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(e),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(e){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(e)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(e)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(e)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return D.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["".concat(t,"-left"),"".concat(t,"-right"),"".concat(t,"-top"),"".concat(t,"-top-left"),"".concat(t,"-top-right"),"".concat(t,"-bottom"),"".concat(t,"-bottom-left"),"".concat(t,"-bottom-right")].join("|"),r=new RegExp("(".concat(n,")$"),"gim");e.removeClass((function(e,t){var n,a=[],i=lr(t.split(" "));try{for(i.s();!(n=i.n()).done;){var o=n.value;r.test(o)&&a.push(o)}}catch(e){i.e(e)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var e=this.$etPageSettingsBar;return e.hasClass("et-fb-page-settings-bar--horizontal")&&!e.hasClass("et-fb-page-settings-bar--top")?"bottom":e.hasClass("et-fb-page-settings-bar--top")&&!e.hasClass("et-fb-page-settings-bar--corner")?"top":e.hasClass("et-fb-page-settings-bar--bottom-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":e.hasClass("et-fb-page-settings-bar--top-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":e.hasClass("et-fb-page-settings-bar--vertical--right")?"right":e.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(e){if(Object(c.select)("rank-math").isDiviRankMathModalActive()){var t=".rank-math-rm-modal";e.closest(t)||e.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||e.contains(document.querySelector(t))||Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},ur=Object(c.withSelect)((function(e){return{primaryTermId:e("rank-math").getPrimaryTermID()}}))((function(e){var t=e.taxonomySlug,n=e.primaryTermId,r=e.options;if(r.length<2||!t)return null;return wp.element.createElement(m.SelectControl,{className:"rank-math-primary-term-select",label:Object(Ve.__)("Select Primary Term","rank-math"),value:n,options:r,onChange:function(e){Object(c.dispatch)("rank-math").updatePrimaryTermID(parseInt(e),t)}})}));function pr(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pr(i,r,a,o,l,"next",e)}function l(e){pr(i,r,a,o,l,"throw",e)}o(void 0)}))}}function dr(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)}}var hr=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(t.initRecursionTimer),t.attemptsRun=0,t.init.call(t)}))}var t,n,r,a,i;return t=e,(n=[{key:"init",value:(i=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){e.next=3;break}return e.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){e.next=5;break}return e.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){e.next=8;break}return e.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=mr(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(oe.get)(rankMath,"assessor.primaryTaxonomy.name")||"",n=Object(oe.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=n[t]||[],e.next=4,l()({path:"/wp-json/wp/v2/taxonomies"}).then((function(e){r.primaryTaxonomy=Object.keys(n).includes(t)&&e[t]?e[t]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!D.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(oe.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=D()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=D()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var e=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(t,n){return D()(n).text().toLowerCase()===e})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(e){var t={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(e)};Object(u.render)(Object(u.createElement)(ur,t),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var e=this;Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){return"et_pb_post_settings_".concat(e.primaryTaxonomy.rest_base)===n&&e.renderComponent(t),t}))}},{key:"formatActiveTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&t.trim()?t.split(",").map((function(t){var n=Object(oe.find)(e.primaryTaxonomyTerms,["term_id",parseInt(t)])||{};return{label:n.name,value:n.term_id}})):[]}}])&&dr(t.prototype,n),r&&dr(t,r),e}();hr.initRecursionTimer=void 0,hr.attemptsRun=0,hr.maxAttempts=10,hr.attemptInterval=1e3;var fr=n(6);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var br=["tabId","onClick","children","selected"];function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vr(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)}}function kr(e,t){return(kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Er(e);if(t){var a=Er(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _r(this,n)}}function _r(e,t){return!t||"object"!==gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(){return(jr=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}).apply(this,arguments)}function Tr(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Sr=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Tr(e,br);return wp.element.createElement(m.Button,jr({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kr(e,t)}(i,e);var t,n,r,a=Or(i);function i(){var e;yr(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?oe.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,c=void 0===l?"horizontal":l,s=n.tabs,u=Object(oe.find)(s,{name:t}),p=o+"-"+u.name,d=s.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(m.NavigableMenu,{role:"tablist",orientation:c,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},s.slice(0,4).map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})),!Object(oe.isEmpty)(d)&&wp.element.createElement(m.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:rr()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},d.map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})))),u&&wp.element.createElement("div",{"aria-labelledby":p,role:"tabpanel",id:p+"-view",className:"components-tab-panel__tab-content"},this.props.children(u)))}}])&&vr(t.prototype,n),r&&vr(t,r),i}(u.Component),Cr=Object(fr.withInstanceId)(Ir);function Dr(e,t,n){var r=0;return!1!==Object(oe.get)(n,"pixelWidth",!1)&&(r=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),r)+"%"}function Pr(e,t){return e<=t.min||e>t.max}function xr(e,t){return e<=t.minWidth||e>t.pixelWidth}var Ar=function(e){var t=function(e,t){var n=ce(e).length,r=0,a=!1;if(!1!==Object(oe.get)(t,"pixelWidth",!1)){a=!0;var i=document.createTextNode(e),o=document.createElement("span");o.appendChild(i),o.id="rank-math-width-tester",o.className=t.widthCheckerClass;var l=document.body.appendChild(o);r=document.getElementById("rank-math-width-tester").offsetWidth,l.outerHTML=""}return{left:Dr(n,r,t),isInvalid:Pr(n,t),isInvalidWidth:!!a&&xr(r,t),count:n+" / "+t.max,pixelWidth:a?r+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:rr()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},Rr=n(30),Nr=n(31),Mr=n.n(Nr),Fr=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(oe.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),Mr()({mixedString:r,components:n})};function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(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)}}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kr(e);if(t){var a=Kr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?Gr(e):t}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lr(e,t)}(i,e);var t,n,r,a=Hr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(Gr(t)),t}return t=i,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(oe.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(u.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(m.TextControl,{autoComplete:"off",placeholder:Object(Rr.decodeEntities)(Object(Ve.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(Fr,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(m.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&Br(t.prototype,n),r&&Br(t,r),i}(u.Component),Vr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(c.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,r=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(Ve.__)("Title","rank-math")),wp.element.createElement(Ar,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(Ve.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Wr=n(15),Yr=Object(fr.compose)(Object(c.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(c.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(I.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(I.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,r=e.updatePermalink,a=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(Ve.__)("Permalink","rank-math")),wp.element.createElement(Ar,{source:Object(Wr.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(m.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(Wr.safeDecodeURIComponent)(t),onChange:r,help:rankMath.is_front_page?Object(Ve.__)("Editing Homepage permalink is not possible.","rank-math"):Object(Ve.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){a(e.target.value)}}))})),qr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(c.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,r=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(Ve.__)("Description","rank-math")),wp.element.createElement(Ar,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextareaControl,{id:"rank-math-editor-description",value:ce(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(Ve.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Qr=Object(fr.compose)(Object(c.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(c.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=rr()("button button-secondary button-small",{active:"desktop"===t}),a=rr()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Zr=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"},Jr=Object(c.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Zr(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))})),Xr=function(e,t,n,r){return Object(oe.isUndefined)(t)?t:(t=Object(oe.truncate)(t,{length:n,separator:r||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))},ea=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(m.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},ta=Object(c.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(oe.find)(t,(function(e){return!Object(oe.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(oe.isEmpty)(t))return null;var n=Object(oe.get)(t,"review.reviewRating",{}),r=n.ratingValue;if(Object(oe.isEmpty)(r))return null;Object(oe.get)(n,"worstRating",1);var a=Object(oe.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},ea(a,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},ea(n,"filled"))}(r,0,a)),wp.element.createElement("span",{className:"serp-rating-label"},Object(Ve.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},r))}));function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra=Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,r=e.permalink,a=e.description,i=e.previewType,o=void 0===i?"desktop":i,l=e.isNoIndex,c=e.keyword,s=e.onClick,u=e.showScore,p=void 0===u||u,m=e.showDevices,d=void 0!==m&&m,h=rr()("serp-preview",(na(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&d),na(t,"noindex-preview",l),t)),f=rankMathEditor.assessor.getResearch("slugify")(c);return wp.element.createElement("div",{className:h},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(Ve.__)("Preview","rank-math"),"data-desktop":Object(Ve.__)("Desktop Preview","rank-math"),"data-mobile":Object(Ve.__)("Mobile Preview","rank-math")},p&&wp.element.createElement(Jr,null)," ",d&&wp.element.createElement(Qr,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:c||Object(Ve.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(Ve.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(Ve.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(Ve.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(Ve.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(Ve.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(Ve.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){s&&s()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Xr(f,I.Helpers.sanitizeText(Object(Wr.safeDecodeURIComponent)(r)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(n),60)}})),wp.element.createElement(ta,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(a),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(Ve.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(Ve.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),aa=Object(c.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(ra,{showScore:!1,showDevices:!0}),wp.element.createElement(Vr,null),wp.element.createElement(Yr,null),wp.element.createElement(qr,null))})),ia=function(e){var t=rr()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?x.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?x.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(u.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(m.Dashicon,{icon:"admin-links"}),e.siteurl))))))},oa=n(32),la=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(oa.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(Ve.__)("Replace Image","rank-math"):Object(Ve.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(m.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(Ve.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(Ve.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(Ve.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ca(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function sa(){return(sa=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}).apply(this,arguments)}var ua=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,sa({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(Ve.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(m.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(Ve.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(Ve.__)("Read more","rank-math")))),wp.element.createElement(la,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),pa=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(c.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.description,label:Object(Ve.__)("App Description","rank-math"),help:Object(Ve.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.iphoneName,label:Object(Ve.__)("iPhone App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(m.TextControl,{value:e.iphoneID,label:Object(Ve.__)("iPhone App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(m.TextControl,{value:e.iphoneUrl,label:Object(Ve.__)("iPhone App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.ipadName,label:Object(Ve.__)("iPad App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(m.TextControl,{value:e.ipadID,label:Object(Ve.__)("iPad App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(m.TextControl,{value:e.ipadUrl,label:Object(Ve.__)("iPad App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.googleplayName,label:Object(Ve.__)("Google Play App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(m.TextControl,{value:e.googleplayID,label:Object(Ve.__)("Google Play App ID","rank-math"),help:Object(Ve.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(m.TextControl,{value:e.googleplayUrl,label:Object(Ve.__)("Google Play App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(m.TextControl,{value:e.country,label:Object(Ve.__)("App Country","rank-math"),help:Object(Ve.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ma=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(c.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.url,label:Object(Ve.__)("Player URL","rank-math"),help:Object(Ve.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(m.TextControl,{value:e.size,label:Object(Ve.__)("Player Size","rank-math"),help:Object(Ve.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(m.TextControl,{value:e.stream,label:Object(Ve.__)("Stream URL","rank-math"),help:Object(Ve.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(m.TextControl,{value:e.ctype,label:Object(Ve.__)("Stream Content Type","rank-math"),help:Object(Ve.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function da(){return(da=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}).apply(this,arguments)}var ha=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,da({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(oe.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(Ve.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(Ve.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.SelectControl,{value:e.cardType,label:Object(Ve.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(Ve.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(Ve.__)("Summary Card","rank-math")},{value:"app",label:Object(Ve.__)("App Card","rank-math")},{value:"player",label:Object(Ve.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(la,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ma,null),"app"===e.cardType&&wp.element.createElement(pa,null))})),fa=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"facebook-alt"}),Object(Ve.__)("Facebook","rank-math")),view:ua,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"twitter"}),Object(Ve.__)("Twitter","rank-math")),view:ha,className:"button-twitter"}]},(function(e){return Object(u.createElement)(e.view)})))};function ga(e){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ba(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)}}function wa(e,t){return(wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oa(e);if(t){var a=Oa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return va(this,n)}}function va(e,t){return!t||"object"!==ga(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _a=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wa(e,t)}(i,e);var t,n,r,a=ya(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this))._handleRef=e._handleRef.bind(ka(e)),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=D()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=D()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(Ve.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(Fr,{tags:"em"},Object(Ve.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,wp.element.createElement("span",null,Object(Ve.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){D.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=D()(this.component);e.animate({opacity:.01},1500,(function(){var t=D()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ba(t.prototype,n),r&&ba(t,r),i}(u.Component),Ea=Object(m.withFilters)("rankMath.analytics.reportButton")((function(){return null})),ja=Object(fr.compose)(Object(c.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,r=void 0===n?"":n,a=e.toggleEditor,i=[{name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:aa},{name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:fa}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&i.push({name:"review",className:"review-tab",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:_a}),wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:a},Object(Ve.__)("Edit Snippet","rank-math")),""===r&&wp.element.createElement(Ea,null),t&&wp.element.createElement(m.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:a,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(m.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:r,tabs:i},(function(e){return Object(u.createElement)(e.view)}))))})),Ta=function(){return wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(m.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(ja,{buttonLabel:Object(Ve.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Sa=Object(fr.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=rr()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))}));function Ia(e){return(Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(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)}}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ra(e);if(t){var a=Ra(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Aa(this,n)}}function Aa(e,t){return!t||"object"!==Ia(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ra(e){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pa(e,t)}(i,e);var t,n,r,a=xa(i);function i(){return Ca(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(oe.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(m.PanelBody,{key:"panel-"+e,title:wp.element.createElement(u.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(Ve.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(Ve.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(oe.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=rr()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+function(e,t){var n=Object(oe.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Sa,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(Ve.__)("Basic SEO","rank-math"),advanced:Object(Ve.__)("Additional","rank-math"),"title-readability":Object(Ve.__)("Title Readability","rank-math"),"content-readability":Object(Ve.__)("Content Readability","rank-math")}}}])&&Da(t.prototype,n),r&&Da(t,r),i}(u.Component),Ma=Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Na),Fa=Object(c.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(Ve.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Ua=n(33),Ba=n.n(Ua);function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ha(){return(Ha=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}).apply(this,arguments)}function za(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)}}function Ga(e,t){return(Ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var a=Wa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==La(t)&&"function"!=typeof t?Va(e):t}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ya=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ga(e,t)}(i,e);var t,n,r,a=Ka(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Va(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ba.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ha({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ha({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&za(t.prototype,n),r&&za(t,r),i}(u.Component);function qa(e){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qa(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)}}function Za(e,t){return(Za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ti(e);if(t){var a=ti(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?ei(e):t}function ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Za(e,t)}(i,e);var t,n,r,a=Ja(i);function i(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(u.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(ei(t)),window.rankMathEditor.focusKeywordField=ei(t),t}return t=i,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(oe.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ya,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(Ve.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(I.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(oe.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=D.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=D.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=D()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Qa(t.prototype,n),r&&Qa(t,r),i}(u.Component),ri=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(c.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(ni),ai=Object(fr.compose)(Object(c.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(u.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(Ve.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(m.Modal,{title:Object(Ve.__)("Google Trends","rank-math"),closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(Ve.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(Ve.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(Ve.__)("Upgrade","rank-math")))))))})),ii=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(c.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,r=e.togglePillarContent;return t?wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(Ve.__)("Focus Keyword","rank-math"),wp.element.createElement(Sa,null,wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(ai,null),wp.element.createElement(S.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(ri,null)),wp.element.createElement(Fa,null),wp.element.createElement(m.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(u.Fragment,null,wp.element.createElement("strong",null,Object(Ve.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Sa,null,Object(Ve.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:r})):null})),oi=Object(c.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ra,{onClick:t}),wp.element.createElement(ja,null),wp.element.createElement(b.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ii,null),rankMath.canUser.analysis&&wp.element.createElement(Ma,null))})),li=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ci=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(c.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=li(n,t,r),"index"===t&&(n=li(n,"noindex",!r)),"noindex"===t&&(n=li(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(m.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Nofollow","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Archive","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Image Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(c.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(ui(ui({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(ui(ui({},t),{},pi({},n,r)))}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(Ve.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(m.SelectControl,{label:Object(Ve.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(Ve.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(Ve.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(Ve.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(Ve.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(Ve.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",label:Object(Ve.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(m.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),di=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(c.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,r=e.onUrlChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Canonical URL","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return r(e)}}))})),hi=Object(fr.compose)(Object(c.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(c.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(m.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wi={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},yi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gi({},t);Object(oe.defaults)(n,wi);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(c.withDispatch)((function(e,t){var n=gi({},t.meta);return{updateRobots:function(t,r){Object(oe.isBoolean)(r)?!1===r?delete n[t]:n[t]=wi[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Video Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Image Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(m.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(Ve.__)("Large","rank-math")},{value:"standard",label:Object(Ve.__)("Standard","rank-math")},{value:"none",label:Object(Ve.__)("None","rank-math")}]})))})),vi=Object(fr.compose)(Object(c.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(c.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(m.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),ki=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ci,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(yi,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(di,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(hi,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(mi,null)),rankMath.frontEndScore&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(vi,null)),wp.element.createElement(O.Slot,null,(function(e){return e.length>0?e:[]})))},Oi=n(34),_i=n.n(Oi),Ei={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=D()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",_i()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};D()((function(){Ei.init()}));var ji=function(e){"social"===e&&Object(c.dispatch)("rank-math").toggleSnippetEditor(!0)},Ti=function(){return wp.element.createElement(Cr,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(Ve.__)("General","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:oi,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(Ve.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Advanced","rank-math"))),view:ki,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(Ve.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:Ta,className:"rank-math-social-tab"}),Object(p.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:ji},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(u.createElement)(e.view))}));var e},Si=["className","children"];function Ii(){return(Ii=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}).apply(this,arguments)}function Ci(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Di=function(e){var t=e.className,n=e.children,r=Ci(e,Si),a=rr()("rank-math-rm-modal-button",t);return wp.element.createElement("button",Ii({type:"button",className:a},r),n)},Pi=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},xi=function(){var e=rr()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Di,{className:e,onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Pi,null))},Ai=function(){var e=rr()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:e},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(xi,null)))))},Ri=function(e){var t=e.children,n=rr()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:n},t)},Ni=Object(c.withSelect)((function(e){return{rmUiActive:(0,e("rank-math").isDiviRankMathModalActive)()}}))((function(e){var t=e.rmUiActive,n=rr()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!t}),r=rr()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:r},wp.element.createElement(Ai,null),wp.element.createElement(Ri,null,wp.element.createElement(Ti,null))))})),Mi=Object(m.withFilters)("rankMath.diviAppModal")(Ni),Fi=function(){return wp.element.createElement(m.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Mi,null)))};function Ui(e){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Li(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)}}function Hi(e,t,n){return(Hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$i(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$i(e);if(t){var a=$i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){return!t||"object"!==Ui(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $i(e){return($i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vi=function(){return s.MediaUpload},Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zi(e,t)}(i,e);var t,n,r,a=Gi(i);function i(){return Bi(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"setup",value:function(e){l.a.use(l.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(p.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(p.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",Vi),Hi($i(i.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=S,this.RankMathAdvancedTab=O,this.slots={AfterEditor:b,AfterFocusKeyword:S,AdvancedTab:O}}},{key:"updatePermalink",value:function(e){Object(c.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(c.dispatch)("rank-math").updatePermalink(e)}}])&&Li(t.prototype,n),r&&Li(t,r),i}(Yn);window.addEventListener("message",(function(e){"et_builder_api_ready"===e.data.etBuilderEvent&&(window.rankMathEditor=new Wi,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new tr),sr.init(),new hr,Object(u.render)(Object(u.createElement)(Fi),document.getElementById("rank-math-rm-app-root")),Object(c.dispatch)("rank-math").refreshResults())}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.element},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.compose},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,n){var r=n(20),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(16),a=n(24);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=wp.url},function(e,t,n){var r=n(12),a=n(22),i=n(23),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},,,,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(21))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(12),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,function(e,t){e.exports=React},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){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},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=l(n(26)),i=l(n(36)),o=l(n(39));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],g={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,i.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=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 i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t){e.exports=wp.blockEditor},function(e,t){e.exports=Tagify},function(e,t,n){var r=n(13),a=n(40),i=n(41),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return g?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,b&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(g)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(i(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,function(e,t,n){"use strict";var r=n(26),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(27),o=n(37),l=n(38),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,g=h.call(e),b=0;!(f=g.next()).done;)p+=u(i=f.value,m+s(i,b++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(27);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){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(42),a=n(13),i=n(14),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(43),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updateKeywords",(function(){return N})),n.d(r,"updatePillarContent",(function(){return M})),n.d(r,"toggleFrontendScore",(function(){return F})),n.d(r,"updateAnalysisScore",(function(){return U})),n.d(r,"updateCanonicalUrl",(function(){return B})),n.d(r,"updateAdvancedRobots",(function(){return L})),n.d(r,"updateRobots",(function(){return H})),n.d(r,"updateBreadcrumbTitle",(function(){return z})),n.d(r,"resetDirtyMetadata",(function(){return G})),n.d(r,"updateFacebookTitle",(function(){return K})),n.d(r,"updateFacebookDescription",(function(){return $})),n.d(r,"updateFacebookImage",(function(){return V})),n.d(r,"updateFacebookImageID",(function(){return W})),n.d(r,"updateFacebookHasOverlay",(function(){return Y})),n.d(r,"updateFacebookImageOverlay",(function(){return q})),n.d(r,"updateAppData",(function(){return A})),n.d(r,"updateAppUi",(function(){return R})),n.d(r,"updatePostID",(function(){return Q})),n.d(r,"updatePermalink",(function(){return Z})),n.d(r,"updateTitle",(function(){return J})),n.d(r,"updateDescription",(function(){return X})),n.d(r,"updateFeaturedImage",(function(){return ee})),n.d(r,"updatePrimaryTermID",(function(){return te})),n.d(r,"updateRedirection",(function(){return ne})),n.d(r,"updateRedirectionItem",(function(){return re})),n.d(r,"resetRedirection",(function(){return ae})),n.d(r,"updateHasRedirect",(function(){return ie})),n.d(r,"updateSerpTitle",(function(){return pe})),n.d(r,"updateSerpDescription",(function(){return me})),n.d(r,"toggleSnippetEditor",(function(){return de})),n.d(r,"updateSnippetPreviewType",(function(){return he})),n.d(r,"toggleTrendsCta",(function(){return fe})),n.d(r,"updateTwitterUseFacebook",(function(){return ge})),n.d(r,"updateTwitterCardType",(function(){return be})),n.d(r,"updateTwitterTitle",(function(){return we})),n.d(r,"updateTwitterDescription",(function(){return ye})),n.d(r,"updateTwitterAuthor",(function(){return ve})),n.d(r,"updateTwitterImageID",(function(){return ke})),n.d(r,"updateTwitterImage",(function(){return Oe})),n.d(r,"updateTwitterHasOverlay",(function(){return _e})),n.d(r,"updateTwitterImageOverlay",(function(){return Ee})),n.d(r,"updateTwitterPlayerUrl",(function(){return je})),n.d(r,"updateTwitterPlayerSize",(function(){return Te})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Se})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return Ie})),n.d(r,"updateTwitterAppDescription",(function(){return Ce})),n.d(r,"updateTwitterAppIphoneID",(function(){return De})),n.d(r,"updateTwitterAppIphoneName",(function(){return Pe})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return xe})),n.d(r,"updateTwitterAppIpadID",(function(){return Ae})),n.d(r,"updateTwitterAppIpadName",(function(){return Re})),n.d(r,"updateTwitterAppIpadUrl",(function(){return Ne})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return Me})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return Fe})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return Ue})),n.d(r,"updateTwitterAppCountry",(function(){return Be})),n.d(r,"toggleLoaded",(function(){return Le})),n.d(r,"updateSelectedKeyword",(function(){return He})),n.d(r,"refreshResults",(function(){return ze})),n.d(r,"setVersion",(function(){return Ge})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return Ke})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return $e})),n.d(r,"toggleSchemaEditor",(function(){return Qe})),n.d(r,"toggleSchemaTemplates",(function(){return Ze})),n.d(r,"schemaUpdated",(function(){return Je})),n.d(r,"setEditingSchemaId",(function(){return Xe})),n.d(r,"setEditorTab",(function(){return et})),n.d(r,"setTemplateTab",(function(){return tt})),n.d(r,"updateEditSchemas",(function(){return nt})),n.d(r,"updateSchemas",(function(){return rt})),n.d(r,"updateEditSchema",(function(){return at})),n.d(r,"saveSchema",(function(){return it})),n.d(r,"deleteSchema",(function(){return ot})),n.d(r,"saveTemplate",(function(){return lt}));var a={};n.r(a),n.d(a,"appData",(function(){return ht})),n.d(a,"appUi",(function(){return yt}));var i={};n.r(i),n.d(i,"getAppData",(function(){return vt})),n.d(i,"getDirtyMetadata",(function(){return kt})),n.d(i,"getAnalysisScore",(function(){return Ot})),n.d(i,"getKeywords",(function(){return _t})),n.d(i,"getPillarContent",(function(){return Et})),n.d(i,"getRobots",(function(){return jt})),n.d(i,"getAdvancedRobots",(function(){return Tt})),n.d(i,"getCanonicalUrl",(function(){return St})),n.d(i,"getBreadcrumbTitle",(function(){return It})),n.d(i,"getRichSnippets",(function(){return Ct})),n.d(i,"getShowScoreFrontend",(function(){return Dt})),n.d(i,"isLoaded",(function(){return Pt})),n.d(i,"getSelectedKeyword",(function(){return xt})),n.d(i,"isRefreshing",(function(){return At})),n.d(i,"isPro",(function(){return Rt})),n.d(i,"isDiviPageSettingsBarActive",(function(){return Nt})),n.d(i,"isDiviRankMathModalActive",(function(){return Mt})),n.d(i,"getFacebookTitle",(function(){return Ft})),n.d(i,"getFacebookDescription",(function(){return Ut})),n.d(i,"getFacebookAuthor",(function(){return Bt})),n.d(i,"getFacebookImageID",(function(){return Lt})),n.d(i,"getFacebookImage",(function(){return Ht})),n.d(i,"getFacebookHasOverlay",(function(){return zt})),n.d(i,"getFacebookImageOverlay",(function(){return Gt})),n.d(i,"getPostID",(function(){return Kt})),n.d(i,"getTitle",(function(){return $t})),n.d(i,"getPermalink",(function(){return Vt})),n.d(i,"getDescription",(function(){return Wt})),n.d(i,"getFeaturedImage",(function(){return Yt})),n.d(i,"getFeaturedImageHtml",(function(){return qt})),n.d(i,"getPrimaryTermID",(function(){return Qt})),n.d(i,"getRedirectionID",(function(){return Zt})),n.d(i,"getRedirectionType",(function(){return Jt})),n.d(i,"getRedirectionUrl",(function(){return Xt})),n.d(i,"getRedirectionItem",(function(){return en})),n.d(i,"hasRedirect",(function(){return tn})),n.d(i,"getSerpTitle",(function(){return nn})),n.d(i,"getSerpDescription",(function(){return rn})),n.d(i,"isSnippetEditorOpen",(function(){return an})),n.d(i,"getSnippetPreviewType",(function(){return on})),n.d(i,"isTrendsCtaOpen",(function(){return ln})),n.d(i,"isSchemaEditorOpen",(function(){return cn})),n.d(i,"isSchemaTemplatesOpen",(function(){return sn})),n.d(i,"hasSchemaUpdated",(function(){return un})),n.d(i,"getSchemas",(function(){return pn})),n.d(i,"getEditSchemas",(function(){return mn})),n.d(i,"getEditingSchema",(function(){return dn})),n.d(i,"getPreviewSchema",(function(){return hn})),n.d(i,"getEditorTab",(function(){return fn})),n.d(i,"getTemplateTab",(function(){return gn})),n.d(i,"getTwitterUseFacebook",(function(){return bn})),n.d(i,"getTwitterCardType",(function(){return wn})),n.d(i,"getTwitterTitle",(function(){return yn})),n.d(i,"getTwitterDescription",(function(){return vn})),n.d(i,"getTwitterAuthor",(function(){return kn})),n.d(i,"getTwitterImageID",(function(){return On})),n.d(i,"getTwitterImage",(function(){return _n})),n.d(i,"getTwitterHasOverlay",(function(){return En})),n.d(i,"getTwitterImageOverlay",(function(){return jn})),n.d(i,"getTwitterAppDescription",(function(){return Tn})),n.d(i,"getTwitterAppIphoneID",(function(){return Sn})),n.d(i,"getTwitterAppIphoneName",(function(){return In})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Cn})),n.d(i,"getTwitterAppIpadID",(function(){return Dn})),n.d(i,"getTwitterAppIpadName",(function(){return Pn})),n.d(i,"getTwitterAppIpadUrl",(function(){return xn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return An})),n.d(i,"getTwitterAppGoogleplayName",(function(){return Rn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nn})),n.d(i,"getTwitterAppCountry",(function(){return Mn})),n.d(i,"getTwitterPlayerUrl",(function(){return Fn})),n.d(i,"getTwitterPlayerSize",(function(){return Un})),n.d(i,"getTwitterPlayerStream",(function(){return Bn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return Ln}));var o=n(10),l=n.n(o),c=n(1),s=n(29),u=n(4),p=n(8),m=n(2),d=Object(m.createSlotFill)("RankMathAfterEditor"),h=d.Fill,f=d.Slot,g=function(e){var t=e.children,n=e.className;return wp.element.createElement(h,null,wp.element.createElement(m.PanelRow,{className:n},t))};g.Slot=f;var b=g,w=Object(m.createSlotFill)("RankMathAdvancedTab"),y=w.Fill,v=w.Slot,k=function(e){var t=e.children,n=e.className;return wp.element.createElement(y,null,wp.element.createElement(m.PanelRow,{className:n},t))};k.Slot=v;var O=k,_=Object(m.createSlotFill)("RankMathAfterFocusKeyword"),E=_.Fill,j=_.Slot,T=function(e){var t=e.children,n=e.className;return wp.element.createElement(E,null,wp.element.createElement("div",{className:n},t))};T.Slot=j;var S=T,I=n(9),C=n(5),D=n.n(C);function P(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)}}var x=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():D()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},D.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&P(t.prototype,n),r&&P(t,r),e}());function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(p.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(p.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(p.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function R(e,t){return Object(p.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function N(e){return x.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),A("keywords",e,"rank_math_focus_keyword")}function M(e){return A("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function F(e){return A("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function U(e){return A("score",e,"rank_math_seo_score")}function B(e){return A("canonicalUrl",e,"rank_math_canonical_url")}function L(e){return A("advancedRobots",e,"rank_math_advanced_robots")}function H(e){return A("robots",e,"rank_math_robots",Object.keys(e))}function z(e){return A("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function G(){return A("dirtyMetadata",{})}function K(e){return A("facebookTitle",e,"rank_math_facebook_title")}function $(e){return A("facebookDescription",e,"rank_math_facebook_description")}function V(e){return A("facebookImage",e,"rank_math_facebook_image")}function W(e){return A("facebookImageID",e,"rank_math_facebook_image_id")}function Y(e){return A("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function q(e){return A("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function Q(e){return rankMath.objectID=e,A("postID",e)}function Z(e){return A("permalink",e,"permalink")}function J(e){return A("title",e,"rank_math_title")}function X(e){return A("description",e,"rank_math_description")}function ee(e){return A("featuredImage",e)}function te(e,t){return A("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function ne(e,t){return A(e,t)}function re(e){return R("redirectionItem",e)}function ae(){return R("redirectionItem",{})}function ie(e){return R("hasRedirect",e)}var oe=n(3),le=document.createElement("div"),ce=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),le.innerHTML=e,e=le.textContent,le.textContent=""),e},se=function(e,t){return e=(e=I.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(oe.truncate)(e,{length:t,separator:" "}):e},ue=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=t.content?function(e){if(Object(oe.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(oe.filter)(I.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(oe.filter)(t,(function(e){return Object(oe.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<r.length)return se(r[0],160)}return se(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(oe.isUndefined)(n)||Object(oe.isEmpty)(n)?r:n;if(x.setVariable("excerpt",a),x.setVariable("seo_description",a),""!==(e=ce(Object(p.applyFilters)("rankMath/description",e))))return I.Helpers.cleanText(e);if(!Object(oe.isUndefined)(n)&&!Object(oe.isEmpty)(n))return I.Helpers.cleanText(n);var i=rankMath.assessor.serpData.descriptionTemplate;return Object(oe.isUndefined)(i)||""===i?r:I.Helpers.cleanText(i)};function pe(e){return e=x.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),R("serpTitle",e)}function me(e){return e=x.swap(ue(e)),rankMathEditor.refresh("description"),R("serpDescription",e)}function de(e){return R("isSnippetEditorOpen",e)}function he(e){return R("snippetPreviewType",e)}function fe(e){return R("isTrendsCtaOpen",e)}function ge(e){return A("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function be(e){return A("twitterCardType",e,"rank_math_twitter_card_type")}function we(e){return A("twitterTitle",e,"rank_math_twitter_title")}function ye(e){return A("twitterDescription",e,"rank_math_twitter_description")}function ve(e){return A("twitterAuthor",e,"rank_math_twitter_author")}function ke(e){return A("twitterImageID",e,"rank_math_twitter_image_id")}function Oe(e){return A("twitterImage",e,"rank_math_twitter_image")}function _e(e){return A("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Ee(e){return A("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function je(e){return A("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Te(e){return A("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Se(e){return A("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function Ie(e){return A("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function Ce(e){return A("twitterAppDescription",e,"rank_math_twitter_app_description")}function De(e){return A("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function Pe(e){return A("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function xe(e){return A("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function Ae(e){return A("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function Re(e){return A("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function Ne(e){return A("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function Me(e){return A("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function Fe(e){return A("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function Ue(e){return A("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function Be(e){return A("twitterAppCountry",e,"rank_math_twitter_app_country")}function Le(e){return R("isLoaded",e)}function He(e){return R("selectedKeyword",e)}function ze(){return R("refreshResults",Date.now())}function Ge(){return R("isPro",!0)}function Ke(e){return R("isDiviPageSettingsBarActive",e)}function $e(e){return R("isDiviRankMathModalActive",e)}var Ve=n(0);function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){return R("isSchemaEditorOpen",e)}function Ze(e){return R("isSchemaTemplatesOpen",e)}function Je(e){return R("schemaUpdated",e)}function Xe(e){return R("editingSchemaId",e)}function et(e){return R("editorTab",e)}function tt(e){return R("templateTab",e)}function nt(e){return R("editSchemas",e)}function rt(e){return A("schemas",e)}function at(e,t){var n=Ye({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,R("editSchemas",n)}function it(e,t){var n=Ye({},Object(c.select)("rank-math").getSchemas());return n[e]=t,A("schemas",n)}function ot(e){var t=Ye({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(p.doAction)("rank_math_schema_trash",e),A("schemas",t,"rank_math_delete_"+e,"")}function lt(e,t,n){return l()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(oe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ve.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=rankMath.assessor.serpData,mt=rankMath.assessor.hasRedirection,dt={postID:null,title:pt.title?pt.title:pt.titleTemplate,description:pt.description,keywords:pt.focusKeywords,pillarContent:pt.pillarContent,featuredImage:"",permalink:!1,primaryTerm:pt.primaryTerm,robots:pt.robots,advancedRobots:pt.advancedRobots,canonicalUrl:pt.canonicalUrl,breadcrumbTitle:pt.breadcrumbTitle,showScoreFrontend:pt.showScoreFrontend,redirectionID:mt?Object(oe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:mt?Object(oe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:mt?Object(oe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:pt.facebookTitle,facebookImage:pt.facebookImage,facebookImageID:pt.facebookImageID,facebookAuthor:pt.facebookAuthor,facebookDescription:pt.facebookDescription,facebookHasOverlay:pt.facebookHasOverlay,facebookImageOverlay:pt.facebookImageOverlay,twitterTitle:pt.twitterTitle,twitterImage:pt.twitterImage,twitterAuthor:pt.twitterAuthor,twitterImageID:pt.twitterImageID,twitterCardType:pt.twitterCardType,twitterUseFacebook:pt.twitterUseFacebook,twitterDescription:pt.twitterDescription,twitterHasOverlay:pt.twitterHasOverlay,twitterImageOverlay:pt.twitterImageOverlay,twitterPlayerUrl:pt.twitterPlayerUrl,twitterPlayerSize:pt.twitterPlayerSize,twitterPlayerStream:pt.twitterPlayerStream,twitterPlayerStreamCtype:pt.twitterPlayerStreamCtype,twitterAppDescription:pt.twitterAppDescription,twitterAppIphoneName:pt.twitterAppIphoneName,twitterAppIphoneID:pt.twitterAppIphoneID,twitterAppIphoneUrl:pt.twitterAppIphoneUrl,twitterAppIpadName:pt.twitterAppIpadName,twitterAppIpadID:pt.twitterAppIpadID,twitterAppIpadUrl:pt.twitterAppIpadUrl,twitterAppGoogleplayName:pt.twitterAppGoogleplayName,twitterAppGoogleplayID:pt.twitterAppGoogleplayID,twitterAppGoogleplayUrl:pt.twitterAppGoogleplayUrl,twitterAppCountry:pt.twitterAppCountry,schemas:Object(oe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ht(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt,n=arguments.length>1?arguments[1]:void 0,r=st({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?st(st({},t),{},{dirtyMetadata:n.value}):st(st({},t),{},(ut(e={},n.key,n.value),ut(e,"dirtyMetadata",r),e)):t}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.id",""))||!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?gt(gt({},e),{},bt({},t.key,t.value)):e}function vt(e){return e.appData}function kt(e){return e.appData.dirtyMetadata}function Ot(e){return e.appData.score}function _t(e){return e.appData.keywords}function Et(e){return e.appData.pillarContent}function jt(e){return e.appData.robots}function Tt(e){return e.appData.advancedRobots}function St(e){return e.appData.canonicalUrl}function It(e){return e.appData.breadcrumbTitle}function Ct(e){return"todo"}function Dt(e){return e.appData.showScoreFrontend}function Pt(e){return e.appUi.isLoaded}function xt(e){return e.appUi.selectedKeyword}function At(e){return e.appUi.refreshResults}function Rt(e){return e.appUi.isPro}function Nt(e){return e.appUi.isDiviPageSettingsBarActive}function Mt(e){return e.appUi.isDiviRankMathModalActive}function Ft(e){return e.appData.facebookTitle}function Ut(e){return e.appData.facebookDescription}function Bt(e){return e.appData.facebookAuthor}function Lt(e){return e.appData.facebookImageID}function Ht(e){return e.appData.facebookImage}function zt(e){return e.appData.facebookHasOverlay}function Gt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function Kt(e){return e.appData.postID}function $t(e){return e.appData.title}function Vt(e){return e.appData.permalink}function Wt(e){return e.appData.description}function Yt(e){return e.appData.featuredImage}function qt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Qt(e){return e.appData.primaryTerm}function Zt(e){return e.appData.redirectionID}function Jt(e){return e.appData.redirectionType}function Xt(e){return e.appData.redirectionUrl}function en(e){return e.appUi.redirectionItem}function tn(e){return e.appUi.hasRedirect}function nn(e){return ce(e.appUi.serpTitle)}function rn(e){return e.appUi.serpDescription}function an(e){return e.appUi.isSnippetEditorOpen}function on(e){return e.appUi.snippetPreviewType}function ln(e){return e.appUi.isTrendsCtaOpen}function cn(e){return e.appUi.isSchemaEditorOpen}function sn(e){return e.appUi.isSchemaTemplatesOpen}function un(e){return e.appUi.schemaUpdated}function pn(e){return e.appData.schemas}function mn(e){return e.appUi.editSchemas}function dn(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function hn(e){return e.appData.schemas[e.appUi.editingSchemaId]}function fn(e){return e.appUi.editorTab}function gn(e){return e.appUi.templateTab}function bn(e){return e.appData.twitterUseFacebook}function wn(e){return e.appData.twitterCardType}function yn(e){return e.appData.twitterTitle}function vn(e){return e.appData.twitterDescription}function kn(e){return e.appData.twitterAuthor}function On(e){return e.appData.twitterImageID}function _n(e){return e.appData.twitterImage}function En(e){return e.appData.twitterHasOverlay}function jn(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Tn(e){return e.appData.twitterAppDescription}function Sn(e){return e.appData.twitterAppIphoneID}function In(e){return e.appData.twitterAppIphoneName}function Cn(e){return e.appData.twitterAppIphoneUrl}function Dn(e){return e.appData.twitterAppIpadID}function Pn(e){return e.appData.twitterAppIpadName}function xn(e){return e.appData.twitterAppIpadUrl}function An(e){return e.appData.twitterAppGoogleplayID}function Rn(e){return e.appData.twitterAppGoogleplayName}function Nn(e){return e.appData.twitterAppGoogleplayUrl}function Mn(e){return e.appData.twitterAppCountry}function Fn(e){return e.appData.twitterPlayerUrl}function Un(e){return e.appData.twitterPlayerSize}function Bn(e){return e.appData.twitterPlayerStream}function Ln(e){return e.appData.twitterPlayerStreamCtype}var Hn=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function zn(){return Hn}function Gn(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)}}var Kn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new I.Analyzer({i18n:Ve,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(p.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(p.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(p.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(oe.isObject)(e)||Object(oe.isEmpty)(e)?e:I.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=zn().getState(),r=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(n.appUi.serpTitle),a.setPermalink(r.slug),a.setDescription(n.appUi.serpDescription),a.setUrl(r.permalink),a.setText(Object(p.applyFilters)("rank_math_content",r.content)),a.setKeyword(e),a.setKeywords(t),Object(oe.isUndefined)(r.featuredImage)||(a.setThumbnail(r.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(r.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(oe.debounce)((function(t){var n=zn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(p.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var i=e.getPaper(I.Helpers.removeDiacritics(t),r),o=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(o,i).then((function(e){rankMathEditor.resultManager.update(i.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=zn().getState().appData.keywords;return I.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=zn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&Gn(t.prototype,n),r&&Gn(t,r),e}();function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(p.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(p.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,r;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(Ve.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Ve.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Ve.sprintf)(Object(Ve.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Ve.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&$n(t.prototype,n),r&&$n(t,r),e}();function Wn(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)}}var Yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){zn(),this.resultManager=new I.ResultManager,this.assessor=new Kn(e),new Vn,Object(p.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&Wn(t.prototype,n),r&&Wn(t,r),e}();function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function Xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Jn(i,r,a,o,l,"next",e)}function l(e){Jn(i,r,a,o,l,"throw",e)}o(void 0)}))}}function er(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)}}var tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var t,n,r,a,i,o;return t=e,(n=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(oe.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(e){this.etSettingsData.title=e}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".et_pb_section").each((function(){e.push(D()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(oe.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return D()("<div />");var e=D()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return e.length<1?D()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(e){this.etSettingsData.excerpt=e}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+Object(c.select)("rank-math").getPermalink()}},{key:"getSlug",value:function(){var e=D()(document).find("#rank-math-editor-permalink");return e.length?e.val():Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_name",this.getPermalink().replace(rankMath.homeUrl,"").replace(/\//g,""))}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=Xn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=4;break}return e.next=3,this.fetchFeaturedImageId();case 3:t=e.sent;case 4:if(!this.isValidMediaId(t)||!t){e.next=10;break}return e.next=7,this.fetchWpMedia(t);case 7:this._featuredImage=e.sent,e.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=Xn(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,l()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(oe.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(e){return t=!!e.success&&e.featImgId}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=Xn(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,l()({path:"/wp-json/wp/v2/media/".concat(t),method:"GET"}).then((function(e){return n=e}));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToDivi",value:function(){var e=this;this.setTitle(Object(oe.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(oe.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(c.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(oe.debounce)(this.refresh,500),Object(c.subscribe)(this.subscriber),D()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){e.savePost(),e.saveRedirection(),e.saveSchemas()})),Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){if(t)switch(n){case"et_pb_post_settings_title":e.setTitle(t),e.subscriber();break;case"et_pb_post_settings_excerpt":e.setExcerpt(t),e.subscriber();break;case"et_pb_post_settings_image":e.setFeaturedImage(parseInt(t)),e.subscriber()}return t})),window.addEventListener("message",(function(t){"et_fb_section_content_change"===t.data.etBuilderEvent&&e.subscriber()}))}},{key:"refresh",value:function(){var e=Qn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(e),!Object(oe.isEqual)(e,this._data)&&e.id&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var e=Object(c.select)("rank-math").getDirtyMetadata();Object(oe.isEmpty)(e)||(l()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(oe.isString)(e.slug)&&Object(c.dispatch)("rank-math").updatePermalink(e.slug),Object(p.doAction)("rank_math_metadata_updated",e)})),Object(c.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(c.select)("rank-math").getRedirectionItem();Object(oe.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),l()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(c.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(c.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(c.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(c.select)("rank-math").getSchemas();if(!Object(oe.isEmpty)(e)&&!Object(oe.isEqual)(e,Object(oe.get)(rankMath,"schemas",{}))){var t=Object(c.select)("rank-math").getEditSchemas();l()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(oe.isEmpty)(n)){var r=Qn({},e),a=Qn({},t);Object(oe.map)(n,(function(e,t){r["schema-"+e]=Qn({},r[t]),a["schema-"+e]=Qn({},a[t]),delete r[t],delete a[t]})),Object(c.dispatch)("rank-math").updateSchemas(r),Object(c.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(oe.isInteger)(e.id))return this.initialize?void Object(oe.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(oe.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(c.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(c.dispatch)("rank-math").updatePostID(e),Object(c.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){x.setVariable("title",e),Object(c.dispatch)("rank-math").updateSerpTitle(Object(c.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){x.setVariable("excerpt",e),x.setVariable("excerpt_only",e),x.setVariable("wc_shortdesc",e),x.setVariable("seo_description",e),Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(c.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&er(t.prototype,n),r&&er(t,r),e}(),nr=n(7),rr=n.n(nr),ar=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},ir=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(c.select)("rank-math").isDiviRankMathModalActive())},className:rr()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(ar,null))},or=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(ir,null))};function lr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=D()(document),this.$body=D()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=D()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=D()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var e=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",e),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!e)},initSettingsBar:function(){var e=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(u.render)(Object(u.createElement)(or),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),this.attachRmSettingsBar(e)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(e){this.hideModalOnOutsideClick(e.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var e=this.isEtSettingsBarActive(),t=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),Object(c.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(e),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(c.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(t),Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(c.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(e){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(e),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(e){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(e)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(e)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(e)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return D.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["".concat(t,"-left"),"".concat(t,"-right"),"".concat(t,"-top"),"".concat(t,"-top-left"),"".concat(t,"-top-right"),"".concat(t,"-bottom"),"".concat(t,"-bottom-left"),"".concat(t,"-bottom-right")].join("|"),r=new RegExp("(".concat(n,")$"),"gim");e.removeClass((function(e,t){var n,a=[],i=lr(t.split(" "));try{for(i.s();!(n=i.n()).done;){var o=n.value;r.test(o)&&a.push(o)}}catch(e){i.e(e)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var e=this.$etPageSettingsBar;return e.hasClass("et-fb-page-settings-bar--horizontal")&&!e.hasClass("et-fb-page-settings-bar--top")?"bottom":e.hasClass("et-fb-page-settings-bar--top")&&!e.hasClass("et-fb-page-settings-bar--corner")?"top":e.hasClass("et-fb-page-settings-bar--bottom-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":e.hasClass("et-fb-page-settings-bar--top-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":e.hasClass("et-fb-page-settings-bar--vertical--right")?"right":e.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(e){if(Object(c.select)("rank-math").isDiviRankMathModalActive()){var t=".rank-math-rm-modal";e.closest(t)||e.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||e.contains(document.querySelector(t))||Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},ur=Object(c.withSelect)((function(e){return{primaryTermId:e("rank-math").getPrimaryTermID()}}))((function(e){var t=e.taxonomySlug,n=e.primaryTermId,r=e.options;if(r.length<2||!t)return null;return wp.element.createElement(m.SelectControl,{className:"rank-math-primary-term-select",label:Object(Ve.__)("Select Primary Term","rank-math"),value:n,options:r,onChange:function(e){Object(c.dispatch)("rank-math").updatePrimaryTermID(parseInt(e),t)}})}));function pr(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pr(i,r,a,o,l,"next",e)}function l(e){pr(i,r,a,o,l,"throw",e)}o(void 0)}))}}function dr(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)}}var hr=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(t.initRecursionTimer),t.attemptsRun=0,t.init.call(t)}))}var t,n,r,a,i;return t=e,(n=[{key:"init",value:(i=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){e.next=3;break}return e.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){e.next=5;break}return e.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){e.next=8;break}return e.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=mr(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(oe.get)(rankMath,"assessor.primaryTaxonomy.name")||"",n=Object(oe.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=n[t]||[],e.next=4,l()({path:"/wp-json/wp/v2/taxonomies"}).then((function(e){r.primaryTaxonomy=Object.keys(n).includes(t)&&e[t]?e[t]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!D.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(oe.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=D()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=D()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var e=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(t,n){return D()(n).text().toLowerCase()===e})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(e){var t={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(e)};Object(u.render)(Object(u.createElement)(ur,t),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var e=this;Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){return"et_pb_post_settings_".concat(e.primaryTaxonomy.rest_base)===n&&e.renderComponent(t),t}))}},{key:"formatActiveTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&t.trim()?t.split(",").map((function(t){var n=Object(oe.find)(e.primaryTaxonomyTerms,["term_id",parseInt(t)])||{};return{label:n.name,value:n.term_id}})):[]}}])&&dr(t.prototype,n),r&&dr(t,r),e}();hr.initRecursionTimer=void 0,hr.attemptsRun=0,hr.maxAttempts=10,hr.attemptInterval=1e3;var fr=n(6);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var br=["tabId","onClick","children","selected"];function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vr(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)}}function kr(e,t){return(kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Er(e);if(t){var a=Er(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _r(this,n)}}function _r(e,t){return!t||"object"!==gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(){return(jr=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}).apply(this,arguments)}function Tr(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Sr=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Tr(e,br);return wp.element.createElement(m.Button,jr({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kr(e,t)}(i,e);var t,n,r,a=Or(i);function i(){var e;yr(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?oe.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,c=void 0===l?"horizontal":l,s=n.tabs,u=Object(oe.find)(s,{name:t}),p=o+"-"+u.name,d=s.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(m.NavigableMenu,{role:"tablist",orientation:c,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},s.slice(0,4).map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})),!Object(oe.isEmpty)(d)&&wp.element.createElement(m.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:rr()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},d.map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})))),u&&wp.element.createElement("div",{"aria-labelledby":p,role:"tabpanel",id:p+"-view",className:"components-tab-panel__tab-content"},this.props.children(u)))}}])&&vr(t.prototype,n),r&&vr(t,r),i}(u.Component),Cr=Object(fr.withInstanceId)(Ir);function Dr(e,t,n){var r=0;return!1!==Object(oe.get)(n,"pixelWidth",!1)&&(r=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),r)+"%"}function Pr(e,t){return e<=t.min||e>t.max}function xr(e,t){return e<=t.minWidth||e>t.pixelWidth}var Ar=function(e){var t=function(e,t){var n=ce(e).length,r=0,a=!1;if(!1!==Object(oe.get)(t,"pixelWidth",!1)){a=!0;var i=document.createTextNode(e),o=document.createElement("span");o.appendChild(i),o.id="rank-math-width-tester",o.className=t.widthCheckerClass;var l=document.body.appendChild(o);r=document.getElementById("rank-math-width-tester").offsetWidth,l.outerHTML=""}return{left:Dr(n,r,t),isInvalid:Pr(n,t),isInvalidWidth:!!a&&xr(r,t),count:n+" / "+t.max,pixelWidth:a?r+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:rr()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},Rr=n(30),Nr=n(31),Mr=n.n(Nr),Fr=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(oe.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),Mr()({mixedString:r,components:n})};function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(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)}}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kr(e);if(t){var a=Kr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?Gr(e):t}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lr(e,t)}(i,e);var t,n,r,a=Hr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(Gr(t)),t}return t=i,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(oe.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(u.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(m.TextControl,{autoComplete:"off",placeholder:Object(Rr.decodeEntities)(Object(Ve.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(Fr,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(m.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&Br(t.prototype,n),r&&Br(t,r),i}(u.Component),Vr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(c.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,r=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(Ve.__)("Title","rank-math")),wp.element.createElement(Ar,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(Ve.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Wr=n(15),Yr=Object(fr.compose)(Object(c.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(c.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(I.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(I.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,r=e.updatePermalink,a=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(Ve.__)("Permalink","rank-math")),wp.element.createElement(Ar,{source:Object(Wr.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(m.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(Wr.safeDecodeURIComponent)(t),onChange:r,help:rankMath.is_front_page?Object(Ve.__)("Editing Homepage permalink is not possible.","rank-math"):Object(Ve.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){a(e.target.value)}}))})),qr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(c.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,r=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(Ve.__)("Description","rank-math")),wp.element.createElement(Ar,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextareaControl,{id:"rank-math-editor-description",value:ce(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(Ve.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Qr=Object(fr.compose)(Object(c.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(c.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=rr()("button button-secondary button-small",{active:"desktop"===t}),a=rr()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Zr=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"},Jr=Object(c.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Zr(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))})),Xr=function(e,t,n,r){return Object(oe.isUndefined)(t)?t:(t=Object(oe.truncate)(t,{length:n,separator:r||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))},ea=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(m.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},ta=Object(c.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(oe.find)(t,(function(e){return!Object(oe.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(oe.isEmpty)(t))return null;var n=Object(oe.get)(t,"review.reviewRating",{}),r=n.ratingValue;if(Object(oe.isEmpty)(r))return null;Object(oe.get)(n,"worstRating",1);var a=Object(oe.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},ea(a,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},ea(n,"filled"))}(r,0,a)),wp.element.createElement("span",{className:"serp-rating-label"},Object(Ve.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},r))}));function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra=Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,r=e.permalink,a=e.description,i=e.previewType,o=void 0===i?"desktop":i,l=e.isNoIndex,c=e.keyword,s=e.onClick,u=e.showScore,p=void 0===u||u,m=e.showDevices,d=void 0!==m&&m,h=rr()("serp-preview",(na(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&d),na(t,"noindex-preview",l),t)),f=rankMathEditor.assessor.getResearch("slugify")(c);return wp.element.createElement("div",{className:h},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(Ve.__)("Preview","rank-math"),"data-desktop":Object(Ve.__)("Desktop Preview","rank-math"),"data-mobile":Object(Ve.__)("Mobile Preview","rank-math")},p&&wp.element.createElement(Jr,null)," ",d&&wp.element.createElement(Qr,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:c||Object(Ve.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(Ve.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(Ve.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(Ve.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(Ve.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(Ve.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(Ve.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){s&&s()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Xr(f,I.Helpers.sanitizeText(Object(Wr.safeDecodeURIComponent)(r)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(n),60)}})),wp.element.createElement(ta,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(a),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(Ve.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(Ve.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),aa=Object(c.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(ra,{showScore:!1,showDevices:!0}),wp.element.createElement(Vr,null),wp.element.createElement(Yr,null),wp.element.createElement(qr,null))})),ia=function(e){var t=rr()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?x.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?x.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(u.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(m.Dashicon,{icon:"admin-links"}),e.siteurl))))))},oa=n(32),la=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(oa.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(Ve.__)("Replace Image","rank-math"):Object(Ve.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(m.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(Ve.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(Ve.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(Ve.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ca(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function sa(){return(sa=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}).apply(this,arguments)}var ua=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,sa({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(Ve.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(m.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(Ve.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(Ve.__)("Read more","rank-math")))),wp.element.createElement(la,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),pa=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(c.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.description,label:Object(Ve.__)("App Description","rank-math"),help:Object(Ve.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.iphoneName,label:Object(Ve.__)("iPhone App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(m.TextControl,{value:e.iphoneID,label:Object(Ve.__)("iPhone App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(m.TextControl,{value:e.iphoneUrl,label:Object(Ve.__)("iPhone App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.ipadName,label:Object(Ve.__)("iPad App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(m.TextControl,{value:e.ipadID,label:Object(Ve.__)("iPad App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(m.TextControl,{value:e.ipadUrl,label:Object(Ve.__)("iPad App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.googleplayName,label:Object(Ve.__)("Google Play App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(m.TextControl,{value:e.googleplayID,label:Object(Ve.__)("Google Play App ID","rank-math"),help:Object(Ve.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(m.TextControl,{value:e.googleplayUrl,label:Object(Ve.__)("Google Play App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(m.TextControl,{value:e.country,label:Object(Ve.__)("App Country","rank-math"),help:Object(Ve.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ma=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(c.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.url,label:Object(Ve.__)("Player URL","rank-math"),help:Object(Ve.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(m.TextControl,{value:e.size,label:Object(Ve.__)("Player Size","rank-math"),help:Object(Ve.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(m.TextControl,{value:e.stream,label:Object(Ve.__)("Stream URL","rank-math"),help:Object(Ve.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(m.TextControl,{value:e.ctype,label:Object(Ve.__)("Stream Content Type","rank-math"),help:Object(Ve.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function da(){return(da=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}).apply(this,arguments)}var ha=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,da({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(oe.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(Ve.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(Ve.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.SelectControl,{value:e.cardType,label:Object(Ve.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(Ve.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(Ve.__)("Summary Card","rank-math")},{value:"app",label:Object(Ve.__)("App Card","rank-math")},{value:"player",label:Object(Ve.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(la,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ma,null),"app"===e.cardType&&wp.element.createElement(pa,null))})),fa=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"facebook-alt"}),Object(Ve.__)("Facebook","rank-math")),view:ua,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"twitter"}),Object(Ve.__)("Twitter","rank-math")),view:ha,className:"button-twitter"}]},(function(e){return Object(u.createElement)(e.view)})))};function ga(e){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ba(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)}}function wa(e,t){return(wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oa(e);if(t){var a=Oa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return va(this,n)}}function va(e,t){return!t||"object"!==ga(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _a=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wa(e,t)}(i,e);var t,n,r,a=ya(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this))._handleRef=e._handleRef.bind(ka(e)),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=D()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=D()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(Ve.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(Fr,{tags:"em"},Object(Ve.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,wp.element.createElement("span",null,Object(Ve.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){D.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=D()(this.component);e.animate({opacity:.01},1500,(function(){var t=D()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ba(t.prototype,n),r&&ba(t,r),i}(u.Component),Ea=Object(m.withFilters)("rankMath.analytics.reportButton")((function(){return null})),ja=Object(fr.compose)(Object(c.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,r=void 0===n?"":n,a=e.toggleEditor,i=[{name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:aa},{name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:fa}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&i.push({name:"review",className:"review-tab",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:_a}),wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:a},Object(Ve.__)("Edit Snippet","rank-math")),""===r&&wp.element.createElement(Ea,null),t&&wp.element.createElement(m.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:a,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(m.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:r,tabs:i},(function(e){return Object(u.createElement)(e.view)}))))})),Ta=function(){return wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(m.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(ja,{buttonLabel:Object(Ve.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Sa=Object(fr.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=rr()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))}));function Ia(e){return(Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(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)}}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ra(e);if(t){var a=Ra(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Aa(this,n)}}function Aa(e,t){return!t||"object"!==Ia(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ra(e){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pa(e,t)}(i,e);var t,n,r,a=xa(i);function i(){return Ca(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(oe.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(m.PanelBody,{key:"panel-"+e,title:wp.element.createElement(u.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(Ve.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(Ve.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(oe.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=rr()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+function(e,t){var n=Object(oe.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Sa,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(Ve.__)("Basic SEO","rank-math"),advanced:Object(Ve.__)("Additional","rank-math"),"title-readability":Object(Ve.__)("Title Readability","rank-math"),"content-readability":Object(Ve.__)("Content Readability","rank-math")}}}])&&Da(t.prototype,n),r&&Da(t,r),i}(u.Component),Ma=Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Na),Fa=Object(c.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(Ve.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Ua=n(33),Ba=n.n(Ua);function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ha(){return(Ha=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}).apply(this,arguments)}function za(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)}}function Ga(e,t){return(Ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var a=Wa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==La(t)&&"function"!=typeof t?Va(e):t}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ya=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ga(e,t)}(i,e);var t,n,r,a=Ka(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Va(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ba.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ha({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ha({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&za(t.prototype,n),r&&za(t,r),i}(u.Component);function qa(e){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qa(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)}}function Za(e,t){return(Za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ti(e);if(t){var a=ti(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?ei(e):t}function ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Za(e,t)}(i,e);var t,n,r,a=Ja(i);function i(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(u.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(ei(t)),window.rankMathEditor.focusKeywordField=ei(t),t}return t=i,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(oe.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ya,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(Ve.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(I.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(oe.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=D.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=D.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=D()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Qa(t.prototype,n),r&&Qa(t,r),i}(u.Component),ri=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(c.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(ni),ai=Object(fr.compose)(Object(c.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(u.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(Ve.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(m.Modal,{title:Object(Ve.__)("Google Trends","rank-math"),closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(Ve.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(Ve.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(Ve.__)("Upgrade","rank-math")))))))})),ii=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(c.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,r=e.togglePillarContent;return t?wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(Ve.__)("Focus Keyword","rank-math"),wp.element.createElement(Sa,null,wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(ai,null),wp.element.createElement(S.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(ri,null)),wp.element.createElement(Fa,null),wp.element.createElement(m.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(u.Fragment,null,wp.element.createElement("strong",null,Object(Ve.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Sa,null,Object(Ve.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:r})):null})),oi=Object(c.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ra,{onClick:t}),wp.element.createElement(ja,null),wp.element.createElement(b.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ii,null),rankMath.canUser.analysis&&wp.element.createElement(Ma,null))})),li=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ci=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(c.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=li(n,t,r),"index"===t&&(n=li(n,"noindex",!r)),"noindex"===t&&(n=li(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(m.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Nofollow","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Archive","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Image Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(c.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(ui(ui({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(ui(ui({},t),{},pi({},n,r)))}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(Ve.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(m.SelectControl,{label:Object(Ve.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(Ve.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(Ve.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(Ve.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(Ve.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(Ve.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",label:Object(Ve.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(m.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),di=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(c.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,r=e.onUrlChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Canonical URL","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return r(e)}}))})),hi=Object(fr.compose)(Object(c.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(c.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(m.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wi={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},yi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gi({},t);Object(oe.defaults)(n,wi);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(c.withDispatch)((function(e,t){var n=gi({},t.meta);return{updateRobots:function(t,r){Object(oe.isBoolean)(r)?!1===r?delete n[t]:n[t]=wi[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Video Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Image Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(m.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(Ve.__)("Large","rank-math")},{value:"standard",label:Object(Ve.__)("Standard","rank-math")},{value:"none",label:Object(Ve.__)("None","rank-math")}]})))})),vi=Object(fr.compose)(Object(c.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(c.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(m.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),ki=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ci,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(yi,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(di,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(hi,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(mi,null)),rankMath.frontEndScore&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(vi,null)),wp.element.createElement(O.Slot,null,(function(e){return e.length>0?e:[]})))},Oi=n(34),_i=n.n(Oi),Ei={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=D()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",_i()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};D()((function(){Ei.init()}));var ji=function(e){"social"===e&&Object(c.dispatch)("rank-math").toggleSnippetEditor(!0)},Ti=function(){return wp.element.createElement(Cr,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(Ve.__)("General","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:oi,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(Ve.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Advanced","rank-math"))),view:ki,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(Ve.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:Ta,className:"rank-math-social-tab"}),Object(p.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:ji},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(u.createElement)(e.view))}));var e},Si=["className","children"];function Ii(){return(Ii=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}).apply(this,arguments)}function Ci(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Di=function(e){var t=e.className,n=e.children,r=Ci(e,Si),a=rr()("rank-math-rm-modal-button",t);return wp.element.createElement("button",Ii({type:"button",className:a},r),n)},Pi=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},xi=function(){var e=rr()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Di,{className:e,onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Pi,null))},Ai=function(){var e=rr()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:e},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(xi,null)))))},Ri=function(e){var t=e.children,n=rr()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:n},t)},Ni=Object(c.withSelect)((function(e){return{rmUiActive:(0,e("rank-math").isDiviRankMathModalActive)()}}))((function(e){var t=e.rmUiActive,n=rr()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!t}),r=rr()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:r},wp.element.createElement(Ai,null),wp.element.createElement(Ri,null,wp.element.createElement(Ti,null))))})),Mi=Object(m.withFilters)("rankMath.diviAppModal")(Ni),Fi=function(){return wp.element.createElement(m.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Mi,null)))};function Ui(e){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Li(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)}}function Hi(e,t,n){return(Hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$i(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$i(e);if(t){var a=$i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){return!t||"object"!==Ui(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $i(e){return($i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vi=function(){return s.MediaUpload},Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zi(e,t)}(i,e);var t,n,r,a=Gi(i);function i(){return Bi(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"setup",value:function(e){l.a.use(l.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(p.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(p.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",Vi),Hi($i(i.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=S,this.RankMathAdvancedTab=O,this.slots={AfterEditor:b,AfterFocusKeyword:S,AdvancedTab:O}}},{key:"updatePermalink",value:function(e){Object(c.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(c.dispatch)("rank-math").updatePermalink(e)}}])&&Li(t.prototype,n),r&&Li(t,r),i}(Yn);window.addEventListener("message",(function(e){"et_builder_api_ready"===e.data.etBuilderEvent&&(window.rankMathEditor=new Wi,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new tr),sr.init(),new hr,Object(u.render)(Object(u.createElement)(Fi),document.getElementById("rank-math-rm-app-root")),Object(c.dispatch)("rank-math").refreshResults())}))}]);
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=79)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n.n(r);function i(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)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return C})),n.d(r,"updateFeaturedImage",(function(){return D})),n.d(r,"updatePrimaryTermID",(function(){return P})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return A})),n.d(r,"resetRedirection",(function(){return N})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return L})),n.d(r,"updateSnippetPreviewType",(function(){return H})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return $})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Ce})),n.d(r,"setTemplateTab",(function(){return De})),n.d(r,"updateEditSchemas",(function(){return Pe})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ae})),n.d(r,"saveSchema",(function(){return Ne})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return $e}));var i={};n.r(i),n.d(i,"getAppData",(function(){return qe})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Ct})),n.d(i,"hasRedirect",(function(){return Dt})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return At})),n.d(i,"isSnippetEditorOpen",(function(){return Nt})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Lt})),n.d(i,"getSchemas",(function(){return Ht})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return $t})),n.d(i,"getTwitterDescription",(function(){return qt})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function C(e){return s("description",e,"rank_math_description")}function D(e){return s("featuredImage",e)}function P(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function A(e){return u("redirectionItem",e)}function N(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function L(e){return u("isSnippetEditorOpen",e)}function H(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function $(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Ce(e){return u("editorTab",e)}function De(e){return u("templateTab",e)}function Pe(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(Le(e={},n.key,n.value),Le(e,"dirtyMetadata",r),e)):t}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function qe(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Ct(e){return e.appUi.redirectionItem}function Dt(e){return e.appUi.hasRedirect}var Pt=n(13);function xt(e){return Object(Pt.a)(e.appUi.serpTitle)}function At(e){return e.appUi.serpDescription}function Nt(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Lt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function $t(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(3);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(2),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},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){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(51),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(37).Symbol;e.exports=r},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=l(n(34)),i=l(n(46)),o=l(n(49));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=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 i=(0,o.default)(t);try{return s(i,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){var r=n(36),a=n(50),i=n(53),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(2);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["tabId","onClick","children","selected"];function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(){return(k=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}).apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var _=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=O(e,d);return wp.element.createElement(p.Button,k({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,a=w(i);function i(){var e;f(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,d=Object(s.find)(m,{name:t}),f=o+"-"+d.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),d&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(d)))}}])&&b(t.prototype,n),r&&b(t,r),i}(o.Component),E=Object(u.withInstanceId)(j),T=n(27),S=function(e){var t=Object(T.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},I=n(31),C=n(39),D=n.n(C),P=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?U(e):t}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(I.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(P,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&A(t.prototype,n),a&&A(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),B=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object(B.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(B.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(13),V=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),W=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(33),$=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(J(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),J(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(Y.a,null)," ",f&&wp.element.createElement(W,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object($.a)(g,z.Helpers.sanitizeText(Object(B.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),X=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(Q,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(G,null),wp.element.createElement(V,null))})),ee=n(9),te=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?ee.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ee.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ne=n(12),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ne.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ae(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ie(){return(ie=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}).apply(this,arguments)}var oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,ie({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function se(){return(se=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}).apply(this,arguments)}var ue=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,se({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ce,null),"app"===e.cardType&&wp.element.createElement(le,null))})),pe=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:oe,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:ue,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},me=n(3),de=n.n(me);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(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)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var a=ve(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(l,e);var t,n,a,i=ge(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ye(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=de()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=de()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(P,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){de.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=de()(this.component);e.animate({opacity:.01},1500,(function(){var t=de()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&fe(t.prototype,n),a&&fe(t,a),l}(o.Component),Oe=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:X},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:pe}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ke}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(Oe,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),je=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ee=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Te=n(30);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(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)}}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var a=Ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(l,e);var t,n,a,i=Pe(l);function l(){return Ie(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Te.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ee,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ce(t.prototype,n),a&&Ce(t,a),l}(o.Component),Re=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ne),Me=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fe=n(29),Le=n.n(Fe);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(){return(ze=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}).apply(this,arguments)}function Be(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)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var a=Ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(i,e);var t,n,r,a=Ke(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(We(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Le.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",ze({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",ze({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Be(t.prototype,n),r&&Be(t,r),i}(o.Component);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(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)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var a=tt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?et(e):t}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(l,e);var t,n,a,i=Qe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(et(t)),window.rankMathEditor.focusKeywordField=et(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement($e,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=de.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=de.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=de()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Ze(t.prototype,n),a&&Ze(t,a),l}(o.Component),rt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(nt),at=n(28),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Ee,null,wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(at.a,null),wp.element.createElement(Me.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(rt,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ee,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(Q,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);Object(s.defaults)(n,yt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=n(40),Et=n.n(jt),Tt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=de()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Et()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};de()((function(){Tt.init()}));var St=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(E,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:je,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:St},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(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)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},,function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(47),l=n(48),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);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){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54),a=n(36),i=n(56),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(55),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(57),a=n(60);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(38),a=n(58),i=n(59),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(38),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),i=n(4),o=n(63),l=n(6),c=n(44),s=n(1),u=n(15),p=n.n(u),m=n(11),d=n(9);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getContent()}}).then((function(e){Object(s.isString)(e)&&Object(i.dispatch)("rank-math").updatePermalink(e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&Object(i.select)("rank-math").hasSchemaUpdated()){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(64),v=n.n(y),k=n(5),O=n(43),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};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)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(23),I=n(24),C=n(22);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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)}}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(){return o.MediaUpload},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",F),A(U(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=C.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:C.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new w),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=79)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n.n(r);function i(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)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return C})),n.d(r,"updateFeaturedImage",(function(){return D})),n.d(r,"updatePrimaryTermID",(function(){return P})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return A})),n.d(r,"resetRedirection",(function(){return N})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return L})),n.d(r,"updateSnippetPreviewType",(function(){return H})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return $})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Ce})),n.d(r,"setTemplateTab",(function(){return De})),n.d(r,"updateEditSchemas",(function(){return Pe})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ae})),n.d(r,"saveSchema",(function(){return Ne})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return $e}));var i={};n.r(i),n.d(i,"getAppData",(function(){return qe})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Ct})),n.d(i,"hasRedirect",(function(){return Dt})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return At})),n.d(i,"isSnippetEditorOpen",(function(){return Nt})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Lt})),n.d(i,"getSchemas",(function(){return Ht})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return $t})),n.d(i,"getTwitterDescription",(function(){return qt})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function C(e){return s("description",e,"rank_math_description")}function D(e){return s("featuredImage",e)}function P(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function A(e){return u("redirectionItem",e)}function N(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function L(e){return u("isSnippetEditorOpen",e)}function H(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function $(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Ce(e){return u("editorTab",e)}function De(e){return u("templateTab",e)}function Pe(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(Le(e={},n.key,n.value),Le(e,"dirtyMetadata",r),e)):t}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function qe(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Ct(e){return e.appUi.redirectionItem}function Dt(e){return e.appUi.hasRedirect}var Pt=n(13);function xt(e){return Object(Pt.a)(e.appUi.serpTitle)}function At(e){return e.appUi.serpDescription}function Nt(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Lt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function $t(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(3);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(2),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},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){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(51),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(37).Symbol;e.exports=r},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=l(n(34)),i=l(n(46)),o=l(n(49));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=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 i=(0,o.default)(t);try{return s(i,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){var r=n(36),a=n(50),i=n(53),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(2);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["tabId","onClick","children","selected"];function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(){return(k=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}).apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var _=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=O(e,d);return wp.element.createElement(p.Button,k({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,a=w(i);function i(){var e;f(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,d=Object(s.find)(m,{name:t}),f=o+"-"+d.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),d&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(d)))}}])&&b(t.prototype,n),r&&b(t,r),i}(o.Component),E=Object(u.withInstanceId)(j),T=n(27),S=function(e){var t=Object(T.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},I=n(31),C=n(39),D=n.n(C),P=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?U(e):t}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(I.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(P,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&A(t.prototype,n),a&&A(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),B=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object(B.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(B.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(13),V=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),W=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(33),$=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(J(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),J(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(Y.a,null)," ",f&&wp.element.createElement(W,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object($.a)(g,z.Helpers.sanitizeText(Object(B.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),X=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(Q,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(G,null),wp.element.createElement(V,null))})),ee=n(9),te=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?ee.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ee.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ne=n(12),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ne.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ae(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ie(){return(ie=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}).apply(this,arguments)}var oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,ie({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function se(){return(se=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}).apply(this,arguments)}var ue=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,se({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ce,null),"app"===e.cardType&&wp.element.createElement(le,null))})),pe=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:oe,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:ue,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},me=n(3),de=n.n(me);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(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)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var a=ve(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(l,e);var t,n,a,i=ge(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ye(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=de()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=de()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(P,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){de.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=de()(this.component);e.animate({opacity:.01},1500,(function(){var t=de()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&fe(t.prototype,n),a&&fe(t,a),l}(o.Component),Oe=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:X},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:pe}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ke}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(Oe,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),je=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ee=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Te=n(30);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(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)}}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var a=Ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(l,e);var t,n,a,i=Pe(l);function l(){return Ie(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Te.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ee,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ce(t.prototype,n),a&&Ce(t,a),l}(o.Component),Re=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ne),Me=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fe=n(29),Le=n.n(Fe);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(){return(ze=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}).apply(this,arguments)}function Be(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)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var a=Ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(i,e);var t,n,r,a=Ke(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(We(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Le.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",ze({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",ze({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Be(t.prototype,n),r&&Be(t,r),i}(o.Component);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(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)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var a=tt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?et(e):t}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(l,e);var t,n,a,i=Qe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(et(t)),window.rankMathEditor.focusKeywordField=et(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement($e,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=de.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=de.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=de()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Ze(t.prototype,n),a&&Ze(t,a),l}(o.Component),rt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(nt),at=n(28),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Ee,null,wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(at.a,null),wp.element.createElement(Me.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(rt,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ee,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(Q,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);Object(s.defaults)(n,yt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=n(40),Et=n.n(jt),Tt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=de()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Et()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};de()((function(){Tt.init()}));var St=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(E,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:je,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:St},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(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)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},,function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(47),l=n(48),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);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){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54),a=n(36),i=n(56),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(55),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(57),a=n(60);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(38),a=n(58),i=n(59),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(38),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),i=n(4),o=n(63),l=n(6),c=n(44),s=n(1),u=n(15),p=n.n(u),m=n(11),d=n(9);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getContent()}}).then((function(e){Object(s.isString)(e.slug)&&Object(i.dispatch)("rank-math").updatePermalink(e.slug),Object(l.doAction)("rank_math_metadata_updated",e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&Object(i.select)("rank-math").hasSchemaUpdated()){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(64),v=n.n(y),k=n(5),O=n(43),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};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)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(23),I=n(24),C=n(22);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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)}}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(){return o.MediaUpload},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",F),A(U(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=C.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:C.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new w),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},11:function(e,t){e.exports=wp.url},12:function(e,t){e.exports=wp.blockEditor},16:function(e,t){e.exports=wp.richText},2:function(e,t){e.exports=wp.components},31:function(e,t){e.exports=wp.htmlEntities},5:function(e,t){e.exports=wp.element},77:function(e,t,r){"use strict";r.r(t);var n=r(16),o=r(0),i=r(11),a=r(31),c=r(1),l=r(5);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=r(10),f=r.n(p);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){return Object(l.createElement)("path",e)},d=function(e){var t=e.className,r=e.isPressed,n=O(O({},s(e,["className","isPressed"])),{},{className:f()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(l.createElement)("svg",n)},m=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),j=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),h=r(12),v=r(2);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=Object(v.withSpokenMessages)((function(e){var t=e.isActive,r=e.activeAttributes,a=e.addingLink,u=e.value,s=e.onChange,p=e.speak,f=e.stopAddingLink,b=e.contentRef,O=P(Object(l.useState)(),2),y=O[0],d=O[1],m=w({url:r.url,type:r.type,id:r.id,opensInNewTab:"_blank"===r.target,noFollow:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("nofollow"),sponsored:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("sponsored")},y),j=Object(l.useRef)(!!a&&"firstElement"),g=[{id:"opensInNewTab",title:Object(o.__)("Open in new tab.","rank-math")},{id:"noFollow",title:Object(o.__)("Set to nofollow.","rank-math")},{id:"sponsored",title:Object(o.__)("Set to sponsored.","rank-math")}],k=Object(n.useAnchorRef)({ref:b,value:u,settings:I});return wp.element.createElement(v.Popover,{anchorRef:k,focusOnMount:j.current,onClose:f,position:"bottom center"},wp.element.createElement(h.__experimentalLinkControl,{value:m,onChange:function(e){e=w(w({},y),e);var r=m.url===e.url&&(m.opensInNewTab!==e.opensInNewTab||m.noFollow!==e.noFollow||m.sponsored!==e.sponsored),a=r&&Object(c.isUndefined)(e.url);if(d(a?e:void 0),!a){var l=Object(i.prependHTTP)(e.url),b=function(e){var t=e.url,r=e.opensInNewWindow,n=e.noFollow,i=e.sponsored,a=e.text,l=e.type,u=e.id,s={type:"rankmath/link",attributes:{url:t}},p=[];if(r){if(s.attributes.target="_blank",!Object(c.isUndefined)(a)){var f=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);s.attributes["aria-label"]=f}p.push("noreferrer noopener")}return l&&(s.attributes.type=l),u&&(s.attributes.id=u),n&&p.push("nofollow"),i&&p.push("sponsored"),p.length>0&&(s.attributes.rel=p.join(" ")),s}({url:l,type:e.type,id:Object(c.isUndefined)(e.id)||Object(c.isNull)(e.id)?void 0:String(e.id),opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if(Object(n.isCollapsed)(u)&&!t){var O=e.title||l,j=Object(n.applyFormat)(Object(n.create)({text:O}),b,0,O.length);s(Object(n.insert)(u,j))}else{var h=Object(n.applyFormat)(u,b);h.start=h.end,h.activeFormats=[],s(h)}r||f(),!function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var r=Object(i.getProtocol)(t);if(!Object(i.isValidProtocol)(r))return!1;if(Object(c.startsWith)(r,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var n=Object(i.getAuthority)(t);if(!Object(i.isValidAuthority)(n))return!1;var o=Object(i.getPath)(t);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(t);if(a&&!Object(i.isValidQueryString)(a))return!1;var l=Object(i.getFragment)(t);if(l&&!Object(i.isValidFragment)(l))return!1}return!(Object(c.startsWith)(t,"#")&&!Object(i.isValidFragment)(t))}(l)?p(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive"):p(t?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive")}},forceIsEditingLink:a,settings:g}))}));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F="rankmath/link";var C=function(e){var t=e.isActive,r=e.activeAttributes,a=e.value,u=e.onChange,s=e.onFocus,p=e.contentRef,f=A(Object(l.useState)(!1),2),b=f[0],O=f[1];function y(){var e=Object(n.getTextContent)(Object(n.slice)(a));e&&Object(i.isURL)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:e}})):e&&Object(i.isEmail)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:"mailto:".concat(e)}})):O(!0)}function d(){var e=a;Object(c.map)(["core/link","rankmath/link"],(function(t){e=Object(n.removeFormat)(e,t)})),u(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))}return wp.element.createElement(React.Fragment,null,wp.element.createElement(h.RichTextShortcut,{type:"primary",character:"k",onUse:y}),wp.element.createElement(h.RichTextShortcut,{type:"primaryShift",character:"k",onUse:d}),t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:m,title:Object(o.__)("Unlink","rank-math"),onClick:d,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:j,title:Object(o.__)("Link","rank-math"),onClick:y,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(b||t)&&wp.element.createElement(x,{addingLink:b,stopAddingLink:function(){O(!1),s()},isActive:t,activeAttributes:r,value:a,onChange:u,contentRef:p}))},I={name:"rankmath/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",target:"target",rel:"rel"},__unstablePasteRule:function(e,t){var r=t.html,o=t.plainText;if(Object(n.isCollapsed)(e))return e;var c=(r||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(n.applyFormat)(e,{type:"rankmath/link",attributes:{url:Object(a.decodeEntities)(c)}})):e},edit:C},R=["name"];function H(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}wp.domReady((function(){[I].forEach((function(e){var t=e.name,r=H(e,R);t&&(Object(n.unregisterFormatType)("core/link"),Object(n.registerFormatType)(t,r))}))}))}});
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},11:function(e,t){e.exports=wp.url},12:function(e,t){e.exports=wp.blockEditor},16:function(e,t){e.exports=wp.richText},2:function(e,t){e.exports=wp.components},31:function(e,t){e.exports=wp.htmlEntities},5:function(e,t){e.exports=wp.element},77:function(e,t,r){"use strict";r.r(t);var n=r(16),o=r(0),i=r(11),a=r(31),c=r(1),l=r(5);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=r(10),f=r.n(p);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){return Object(l.createElement)("path",e)},d=function(e){var t=e.className,r=e.isPressed,n=O(O({},s(e,["className","isPressed"])),{},{className:f()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(l.createElement)("svg",n)},m=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),j=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),v=r(12),h=r(2);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=Object(h.withSpokenMessages)((function(e){var t=e.isActive,r=e.activeAttributes,a=e.addingLink,u=e.value,s=e.onChange,p=e.speak,f=e.stopAddingLink,b=e.contentRef,O=P(Object(l.useState)(),2),y=O[0],d=O[1],m=w({url:r.url,type:r.type,id:r.id,opensInNewTab:"_blank"===r.target,noFollow:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("nofollow"),sponsored:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("sponsored")},y),j=Object(l.useRef)(!!a&&"firstElement"),g=[{id:"opensInNewTab",title:Object(o.__)("Open in new tab.","rank-math")},{id:"noFollow",title:Object(o.__)("Set to nofollow.","rank-math")},{id:"sponsored",title:Object(o.__)("Set to sponsored.","rank-math")}],k=Object(n.useAnchorRef)({ref:b,value:u,settings:I});return wp.element.createElement(h.Popover,{anchorRef:k,focusOnMount:j.current,onClose:f,position:"bottom center"},wp.element.createElement(v.__experimentalLinkControl,{value:m,onChange:function(e){e=w(w({},y),e);var r=m.url===e.url&&(m.opensInNewTab!==e.opensInNewTab||m.noFollow!==e.noFollow||m.sponsored!==e.sponsored),a=r&&Object(c.isUndefined)(e.url);if(d(a?e:void 0),!a){var l=Object(i.prependHTTP)(e.url),b=function(e){var t=e.url,r=e.opensInNewWindow,n=e.noFollow,i=e.sponsored,a=e.text,l=e.type,u=e.id,s={type:"core/link",attributes:{url:t}},p=[];if(r){if(s.attributes.target="_blank",!Object(c.isUndefined)(a)){var f=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);s.attributes["aria-label"]=f}p.push("noreferrer noopener")}return l&&(s.attributes.type=l),u&&(s.attributes.id=u),n&&p.push("nofollow"),i&&p.push("sponsored"),p.length>0&&(s.attributes.rel=p.join(" ")),s}({url:l,type:e.type,id:Object(c.isUndefined)(e.id)||Object(c.isNull)(e.id)?void 0:String(e.id),opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if(Object(n.isCollapsed)(u)&&!t){var O=e.title||l,j=Object(n.applyFormat)(Object(n.create)({text:O}),b,0,O.length);s(Object(n.insert)(u,j))}else{var v=Object(n.applyFormat)(u,b);v.start=v.end,v.activeFormats=[],s(v)}r||f(),!function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var r=Object(i.getProtocol)(t);if(!Object(i.isValidProtocol)(r))return!1;if(Object(c.startsWith)(r,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var n=Object(i.getAuthority)(t);if(!Object(i.isValidAuthority)(n))return!1;var o=Object(i.getPath)(t);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(t);if(a&&!Object(i.isValidQueryString)(a))return!1;var l=Object(i.getFragment)(t);if(l&&!Object(i.isValidFragment)(l))return!1}return!(Object(c.startsWith)(t,"#")&&!Object(i.isValidFragment)(t))}(l)?p(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive"):p(t?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive")}},forceIsEditingLink:a,settings:g}))}));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F="core/link";var C=function(e){var t=e.isActive,r=e.activeAttributes,a=e.value,c=e.onChange,u=e.onFocus,s=e.contentRef,p=A(Object(l.useState)(!1),2),f=p[0],b=p[1];function O(){var e=Object(n.getTextContent)(Object(n.slice)(a));e&&Object(i.isURL)(e)?c(Object(n.applyFormat)(a,{type:F,attributes:{url:e}})):e&&Object(i.isEmail)(e)?c(Object(n.applyFormat)(a,{type:F,attributes:{url:"mailto:".concat(e)}})):b(!0)}function y(){var e=a;e=Object(n.removeFormat)(e,"core/link"),c(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))}return wp.element.createElement(React.Fragment,null,wp.element.createElement(v.RichTextShortcut,{type:"primary",character:"k",onUse:O}),wp.element.createElement(v.RichTextShortcut,{type:"primaryShift",character:"k",onUse:y}),t&&wp.element.createElement(v.RichTextToolbarButton,{name:"link",icon:m,title:Object(o.__)("Unlink","rank-math"),onClick:y,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&wp.element.createElement(v.RichTextToolbarButton,{name:"link",icon:j,title:Object(o.__)("Link","rank-math"),onClick:O,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(f||t)&&wp.element.createElement(x,{addingLink:f,stopAddingLink:function(){b(!1),u()},isActive:t,activeAttributes:r,value:a,onChange:c,contentRef:s}))},I={name:"core/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",target:"target",rel:"rel"},__unstablePasteRule:function(e,t){var r=t.html,o=t.plainText;if(Object(n.isCollapsed)(e))return e;var c=(r||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(n.applyFormat)(e,{type:"core/link",attributes:{url:Object(a.decodeEntities)(c)}})):e},edit:C},R=["name"];function H(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}wp.domReady((function(){[I].forEach((function(e){var t=e.name,r=H(e,R);t&&(Object(n.unregisterFormatType)("core/link"),Object(n.registerFormatType)(t,r))}))}))}});
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n.n(r);function i(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)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return C})),n.d(r,"updatePrimaryTermID",(function(){return D})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return N})),n.d(r,"resetRedirection",(function(){return A})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return H})),n.d(r,"updateSnippetPreviewType",(function(){return L})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return q})),n.d(r,"updateTwitterHasOverlay",(function(){return $})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Pe})),n.d(r,"setTemplateTab",(function(){return Ce})),n.d(r,"updateEditSchemas",(function(){return De})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ne})),n.d(r,"saveSchema",(function(){return Ae})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return qe}));var i={};n.r(i),n.d(i,"getAppData",(function(){return $e})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Pt})),n.d(i,"hasRedirect",(function(){return Ct})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return Nt})),n.d(i,"isSnippetEditorOpen",(function(){return At})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Ht})),n.d(i,"getSchemas",(function(){return Lt})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return qt})),n.d(i,"getTwitterDescription",(function(){return $t})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function P(e){return s("description",e,"rank_math_description")}function C(e){return s("featuredImage",e)}function D(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function N(e){return u("redirectionItem",e)}function A(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function H(e){return u("isSnippetEditorOpen",e)}function L(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function q(e){return s("twitterImage",e,"rank_math_twitter_image")}function $(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Pe(e){return u("editorTab",e)}function Ce(e){return u("templateTab",e)}function De(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:Le.title?Le.title:Le.titleTemplate,description:Le.description,keywords:Le.focusKeywords,pillarContent:Le.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Le.primaryTerm,robots:Le.robots,advancedRobots:Le.advancedRobots,canonicalUrl:Le.canonicalUrl,breadcrumbTitle:Le.breadcrumbTitle,showScoreFrontend:Le.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Le.facebookTitle,facebookImage:Le.facebookImage,facebookImageID:Le.facebookImageID,facebookAuthor:Le.facebookAuthor,facebookDescription:Le.facebookDescription,facebookHasOverlay:Le.facebookHasOverlay,facebookImageOverlay:Le.facebookImageOverlay,twitterTitle:Le.twitterTitle,twitterImage:Le.twitterImage,twitterAuthor:Le.twitterAuthor,twitterImageID:Le.twitterImageID,twitterCardType:Le.twitterCardType,twitterUseFacebook:Le.twitterUseFacebook,twitterDescription:Le.twitterDescription,twitterHasOverlay:Le.twitterHasOverlay,twitterImageOverlay:Le.twitterImageOverlay,twitterPlayerUrl:Le.twitterPlayerUrl,twitterPlayerSize:Le.twitterPlayerSize,twitterPlayerStream:Le.twitterPlayerStream,twitterPlayerStreamCtype:Le.twitterPlayerStreamCtype,twitterAppDescription:Le.twitterAppDescription,twitterAppIphoneName:Le.twitterAppIphoneName,twitterAppIphoneID:Le.twitterAppIphoneID,twitterAppIphoneUrl:Le.twitterAppIphoneUrl,twitterAppIpadName:Le.twitterAppIpadName,twitterAppIpadID:Le.twitterAppIpadID,twitterAppIpadUrl:Le.twitterAppIpadUrl,twitterAppGoogleplayName:Le.twitterAppGoogleplayName,twitterAppGoogleplayID:Le.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Le.twitterAppGoogleplayUrl,twitterAppCountry:Le.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(He(e={},n.key,n.value),He(e,"dirtyMetadata",r),e)):t}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function $e(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Pt(e){return e.appUi.redirectionItem}function Ct(e){return e.appUi.hasRedirect}var Dt=n(13);function xt(e){return Object(Dt.a)(e.appUi.serpTitle)}function Nt(e){return e.appUi.serpDescription}function At(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Ht(e){return e.appUi.schemaUpdated}function Lt(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function qt(e){return e.appData.twitterTitle}function $t(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(3);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(2),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},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){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(51),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(37).Symbol;e.exports=r},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=l(n(34)),i=l(n(46)),o=l(n(49));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=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 i=(0,o.default)(t);try{return s(i,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){var r=n(36),a=n(50),i=n(53),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(15),o=n.n(i),l=n(11),c=n(5),s=n(4),u=n(2);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,c=f(p);function p(){var e;return m(this,p),(e=c.apply(this,arguments)).onChange=e.onChange.bind(g(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(l.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(u.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(u.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&d(t.prototype,n),i&&d(t,i),p}(c.Component);t.a=y},,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(2);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["tabId","onClick","children","selected"];function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(){return(k=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}).apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var _=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=O(e,d);return wp.element.createElement(p.Button,k({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,a=w(i);function i(){var e;f(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,d=Object(s.find)(m,{name:t}),f=o+"-"+d.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),d&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(d)))}}])&&b(t.prototype,n),r&&b(t,r),i}(o.Component),E=Object(u.withInstanceId)(j),T=n(27),S=function(e){var t=Object(T.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},I=n(31),P=n(39),C=n.n(P),D=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),C()({mixedString:r,components:n})};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?U(e):t}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(I.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(D,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&N(t.prototype,n),a&&N(t,a),l}(o.Component),L=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),B=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object(B.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(B.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(13),V=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),W=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(33),q=n(19),$=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},$(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},$(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(J(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),J(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(Y.a,null)," ",f&&wp.element.createElement(W,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(q.a)(g,z.Helpers.sanitizeText(Object(B.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(q.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(q.a)(u,z.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),X=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(Q,{showScore:!1,showDevices:!0}),wp.element.createElement(L,null),wp.element.createElement(G,null),wp.element.createElement(V,null))})),ee=n(9),te=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?ee.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ee.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ne=n(12),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ne.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ae(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ie(){return(ie=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}).apply(this,arguments)}var oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,ie({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function se(){return(se=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}).apply(this,arguments)}var ue=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,se({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ce,null),"app"===e.cardType&&wp.element.createElement(le,null))})),pe=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:oe,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:ue,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},me=n(3),de=n.n(me);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(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)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var a=ve(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(l,e);var t,n,a,i=ge(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ye(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=de()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=de()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(D,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){de.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=de()(this.component);e.animate({opacity:.01},1500,(function(){var t=de()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&fe(t.prototype,n),a&&fe(t,a),l}(o.Component),Oe=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:X},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:pe}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ke}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(Oe,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),je=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ee=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Te=n(30);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(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)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ne(e);if(t){var a=Ne(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(l,e);var t,n,a,i=De(l);function l(){return Ie(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Te.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ee,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Pe(t.prototype,n),a&&Pe(t,a),l}(o.Component),Re=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ae),Me=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fe=n(29),He=n.n(Fe);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(){return(ze=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}).apply(this,arguments)}function Be(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)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var a=Ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(i,e);var t,n,r,a=Ke(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(We(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new He.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",ze({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",ze({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Be(t.prototype,n),r&&Be(t,r),i}(o.Component);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(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)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var a=tt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?et(e):t}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(l,e);var t,n,a,i=Qe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(et(t)),window.rankMathEditor.focusKeywordField=et(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(qe,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=de.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=de.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=de()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Ze(t.prototype,n),a&&Ze(t,a),l}(o.Component),rt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(nt),at=n(28),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Ee,null,wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(at.a,null),wp.element.createElement(Me.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(rt,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ee,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(Q,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);Object(s.defaults)(n,yt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=n(40),Et=n.n(jt),Tt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=de()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Et()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};de()((function(){Tt.init()}));var St=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(E,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:je,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:St},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(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)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(47),l=n(48),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);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){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54),a=n(36),i=n(56),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(55),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(57),a=n(60);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(38),a=n(58),i=n(59),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(38),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=wp.plugins},function(e,t,n){var r=n(34);function a(e){return r.createElement("svg",e,r.createElement("g",{fill:"#fff"},[r.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),r.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),i=n(0),o=n(4),l=n(5),c=n(61),s=n(6),u=n(45),p=n(43),m=n(44),d=n(1),h=n(15),f=n.n(h),b=n(11),g=n(9),w=n(32);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(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)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){if(Object(w.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(o.select)("core").getMedia(e);if(!Object(d.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(w.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(d.debounce)(this.refresh,500),Object(o.subscribe)(this.subscriber),Object(o.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=v({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(o.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(o.select)("rank-math").getDirtyMetadata();Object(d.isEmpty)(t)||(f()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getPostAttribute("content")}}),Object(o.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(o.select)("rank-math").getSchemas();if(!Object(d.isEmpty)(t)&&Object(o.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var n=Object(o.select)("rank-math").getEditSchemas();f()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(d.isEmpty)(r)){var a=v({},t),i=v({},n);Object(d.map)(r,(function(e,t){a["schema-"+e]=v({},a[t]),i["schema-"+e]=v({},i[t]),delete a[t],delete i[t]})),Object(o.dispatch)("rank-math").updateSchemas(a),Object(o.dispatch)("rank-math").updateEditSchemas(i)}setTimeout((function(){Object(o.dispatch)("rank-math").schemaUpdated(!1),Object(s.doAction)("rank_math_schema_changed"),e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(o.select)("rank-math").getRedirectionItem();if(!Object(d.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var n=Object(o.dispatch)("rank-math"),r=Object(o.dispatch)("core/notices");n.resetRedirection(),f()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(r.createInfoNotice(t.message,{id:"redirectionNotice"}),n.updateRedirection("redirectionID",0)):"update"===t.action?r.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(n.updateRedirection("redirectionID",t.id),r.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,r.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(d.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(o.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(o.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(i.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(d.isInteger)(e.id))return this.initialize?void Object(d.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(d.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(o.dispatch)("rank-math").updatePostID(e),Object(o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){g.a.setVariable("title",e),g.a.setVariable("term",e),g.a.setVariable("author",e),Object(o.dispatch)("rank-math").updateSerpTitle(Object(o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){g.a.setVariable("excerpt",e),g.a.setVariable("excerpt_only",e),g.a.setVariable("wc_shortdesc",e),g.a.setVariable("seo_description",e),Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(o.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&O(t.prototype,n),r&&O(t,r),e}(),j=n(10),E=n.n(j),T=n(62),S=n.n(T),I=n(33),P=n(20);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,n=e.isLoaded,r=e.score,a=E()("rank-math-toolbar-score",(C(t={},Object(P.a)(r),!0),C(t,"loading",!n),t));return wp.element.createElement("div",{className:a},wp.element.createElement(I.a,null),wp.element.createElement(S.a,null))})),x=n(2),N=Object(o.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(d.isEmpty)(n)&&(n=t.getSerpTitle()),{title:n,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,n=e.permalink,r=encodeURI(n),a=encodeURI(t);return wp.element.createElement(l.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+r+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"email"})))))}));function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=U(n);function n(){return R(this,n),t.apply(this,arguments)}return n}(n(41).a),z=Object(o.withSelect)((function(e,t){var n=t.slug,r=e("core").getTaxonomy(n),a=e("core/editor").getEditedPostAttribute;return{taxonomy:r,selectedTermIds:r?a(r.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(L),B=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(l.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(x.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(z,e))):wp.element.createElement(t,e)},G=n(23),K=n(24),V=n(22);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(){return(Y=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}).apply(this,arguments)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(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)}}function Z(e,t,n){return(Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ee(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(m,e);var t,n,r,a=Q(m);function m(){return q(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Z(ee(m.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector()}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=G.a,this.RankMathAfterFocusKeyword=V.a,this.RankMathAdvancedTab=K.a,this.slots={AfterEditor:G.a,AfterFocusKeyword:V.a,AdvancedTab:K.a}}},{key:"registerSidebar",value:function(){Object(c.registerPlugin)("rank-math",{icon:wp.element.createElement(D,null),render:function(){return wp.element.createElement(l.Fragment,null,wp.element.createElement(u.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(D,null)},i.__("Rank Math","rank-math")),wp.element.createElement(u.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},wp.element.createElement(p.a,null)))}})}},{key:"registerPostPublish",value:function(){Object(c.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(u.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(l.Fragment,null)},wp.element.createElement(N,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(B,Y({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&$(t.prototype,n),r&&$(t,r),m}(m.a);a()(document).ready((function(){window.rankMathEditor=new te,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new _)}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n.n(r);function i(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)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return C})),n.d(r,"updatePrimaryTermID",(function(){return D})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return N})),n.d(r,"resetRedirection",(function(){return A})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return H})),n.d(r,"updateSnippetPreviewType",(function(){return L})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return q})),n.d(r,"updateTwitterHasOverlay",(function(){return $})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Pe})),n.d(r,"setTemplateTab",(function(){return Ce})),n.d(r,"updateEditSchemas",(function(){return De})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ne})),n.d(r,"saveSchema",(function(){return Ae})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return qe}));var i={};n.r(i),n.d(i,"getAppData",(function(){return $e})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return ct})),n.d(i,"isRefreshing",(function(){return lt})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Pt})),n.d(i,"hasRedirect",(function(){return Ct})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return Nt})),n.d(i,"isSnippetEditorOpen",(function(){return At})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Ht})),n.d(i,"getSchemas",(function(){return Lt})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return qt})),n.d(i,"getTwitterDescription",(function(){return $t})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return cn})),n.d(i,"getTwitterAppIpadUrl",(function(){return ln})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),c=n(9),l=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(l.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(l.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(l.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(l.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return c.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function P(e){return s("description",e,"rank_math_description")}function C(e){return s("featuredImage",e)}function D(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function N(e){return u("redirectionItem",e)}function A(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=c.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=c.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function H(e){return u("isSnippetEditorOpen",e)}function L(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function q(e){return s("twitterImage",e,"rank_math_twitter_image")}function $(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function ce(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function le(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Pe(e){return u("editorTab",e)}function Ce(e){return u("templateTab",e)}function De(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(l.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:Le.title?Le.title:Le.titleTemplate,description:Le.description,keywords:Le.focusKeywords,pillarContent:Le.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Le.primaryTerm,robots:Le.robots,advancedRobots:Le.advancedRobots,canonicalUrl:Le.canonicalUrl,breadcrumbTitle:Le.breadcrumbTitle,showScoreFrontend:Le.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Le.facebookTitle,facebookImage:Le.facebookImage,facebookImageID:Le.facebookImageID,facebookAuthor:Le.facebookAuthor,facebookDescription:Le.facebookDescription,facebookHasOverlay:Le.facebookHasOverlay,facebookImageOverlay:Le.facebookImageOverlay,twitterTitle:Le.twitterTitle,twitterImage:Le.twitterImage,twitterAuthor:Le.twitterAuthor,twitterImageID:Le.twitterImageID,twitterCardType:Le.twitterCardType,twitterUseFacebook:Le.twitterUseFacebook,twitterDescription:Le.twitterDescription,twitterHasOverlay:Le.twitterHasOverlay,twitterImageOverlay:Le.twitterImageOverlay,twitterPlayerUrl:Le.twitterPlayerUrl,twitterPlayerSize:Le.twitterPlayerSize,twitterPlayerStream:Le.twitterPlayerStream,twitterPlayerStreamCtype:Le.twitterPlayerStreamCtype,twitterAppDescription:Le.twitterAppDescription,twitterAppIphoneName:Le.twitterAppIphoneName,twitterAppIphoneID:Le.twitterAppIphoneID,twitterAppIphoneUrl:Le.twitterAppIphoneUrl,twitterAppIpadName:Le.twitterAppIpadName,twitterAppIpadID:Le.twitterAppIpadID,twitterAppIpadUrl:Le.twitterAppIpadUrl,twitterAppGoogleplayName:Le.twitterAppGoogleplayName,twitterAppGoogleplayID:Le.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Le.twitterAppGoogleplayUrl,twitterAppCountry:Le.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(He(e={},n.key,n.value),He(e,"dirtyMetadata",r),e)):t}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function $e(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function ct(e){return e.appUi.selectedKeyword}function lt(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Pt(e){return e.appUi.redirectionItem}function Ct(e){return e.appUi.hasRedirect}var Dt=n(13);function xt(e){return Object(Dt.a)(e.appUi.serpTitle)}function Nt(e){return e.appUi.serpDescription}function At(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Ht(e){return e.appUi.schemaUpdated}function Lt(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function qt(e){return e.appData.twitterTitle}function $t(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function cn(e){return e.appData.twitterAppIpadName}function ln(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};c.Slot=o,t.a=c},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};c.Slot=o,t.a=c},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};c.Slot=o,t.a=c},function(e,t,n){"use strict";n(3);var r=n(8),a=n(1),i=n(6),o=n(9),c=n(13),l=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return l(i[0],160)}return l(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(c.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function c(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,l=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);l=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,l,t),isInvalid:o(n,t),isInvalidWidth:!!s&&c(l,t),count:n+" / "+t.max,pixelWidth:s?l+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(2),c=n(4);t.a=Object(a.compose)(Object(c.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},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){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(51),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(37).Symbol;e.exports=r},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=c(n(34)),i=c(n(46)),o=c(n(49));function c(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function s(e,t){var n,o,c,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+l);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],c=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(c,e),d=s(e.slice(c+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}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 i=(0,o.default)(t);try{return s(i,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){var r=n(36),a=n(50),i=n(53),o=Math.max,c=Math.min;e.exports=function(e,t,n){var l,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=l,r=s;return l=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?c(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&l?w(e):(l=s=void 0,p)}function _(){var e=a(),n=v(e);if(l=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,l=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(15),o=n.n(i),c=n(11),l=n(5),s=n(4),u=n(2);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,l=f(p);function p(){var e;return m(this,p),(e=l.apply(this,arguments)).onChange=e.onChange.bind(g(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(u.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(u.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&d(t.prototype,n),i&&d(t,i),p}(l.Component);t.a=y},,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),c=n(10),l=n.n(c),s=n(1),u=n(7),p=n(2);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["tabId","onClick","children","selected"];function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(){return(k=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}).apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var _=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=O(e,d);return wp.element.createElement(p.Button,k({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,a=w(i);function i(){var e;f(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,c=n.orientation,u=void 0===c?"horizontal":c,m=n.tabs,d=Object(s.find)(m,{name:t}),f=o+"-"+d.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(_,{className:l()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:l()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(_,{className:l()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),d&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(d)))}}])&&b(t.prototype,n),r&&b(t,r),i}(o.Component),E=Object(u.withInstanceId)(j),T=n(27),S=function(e){var t=Object(T.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:l()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},I=n(31),P=n(39),C=n.n(P),D=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),C()({mixedString:r,components:n})};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?U(e):t}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(c,e);var t,n,a,i=R(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=c,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(I.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(D,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&N(t.prototype,n),a&&N(t,a),c}(o.Component),L=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),B=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object(B.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(B.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(13),V=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),W=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=l()("button button-secondary button-small",{active:"desktop"===t}),a=l()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(33),q=n(19),$=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},$(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},$(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,c=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=l()("serp-preview",(J(t={"expanded-preview":""!==c},"".concat(c,"-preview"),""!==c&&f),J(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(Y.a,null)," ",f&&wp.element.createElement(W,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(q.a)(g,z.Helpers.sanitizeText(Object(B.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(q.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(q.a)(u,z.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),X=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(Q,{showScore:!1,showDevices:!0}),wp.element.createElement(L,null),wp.element.createElement(G,null),wp.element.createElement(V,null))})),ee=n(9),te=function(e){var t=l()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?ee.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ee.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ne=n(12),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ne.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ae(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ie(){return(ie=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}).apply(this,arguments)}var oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,ie({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function se(){return(se=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}).apply(this,arguments)}var ue=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,se({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(le,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),pe=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:oe,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:ue,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},me=n(3),de=n.n(me);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(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)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var a=ve(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(c,e);var t,n,a,i=ge(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=i.call(this))._handleRef=e._handleRef.bind(ye(e)),e}return t=c,(n=[{key:"componentDidMount",value:function(){var e=de()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=de()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(D,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){de.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=de()(this.component);e.animate({opacity:.01},1500,(function(){var t=de()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&fe(t.prototype,n),a&&fe(t,a),c}(o.Component),Oe=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,c=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:X},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:pe}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&c.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ke}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(Oe,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:c},(function(e){return Object(o.createElement)(e.view)}))))})),je=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ee=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=l()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Te=n(30);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(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)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ne(e);if(t){var a=Ne(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(c,e);var t,n,a,i=De(c);function c(){return Ie(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=l()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Te.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ee,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Pe(t.prototype,n),a&&Pe(t,a),c}(o.Component),Re=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ae),Me=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fe=n(29),He=n.n(Fe);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(){return(ze=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}).apply(this,arguments)}function Be(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)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var a=Ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(i,e);var t,n,r,a=Ke(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(We(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new He.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",ze({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",ze({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Be(t.prototype,n),r&&Be(t,r),i}(o.Component);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(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)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var a=tt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?et(e):t}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(c,e);var t,n,a,i=Qe(c);function c(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(et(t)),window.rankMathEditor.focusKeywordField=et(t),t}return t=c,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(qe,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=de.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=de.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=de()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Ze(t.prototype,n),a&&Ze(t,a),c}(o.Component),rt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(nt),at=n(28),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Ee,null,wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(at.a,null),wp.element.createElement(Me.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(rt,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ee,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),ct=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(Q,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),lt=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=lt(n,t,r),"index"===t&&(n=lt(n,"noindex",!r)),"noindex"===t&&(n=lt(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);Object(s.defaults)(n,yt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=n(40),Et=n.n(jt),Tt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=de()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Et()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};de()((function(){Tt.init()}));var St=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(E,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ct,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:je,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:St},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),c=n(0),l=n(4);function s(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)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(l.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),c=this.dataCollector.getData(),l=new r.Paper("",{locale:rankMath.localeFull});return l.setTitle(n.appUi.serpTitle),l.setPermalink(c.slug),l.setDescription(n.appUi.serpDescription),l.setUrl(c.permalink),l.setText(Object(a.applyFilters)("rank_math_content",c.content)),l.setKeyword(e),l.setKeywords(t),Object(o.isUndefined)(c.featuredImage)||(l.setThumbnail(c.featuredImage.source_url),l.setThumbnailAltText(r.Helpers.removeDiacritics(c.featuredImage.alt_text))),l}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),c=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();c.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(l.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(c).then((function(){Object(l.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(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)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(47),c=n(48),l="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===c){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,c=e.result,l=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,c,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=l+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),c.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,c],u=0;(l=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(35);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){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54),a=n(36),i=n(56),o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||l.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(55),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(57),a=n(60);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(38),a=n(58),i=n(59),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(38),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[c]=n:delete e[c]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=wp.plugins},function(e,t,n){var r=n(34);function a(e){return r.createElement("svg",e,r.createElement("g",{fill:"#fff"},[r.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),r.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),i=n(0),o=n(4),c=n(5),l=n(61),s=n(6),u=n(45),p=n(43),m=n(44),d=n(1),h=n(15),f=n.n(h),b=n(11),g=n(9),w=n(32);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(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)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){if(Object(w.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(o.select)("core").getMedia(e);if(!Object(d.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(w.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(d.debounce)(this.refresh,500),Object(o.subscribe)(this.subscriber),Object(o.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=v({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(o.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(o.select)("rank-math").getDirtyMetadata();Object(d.isEmpty)(t)||(f()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getPostAttribute("content")}}).then((function(e){Object(s.doAction)("rank_math_metadata_updated",e)})),Object(o.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(o.select)("rank-math").getSchemas();if(!Object(d.isEmpty)(t)&&Object(o.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var n=Object(o.select)("rank-math").getEditSchemas();f()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(d.isEmpty)(r)){var a=v({},t),i=v({},n);Object(d.map)(r,(function(e,t){a["schema-"+e]=v({},a[t]),i["schema-"+e]=v({},i[t]),delete a[t],delete i[t]})),Object(o.dispatch)("rank-math").updateSchemas(a),Object(o.dispatch)("rank-math").updateEditSchemas(i)}setTimeout((function(){Object(o.dispatch)("rank-math").schemaUpdated(!1),Object(s.doAction)("rank_math_schema_changed"),e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(o.select)("rank-math").getRedirectionItem();if(!Object(d.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var n=Object(o.dispatch)("rank-math"),r=Object(o.dispatch)("core/notices");n.resetRedirection(),f()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(r.createInfoNotice(t.message,{id:"redirectionNotice"}),n.updateRedirection("redirectionID",0)):"update"===t.action?r.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(n.updateRedirection("redirectionID",t.id),r.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,r.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(d.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(o.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(o.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(i.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(d.isInteger)(e.id))return this.initialize?void Object(d.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(d.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(o.dispatch)("rank-math").updatePostID(e),Object(o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){g.a.setVariable("title",e),g.a.setVariable("term",e),g.a.setVariable("author",e),Object(o.dispatch)("rank-math").updateSerpTitle(Object(o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){g.a.setVariable("excerpt",e),g.a.setVariable("excerpt_only",e),g.a.setVariable("wc_shortdesc",e),g.a.setVariable("seo_description",e),Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(o.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&O(t.prototype,n),r&&O(t,r),e}(),j=n(10),E=n.n(j),T=n(62),S=n.n(T),I=n(33),P=n(20);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,n=e.isLoaded,r=e.score,a=E()("rank-math-toolbar-score",(C(t={},Object(P.a)(r),!0),C(t,"loading",!n),t));return wp.element.createElement("div",{className:a},wp.element.createElement(I.a,null),wp.element.createElement(S.a,null))})),x=n(2),N=Object(o.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(d.isEmpty)(n)&&(n=t.getSerpTitle()),{title:n,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,n=e.permalink,r=encodeURI(n),a=encodeURI(t);return wp.element.createElement(c.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+r+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"email"})))))}));function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=U(n);function n(){return R(this,n),t.apply(this,arguments)}return n}(n(41).a),z=Object(o.withSelect)((function(e,t){var n=t.slug,r=e("core").getTaxonomy(n),a=e("core/editor").getEditedPostAttribute;return{taxonomy:r,selectedTermIds:r?a(r.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(L),B=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(c.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(x.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(z,e))):wp.element.createElement(t,e)},G=n(23),K=n(24),V=n(22);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(){return(Y=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}).apply(this,arguments)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(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)}}function Z(e,t,n){return(Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ee(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(m,e);var t,n,r,a=Q(m);function m(){return q(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Z(ee(m.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector()}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=G.a,this.RankMathAfterFocusKeyword=V.a,this.RankMathAdvancedTab=K.a,this.slots={AfterEditor:G.a,AfterFocusKeyword:V.a,AdvancedTab:K.a}}},{key:"registerSidebar",value:function(){Object(l.registerPlugin)("rank-math",{icon:wp.element.createElement(D,null),render:function(){return wp.element.createElement(c.Fragment,null,wp.element.createElement(u.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(D,null)},i.__("Rank Math","rank-math")),wp.element.createElement(u.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},wp.element.createElement(p.a,null)))}})}},{key:"registerPostPublish",value:function(){Object(l.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(u.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(c.Fragment,null)},wp.element.createElement(N,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(B,Y({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&$(t.prototype,n),r&&$(t,r),m}(m.a);a()(document).ready((function(){window.rankMathEditor=new te,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new _)}))}]);
|
@@ -1 +1 @@
|
|
1 |
-
<?php return ['abgelenkt','abgesturzt','absolut','abstossend','aburd','abweisen','adaquat','aggressiv','ahnungslos','akkurat','akta','alarmierend','alarmiert','albtraum','all-inclusive','allererste','allererster','allererstes','alleswisser','am schlechtesten','am wichtigsten','angewidert','angriff','angsteinflossend','Angstlich','animiert','ankundigung','anonym','anpassbar','anspruchslos','anstossig','antagonistisch','apokalypse','applaus','argumentativ','arm','armageddon','arrogant','atemberaubend','attacke','attraktiv','aufdeckend','aufgebracht','aufgedeckt','aufgeregt','aufheiternd','aufregend','aufregende','aufregenden','aufregung','aufstachelnd','aufstandisch','aufsteigend','auftreibend','augenoffnend','ausgelassen','ausgeruht','ausgespielt','ausgewahlt','ausgewuhlt','ausnutzen','aussergewohnlich','autark','authentisch','autoritat','backdoor','badass','beangstigend','bedenklich','bedingungslos','bedrohen','bedroht','beforderung','befreit','befriedigend','befriedigt','begehren','begeistern','begeistert','begeisterung','beherzt','behind the scenes','beichte','belaten','beleidigung','belohnung','bemerkenswert','beneiden','bequem','beromd','beruhmt','beschadigen','beschamend','beschmutzt','beschuldigen','beschutzen','besitz','bessesen','bestatigen','bestatigt','beste','bestimmt','bestrafen','betrug','betrugen','betydelsefull','bevisad','bewahrt','bewiesen','bewiesenermassen','bewusst','bezahlbar','bezaubernd','bizarre','blandande','bleich','blendend','blut','blutbad','blutig','bombe','bonanza','bonus','bosartig','bose','boshaft','brilliant','brodelnd','brutal','budget','bullshit','bully','bunt','bunte','bunten','case study','cash','challenge','challgene','chaos','cheat-sheet','clever','content','cool','courage','dankbar','daruber redet keiner','deadline','definitiv','dekadent','demoralisierend','demut','desillusioniert','detailiert','diagnose','die wahrheit','direkt','disastros','discount','dokument','dollar','dominieren','doppelt','download','dreckig','dreifach','dreistigkeit','dringend','dringlichkeit','dumm','dummkopf','dummlich','durchbruch','duselig','dynamik','echt','effektiv','effizient','ehrlich','eier','eifersuchtig','eifrig','eindeutig','eindrucksvoll','eine stufe besser','einfach','einfachheit','einfallsreich','eingebildet','eingeschrankt','eingesperrt','einmalig','einsam','eintauchen','einzigartig','eisern','eliminieren','elite','empathie','empfehle','empfehlen','enastaende','endeffekt','energie','energisch','energisk','enorm','entdecken','entfesselt','entfremdet','enthullen','enthullung','enthusiastisch','entmachtet','entsetzlich','entspannt','entzuckend','entzunden','epidemisch','episch','erbarmlich','erfolg','erfolgreich','erfolgsbilanz','erfreut','erfullen','erfullt','ergebnisse','ergreifen','erhaben','erheben','erhohen','erledigt','ermachtigt','ermudet','ernmutigt','ernsthaft','erobern','erroten','errungenschaft','erschaffen','erschrocken','ersehnen','ersparnisse','erstattbar','erstatten','erstaunlich','erste','ertrinken','essentiell','ethisch','euphorisch','exakt','exklusiv','exklusivitat','exkuisit','experte','explodieren','explosiv','exposed','extrem','exzellent','fahig','fahigkeiten','fail','falle','fangslande','fantasie','fantastischen','fantastisk','farbenfroh','farbenfrohe','faszinierend','faszinierende','faul','faux','faux pas','fehler','feindselig','feldstudie','fesselnd','festlich','festmahl','festplatte','final','fint','flirt','fluchtling','flussig','fokus','fokussiert','folter','formel','framgangsrik','frech','freebie','frei','freiheit','freudig','friedlich','frohlich','frohlichkeit','frustriert','fullandad','fullgora','fundamental','fur immer','furchtbar','furchtlos','gangster','garantiert','geblendet','geehrt','gefahr','gefahrlich','gefangen','gefangnis','gefeuert','gegensatzlich','gehassig','geheimnis','geheimnisse','geil','geisseln','geist','geistesgestort','gelassen','geld','geld zuruck','genial','gepackt','gerade angekommen','gerissen','geschenk','geschmuggelt','geschutzt','gestandnis','gestandnisse','gestopft','gestresst','gesucht','gesund','getauscht','getestet','getotet','gewaltig','gewalttatig','gewidmet','gewinnspiel','gier','gierig','gift','giftig','gigantisch','giveaway','glamourose','glansande','glanzend','glaube','glaubwurdig','gleichmassig','glittering','glitzernde','glomd','gluckselig','golden','grandios','grandiose','grandiosen','grandioses','grauenhaft','grausamkeit','grinsen','groesste','gross','grossartig','grossartige','grossartigen','grossartiger','grossartiges','grosse','grossen','grosste','grosszugig','grotesk','grube','grundlegend','gruselig','gunstig','hack','hamisch','hammer','handelsgeheimnis','hartnackig','hass','heilig','heimlich','heisshunger','heisshungrig','heiter','held','hell','herablassend','herausfordernd','herausforderung','herausvorderung','herrlichen','herrschend','hervorragend','herz','herzbrechend','herzerwahrmend','heute','hightech','hilflosigkeit','hilfreich','hilfsbereit','himmlisch','hinterhaltig','hoax','hocheffektiv','hochnasig','hochste','hoffnung','hoffnungsvoll','holle','holocaust','horror','how to','humor','hungrige','hurrikan','hypnotisch','hypnotisierend','idiot','idiotisch','illegal','immer','imponerande','informativ','inhalt','inkompetent','innovativ','insider','inspirerad','inspirierend','inspiriert','intelligent','intensiv','interessant','interessante','invasion','investment','ist da','jackpot','jederzeit kundigen','jetzt','jubilant','jumpstart','jung','kadaver','kampf','kand','katapult','katastrophe','kaufen','kein risiko','keine verpflichtung','kickstart','kindisch','kitschig','klaglich','klar','knast','kollabieren','kollosal','komfortabel','komisch','kompetitiv','komplett','kompromiss','komsich','konstruktiv','kontrollierend','kontrollverlust','kooperativ','kopie','korrupt','kostenlos','kraftfull','kraftig','kraftlos','kraftvoll','krankhaft','kreativ','kriese','kritisch','kruppel','lachen','lacherlich','lahm','langtan','last minute','lauernd','lebendig','lebenslanglich','lecken','lecker','legendar','legendarisk','legitim','leiche','leicht','leiden','leider','leise','letzte','letzte chance','leuchtend','liberal','licht','lidelsefull','liebe','liebenswurdig','liebevoll','life-changing','limitiert','livlig','lohnend','loser','losung','lugen','lugend','lukrativ','lust','lustig','lustige','lustigsten','luxorios','magisch','mainstream','maktig','mammut','manipulativ','massiv','masterclass','meditierend','meiseter','meistverkauft','meltdown','millionen','mind-blowing','minderwertig','minimalist','minnsvard','missbrauch','misstrauisch','mittelmassig','mittig','modern','moderne','moglichkeiten','monetarisieren','monumental','mord','motiviert','muhelos','muhevoll','mull','mut','mutig','nachmachen','nachteile','nackt','nagel','naiv','natural','nazi','neid','nervos','neu','niedertrachtig','niemals','notfall','notiert','nutzlich','nutzlos','oerhord','offensichtlich','offiziel','Offnen','oforglomlig','ohne hintergedanken','ok','okay','Okonomisch','on-demand','onskan','opfer','optimistisch','otrolig','overnight','packend','palitlig','panik','panzer','paralisiert','pas','passionerad','passioniert','pause','payback','peinlich','perfekt','perplex','perskeptive','pessimistisch','pfund','piranha','pleite','plotzlich','pochend','polarisierend','popular','portfolio','praktfull','praktisch','preis','prestige','pris','privat','privatsphare','priviligiert','problem','produktiv','professionell','profit','profitabel','provokativ','provozierend','prozess','psychologisch','qual','qualen','qualitat','rabatt','rache','rachsuchtig','raffiniert','rasend','rat','rau','recherche','reduziert','reflektieren','regeln','reich','reiche','reichtum','relaxed','report','responsive','revolutionar','riesig','risiko','riskant','riskieren','rotzfrech','rowdy','ruckrat','ruckschlag','rucksichtlos','ruhig','ruiniert','sabotiert','sadistisch','saker','sale','sallsynt','sarkastisch','scam','schabig','schadigend','schadlich','schamlos','schatz','schicksal','schlachten','schlafen','schlag','schlau','schlimm','schmerzhaft','schmerzlos','schmuggel','schnell','schnellstart','schokierend','schonheit','schrecklich','schreien','schritt fur schritt','schuld','schuldlos','schwach','schwarm','schwarzmarkt','schwerkraft','schwinden','sechsstellig','sehenswerte','selbsthass','selten','sensationell','sex','sexy','sicher','sicherheit','sicherlich','sieg','sill','simpel','sinnlich','sinnlos','skandal','skandalos','skapande','skill','sklave','sneak-peek','snob','sofort','sofort gespart','sollte','sonnig','sonnige','sonnigen','sorgen','sorgfaltig','sorglos','spannend','sparen','sparsam','spass','spassig','speciell','spektakular','speziell','spielen','spoiler','spontan','spotlight','stabil','stark','start','stoisch','stolz','stop','storslagen','strahlend','stralande','strangulieren','strategie','studien','stumperhaft','stur','sunden','sundigend','super','superb','survival','tapfer','tauschend','teaser','technologie','terror','terrorist','teuer','tief','tiefgreifend','tierisch','tillfredstalld','tod','todlich','toll','tolle','toller','tortur','tot','tote','toten','totend','toxisch','tragisch','tragodie','transfomieren','transparenz','trauma','traumatisiert','traurigkeit','trend','tricks','trigger','triumpf','trocken','trotz','trugerisch','trygg','tweaks','tyrann','Ubel','Uberfordert','Uberkommen','Uberleben','Uberlegen','Uberraschend','Uberrascht','Uberraschung','Uberwaltigend','Uberwinden','ultimativ','umfassend','umstritten','umwerfend','unatorisiert','unaufhaltbar','unausgelasted','unbedacht','unbeliebt','unbeschwert','unbewusst','underbar','undercover','undokumentiert','unehrlich','unentschlossen','unerwartet','unfahig','ungdomlig','ungeduldig','ungedult','ungehort','ungemutlich','ungerechtfertigt','ungesehen','ungetrubt','ungewohnlich','ungezogen','unglaublich','unglaubliches','uninteressiert','unkontrollierbar','unkonventionell','unlimitiert','unpenetrierbar','unschuldig','unsicher','unstabil','unter verschluss','untergrund','unterhaltsam','unterstutz','unterstutzend','unubertroffen','unvergesslich','unverneinbar','unvoreingenommen','unwiderstehlich','unwirtlich','unzensiert','unzuverlassig','up-selling','uppfylla','uppriktig','utmarkt','utstralande','vaporisieren','vasentlig','verangstigt','verantwortlich','verargert','verarscht','verbessert','verbluffend','verblufft','verboten','verbreiten','verdachtig','verdammt','verdeckt','vereinfacht','verfuhrend','vergebend','vergessen','vergleich','verhauen','verifizieren','verkommen','verlegen','verletzbar','verletzt','verlockend','verloren','vermasselt','vermeiden','vermogen','vernichten','vernichtend','vernunftig','veroffentlichung','verpassen','verraterisch','verruckt','versagen','verschwitzt','versichert','verspielt','versprechend','versteckt','vertrauenswurdig','vertraulich','vertraumt','verurteilend','verwunderlich','verwundet','verzaubernd','verzweifelt','vierfach','viktig','vogelfrei','vollig','vollstandig','vorsicht','vorstellungskraft','vorteil','wachstum','wagemutig','wahnsinn','wahnsinnig','wahrhaftig','wahrheit','wahrheitsgemass','wahrscheinlich','warnung','was dir keiner sagt','wehleidig','welt','wenig bekannt','wert','wertvoll','wichtig','widerlich','wiedererkannt','wild','wilde','wilden','willensstarke','wirr','wohltatigkeit','wortlich','wunder','wunderbar','wunderbaren','wunderschon','wutend','zeichen','zeitig','zen','zensiert','zerschlagen','zerschmetternd','zerstorend','zertifiziert','zielorientiert','zischend','zischt','zocken','zogernd','zugeben','zuruckgehalten','zuruckgelassen','zuruckweisen','zusatzlich','zutaten','zuverlassig','zwangsernahrt','zweifelnd','zwickend','zwingend'];
|
1 |
+
<?php return ['abgelenkt','abgesturzt','absolut','abstossend','aburd','abweisen','adaquat','aggressiv','ahnungslos','akkurat','alarmierend','alarmiert','albtraum','all-inclusive','allererste','allererster','allererstes','alleswisser','am schlechtesten','am wichtigsten','angewidert','angriff','angsteinflossend','Angstlich','animiert','ankundigung','anonym','anpassbar','anspruchslos','anstossig','antagonistisch','apokalypse','applaus','argumentativ','arm','armageddon','arrogant','atemberaubend','attacke','attraktiv','aufdeckend','aufgebracht','aufgedeckt','aufgeregt','aufheiternd','aufregend','aufregende','aufregenden','aufregung','aufstachelnd','aufstandisch','aufsteigend','auftreibend','augenoffnend','ausgelassen','ausgeruht','ausgespielt','ausgewahlt','ausgewuhlt','ausnutzen','aussergewohnlich','autark','authentisch','autoritat','backdoor','badass','beangstigend','bedenklich','bedingungslos','bedrohen','bedroht','beforderung','befreit','befriedigend','befriedigt','begehren','begeistern','begeistert','begeisterung','beherzt','behind the scenes','beichte','beleidigung','belohnung','bemerkenswert','beneiden','bequem','beruhmt','beschadigen','beschamend','beschmutzt','beschuldigen','beschutzen','besitz','bessesen','bestatigen','bestatigt','beste','bestimmt','bestrafen','betrug','betrugen','bewahrt','bewiesen','bewiesenermassen','bewusst','bezahlbar','bezaubernd','bizarre','bleich','blendend','blut','blutbad','blutig','bombe','bonanza','bonus','bosartig','bose','boshaft','brilliant','brodelnd','brutal','budget','bullshit','bully','bunt','bunte','bunten','case study','cash','challenge','challgene','chaos','cheat-sheet','clever','content','cool','courage','dankbar','daruber redet keiner','deadline','definitiv','dekadent','demoralisierend','demut','desillusioniert','detailiert','diagnose','die wahrheit','direkt','disastros','discount','dokument','dollar','dominieren','doppelt','download','dreckig','dreifach','dreistigkeit','dringend','dringlichkeit','dumm','dummkopf','dummlich','durchbruch','duselig','dynamik','echt','effektiv','effizient','ehrlich','eier','eifersuchtig','eifrig','eindeutig','eindrucksvoll','eine stufe besser','einfach','einfachheit','einfallsreich','eingebildet','eingeschrankt','eingesperrt','einmalig','einsam','eintauchen','einzigartig','eisern','eliminieren','elite','empathie','empfehle','empfehlen','endeffekt','energie','energisch','enorm','entdecken','entfesselt','entfremdet','enthullen','enthullung','enthusiastisch','entmachtet','entsetzlich','entspannt','entzuckend','entzunden','epidemisch','episch','erbarmlich','erfolg','erfolgreich','erfolgsbilanz','erfreut','erfullen','erfullt','ergebnisse','ergreifen','erhaben','erheben','erhohen','erledigt','ermachtigt','ermudet','ernmutigt','ernsthaft','erobern','erroten','errungenschaft','erschaffen','erschrocken','ersehnen','ersparnisse','erstattbar','erstatten','erstaunlich','erste','ertrinken','essentiell','ethisch','euphorisch','exakt','exklusiv','exklusivitat','exkuisit','experte','explodieren','explosiv','exposed','extrem','exzellent','fahig','fahigkeiten','fail','falle','fantasie','fantastischen','farbenfroh','farbenfrohe','faszinierend','faszinierende','faul','faux pas','faux','fehler','feindselig','feldstudie','fesselnd','festlich','festmahl','festplatte','final','flirt','fluchtling','flussig','fokus','fokussiert','folter','formel','frech','freebie','frei','freiheit','freudig','friedlich','frohlich','frohlichkeit','frustriert','fundamental','fur immer','furchtbar','furchtlos','gangster','garantiert','geblendet','geehrt','gefahr','gefahrlich','gefangen','gefangnis','gefeuert','gegensatzlich','gehassig','geheimnis','geheimnisse','geil','geisseln','geist','geistesgestort','gelassen','geld zuruck','geld','genial','gepackt','gerade angekommen','gerissen','geschenk','geschmuggelt','geschutzt','gestandnis','gestandnisse','gestopft','gestresst','gesucht','gesund','getauscht','getestet','getotet','gewaltig','gewalttatig','gewidmet','gewinnspiel','gier','gierig','gift','giftig','gigantisch','giveaway','glamourose','glanzend','glaube','glaubwurdig','gleichmassig','glittering','glitzernde','gluckselig','golden','grandios','grandiose','grandiosen','grandioses','grauenhaft','grausamkeit','grinsen','groesste','gross','grossartig','grossartig','grossartige','grossartigen','grossartiger','grossartiges','grosse','grossen','grosste','grosszugig','grotesk','grube','grundlegend','gruselig','gunstig','hack','hamisch','hammer','handelsgeheimnis','hartnackig','hass','heilig','heimlich','heisshunger','heisshungrig','heiter','held','hell','herablassend','herausfordernd','herausforderung','herausvorderung','herrlichen','herrschend','hervorragend','herz','herzbrechend','herzerwahrmend','heute','hightech','hilflosigkeit','hilfreich','hilfsbereit','himmlisch','hinterhaltig','hoax','hocheffektiv','hochnasig','hochste','hoffnung','hoffnungsvoll','holle','holocaust','horror','how to','humor','hungrige','hurrikan','hypnotisch','hypnotisierend','idiot','idiotisch','illegal','immer','informativ','inhalt','inkompetent','innovativ','insider','inspirierend','inspiriert','intelligent','intensiv','interessant','interessante','invasion','investment','ist da','jackpot','jederzeit kundigen','jetzt','jubilant','jumpstart','jung','kadaver','kampf','katapult','katastrophe','kaufen','kein risiko','keine verpflichtung','kickstart','kindisch','kitschig','klaglich','klar','knast','kollabieren','kollosal','komfortabel','komisch','kompetitiv','komplett','kompromiss','komsich','konstruktiv','kontrollierend','kontrollverlust','kooperativ','kopie','korrupt','kostenlos','kraftlos','kraftvoll','krankhaft','kreativ','kriese','kritisch','kruppel','lachen','lacherlich','lahm','last minute','lauernd','lebendig','lebenslanglich','lecken','lecker','legendar','legitim','leiche','leicht','leiden','leider','leise','letzte chance','letzte','leuchtend','liberal','licht','liebe','liebenswurdig','liebevoll','life-changing','limitiert','lohnend','loser','losung','lugen','lugend','lukrativ','lust','lustig','lustige','lustigsten','luxorios','magisch','mainstream','mammut','manipulativ','massiv','masterclass','meditierend','meiseter','meistverkauft','meltdown','millionen','mind-blowing','minderwertig','minimalist','missbrauch','misstrauisch','mittelmassig','mittig','modern','moderne','moglichkeiten','monetarisieren','monumental','mord','motiviert','muhelos','muhevoll','mull','mut','mutig','nachmachen','nachteile','nackt','nagel','naiv','natural','nazi','neid','nervos','neu','niedertrachtig','niemals','notfall','notiert','nutzlich','nutzlos','offensichtlich','offiziel','Offnen','ohne hintergedanken','ok','okay','Okonomisch','on-demand','opfer','optimistisch','overnight','packend','panik','panzer','paralisiert','pas','passioniert','pause','payback','peinlich','perfekt','perplex','perskeptive','pessimistisch','pfund','piranha','pleite','plotzlich','pochend','polarisierend','popular','portfolio','praktisch','preis','prestige','privat','privatsphare','priviligiert','problem','produktiv','professionell','profit','profitabel','provokativ','provozierend','prozess','psychologisch','qual','qualen','qualitat','rabatt','rache','rachsuchtig','raffiniert','rasend','rat','rau','recherche','reduziert','reflektieren','regeln','reich','reiche','reichtum','relaxed','report','responsive','revolutionar','riesig','risiko','riskant','riskieren','rotzfrech','rowdy','ruckrat','ruckschlag','rucksichtlos','ruhig','ruiniert','sabotiert','sadistisch','sale','sarkastisch','scam','schabig','schadigend','schadlich','schamlos','schatz','schicksal','schlachten','schlafen','schlag','schlau','schlimm','schmerzhaft','schmerzlos','schmuggel','schnell','schnellstart','schokierend','schonheit','schrecklich','schreien','schritt fur schritt','schuld','schuldlos','schwach','schwarm','schwarzmarkt','schwerkraft','schwinden','sechsstellig','sehenswerte','selbsthass','selten','sensationell','sex','sexy','sicher','sicherheit','sicherlich','sieg','sill','simpel','sinnlich','sinnlos','skandal','skandalos','skill','sklave','sneak-peek','snob','sofort gespart','sofort','sollte','sonnig','sonnige','sonnigen','sorgen','sorgfaltig','sorglos','spannend','sparen','sparsam','spass','spassig','spektakular','speziell','spielen','spoiler','spontan','spotlight','stabil','stark','start','stoisch','stolz','stop','strahlend','strangulieren','strategie','studien','stumperhaft','stur','sunden','sundigend','super','superb','survival','tapfer','tauschend','teaser','technologie','terror','terrorist','teuer','tief','tiefgreifend','tierisch','tod','todlich','toll','tolle','toller','tortur','tot','tote','toten','totend','toxisch','tragisch','tragodie','transfomieren','transparenz','trauma','traumatisiert','traurigkeit','trend','tricks','trigger','triumpf','trocken','trotz','trugerisch','tweaks','tyrann','Ubel','Uberfordert','Uberkommen','Uberleben','Uberlegen','Uberraschend','Uberrascht','Uberraschung','Uberwaltigend','Uberwinden','ultimativ','umfassend','umstritten','umwerfend','unatorisiert','unaufhaltbar','unausgelasted','unbedacht','unbeliebt','unbeschwert','unbewusst','undercover','undokumentiert','unehrlich','unentschlossen','unerwartet','unfahig','ungeduldig','ungedult','ungehort','ungemutlich','ungerechtfertigt','ungesehen','ungetrubt','ungewohnlich','ungezogen','unglaublich','unglaubliches','uninteressiert','unkontrollierbar','unkonventionell','unlimitiert','unpenetrierbar','unschuldig','unsicher','unstabil','unter verschluss','untergrund','unterhaltsam','unterstutz','unterstutzend','unubertroffen','unvergesslich','unverneinbar','unvoreingenommen','unwiderstehlich','unwirtlich','unzensiert','unzuverlassig','up-selling','vaporisieren','verangstigt','verantwortlich','verargert','verarscht','verbessert','verbluffend','verblufft','verboten','verbreiten','verdachtig','verdammt','verdeckt','vereinfacht','verfuhrend','vergebend','vergessen','vergleich','verhauen','verifizieren','verkommen','verlegen','verletzbar','verletzt','verlockend','verloren','vermasselt','vermeiden','vermogen','vernichten','vernichtend','vernunftig','veroffentlichung','verpassen','verraterisch','verruckt','versagen','verschwitzt','versichert','verspielt','versprechend','versteckt','vertrauenswurdig','vertraulich','vertraumt','verurteilend','verwunderlich','verwundet','verzaubernd','verzweifelt','vierfach','vogelfrei','vollig','vollstandig','vorsicht','vorstellungskraft','vorteil','wachstum','wagemutig','wahnsinn','wahnsinnig','wahrhaftig','wahrheit','wahrheitsgemass','wahrscheinlich','warnung','was dir keiner sagt','wehleidig','welt','wenig bekannt','wert','wertvoll','wichtig','widerlich','wiedererkannt','wild','wilde','wilden','willensstarke','wirr','wohltatigkeit','wortlich','wunder','wunderbar','wunderbaren','wunderschon','wutend','zeichen','zeitig','zen','zensiert','zerschlagen','zerschmetternd','zerstorend','zertifiziert','zielorientiert','zischend','zischt','zocken','zogernd','zugeben','zuruckgehalten','zuruckgelassen','zuruckweisen','zusatzlich','zutaten','zuverlassig','zwangsernahrt','zweifelnd','zwickend','zwingend'];
|
@@ -1,2 +1 @@
|
|
1 |
-
<?php
|
2 |
-
return ['abadi','absolut','agenda rahasia','agresif','ahli','ahmak','ajaib','aktif','akui','alamiah','alur rahasia','aman','aneh','anggaran','anggun','angkuh','animasi','animo','anonim','anti gagal','antusias','apakah anda tahu','argumentatif','asing','asli','asusila','asyik','autentik','awas','ayem','aziz','azmat','badai','badut','bagaimana cara','bagi hadiah','bahagia','bahaya','balas dendam','banget','bangsat','bantahan','banter','banyak akal','baru','baru saja tiba','batalkan kapan saja','batas waktu','batu sandungan','bawah tanah','bebas rasa bersalah','bejat','beli','belum dimanfaatkan','belum pernah terjadi','benar-benar','bencana alam','benci','beneran','bengis','bengkok','beracun','berahi','berani','berapi','berbahagia','berbahaya','berbakti','berbisa','berdarah','berdarah dingin','berdosa','berfokus','bergeliat','bergelombang','berguna','berharap','berharga','berhasil','berhasrat','berhawa-nafsu','berisiko','berjiwa','berkedut','berkelakar','berkembang','berkeringat','berkesan','berkuasa','berkurang','berlimpah','bermanfaat','bermusuhan','berpusat','bersandaran','bersemangat','berseri','berseri-seri','bersertifikat','berseteru','bersih','bersinar','bersorak','bersyukur','bertahan','bertahan hidup','bertambah','bertanggung jawab','bertarung','bertenaga','berterimakasih','bertumbuh','beruap','berubah','berwenang','besar','besar-besaran','bikin emosi','bikin malu','bikin mual','bikin ngiler','bimbang','binal','bingung','bisa beradaptasi','bocoran','bodoh','bohong','bokek','bom','bombardir','bonus','boros','brutal','buas','budak','bui','bukan main','buntut','bunuh','buruan','busuk','busung','buta','cabul','cahaya','cairan','cambuk','canggung','cantik','caruk','cekatan','cemerlang','cengis','cepat','cerah','cerdas','cerewet','ceroboh','cinta','congkak','contekan','contoh','cukup','cukup besar','cukupan','curang','curiga','daftar hitam','dahsyat','daif','dalam','dalam waktu dekat','dapat diandalkan','dapat dikembalikan','dapat ditindaklanjuti','darurat','dasar','daya ingat','definitif','deg-degan','demoralisasi','denda','dendam','dengan cepat','dengan mudah','dengan sedih','dengan serius','derita','detik akhir','di bawah harga','di dalam zona','di sini','diakui','diam','diancam','diasingkan','dibalik layar','diberdayakan','diberkati','dibodohi','dibunuh','dicari','dicatat','dicekok','didiagnosis','didukung','dihukum','dilanggar','dilarang','dilepaskan','dimainkan','dimarahi','dinamis','dipecat','dipercaya','disampaikan','disayangkan','disederhanakan','diselundupkan','disensor','disetujui','diskon','disokong','ditahan','ditandai','ditargetkan','dites','ditipu','diwajibkan','dobel','dokumen','dolar','dominasi','dorongan','dosa','dosa-dosa','durjana','edan','edukatif','efektif','efisien','ekonomis','eksklusif','eksplosif','ekstra','elite','elok','enam angka','eneq','energi','energik','enteng','epidemis','epik','etis','euforia','fantasi','final','fokus','frustrasi','fundamental','gaduh','gagah','gagal','gagal total','gaib','gairah','galak','gampang','ganjil','garang','gasang','gawat','gede','gelap','geli','gelisah','gelora','gembira','gemetar','gengsi','geram','gila','gila hormat','glamor','goblok','godaan','gratis','gravitasi','grogi','gugatan','gugup','gundah','gusar','hadiah','hak istimewa','hakekat','hancur','haram','harapan','harfiah','harga','harga diri','hari ini','hari penghakiman','harta','harus','hasil','hati','hebat','heboh','hemat','hidup','hina','hingar-bingar','hipnosis','hipnotik','hiruk-pikuk','hoaks','hoax','horor','humor','idiot','ilusif','imajinasi','iman','indah','informatif','inkonvensional','inovatif','inspirasi','intel','intens','interesan','intinya','invasi','investasi','iri','irs','istirahat','jackpot','jagoan','jagur','jahat','jahil','jarang','jatuh','jebakan','jelek','jeles','jelimet','jenazah','jengkel','jenius','jijik','jinak','jorok','jubilant','judi','jujur','kacau','kado','kaget','kalah','kasar','kaya','keahlian','keajaiban','keamanan','kebahagiaan','kebaruan','kebebasan','kebenaran','keberanian','kebesaran','kebiadaban','kebohongan','kecanggungan','kecantikan','kecerobohan','kecewa','kedahsyatan','keeksklusifan','kegagahan','kegagalan','kegembiraan','kegigihan','kegirangan','kehilangan','kejam','kejelasan','kejut','kejutan','kejutkan','kekalahan','kekeliruan','kekosenan','kekurangan','kelancangan','kelas master','kelengkapan','kelimpungan','keluhuran','kemaruk','kematian','kemelaratan','kemenangan','kenalan','kengerian','kentara','kepeloporan','kepercayaan','keperkasaan','keracak','kerakusan','keramahan','keras','keras kepala','keringat','kesakitan','kesalahan','kesederhanaan','kesedihan','keselamatan','kesempatan terakhir','kesepian','ketakutan','keteguhan hati','ketekunan','keterlaluan','ketidakberdayaan','ketidaksabaran','keunggulan','keuntungan','kewalahan','keyakinan','khidmat','kiamat','kiat','kickstart','kikuk','kokoh','kolosal','kompetitif','komprehensif','kompromi','konfidensi','konstruktif','kontan','kontroversi','konyol','kooperatif','kopi','korban','korupsi','kotor','kreatif','krisis','kritis','kualitas','kuat','kuno','kurang ajar','kurang dimanfaatkan','kusut','kw','laba','langka','langkah','langsung','laporan','larangan','lawan','lebih bagus','lebih baik','ledakan','lega','legendaris','lelah','lemah','lengkap','lezat','liar','liberal','licik','licin','lihai','limbah','lincah','lipat empat','lonjakan','luar biasa','lucu','luka berat','lumpuh','luwes','mabuk','mahal','mainstream','makarya','makmur','mala','malapetaka','malas','malu','mampu','manipulatif','manis sekali','manjur','mantul','manusia super','mara','marah','masalah','masif','masih','master','mata duitan','mati','mati kutu','mayat','megah','melayang','meledak','meleleh','melena','melepaskan','meletus','melindungi','melongo','melonjak','melontarkan','melumpuhkan','meluncurkan','memaafkan','memalukan','mematikan','membakar','membalas','membandingkan','membenci diri sendiri','memberontak','membinasakan','membocorkan','membuat','membuat ulang','membubung','membuka mata','membunuh','memenuhi','memerah','memetik','memikat','memikat hati','memilukan','memperberat','memperdaya','memperkenalkan','mempermalukan','mempesona','mempesonakan','memprovokasi','memromosikan','memuakkan','memukau','memukul','memusnahkan','memvalidasi','menakjubkan','menakuntukan','menakuti','menakutkan','menang','menangis','menantang','menarik','menawan','mencapai','mencegah','mencekik','mencengkeram','mencolok','mencuri','mencurigakan','mendalam','mendebarkan','menderita','mendesak','mendobrak','mendukung','menegur','menekankan','menemukan','menendang','menentang','menewaskan','mengagumkan','mengaku','mengakui','mengalahkan','mengancam','mengangkat','menganiaya','mengatasi','mengejuntukan','mengeksploitasi','mengerikan','mengerti','mengesankan','mengetahui semua','menggelisahkan','menggemparkan','menggenjot','menggerakkan','menggertakkan','menggilas','menggoda','menghancurkan','menghapuskan','mengharukan','menghebohkan','mengherankan','menghina','menghukum','mengibuli','mengidam','mengigau','menginspirasi','mengintai','mengintimidasi','menguangkan','menguap','menguasai','mengubah','mengubah hidup','mengulangi','mengumumkan','mengungkap','mengungkapkan','menguntungkan','mengutuk','meningkatkan','menipu','menjanjikan','menjerumuskan','menjijikkan','menjilat','menjulang','menolak','menuduh','menundukkan','menunggu','menusuk dari belakang','menutupi','menyabotase','menyakitkan','menyalakan','menyarankan','menyayat','menyelundupkan','menyemangati','menyeramkan','menyerang','menyetujui','menyihir','menyiksa','menyilaukan','menyogok','menyolok','menyoroti','menyuap','meracuni','merangsang','merayu','merebut','merendahkan','merenungkan','meriah','meroket','merosot','merugikan','mewah','meyakinkan','milik','milyar','mimpi buruk','minat','minimalis','miskin','misteri','molek','muak','mudah','mudah dipahami','mulai cepat','mulia','muncul','mungkin','murah','nafsu','naik pitam','naim','nakal','nanah','nasib','nazi','neraka','ngaco','ngakak','ngeri','ngiler','nilai','niscaya','nol rupiah','nyaman','obral','obsesi','oke','omong kosong','optimis','optimistis','orang bodoh','orang dalam','orang gila','orisinil','padat','pahala','pahlawan','paling besar','paling dahsyat','paling efektif','paling lucu','palsu','pandir','panik','parah','pasar gelap','pasti','pastinya','pastinya paling rendah','patut diperhatikan','pecah','pecinta kesenangan','pecundang','pedih','peka','pelanggaran','peluang','peluncuran','pembantaian','pembunuhan','pemecahan','pemicu','pemula','penaklukan','pendendam','pendengki','penemuan','penerobosan','pengakuan','pengecut','pengembalian','pengembalian dana','penghakiman','penghancuran','penghinaan','pengungsi','penipu','penipuan','penjahat','penjara','penjualan terbaik','penting','penuh','penuh dosa','penuh kepercayaan','penuh warna','penyalahgunaan','peraturan','percaya diri','perhitungan','periang','peringatan','perjuangan','perlente','permintaan','persis','perspektif','pertama','pertama dalam sejarah','pertarungan','pertumpahan darah','pesimistis','pesta','petaka','pingsan','pintu belakang','plong','polarisasi','polos','populer','portofolio','pound','praktis','premi','privasi','privat','produktif','profesional','provokatif','psikologis','puas','pucat','pukulan','putus asa','racun','ragu','ragu-ragu','rahasia','rahasia dagang','raksasa','rakus','ramah','reaksi','reflektif','rekam jejak','rendah','rendahan','renjatan','rentan','resep','resmi','responsif','retas','revolusioner','ria','riang','rimbun','risau','riset','risiko','rumus','rusak','sabar','sadar','sadis','sah','sama sekali','samar','samar-samar','sangat bagus','sangat disarankan','sangat efektif','sangat menakjubkan','sangat menarik','sangsi','santai','saran','sarang telur','sarkastik','sayu','secara pengecut','sederhana','sedikit diketahui','segera','seharusnya','sehat','seimbang','sejati','sekarang','seks','seksi','selalu','selamanya','selaras','semalam','sembunyi','sempit','sempurna','semua termasuk','senang sekali','sengit','sensasionil','sentosa','sepenuhnya','seperti anak kecil','seram','serangan','sesegera','seumur hidup','siksa','siksaan','simpan','sinis','sinting','skandal','solusi','sombong','spektakuler','spesial','spoiler','spontan','stabil','stop','strategi','stres','studi','studi kasus','suci','suka hati','sukaria','sukses','sulap','sumber keuntungan','sungguh-sungguh','super','superior','surgawi','swasembada','syahwat','syur','tabah','tabu','tabungan','tabungan instan','tahan resesi','tajam','tak ayal','tak bersyarat','tak dikenal','tak kenal takut','tak tahu malu','tak terkendali','tak ternilai','tak tertandingi','takdir','takut','tamparan','tanda','tanpa beban','tanpa henti','tanpa ikatan','tanpa kewajiban','tanpa pertanyaan','tanpa rasa sakit','tanpa risiko','tanpa sadar','tanpa sensor','tanpa usaha','tantangan','tawa','tawar','tegang','teguh','teknologi','teknologi tinggi','telah ditinjau kembali','telanjang','telaten','teliti','tenang','tendang bokong','tenggelam','tenteram','tentu','tentunya','tepat','tepat waktu','tepi','terakhir','teramat','terang','terangkat','teratas','terbaik','terbaru','terbatas','terbebaskan','terbesar','terbongkar','terbuka','terbukti','tercela','tergeletak','terhormat','teriak','terima kasih','terinspirasi','terjamin','terjangkau','terjatuh','terjebak','terjerambab','terjun','terkejut','terkenal','terkesima','terkespos','terlalu','terlarang','terletak','terlindungi','terlupakan','termenung','termotivasi','terobsesi','teror','teroris','terpenting','terpenuhi','terperdaya','terperinci','terperosok','terpesona','terpilih','tersangkut','terselubung','tersembunyi','tersenyum','tertawa','tertekan','tertentu','tertinggal','tertutup','tetap','tiba-tiba','tidak baik','tidak berdaya','tidak berguna','tidak bisa dipungkiri','tidak bisa ditembus','tidak dapat dihentikan','tidak dipalsukan','tidak disiarkan','tidak handal','tidak kolot','tidak mampu','tidak masuk akal','tidak mengerti','tidak merasa aman','tidak nyaman','tidak past','tidak peduli','tidak pernah','tidak populer','tidak resmi','tidak responsif','tidak sabar','tidak sah','tidak seimbang','tidak sopan','tidak stabil','tidak tenang','tidak tepat','tidak terbatas','tidak terduga','tidak tergesa-gesa','tidak terkendali','tidak terlihat','tidak terlupakan','tidak tertandingi','tidak tertarik','tidak yakin','tidak-tidak','tidur','tingkatkan','tips','tolak','tolol','tragedi','tragis','transparansi','trauma','tren','trik','tripel','tulang belakang','tulang punggung','tulus','uang','uang kembali','ugal-ugalan','ulung','unduh','ungkapan','unik','untung','verifikasi','wabah','wahid','wahyu','wajib','waswas','wewenang','yakin'];
|
1 |
+
<?php return ['abadi','absolut','agenda rahasia','agresif','ahli','ahmak','ajaib','aktif','akui','alamiah','alur rahasia','aman','aneh','anggaran','anggun','angkuh','animasi','animo','anonim','anti gagal','antusias','apakah anda tahu','argumentatif','asing','asli','asusila','asyik','autentik','awas','ayem','aziz','azmat','badai','badut','bagaimana cara','bagi hadiah','bahagia','bahaya','balas dendam','banget','bangsat','bantahan','banter','banyak akal','baru','baru saja tiba','batalkan kapan saja','batas waktu','batu sandungan','bawah tanah','bebas rasa bersalah','bejat','beli','belum dimanfaatkan','belum pernah terjadi','benar-benar','bencana alam','benci','beneran','bengis','bengkok','beracun','berahi','berani','berapi','berbahagia','berbahaya','berbakti','berbisa','berdarah','berdarah dingin','berdosa','berfokus','bergeliat','bergelombang','berguna','berharap','berharga','berhasil','berhasrat','berhawa-nafsu','berisiko','berjiwa','berkedut','berkelakar','berkembang','berkeringat','berkesan','berkuasa','berkurang','berlimpah','bermanfaat','bermusuhan','berpusat','bersandaran','bersemangat','berseri','berseri-seri','bersertifikat','berseteru','bersih','bersinar','bersorak','bersyukur','bertahan','bertahan hidup','bertambah','bertanggung jawab','bertarung','bertenaga','berterimakasih','bertumbuh','beruap','berubah','berwenang','besar','besar-besaran','bikin emosi','bikin malu','bikin mual','bikin ngiler','bimbang','binal','bingung','bisa beradaptasi','bocoran','bodoh','bohong','bokek','bom','bombardir','bonus','boros','brutal','buas','budak','bui','bukan main','buntut','bunuh','buruan','busuk','busung','buta','cabul','cahaya','cairan','cambuk','canggung','cantik','caruk','cekatan','cemerlang','cengis','cepat','cerah','cerdas','cerewet','ceroboh','cinta','congkak','contekan','contoh','cukup','cukup besar','cukupan','curang','curiga','daftar hitam','dahsyat','daif','dalam','dalam waktu dekat','dapat diandalkan','dapat dikembalikan','dapat ditindaklanjuti','darurat','dasar','daya ingat','definitif','deg-degan','demoralisasi','denda','dendam','dengan cepat','dengan mudah','dengan sedih','dengan serius','derita','detik akhir','di bawah harga','di dalam zona','di sini','diakui','diam','diancam','diasingkan','dibalik layar','diberdayakan','diberkati','dibodohi','dibunuh','dicari','dicatat','dicekok','didiagnosis','didukung','dihukum','dilanggar','dilarang','dilepaskan','dimainkan','dimarahi','dinamis','dipecat','dipercaya','disampaikan','disayangkan','disederhanakan','diselundupkan','disensor','disetujui','diskon','disokong','ditahan','ditandai','ditargetkan','dites','ditipu','diwajibkan','dobel','dokumen','dolar','dominasi','dorongan','dosa','dosa-dosa','durjana','edan','edukatif','efektif','efisien','ekonomis','eksklusif','eksplosif','ekstra','elite','elok','enam angka','eneq','energi','energik','enteng','epidemis','epik','etis','euforia','fantasi','final','fokus','frustrasi','fundamental','gaduh','gagah','gagal','gagal total','gaib','gairah','galak','gampang','ganjil','garang','gasang','gawat','gede','gelap','geli','gelisah','gelora','gembira','gemetar','gengsi','geram','gila','gila hormat','glamor','goblok','godaan','gratis','gravitasi','grogi','gugatan','gugup','gundah','gusar','hadiah','hak istimewa','hakekat','hancur','haram','harapan','harfiah','harga','harga diri','hari ini','hari penghakiman','harta','harus','hasil','hati','hebat','heboh','hemat','hidup','hina','hingar-bingar','hipnosis','hipnotik','hiruk-pikuk','hoaks','hoax','horor','humor','idiot','ilusif','imajinasi','iman','indah','informatif','inkonvensional','inovatif','inspirasi','intel','intens','interesan','intinya','invasi','investasi','iri','irs','istirahat','jackpot','jagoan','jagur','jahat','jahil','jarang','jatuh','jebakan','jelek','jeles','jelimet','jenazah','jengkel','jenius','jijik','jinak','jorok','jubilant','judi','jujur','kacau','kado','kaget','kalah','kasar','kaya','keahlian','keajaiban','keamanan','kebahagiaan','kebaruan','kebebasan','kebenaran','keberanian','kebesaran','kebiadaban','kebohongan','kecanggungan','kecantikan','kecerobohan','kecewa','kedahsyatan','keeksklusifan','kegagahan','kegagalan','kegembiraan','kegigihan','kegirangan','kehilangan','kejam','kejelasan','kejut','kejutan','kejutkan','kekalahan','kekeliruan','kekosenan','kekurangan','kelancangan','kelas master','kelengkapan','kelimpungan','keluhuran','kemaruk','kematian','kemelaratan','kemenangan','kenalan','kengerian','kentara','kepeloporan','kepercayaan','keperkasaan','keracak','kerakusan','keramahan','keras','keras kepala','keringat','kesakitan','kesalahan','kesederhanaan','kesedihan','keselamatan','kesempatan terakhir','kesepian','ketakutan','keteguhan hati','ketekunan','keterlaluan','ketidakberdayaan','ketidaksabaran','keunggulan','keuntungan','kewalahan','keyakinan','khidmat','kiamat','kiat','kickstart','kikuk','kokoh','kolosal','kompetitif','komprehensif','kompromi','konfidensi','konstruktif','kontan','kontroversi','konyol','kooperatif','kopi','korban','korupsi','kotor','kreatif','krisis','kritis','kualitas','kuat','kuno','kurang ajar','kurang dimanfaatkan','kusut','kw','laba','langka','langkah','langsung','laporan','larangan','lawan','lebih bagus','lebih baik','ledakan','lega','legendaris','lelah','lemah','lengkap','lezat','liar','liberal','licik','licin','lihai','limbah','lincah','lipat empat','lonjakan','luar biasa','lucu','luka berat','lumpuh','luwes','mabuk','mahal','mainstream','makarya','makmur','mala','malapetaka','malas','malu','mampu','manipulatif','manis sekali','manjur','mantul','manusia super','mara','marah','masalah','masif','masih','master','mata duitan','mati','mati kutu','mayat','megah','melayang','meledak','meleleh','melena','melepaskan','meletus','melindungi','melongo','melonjak','melontarkan','melumpuhkan','meluncurkan','memaafkan','memalukan','mematikan','membakar','membalas','membandingkan','membenci diri sendiri','memberontak','membinasakan','membocorkan','membuat','membuat ulang','membubung','membuka mata','membunuh','memenuhi','memerah','memetik','memikat','memikat hati','memilukan','memperberat','memperdaya','memperkenalkan','mempermalukan','mempesona','mempesonakan','memprovokasi','memromosikan','memuakkan','memukau','memukul','memusnahkan','memvalidasi','menakjubkan','menakuntukan','menakuti','menakutkan','menang','menangis','menantang','menarik','menawan','mencapai','mencegah','mencekik','mencengkeram','mencolok','mencuri','mencurigakan','mendalam','mendebarkan','menderita','mendesak','mendobrak','mendukung','menegur','menekankan','menemukan','menendang','menentang','menewaskan','mengagumkan','mengaku','mengakui','mengalahkan','mengancam','mengangkat','menganiaya','mengatasi','mengejuntukan','mengeksploitasi','mengerikan','mengerti','mengesankan','mengetahui semua','menggelisahkan','menggemparkan','menggenjot','menggerakkan','menggertakkan','menggilas','menggoda','menghancurkan','menghapuskan','mengharukan','menghebohkan','mengherankan','menghina','menghukum','mengibuli','mengidam','mengigau','menginspirasi','mengintai','mengintimidasi','menguangkan','menguap','menguasai','mengubah','mengubah hidup','mengulangi','mengumumkan','mengungkap','mengungkapkan','menguntungkan','mengutuk','meningkatkan','menipu','menjanjikan','menjerumuskan','menjijikkan','menjilat','menjulang','menolak','menuduh','menundukkan','menunggu','menusuk dari belakang','menutupi','menyabotase','menyakitkan','menyalakan','menyarankan','menyayat','menyelundupkan','menyemangati','menyeramkan','menyerang','menyetujui','menyihir','menyiksa','menyilaukan','menyogok','menyolok','menyoroti','menyuap','meracuni','merangsang','merayu','merebut','merendahkan','merenungkan','meriah','meroket','merosot','merugikan','mewah','meyakinkan','milik','milyar','mimpi buruk','minat','minimalis','miskin','misteri','molek','muak','mudah','mudah dipahami','mulai cepat','mulia','muncul','mungkin','murah','nafsu','naik pitam','naim','nakal','nanah','nasib','nazi','neraka','ngaco','ngakak','ngeri','ngiler','nilai','niscaya','nol rupiah','nyaman','obral','obsesi','oke','omong kosong','optimis','optimistis','orang bodoh','orang dalam','orang gila','orisinil','padat','pahala','pahlawan','paling besar','paling dahsyat','paling efektif','paling lucu','palsu','pandir','panik','parah','pasar gelap','pasti','pastinya','pastinya paling rendah','patut diperhatikan','pecah','pecinta kesenangan','pecundang','pedih','peka','pelanggaran','peluang','peluncuran','pembantaian','pembunuhan','pemecahan','pemicu','pemula','penaklukan','pendendam','pendengki','penemuan','penerobosan','pengakuan','pengecut','pengembalian','pengembalian dana','penghakiman','penghancuran','penghinaan','pengungsi','penipu','penipuan','penjahat','penjara','penjualan terbaik','penting','penuh','penuh dosa','penuh kepercayaan','penuh warna','penyalahgunaan','peraturan','percaya diri','perhitungan','periang','peringatan','perjuangan','perlente','permintaan','persis','perspektif','pertama','pertama dalam sejarah','pertarungan','pertumpahan darah','pesimistis','pesta','petaka','pingsan','pintu belakang','plong','polarisasi','polos','populer','portofolio','pound','praktis','premi','privasi','privat','produktif','profesional','provokatif','psikologis','puas','pucat','pukulan','putus asa','racun','ragu','ragu-ragu','rahasia','rahasia dagang','raksasa','rakus','ramah','reaksi','reflektif','rekam jejak','rendah','rendahan','renjatan','rentan','resep','resmi','responsif','retas','revolusioner','ria','riang','rimbun','risau','riset','risiko','rumus','rusak','sabar','sadar','sadis','sah','sama sekali','samar','samar-samar','sangat bagus','sangat disarankan','sangat efektif','sangat menakjubkan','sangat menarik','sangsi','santai','saran','sarang telur','sarkastik','sayu','secara pengecut','sederhana','sedikit diketahui','segera','seharusnya','sehat','seimbang','sejati','sekarang','seks','seksi','selalu','selamanya','selaras','semalam','sembunyi','sempit','sempurna','semua termasuk','senang sekali','sengit','sensasionil','sentosa','sepenuhnya','seperti anak kecil','seram','serangan','sesegera','seumur hidup','siksa','siksaan','simpan','sinis','sinting','skandal','solusi','sombong','spektakuler','spesial','spoiler','spontan','stabil','stop','strategi','stres','studi','studi kasus','suci','suka hati','sukaria','sukses','sulap','sumber keuntungan','sungguh-sungguh','super','superior','surgawi','swasembada','syahwat','syur','tabah','tabu','tabungan','tabungan instan','tahan resesi','tajam','tak ayal','tak bersyarat','tak dikenal','tak kenal takut','tak tahu malu','tak terkendali','tak ternilai','tak tertandingi','takdir','takut','tamparan','tanda','tanpa beban','tanpa henti','tanpa ikatan','tanpa kewajiban','tanpa pertanyaan','tanpa rasa sakit','tanpa risiko','tanpa sadar','tanpa sensor','tanpa usaha','tantangan','tawa','tawar','tegang','teguh','teknologi','teknologi tinggi','telah ditinjau kembali','telanjang','telaten','teliti','tenang','tendang bokong','tenggelam','tenteram','tentu','tentunya','tepat','tepat waktu','tepi','terakhir','teramat','terang','terangkat','teratas','terbaik','terbaru','terbatas','terbebaskan','terbesar','terbongkar','terbuka','terbukti','tercela','tergeletak','terhormat','teriak','terima kasih','terinspirasi','terjamin','terjangkau','terjatuh','terjebak','terjerambab','terjun','terkejut','terkenal','terkesima','terkespos','terlalu','terlarang','terletak','terlindungi','terlupakan','termenung','termotivasi','terobsesi','teror','teroris','terpenting','terpenuhi','terperdaya','terperinci','terperosok','terpesona','terpilih','tersangkut','terselubung','tersembunyi','tersenyum','tertawa','tertekan','tertentu','tertinggal','tertutup','tetap','tiba-tiba','tidak baik','tidak berdaya','tidak berguna','tidak bisa dipungkiri','tidak bisa ditembus','tidak dapat dihentikan','tidak dipalsukan','tidak disiarkan','tidak handal','tidak kolot','tidak mampu','tidak masuk akal','tidak mengerti','tidak merasa aman','tidak nyaman','tidak past','tidak peduli','tidak pernah','tidak populer','tidak resmi','tidak responsif','tidak sabar','tidak sah','tidak seimbang','tidak sopan','tidak stabil','tidak tenang','tidak tepat','tidak terbatas','tidak terduga','tidak tergesa-gesa','tidak terkendali','tidak terlihat','tidak terlupakan','tidak tertandingi','tidak tertarik','tidak yakin','tidak-tidak','tidur','tingkatkan','tips','tolak','tolol','tragedi','tragis','transparansi','trauma','tren','trik','tripel','tulang belakang','tulang punggung','tulus','uang','uang kembali','ugal-ugalan','ulung','unduh','ungkapan','unik','untung','verifikasi','wabah','wahid','wahyu','wajib','waswas','wewenang','yakin'];
|
|
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return ['akta','belaten','beromd','betydelsefull','bevisad','blandande','effektiv','enastaende','energisk','fangslande','fantastisk','fint','framgangsrik','fullandad','fullgora','glansande','glomd','imponerande','inspirerad','kand','kraftfull','kraftig','kreativ','langtan','legendarisk','lidelsefull','livlig','maktig','minnesvard','oerhord,otrolig','oforglomlig','onskan','otrolig','palitlig','passionerad','praktfull','pris','professionell','saker','sallsynt','sensationell','skapande','speciell','stark','storslagen','stralande','tillfredstalld','trygg','underbar','ungdomlig','uppfylla','uppriktig','utmarkt','utstralande','vasentlig','viktig'];
|
@@ -35,8 +35,11 @@ class Admin_Helper {
|
|
35 |
require_once ABSPATH . 'wp-admin/includes/file.php';
|
36 |
}
|
37 |
$wp_filesystem = WordPress::get_filesystem();
|
38 |
-
|
|
|
|
|
39 |
|
|
|
40 |
return ! $wp_filesystem->exists( $htaccess_file ) ? false : [
|
41 |
'content' => $wp_filesystem->get_contents( $htaccess_file ),
|
42 |
'writable' => $wp_filesystem->is_writable( $htaccess_file ),
|
35 |
require_once ABSPATH . 'wp-admin/includes/file.php';
|
36 |
}
|
37 |
$wp_filesystem = WordPress::get_filesystem();
|
38 |
+
if ( empty( $wp_filesystem ) ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
|
42 |
+
$htaccess_file = get_home_path() . '.htaccess';
|
43 |
return ! $wp_filesystem->exists( $htaccess_file ) ? false : [
|
44 |
'content' => $wp_filesystem->get_contents( $htaccess_file ),
|
45 |
'writable' => $wp_filesystem->is_writable( $htaccess_file ),
|
@@ -173,7 +173,7 @@ class Post_Filters implements Runner {
|
|
173 |
'noindexed' => esc_html__( 'Articles noindexed', 'rank-math' ),
|
174 |
];
|
175 |
|
176 |
-
$options
|
177 |
$selected = Param::get( 'seo-filter' );
|
178 |
?>
|
179 |
<select name="seo-filter" id="rank-math-seo-filter">
|
@@ -279,9 +279,16 @@ class Post_Filters implements Runner {
|
|
279 |
if ( in_array( $filter, $seo_score_filters, true ) ) {
|
280 |
$query['relation'] = 'AND';
|
281 |
$query[] = [
|
282 |
-
'
|
283 |
-
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
];
|
286 |
$query[] = [
|
287 |
'key' => 'rank_math_focus_keyword',
|
173 |
'noindexed' => esc_html__( 'Articles noindexed', 'rank-math' ),
|
174 |
];
|
175 |
|
176 |
+
$options = $this->do_filter( 'manage_posts/seo_filter_options', $options, $post_type );
|
177 |
$selected = Param::get( 'seo-filter' );
|
178 |
?>
|
179 |
<select name="seo-filter" id="rank-math-seo-filter">
|
279 |
if ( in_array( $filter, $seo_score_filters, true ) ) {
|
280 |
$query['relation'] = 'AND';
|
281 |
$query[] = [
|
282 |
+
'relation' => 'OR',
|
283 |
+
[
|
284 |
+
'key' => 'rank_math_robots',
|
285 |
+
'value' => 'noindex',
|
286 |
+
'compare' => 'NOT LIKE',
|
287 |
+
],
|
288 |
+
[
|
289 |
+
'key' => 'rank_math_robots',
|
290 |
+
'compare' => 'NOT EXISTS',
|
291 |
+
],
|
292 |
];
|
293 |
$query[] = [
|
294 |
'key' => 'rank_math_focus_keyword',
|
@@ -233,7 +233,7 @@ class CMB2 {
|
|
233 |
* @return mixed Sanitized value to be stored.
|
234 |
*/
|
235 |
public static function sanitize_htmlentities( $value ) {
|
236 |
-
return htmlentities( $value );
|
237 |
}
|
238 |
|
239 |
/**
|
233 |
* @return mixed Sanitized value to be stored.
|
234 |
*/
|
235 |
public static function sanitize_htmlentities( $value ) {
|
236 |
+
return htmlentities( $value, ENT_COMPAT, get_option( 'blog_charset' ) );
|
237 |
}
|
238 |
|
239 |
/**
|
@@ -199,7 +199,6 @@ class Installer {
|
|
199 |
uri VARCHAR(255) NOT NULL,
|
200 |
accessed DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
201 |
times_accessed BIGINT(20) unsigned NOT NULL DEFAULT 1,
|
202 |
-
ip VARCHAR(50) NOT NULL DEFAULT '',
|
203 |
referer VARCHAR(255) NOT NULL DEFAULT '',
|
204 |
user_agent VARCHAR(255) NOT NULL DEFAULT '',
|
205 |
PRIMARY KEY id (id),
|
199 |
uri VARCHAR(255) NOT NULL,
|
200 |
accessed DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
201 |
times_accessed BIGINT(20) unsigned NOT NULL DEFAULT 1,
|
|
|
202 |
referer VARCHAR(255) NOT NULL DEFAULT '',
|
203 |
user_agent VARCHAR(255) NOT NULL DEFAULT '',
|
204 |
PRIMARY KEY id (id),
|
@@ -55,6 +55,7 @@ class Updates implements Runner {
|
|
55 |
'1.0.62' => 'updates/update-1.0.62.php',
|
56 |
'1.0.63' => 'updates/update-1.0.63.php',
|
57 |
'1.0.65' => 'updates/update-1.0.65.php',
|
|
|
58 |
];
|
59 |
|
60 |
/**
|
55 |
'1.0.62' => 'updates/update-1.0.62.php',
|
56 |
'1.0.63' => 'updates/update-1.0.63.php',
|
57 |
'1.0.65' => 'updates/update-1.0.65.php',
|
58 |
+
'1.0.67' => 'updates/update-1.0.67.php',
|
59 |
];
|
60 |
|
61 |
/**
|
@@ -197,6 +197,37 @@ trait Conditional {
|
|
197 |
return function_exists( 'et_core_is_fb_enabled' ) && et_core_is_fb_enabled();
|
198 |
}
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
/**
|
201 |
* Is Advanced Mode.
|
202 |
*
|
197 |
return function_exists( 'et_core_is_fb_enabled' ) && et_core_is_fb_enabled();
|
198 |
}
|
199 |
|
200 |
+
/**
|
201 |
+
* Get current editor, or false if we're not editing.
|
202 |
+
*
|
203 |
+
* @since 1.0.67
|
204 |
+
*
|
205 |
+
* @return mixed
|
206 |
+
*/
|
207 |
+
public static function get_current_editor() {
|
208 |
+
if ( self::is_elementor_editor() ) {
|
209 |
+
return 'elementor';
|
210 |
+
}
|
211 |
+
|
212 |
+
if ( self::is_divi_frontend_editor() ) {
|
213 |
+
return 'divi';
|
214 |
+
}
|
215 |
+
|
216 |
+
if ( self::is_block_editor() && \rank_math_is_gutenberg() ) {
|
217 |
+
return 'gutenberg';
|
218 |
+
}
|
219 |
+
|
220 |
+
if ( self::is_ux_builder() ) {
|
221 |
+
return 'uxbuilder';
|
222 |
+
}
|
223 |
+
|
224 |
+
if ( Admin_Helper::is_post_edit() ) {
|
225 |
+
return 'classic';
|
226 |
+
}
|
227 |
+
|
228 |
+
return false;
|
229 |
+
}
|
230 |
+
|
231 |
/**
|
232 |
* Is Advanced Mode.
|
233 |
*
|
@@ -38,7 +38,7 @@ $cmb->add_field(
|
|
38 |
'sanitization_cb' => [ '\RankMath\CMB2', 'sanitize_textfield' ],
|
39 |
'attributes' => [
|
40 |
'class' => 'regular-text wp-exclude-emoji',
|
41 |
-
'data-
|
42 |
'data-exclude-variables' => 'seo_title,seo_description',
|
43 |
],
|
44 |
'before_row' => '<div class="rank-math-serp-fields-wrapper hidden">',
|
@@ -68,7 +68,7 @@ $cmb->add_field(
|
|
68 |
'class' => 'cmb2_textarea wp-exclude-emoji',
|
69 |
'rows' => 2,
|
70 |
'data-autoresize' => true,
|
71 |
-
'data-
|
72 |
'data-exclude-variables' => 'seo_title,seo_description',
|
73 |
],
|
74 |
'after_row' => '</div>' . $serp_footer,
|
38 |
'sanitization_cb' => [ '\RankMath\CMB2', 'sanitize_textfield' ],
|
39 |
'attributes' => [
|
40 |
'class' => 'regular-text wp-exclude-emoji',
|
41 |
+
'data-gramm' => 'false',
|
42 |
'data-exclude-variables' => 'seo_title,seo_description',
|
43 |
],
|
44 |
'before_row' => '<div class="rank-math-serp-fields-wrapper hidden">',
|
68 |
'class' => 'cmb2_textarea wp-exclude-emoji',
|
69 |
'rows' => 2,
|
70 |
'data-autoresize' => true,
|
71 |
+
'data-gramm' => 'false',
|
72 |
'data-exclude-variables' => 'seo_title,seo_description',
|
73 |
],
|
74 |
'after_row' => '</div>' . $serp_footer,
|
@@ -81,7 +81,6 @@ class DB {
|
|
81 |
'uri' => '',
|
82 |
'accessed' => current_time( 'mysql' ),
|
83 |
'times_accessed' => '1',
|
84 |
-
'ip' => '',
|
85 |
'referer' => '',
|
86 |
'user_agent' => '',
|
87 |
]
|
81 |
'uri' => '',
|
82 |
'accessed' => current_time( 'mysql' ),
|
83 |
'times_accessed' => '1',
|
|
|
84 |
'referer' => '',
|
85 |
'user_agent' => '',
|
86 |
]
|
@@ -107,7 +107,6 @@ class Monitor {
|
|
107 |
DB::add(
|
108 |
[
|
109 |
'uri' => $uri,
|
110 |
-
'ip' => Param::server( 'REMOTE_ADDR', '' ),
|
111 |
'referer' => Param::server( 'HTTP_REFERER', '' ),
|
112 |
'user_agent' => $this->get_user_agent(),
|
113 |
]
|
107 |
DB::add(
|
108 |
[
|
109 |
'uri' => $uri,
|
|
|
110 |
'referer' => Param::server( 'HTTP_REFERER', '' ),
|
111 |
'user_agent' => $this->get_user_agent(),
|
112 |
]
|
@@ -121,8 +121,6 @@ class Table extends List_Table {
|
|
121 |
if ( in_array( $column_name, [ 'times_accessed', 'accessed', 'user_agent' ], true ) ) {
|
122 |
return esc_html( $item[ $column_name ] );
|
123 |
}
|
124 |
-
|
125 |
-
return print_r( $item, true );
|
126 |
}
|
127 |
|
128 |
/**
|
121 |
if ( in_array( $column_name, [ 'times_accessed', 'accessed', 'user_agent' ], true ) ) {
|
122 |
return esc_html( $item[ $column_name ] );
|
123 |
}
|
|
|
|
|
124 |
}
|
125 |
|
126 |
/**
|
@@ -86,8 +86,11 @@ class Robots_Txt {
|
|
86 |
*/
|
87 |
public static function get_robots_data() {
|
88 |
$wp_filesystem = WordPress::get_filesystem();
|
89 |
-
|
|
|
|
|
90 |
|
|
|
91 |
if ( $wp_filesystem->exists( ABSPATH . 'robots.txt' ) ) {
|
92 |
return [
|
93 |
'exists' => true,
|
86 |
*/
|
87 |
public static function get_robots_data() {
|
88 |
$wp_filesystem = WordPress::get_filesystem();
|
89 |
+
if ( empty( $wp_filesystem ) ) {
|
90 |
+
return;
|
91 |
+
}
|
92 |
|
93 |
+
$public = absint( get_option( 'blog_public' ) );
|
94 |
if ( $wp_filesystem->exists( ABSPATH . 'robots.txt' ) ) {
|
95 |
return [
|
96 |
'exists' => true,
|
@@ -12,7 +12,7 @@ use RankMath\Helper;
|
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
$data = Robots_Txt::get_robots_data();
|
15 |
-
$attributes = [];
|
16 |
if ( $data['exists'] ) {
|
17 |
$attributes['readonly'] = 'readonly';
|
18 |
$attributes['value'] = $data['default'];
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
$data = Robots_Txt::get_robots_data();
|
15 |
+
$attributes = [ 'data-gramm' => 'false' ];
|
16 |
if ( $data['exists'] ) {
|
17 |
$attributes['readonly'] = 'readonly';
|
18 |
$attributes['value'] = $data['default'];
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=37)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.hooks},function(e,t,r){"use strict";r.d(t,"k",(function(){return a.b})),r.d(t,"h",(function(){return a.a})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"g",(function(){return m})),r.d(t,"i",(function(){return d})),r.d(t,"a",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"j",(function(){return _})),r.d(t,"f",(function(){return O})),r.d(t,"e",(function(){return g})),r.d(t,"m",(function(){return A})),r.d(t,"l",(function(){return G})),r.d(t,"n",(function(){return q}));var a=r(19),i=r(1);function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,n=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw n}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function s(e,t){if(Object(i.isEmpty)(e)||t.id===e)return t;var r,a=n(t.properties);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.id===e)return o;if(o.map.isGroup){var c=s(e,o);if(c)return c}}}catch(e){a.e(e)}finally{a.f()}}function c(e,t){if(Object(i.isEmpty)(e))return t;var r,a=n(t.properties);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.property===e)return o.value=Object(i.has)(t.metadata,e)?t.metadata[e]:o.value,o}}catch(e){a.e(e)}finally{a.f()}return!1}var l=r(10);function m(){return{id:"g-".concat(Object(l.v4)()),property:"",properties:[],map:{isGroup:!0,isArray:!1,isRequired:!1,isRecommended:!1}}}function d(){return{id:"p-".concat(Object(l.v4)()),property:"",value:"",map:{isGroup:!1,isArray:!1,isRequired:!1,isRecommended:!1}}}function p(e){return e.id="g-".concat(Object(l.v4)()),e.properties.forEach((function(e){e.map.isGroup?p(e):e.id="p-".concat(Object(l.v4)())})),e}var u=function e(t){if(!t)return m();var r=t.map.isGroup?m():d();return Object(i.forEach)(t,(function(t,a){if("map"!==a){var n=d();t.map.isGroup&&(n=e(t)),n.map=t.map,n.property=a,n.value=Object(i.get)(t.map,"value",Object(i.get)(t.map,"field.default","")),r.properties.push(n)}else Object(i.has)(t,"title")&&(r.map.title=t.title,r.map.defaultEn=t.defaultEn)})),r};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1;r||(n=Object(i.isString)(e)?Object(a.a)(e):e);var o=u(n);return(o=Object(i.merge)(o,t)).property=e,o}var b=r(3);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(i.isEmpty)(t)||Object(i.forEach)(t,(function(t,n){if("@context"!==n){var o=c(n,e);if(o)R(o,n,t,r);else{var s=Object(a.a)(n);Object(i.isArray)(t)?(o=m()).map.isArray=!0:o=Object(i.isObject)(t)||s?_(s?h(s):m(),t,r):d(),R(o,n,t,r),o.property=n,e.properties.push(o)}}})),e}var R=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t)return e;var i=Object(b.applyFilters)("rank_math_schema_convert_value",!1,e,t,r,a);return!1!==i||!1!==(i=Object(b.applyFilters)("rank_math_schema_convert_"+t,!1,e,r))?i:(e.value=r,e)};function O(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=h(t,r,a);return _(i,e)}function g(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),r=Object(b.applyFilters)("rank_math_schema_type",Object(i.get)(t,"@type","")),a=Object(i.get)(t,"metadata",{type:"template"});delete t.metadata;var n="custom"===a.type?m():h(r);Object(i.has)(n.map,"title")&&!Object(i.has)(a,"title")&&(a.title=n.map.title),Object(i.has)(a,"title")&&a.title===n.map.defaultEn&&(a.title=n.map.title),n.property=Object(i.get)(a,"title",r),n.metadata=a;var o=c("@type",n);if(!1!==o&&""!==o.value&&(t["@type"]=o.value),n=_(n,t,"custom"===a.type),"custom"!==a.type){var s=n.properties.pop();n.properties.unshift(s)}return n}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=function(e){if(!Object(i.isEmpty)(e.value)||!Object(i.isUndefined)(e.map.field)&&"toggle"===e.map.field.type)return e.value;var t=Object(i.get)(e,"map.field.placeholder");return Object(i.isEmpty)(t)?Object(i.get)(e,"map.field.default",!1):t},w=function(e){if(Object(i.isEmpty)(e)||Object(i.isUndefined)(e.properties))return e;var t={};return"metadata"in e&&(t.metadata=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.metadata),t.metadata.title=e.property),Object(i.map)(e.properties,(function(e){var r=Object(i.get)(e,"map.save",!0),a=Object(i.get)(e,"map.isHidden",!1);if(!1!==r&&!a)if("metadata"!==r){var n=function(e){var t=!1;return t=Object(b.applyFilters)("rank_math_schema_process_value",t,e),Object(b.applyFilters)("rank_math_schema_process_"+e.property,t,e)}(e);if(!1===n){if(e.map.isArray){var o=[];return Object(i.map)(e.properties,(function(e){o.push(Object(i.isUndefined)(e.properties)?e.value:A(e))})),void(t[e.property]=o)}if(e.map.isGroup){var s=A(e);return s["@type"]=Object(i.get)(s,"@type",e.property),void(t[e.property]=s)}var c=j(e);!Object(i.isBoolean)(c)&&Object(i.isEmpty)(c)||!c||(t[e.property]=c)}else t[e.property]=n}else{var l=j(e);if(Object(i.isEmpty)(l)&&"toggle"!==e.map.field.type)return;t.metadata[e.property]=l}})),t};function A(e){var t=w(e);return t=Object(b.applyFilters)("rank_math_processed_schema_"+t["@type"],t),Object(b.applyFilters)("rank_math_processed_schema",t)}function G(e){return"string"!=typeof e&&(e=JSON.stringify(e,null,2)),(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),'<span class="'+t+'">'+e+"</span>"}))}function q(e,t){if(!Object(i.has)(e,"map.dependency"))return!0;var r=null,a=e.map.dependency,n=Object(i.get)(a,"relation","or");return Object(i.forEach)(a,(function(e){var a,o,s,l=c(e.field,t),m=(a=l.value,o=Object(i.get)(e,"value",!1),s=Object(i.get)(e,"comparison","="),Object(i.isArray)(o)&&"="===s?o.includes(a):Object(i.isArray)(o)&&"!="===s?!o.includes(a):"="===s&&a===o||"=="===s&&a===o||">="===s&&a>=o||"<="===s&&a<=o||">"===s&&a>o||"<"===s&&a<o||"!="===s&&a!==o);if("or"===n&&m)return r=!0,!1;"and"===n&&(r=(null===r||r)&&m)})),!!r}},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.compose},function(e,t){e.exports=jQuery},function(e,t,r){var a;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var o=i.apply(null,a);o&&e.push(o)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var s in a)r.call(a,s)&&a[s]&&e.push(s);else e.push(a.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},function(e,t,r){var a=r(26),i=r(27),n=i;n.v1=a,n.v4=i,e.exports=n},function(e,t,r){"use strict";var a=r(12),i=r(0),n=r(2);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var a,i,n=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}t.a=function(e){var t=e.onClick,r=e.children,s=(e.className,Object(a.useRef)()),c=o(Object(a.useState)(!1),2),l=c[0],m=c[1],d=function(e){s.current.contains(e.target)||m(!1)};return Object(a.useEffect)((function(){return l?document.addEventListener("mousedown",d):document.removeEventListener("mousedown",d),function(){document.removeEventListener("mousedown",d)}}),[l]),wp.element.createElement("div",{ref:s,className:"rank-math-inline-confirmation"},!l&&r(m),l&&wp.element.createElement("div",{className:"rank-math-confirm-delete"},wp.element.createElement("span",null,Object(i.__)("Delete?","rank-math")),wp.element.createElement(n.Button,{isLink:!0,onClick:function(){m(!1),t()}},wp.element.createElement("span",null,Object(i.__)("Yes","rank-math"))),wp.element.createElement(n.Button,{isLink:!0,onClick:function(){return m(!1)}},wp.element.createElement("span",null,Object(i.__)("No","rank-math")))))}},function(e,t){e.exports=React},function(e,t,r){e.exports=r(28)()},function(e,t){e.exports=wp.keycodes},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var a=r(1);function i(e){return Object(a.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema")}},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,r){"use strict";var a=r(1),i=r(0),n=r(7),o=r(2),s=r(5),c=r(15),l=r(11),m=Object(o.withFilters)("rankMath.schema.SchemaList")((function(e){var t=e.schemas,r=e.edit,n=e.trash,s=e.preview,m=e.showProNotice;return Object(a.isEmpty)(t)?null:wp.element.createElement("div",{className:"rank-math-schema-in-use"},wp.element.createElement("h4",{className:"rank-math-schema-section-title"},Object(i.__)("Schema in Use","rank-math")),m&&wp.element.createElement("div",{className:"components-notice rank-math-notice is-warning"},wp.element.createElement("div",{className:"components-notice__content"},Object(i.__)("Multiple Schemas are allowed in the","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Schema%20Tab%20Notice&utm_campaign=WP",rel:"noreferrer noopener",target:"_blank"},wp.element.createElement("strong",null,Object(i.__)("PRO Version","rank-math"))))),Object(a.map)(t,(function(e,t){return wp.element.createElement("div",{key:t,id:"rank-math-schema-item",className:"rank-math-schema-item row"},wp.element.createElement("strong",{className:"rank-math-schema-name"},wp.element.createElement("i",{className:Object(c.a)(e["@type"])}),Object(a.get)(e,"metadata.title",e["@type"])),wp.element.createElement("span",{className:"rank-math-schema-item-actions"},wp.element.createElement(o.Button,{className:"button rank-math-edit-schema",isLink:!0,onClick:function(){return r(t)}},wp.element.createElement("i",{className:"rm-icon rm-icon-edit"}),wp.element.createElement("span",null,Object(i.__)("Edit","rank-math"))),wp.element.createElement(o.Button,{className:"button rank-math-preview-schema",isLink:!0,onClick:function(){return s(t)}},wp.element.createElement("i",{className:"rm-icon rm-icon-eye"}),wp.element.createElement("span",null,Object(i.__)("Preview","rank-math"))),wp.element.createElement(l.a,{key:t,onClick:function(){return n(t)}},(function(e){return wp.element.createElement(o.Button,{isLink:!0,className:"button rank-math-delete-schema",onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(i.__)("Delete","rank-math")))}))))})))}));t.a=Object(n.compose)(Object(s.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schemas:t,showProNotice:1<=Object.keys(t).length}})),Object(s.withDispatch)((function(e){return{trash:function(t){e("rank-math").deleteSchema(t)},edit:function(t){e("rank-math").setEditingSchemaId(t),e("rank-math").toggleSchemaEditor(!0)},preview:function(t){e("rank-math").setEditingSchemaId(t),e("rank-math").setEditorTab("codeValidation"),e("rank-math").toggleSchemaEditor(!0)}}})))(m)},function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return u}));var a=r(1),i=r(0),n=r(17),o=r.n(n),s=r(3),c={version:"1.0.0",properties:{author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math")}}}},rating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},bookEditions:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Edition","rank-math"),help:Object(i.__)("Either a specific edition of the written work, or the volume of the work","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Book"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Title","rank-math"),help:Object(i.__)("The title of the tome. Use for the title of the tome if it differs from the book. *Optional when tome has the same title as the book","rank-math")}}},bookEdition:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Edition","rank-math"),help:Object(i.__)("The edition of the book","rank-math")}}},isbn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("ISBN","rank-math"),help:Object(i.__)("The ISBN of the print book","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math"),help:Object(i.__)("URL specific to this edition if one exists","rank-math")}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Date Published","rank-math"),help:Object(i.__)("Date of first publication of this tome","rank-math")}}},bookFormat:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Book Format","rank-math"),desc:"The format of the book.",options:{"https://schema.org/EBook":"eBook","https://schema.org/Hardcover":"Hardcover","https://schema.org/Paperback":"Paperback","https://schema.org/AudioBook":"Audio Book"},default:"https://schema.org/Hardcover"}}}},provider:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Course Provider","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Organization"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider URL","rank-math")}}}},"virtual-location":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{value:"VirtualLocation"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Online Event URL","rank-math"),help:Object(i.__)("The URL of the online event, where people can join. This property is required if your event is happening online","rank-math")}}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},"physical-location":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},"event-performer":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Performer Information","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Performer","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Person"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Website or Social Link","rank-math")}}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math")}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date when the item becomes valid.","rank-math")}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math")}}}},"monetary-amount-unit":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}},"monetary-amount":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"MonetaryAmount"}},currency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary Currency","rank-math"),help:Object(i.__)("ISO 4217 Currency code. Example: EUR","rank-math"),classes:"col-4"}}},value:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}}},"hiring-organization":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Organization"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Hiring Organization","rank-math"),placeholder:"%org_name%",help:Object(i.__)("The name of the company. Leave empty to use your own company information.","rank-math"),classes:"col-4"}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization URL (Recommended)","rank-math"),placeholder:"%org_url%",help:Object(i.__)("The URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}},logo:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization Logo (Recommended)","rank-math"),placeholder:"%org_logo%",help:Object(i.__)("Logo URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}}},brand:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Brand"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Brand Name","rank-math")}}}},calories:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"NutritionInformation"}},calories:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Calories","rank-math"),help:Object(i.__)("The number of calories in the recipe. Optional.","rank-math")}}}},"video-object":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"VideoObject"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("A recipe video Name","rank-math"),classes:"col-6"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),help:Object(i.__)("A recipe video Description","rank-math")}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video URL","rank-math"),help:Object(i.__)("A video URL. Optional.","rank-math"),classes:"col-6"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Video Thumbnail","rank-math"),help:Object(i.__)("A recipe video thumbnail URL","rank-math"),classes:"col-6"}}},duration:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Duration","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-6"}}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Video Upload Date","rank-math"),classes:"col-6"}}}},instructionText:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"HowtoStep"}},text:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea"}}}},instructions:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Instructions","rank-math"),help:Object(i.__)("Either a specific edition of the written work, or the volume of the work","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"HowToSection"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("Instruction name of the recipe.","rank-math")}}},itemListElement:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"instructionText",arrayProps:{map:{classes:"show-delete-property-group"}},classes:"show-add-property-group",field:{label:Object(i.__)("Instruction Texts","rank-math")}}}},"geo-coordinates":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Geo Cordinates","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"GeoCoordinates"}},latitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Latitude","rank-math")}}},longitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Longitude","rank-math")}}}},"opening-hours":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Timings","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"OpeningHoursSpecification"}},dayOfWeek:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"checkbox",label:Object(i.__)("Open Days","rank-math"),options:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},default:[]}}},opens:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Opening Time","rank-math"),classes:"col-6",placeholder:"09:00 AM"}}},closes:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Closing Time","rank-math"),classes:"col-6",placeholder:"05:00 PM"}}}},cuisine:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1},cuisine:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cuisine","rank-math")}}}}},schemas:{Article:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Article","rank-math"),defaultEn:"Article"},headline:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},keywords:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Keywords","rank-math"),placeholder:"%keywords%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Article Type","rank-math"),classes:"show-property",options:{Article:"Article",BlogPosting:"Blog Post",NewsArticle:"News Article"},notice:{status:"warning",className:"article-notice",content:Object(i.__)("Google does not allow Person as the Publisher for articles. Organization will be used instead.","rank-math")}}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Published Date","rank-math"),classes:"hide-group",default:"%date(Y-m-d\\TH:i:sP)%"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Modified Date","rank-math"),classes:"hide-group",default:"%modified(Y-m-d\\TH:i:sP)%"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Book:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Book","rank-math"),defaultEn:"Book"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math")}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},hasPart:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"bookEditions",arrayProps:{map:{classes:"show-delete-property-group"}},field:{label:Object(i.__)("Editions","rank-math")}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Course:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Course","rank-math"),defaultEn:"Course"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},provider:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Course Provider","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Organization"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider URL","rank-math")}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}}},Event:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Event","rank-math"),defaultEn:"Event"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"select",label:Object(i.__)("Event Type","rank-math"),help:Object(i.__)("Type of the event","rank-math"),classes:"show-property col-4",options:{Event:"Event",BusinessEvent:"Business Event",ChildrensEvent:"Childrens Event",ComedyEvent:"Comedy Event",DanceEvent:"Dance Event",DeliveryEvent:"Delivery Event",EducationEvent:"Education Event",ExhibitionEvent:"Exhibition Event",Festival:"Festival",FoodEvent:"Food Event",LiteraryEvent:"Literary Event",MusicEvent:"Music Event",PublicationEvent:"Publication Event",SaleEvent:"Sale Event",ScreeningEvent:"Screening Event",SocialEvent:"Social Event",SportsEvent:"Sports Event",TheaterEvent:"Theater Event",VisualArtsEvent:"Visual Arts Event"}}}},eventStatus:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Event Status","rank-math"),help:Object(i.__)("Current status of the event (optional)","rank-math"),options:{"":"None",EventScheduled:"Scheduled",EventCancelled:"Cancelled",EventPostponed:"Postponed",EventRescheduled:"Rescheduled",EventMovedOnline:"Moved Online"},classes:"col-4",default:"EventScheduled"}}},eventAttendanceMode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Event Attendance Mode","rank-math"),help:Object(i.__)("Indicates whether the event occurs online, offline at a physical location, or a mix of both online and offline.","rank-math"),options:{OfflineEventAttendanceMode:"Offline",OnlineEventAttendanceMode:"Online",MixedEventAttendanceMode:"Online + Offline"},default:"OfflineEventAttendanceMode",classes:"col-4"}}},VirtualLocation:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header",dependency:[{field:"eventAttendanceMode",value:["OnlineEventAttendanceMode","MixedEventAttendanceMode"]}]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{value:"VirtualLocation"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Online Event URL","rank-math"),help:Object(i.__)("The URL of the online event, where people can join. This property is required if your event is happening online","rank-math")}}}},location:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header",dependency:[{field:"eventAttendanceMode",value:["OfflineEventAttendanceMode","MixedEventAttendanceMode"]}]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},performer:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Performer Information","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Performer","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Person"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Website or Social Link","rank-math")}}}},startDate:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Start Date","rank-math"),help:Object(i.__)("Date and time of the event","rank-math"),classes:"col-4"}}},endDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("End Date","rank-math"),help:Object(i.__)("End date and time of the event","rank-math"),classes:"col-4"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group",placeholder:"General Admission"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group",placeholder:"primary"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math")}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date when the item becomes valid.","rank-math")}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math")}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},JobPosting:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Job Posting","rank-math"),defaultEn:"Job Posting"},title:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},baseSalary:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"MonetaryAmount"}},currency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary Currency","rank-math"),help:Object(i.__)("ISO 4217 Currency code. Example: EUR","rank-math"),classes:"col-4"}}},value:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}}},datePosted:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Date Posted","rank-math"),placeholder:"%date(Y-m-d)%",help:Object(i.__)("The original date on which employer posted the job. You can leave it empty to use the post publication date as job posted date","rank-math"),classes:"col-4"}}},validThrough:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Expiry Posted","rank-math"),help:Object(i.__)("The date when the job posting will expire. If a job posting never expires, or you do not know when the job will expire, do not include this property","rank-math"),classes:"col-4"}}},unpublish:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Unpublish when expired","rank-math"),options:{on:"Yes",off:"No"},help:Object(i.__)("If checked, post status will be changed to Draft and its URL will return a 404 error, as required by the Rich Result guidelines","rank-math"),classes:"col-4",default:"on"}}},employmentType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"checkbox",multiple:!0,label:Object(i.__)("Employment Type (Recommended)","rank-math"),help:Object(i.__)("Type of employment. You can choose more than one value","rank-math"),options:{"":"None",FULL_TIME:"Full Time",PART_TIME:"Part Time",CONTRACTOR:"Contractor",TEMPORARY:"Temporary",INTERN:"Intern",VOLUNTEER:"Volunteer",PER_DIEM:"Per Diem",OTHER:"Other"},default:[]}}},hiringOrganization:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Organization"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Hiring Organization","rank-math"),placeholder:"%org_name%",help:Object(i.__)("The name of the company. Leave empty to use your own company information.","rank-math"),classes:"col-4"}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization URL (Recommended)","rank-math"),placeholder:"%org_url%",help:Object(i.__)("The URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}},logo:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization Logo (Recommended)","rank-math"),placeholder:"%org_logo%",help:Object(i.__)("Logo URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}}},id:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Posting ID (Recommended)","rank-math"),help:Object(i.__)("The hiring organization's unique identifier for the job.","rank-math"),classes:"col-6"}}},jobLocation:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math"),classes:"hide-group"}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Music:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Music","rank-math"),defaultEn:"Music"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math"),placeholder:"%url%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Music Type","rank-math"),classes:"show-property",options:{MusicGroup:"MusicGroup",MusicAlbum:"MusicAlbum"},default:"MusicGroup"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Person:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Person","rank-math"),defaultEn:"Person"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},email:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Email","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},gender:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Gender","rank-math"),classes:"col-6"}}},jobTitle:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Job title","rank-math"),help:Object(i.__)("The job title of the person (for example, Financial Manager).","rank-math"),classes:"col-6"}}}},Product:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Product","rank-math"),defaultEn:"Product"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Product name","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},sku:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Product SKU","rank-math")}}},brand:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Brand"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Brand Name","rank-math")}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}},gtin8:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Gtin","rank-math"),classes:"hide-group"}}},mpn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("MPN","rank-math"),classes:"hide-group"}}},isbn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("ISBN","rank-math"),classes:"hide-group"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group",placeholder:"%url%"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date when the item becomes valid.","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}}},Recipe:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Recipe","rank-math"),defaultEn:"Recipe"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Published Date","rank-math"),classes:"hide-group",default:"%date(Y-m-d\\TH:i:sP)%"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},prepTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Preparation Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},cookTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cooking Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},totalTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Total Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},recipeCategory:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Type","rank-math"),help:Object(i.__)("Type of dish, for example appetizer, or dessert.","rank-math"),classes:"col-4"}}},recipeCuisine:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cuisine","rank-math"),help:Object(i.__)("The cuisine of the recipe (for example, French or Ethiopian).","rank-math"),classes:"col-4"}}},keywords:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Keywords","rank-math"),help:Object(i.__)("Other terms for your recipe such as the season, the holiday, or other descriptors. Separate multiple entries with commas.","rank-math"),classes:"col-4"}}},recipeYield:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Yield","rank-math"),help:Object(i.__)("Quantity produced by the recipe, for example 4 servings","rank-math"),classes:"col-4"}}},nutrition:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"NutritionInformation"}},calories:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Calories","rank-math"),help:Object(i.__)("The number of calories in the recipe. Optional.","rank-math")}}}},recipeIngredient:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"show-add-property show-delete-property",field:{label:Object(i.__)("Recipe Ingredients","rank-math"),help:Object(i.__)("Recipe ingredients, add one item per line","rank-math")}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},video:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"VideoObject"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("A recipe video Name","rank-math"),classes:"col-6"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),help:Object(i.__)("A recipe video Description","rank-math")}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video URL","rank-math"),help:Object(i.__)("A video URL. Optional.","rank-math"),classes:"col-6"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Video Thumbnail","rank-math"),help:Object(i.__)("A recipe video thumbnail URL","rank-math"),classes:"col-6"}}},duration:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Duration","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-6"}}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Video Upload Date","rank-math"),classes:"col-6"}}}},instructionType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Instruction Type","rank-math"),options:{SingleField:"Single Field",HowToStep:"How To Step"},default:"SingleField"}}},instructionsSingleField:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Recipe Instructions","rank-math")},dependency:[{field:"instructionType",value:"SingleField"}]}},instructionsHowToStep:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"instructions",arrayProps:{map:{classes:"show-delete-property-group"}},field:{label:Object(i.__)("Recipe Instructions","rank-math")},dependency:[{field:"instructionType",value:["HowToStep"]}]}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Restaurant:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Restaurant","rank-math"),defaultEn:"Restaurant"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},telephone:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Phone Number","rank-math")}}},priceRange:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Price Range","rank-math"),classes:"col-4"}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},geo:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Geo Cordinates","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"GeoCoordinates"}},latitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Latitude","rank-math")}}},longitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Longitude","rank-math")}}}},openingHoursSpecification:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Timings","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"OpeningHoursSpecification"}},dayOfWeek:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"checkbox",label:Object(i.__)("Open Days","rank-math"),options:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},default:[]}}},opens:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Opening Time","rank-math"),classes:"col-6",placeholder:"09:00 AM"}}},closes:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Closing Time","rank-math"),classes:"col-6",placeholder:"05:00 PM"}}}},servesCuisine:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"show-add-property show-delete-property",field:{label:Object(i.__)("Serves Cuisine","rank-math")}}},hasMenu:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Menu URL","rank-math"),help:Object(i.__)("URL pointing to the menu of the restaurant.","rank-math"),classes:"col-6"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Service:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Service","rank-math"),defaultEn:"Service"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},serviceType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Service Type","rank-math"),help:Object(i.__)("The type of service being offered, e.g. veterans' benefits, emergency relief, etc.","rank-math"),classes:"col-4"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:["col-4","hide-group"],options:{InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date when the item becomes valid.","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},SoftwareApplication:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Software","rank-math"),defaultEn:"Software"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},operatingSystem:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Operating System","rank-math"),help:Object(i.__)("For example, Windows 7, OSX 10.6, Android 1.6","rank-math"),classes:"col-6"}}},applicationCategory:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Application Category","rank-math"),help:Object(i.__)("For example, Game, Multimedia","rank-math"),classes:"col-6"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:["col-4","hide-group"],options:{InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date when the item becomes valid.","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},VideoObject:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Video","rank-math"),defaultEn:"Video"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can either use this shortcode or Schema Block in the block editor to print the schema data in the content in order to meet the Google's guidelines. Read more about it <a href=https://developers.google.com/search/docs/guides/sd-policies#content target=_blank>here</a>.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Upload Date","rank-math"),classes:"hide-group",placeholder:"%date(Y-m-d\\TH:i:sP)%"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Embed URL","rank-math"),help:Object(i.__)("A URL pointing to the embeddable player for the video","rank-math"),classes:"col-6"}}},duration:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Duration","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: 1H30M","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video Thumbnail","rank-math"),help:Object(i.__)("A video thumbnail URL","rank-math"),classes:"hide-group",placeholder:"%post_thumbnail%"}}}},WooCommerceProduct:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("WooCommerce Product","rank-math"),defaultEn:"WooCommerce Product"}},EDDProduct:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("EDD Product","rank-math"),defaultEn:"EDD Product"}}}},l={set:function(e,t,r){return!!e&&(localStorage.setItem(e,JSON.stringify({value:t,expires:this.expiry(r)})),!0)},get:function(e){if(!e)return!1;var t=localStorage.getItem(e);return!!t&&((t=JSON.parse(t)).expires&&Date.now()>t.expires?(localStorage.removeItem(e),!1):t.value)},remove:function(e){return!!e&&(localStorage.removeItem(e),!0)},expiry:function(e){if(!e)return!1;if(-1===e){var t=new Date;return t.setYear(1970),t.getTime()}var r=parseInt(e),a=e.replace(r,"");return"d"===a&&(r=24*r*60*60*1e3),"h"===a&&(r=60*r*60*1e3),"m"===a&&(r=60*r*1e3),"s"===a&&(r*=1e3),Date.now()+r}};function m(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d="rank_math_schema_templates_store",p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=null,this.templates=null,this.verion="1.1.0","product"!==rankMath.postType&&delete c.schemas.WooCommerceProduct,"download"!==rankMath.postType&&delete c.schemas.EDDProduct,this.cache=Object(s.applyFilters)("rank_math_schema_maps",c),Object(s.doAction)("rank_math_schema_template_loaded")}var t,r,n;return t=e,(r=[{key:"verifyCache",value:function(){var e=l.get(d);return!1!==e&&this.version===e.version&&(this.cache=e,Object(s.doAction)("rank_math_schema_template_loaded"),!0)}},{key:"fetchStore",value:function(){var e=this;o()({method:"GET",url:"//"+window.location.host+"/wp-json/rankmath/v1/getSchemas"}).then((function(t){l.set(d,t,"30d"),e.cache=t,Object(s.doAction)("rank_math_schema_template_loaded")}))}},{key:"getMap",value:function(e){var t=Object(a.get)(this.cache.properties,e,!1);return t||Object(a.get)(this.cache.schemas,e,!1)}},{key:"getTemplates",value:function(){var e=this;return null===this.templates&&(this.templates=[],Object(a.forEach)(this.cache.schemas,(function(t,r){var n=Object(a.get)(t,"map.title",r);e.templates.push({type:r,title:"WooCommerceProduct"!==r?n:Object(i.__)("WooCommerce Product","rank-math")})})),this.templates=Object(a.orderBy)(this.templates,"type")),this.templates}}])&&m(t.prototype,r),n&&m(t,n),e}());function u(e){return p.getMap(e)}},function(e,t,r){"use strict";var a=r(13),i=r.n(a),n=r(9),o=r.n(n),s=r(8),c=r.n(s),l=r(1),m=r(10),d=r(0),p=r(7),u=r(6),h=r(2),b=r(5),f=r(3),y=r(4),_=function(e){var t=e.position,r=void 0===t?"middle right":t,a=e.value,i=e.onChange,n=e.children;return wp.element.createElement(h.Dropdown,{position:r,className:"rank-math-datepicker",contentClassName:"rank-math-datepicker__dialog",renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return wp.element.createElement(u.Fragment,null,n,wp.element.createElement(h.Button,{icon:"calendar-alt",onClick:t,"aria-expanded":r}))},renderContent:function(){return wp.element.createElement(h.DatePicker,{currentDate:a.split("T")[0],onChange:function(e){i(e.split("T")[0])}})}})},R=function(e){var t=e.position,r=void 0===t?"middle right":t,a=e.value,i=e.onChange,n=e.children;return wp.element.createElement(h.Dropdown,{position:r,className:"rank-math-datepicker",contentClassName:"rank-math-datepicker__dialog",renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return wp.element.createElement(u.Fragment,null,n,wp.element.createElement(h.Button,{icon:"calendar-alt",onClick:t,"aria-expanded":r}))},renderContent:function(){return wp.element.createElement(h.DateTimePicker,{is12Hour:!0,currentDate:a,onChange:i})}})};function O(e){return Object(l.map)(e,(function(e,t){return{label:e,value:t}}))}var g=["value","onChange","type","options"];function k(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var A=function(e){var t=e.value,r=e.onChange,a=e.type,i=e.options,n=void 0===i?{}:i,o=w(e,g);return Object(l.isUndefined)(o.help)||(o.help=Object(u.RawHTML)({children:o.help})),"radio"===a?wp.element.createElement(h.RadioControl,j({selected:t,options:O(n),onChange:r},o)):"select"===a?(!Object(l.has)(o,"multiple")&&Object(l.isArray)(t)&&(t=t[0]),wp.element.createElement(h.SelectControl,j({value:t,options:O(n),onChange:r},o))):"toggle"===a?wp.element.createElement(h.ToggleControl,j({checked:t,onChange:r},o)):"number"===a?wp.element.createElement(h.TextControl,j({type:"number",autoComplete:"off",step:"0.01",value:t,onChange:r},o)):"url"===a?wp.element.createElement(h.TextControl,j({type:"url",autoComplete:"off",value:t,onChange:r},o)):"datepicker"===a?wp.element.createElement(_,{value:t,position:"middle left",onChange:r},wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))):"datetimepicker"===a?wp.element.createElement(R,{value:t,position:"middle left",onChange:r},wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))):"textarea"===a?wp.element.createElement(h.TextareaControl,j({rows:5,value:t,onChange:r},o)):"checkbox"===a?wp.element.createElement("div",{className:"rank-math-checkbox-component components-base-control schema-property--value"},wp.element.createElement("label",{htmlFor:"checklist-label",className:"components-base-control__label"},o.label),wp.element.createElement("div",null,O(n).map((function(e){return wp.element.createElement(h.CheckboxControl,{key:Object(l.uniqueId)("checkbox-"),label:e.label,checked:Object(l.includes)(t,e.value),onChange:function(a){var i=k(t);a?i.push(e.value):Object(l.remove)(i,(function(t){return t===e.value})),r(i)}})})))):wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))};A.defaultProps={value:"",type:"text",onChange:null},A.propTypes={id:i.a.string,onChange:i.a.func.isRequired};var G=A,q=r(11);function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C=Object(p.compose)(Object(b.withSelect)((function(e,t){return P(P({},t),{},{isPro:e("rank-math").isPro()})})))((function(e){if(!1===Object(y.n)(e.data,e.schema))return e.data.map.isHidden=!0,null;var t=e.data,r=t.property,a=t.id,i=t.map,n=e.actions,s=n.removeProperty,c=n.propertyChange,m=n.duplicateProperty,d=Object(l.get)(i,"field",{label:!1}),p=P({},d),b=function(e,t){var r=e.data,a=r.property,i=r.value,n=e.schema.metadata;return i===Object(l.get)(t,"placeholder","")&&(i=""),"reviewLocation"===a&&Object(l.has)(n,"reviewLocation")&&(i=n.reviewLocation),"unpublish"===a&&Object(l.has)(n,"unpublish")&&(i=n.unpublish),e.isPro&&"[rank_math_rich_snippet]"===i&&(i='[rank_math_rich_snippet id="'+n.shortcode+'"]'),Object(f.applyFilters)("rank_math_schema_property_value",i,e)}(e,d);i.isRequired&&(d.label&&(p.label=wp.element.createElement(u.Fragment,null,d.label," ",wp.element.createElement("span",null,"*"))),d.placeholder||(p.required="required")),e.isCustom&&(p.type="text",delete p.label);var _=o()("schema-group-or-property-container schema-property-container",Object(l.get)(d,"classes",!1),{"hide-property":"@type"===r});return e.data.map.isHidden=!1,wp.element.createElement("div",{className:_},wp.element.createElement("div",{className:"schema-group-or-property schema-property"},wp.element.createElement("div",{className:"schema-property--body"},!e.isCustom&&d.label?null:wp.element.createElement("div",{className:"schema-property--field"},wp.element.createElement(h.TextControl,{value:r,onChange:function(e){c(a,"property",e)}})),wp.element.createElement("div",{className:"schema-property--value"},wp.element.createElement(G,E({value:b},p,{onChange:function(e){c(a,"value",e)}})),Object(l.has)(p,"notice")&&wp.element.createElement(h.Notice,E({isDismissible:!1},p.notice),p.notice.content)),!i.isRequired&&wp.element.createElement("div",{className:"schema-property--header"},wp.element.createElement(h.Button,{isSecondary:!0,className:"button rank-math-duplicate-property",onClick:function(){return m(a,e.parentId,e.data)}},wp.element.createElement("i",{className:"rm-icon rm-icon-copy"})),wp.element.createElement(q.a,{key:a,onClick:function(){return s(a,e.parentId)}},(function(e){return wp.element.createElement(h.Button,{isSecondary:!0,className:"button rank-math-delete-group",onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}))}))))))})),I={},D=function e(t){if(!1===Object(y.n)(t.data,t.schema))return t.data.map.isHidden=!0,null;var r=t.parentId,a=t.isCustom,i=t.isPro,n=t.isMain,s=void 0!==n&&n,c=t.data,m=c.id,p=c.property,u=c.properties,b=c.map,_=t.actions,R=_.addProperty,O=_.addGroup,g=_.removeGroup,k=_.propertyChange,v=_.duplicateGroup,j=Object(l.get)(b,"field",{label:!1}),w=o()("schema-group-or-property-container schema-group-container",Object(l.get)(b,"classes",!1),{"hide-property":"metadata"===p,"is-group":b.isGroup,"is-array":b.isArray,"no-array-map":Object(l.isUndefined)(b.arrayMap)});return b.isArray&&(I[m]=0),t.data.map.isHidden=!1,wp.element.createElement("div",{className:w},wp.element.createElement("div",{className:"schema-group-or-property schema-group"},Object(f.applyFilters)("rank_math_schema_before_fields","",p),wp.element.createElement("div",{className:"schema-group-header"},function(){if(t.isArray)return I[r]+=1,wp.element.createElement("div",{className:"schema-property--label"},Object(l.startCase)(p)," ",I[r]);if(!a&&j.label)return wp.element.createElement("div",{className:"schema-property--label"},j.label);var e="WooCommerceProduct"!==p?p:"WooCommerce Product";return wp.element.createElement("div",{className:"schema-property--field"},wp.element.createElement(h.TextControl,{value:e,disabled:!i,onChange:function(e){k(m,"property",e)}}))}(),wp.element.createElement(h.ButtonGroup,{className:"schema-group--actions schema-group--actions--tr"},wp.element.createElement(h.Button,{className:"button rank-math-add-property",isLink:!0,onClick:function(){return R(m)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property","rank-math"))),wp.element.createElement(h.Button,{className:"button rank-math-add-property-group",isLink:!0,onClick:function(){return O(m,b)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property Group","rank-math"))),!s&&wp.element.createElement(h.Button,{className:"button rank-math-duplicate-property-group",isLink:!0,onClick:function(){return v(m,t.parentId,t.data)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Duplicate Group","rank-math"))),wp.element.createElement(q.a,{key:m,onClick:function(){return g(m,t.parentId)}},(function(e){return wp.element.createElement(h.Button,{className:"button rank-math-delete-group",isLink:!0,onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(d.__)("Delete","rank-math")))})))),wp.element.createElement("div",{className:"schema-group--children"},Object(l.map)(u,(function(r,n){return r.map.isGroup?wp.element.createElement(e,{key:n,data:r,parentId:m,isArray:b.isArray,isCustom:a,schema:t.schema,actions:t.actions,isPro:i}):wp.element.createElement(C,{key:n,data:r,parentId:m,isCustom:a,schema:t.schema,actions:t.actions})}))),s&&wp.element.createElement("div",{className:"schema-group-footer"},wp.element.createElement(h.ButtonGroup,{className:"schema-group--actions schema-group--actions--tr"},wp.element.createElement(h.Button,{className:"button rank-math-add-property",isLink:!0,onClick:function(){return R(m)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property","rank-math"))),wp.element.createElement(h.Button,{className:"button rank-math-add-property-group",isLink:!0,onClick:function(){return O(m,b)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property Group","rank-math"))),wp.element.createElement(q.a,{key:m,onClick:function(){return g(m,t.parentId)}},(function(e){return wp.element.createElement(h.Button,{className:"button rank-math-delete-group",isLink:!0,onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(d.__)("Delete","rank-math")))}))))))};function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=z(e);if(t){var i=z(this).constructor;r=Reflect.construct(a,arguments,i)}else r=a.apply(this,arguments);return V(this,r)}}function V(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?Y(e):t}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(n,e);var t,
|
|