EVOLUTION-MANAGER
Edit File: gutenberg.js
!function(){var t={184:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&t.push(o)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){"use strict";var t={};r.r(t),r.d(t,{deleteSchema:function(){return $t},refreshResults:function(){return It},resetDirtyMetadata:function(){return D},resetRedirection:function(){return z},saveSchema:function(){return Wt},saveTemplate:function(){return Jt},schemaUpdated:function(){return Kt},setEditingSchemaId:function(){return zt},setEditorTab:function(){return Lt},setTemplateTab:function(){return Gt},setVersion:function(){return Ot},toggleFrontendScore:function(){return w},toggleIsDiviPageSettingsBarActive:function(){return Et},toggleIsDiviRankMathModalActive:function(){return At},toggleLoaded:function(){return Tt},toggleSchemaEditor:function(){return Ft},toggleSchemaTemplates:function(){return Ht},toggleSnippetEditor:function(){return Y},updateAIScore:function(){return Qt},updateAdvancedRobots:function(){return _},updateAnalysisScore:function(){return k},updateAppData:function(){return y},updateAppUi:function(){return g},updateBreadcrumbTitle:function(){return P},updateCanonicalUrl:function(){return S},updateDescription:function(){return N},updateEditSchema:function(){return qt},updateEditSchemas:function(){return Bt},updateFacebookDescription:function(){return O},updateFacebookHasOverlay:function(){return j},updateFacebookImage:function(){return E},updateFacebookImageID:function(){return A},updateFacebookImageOverlay:function(){return R},updateFacebookTitle:function(){return I},updateFeaturedImage:function(){return x},updateHasRedirect:function(){return L},updateHighlightedParagraphs:function(){return jt},updateKeywords:function(){return b},updatePermalink:function(){return C},updatePillarContent:function(){return v},updatePostID:function(){return M},updatePrimaryTermID:function(){return F},updateRedirection:function(){return H},updateRedirectionItem:function(){return K},updateRobots:function(){return T},updateSchemas:function(){return Vt},updateSelectedKeyword:function(){return Pt},updateSerpDescription:function(){return X},updateSerpSlug:function(){return Q},updateSerpTitle:function(){return J},updateSnippetPreviewType:function(){return Z},updateSocialTab:function(){return Dt},updateTitle:function(){return U},updateTwitterAppCountry:function(){return _t},updateTwitterAppDescription:function(){return dt},updateTwitterAppGoogleplayID:function(){return wt},updateTwitterAppGoogleplayName:function(){return kt},updateTwitterAppGoogleplayUrl:function(){return St},updateTwitterAppIpadID:function(){return gt},updateTwitterAppIpadName:function(){return bt},updateTwitterAppIpadUrl:function(){return vt},updateTwitterAppIphoneID:function(){return mt},updateTwitterAppIphoneName:function(){return ht},updateTwitterAppIphoneUrl:function(){return yt},updateTwitterAuthor:function(){return it},updateTwitterCardType:function(){return et},updateTwitterDescription:function(){return nt},updateTwitterHasOverlay:function(){return ut},updateTwitterImage:function(){return ot},updateTwitterImageID:function(){return at},updateTwitterImageOverlay:function(){return ct},updateTwitterPlayerSize:function(){return lt},updateTwitterPlayerStreamCtype:function(){return ft},updateTwitterPlayerStreamUrl:function(){return pt},updateTwitterPlayerUrl:function(){return st},updateTwitterTitle:function(){return rt},updateTwitterUseFacebook:function(){return tt}});var e={};r.r(e),r.d(e,{appData:function(){return ie},appUi:function(){return le}});var n={};r.r(n),r.d(n,{getAdvancedRobots:function(){return ge},getAnalysisScore:function(){return de},getAppData:function(){return pe},getBreadcrumbTitle:function(){return ve},getCanonicalUrl:function(){return be},getDescription:function(){return Ke},getDirtyMetadata:function(){return fe},getEditSchemas:function(){return ar},getEditingSchema:function(){return or},getEditorTab:function(){return cr},getFacebookAuthor:function(){return Re},getFacebookDescription:function(){return je},getFacebookHasOverlay:function(){return Ue},getFacebookImage:function(){return Ce},getFacebookImageID:function(){return Me},getFacebookImageOverlay:function(){return Ne},getFacebookTitle:function(){return Ae},getFeaturedImage:function(){return ze},getFeaturedImageHtml:function(){return Le},getHighlightedParagraphs:function(){return Ee},getKeywords:function(){return me},getPermalink:function(){return He},getPillarContent:function(){return he},getPostID:function(){return xe},getPreviewSchema:function(){return ur},getPrimaryTermID:function(){return Ge},getRedirectionID:function(){return Be},getRedirectionItem:function(){return We},getRedirectionType:function(){return Ve},getRedirectionUrl:function(){return qe},getRichSnippets:function(){return we},getRobots:function(){return ye},getSchemas:function(){return ir},getSelectedKeyword:function(){return _e},getSerpDescription:function(){return Ye},getSerpSlug:function(){return Xe},getSerpTitle:function(){return Qe},getShowScoreFrontend:function(){return ke},getSnippetPreviewType:function(){return tr},getSocialTab:function(){return Te},getTemplateTab:function(){return sr},getTitle:function(){return Fe},getTwitterAppCountry:function(){return Er},getTwitterAppDescription:function(){return vr},getTwitterAppGoogleplayID:function(){return Dr},getTwitterAppGoogleplayName:function(){return Ir},getTwitterAppGoogleplayUrl:function(){return Or},getTwitterAppIpadID:function(){return _r},getTwitterAppIpadName:function(){return Tr},getTwitterAppIpadUrl:function(){return Pr},getTwitterAppIphoneID:function(){return wr},getTwitterAppIphoneName:function(){return kr},getTwitterAppIphoneUrl:function(){return Sr},getTwitterAuthor:function(){return mr},getTwitterCardType:function(){return pr},getTwitterDescription:function(){return dr},getTwitterHasOverlay:function(){return gr},getTwitterImage:function(){return yr},getTwitterImageID:function(){return hr},getTwitterImageOverlay:function(){return br},getTwitterPlayerSize:function(){return jr},getTwitterPlayerStream:function(){return Rr},getTwitterPlayerStreamCtype:function(){return Mr},getTwitterPlayerUrl:function(){return Ar},getTwitterTitle:function(){return fr},getTwitterUseFacebook:function(){return lr},hasRedirect:function(){return $e},hasSchemaUpdated:function(){return nr},isDiviPageSettingsBarActive:function(){return Ie},isDiviRankMathModalActive:function(){return Oe},isLoaded:function(){return Se},isPro:function(){return De},isRefreshing:function(){return Pe},isSchemaEditorOpen:function(){return er},isSchemaTemplatesOpen:function(){return rr},isSnippetEditorOpen:function(){return Ze}});var i=jQuery,a=r.n(i),o=wp.i18n,u=wp.data,c=wp.element,s=wp.plugins,l=wp.hooks,p=wp.editPost;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function m(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}var h=new(function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=null,(r=m(r="map"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n}var e,r,n;return e=t,(r=[{key:"swap",value:function(t,e){var r=this;if(!(t=t||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(t){return r.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var r=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(t=t||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in t?t[r]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},a().each(rankMath.variables,(function(e,r){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=r.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&d(e.prototype,r),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=(0,l.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,l.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,l.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function g(t,e){return(0,l.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function b(t){return h.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),y("keywords",t,"rank_math_focus_keyword")}function v(t){return y("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function w(t){return y("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function k(t){return y("score",t,"rank_math_seo_score")}function S(t){return y("canonicalUrl",t,"rank_math_canonical_url")}function _(t){return y("advancedRobots",t,"rank_math_advanced_robots")}function T(t){return y("robots",t,"rank_math_robots",Object.keys(t))}function P(t){return y("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function D(){return y("dirtyMetadata",{})}function I(t){return y("facebookTitle",t,"rank_math_facebook_title")}function O(t){return y("facebookDescription",t,"rank_math_facebook_description")}function E(t){return y("facebookImage",t,"rank_math_facebook_image")}function A(t){return y("facebookImageID",t,"rank_math_facebook_image_id")}function j(t){return y("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function R(t){return y("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function M(t){return rankMath.objectID=t,y("postID",t)}function C(t){return y("permalink",t,"permalink")}function U(t){return y("title",t,"rank_math_title")}function N(t){return y("description",t,"rank_math_description")}function x(t){return y("featuredImage",t)}function F(t,e){return y("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function H(t,e){return y(t,e)}function K(t){return g("redirectionItem",t)}function z(){return g("redirectionItem",{})}function L(t){return g("hasRedirect",t)}var G=rankMathAnalyzer,B=lodash,V=document.createElement("div");function q(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),V.innerHTML=t,t=V.textContent,V.textContent=""),t}var W=function(t,e){return t=(t=G.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?(0,B.truncate)(t,{length:e,separator:" "}):t},$=function(t){if((0,B.isEmpty)(t))return"";t=G.Helpers.stripScript(t),t=G.Helpers.stripStyle(t),t=(0,B.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,B.filter)(G.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,B.filter)(e,(function(t){return(0,B.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return W(n[0],160)}return W(e[0],160)};function J(t){return t=h.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),g("serpTitle",q(t))}function Q(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),g("serpSlug",t)}function X(t){return t=h.swap(function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=$(e.content),i=(0,B.isUndefined)(r)||(0,B.isEmpty)(r)?n:(0,B.unescape)(r);if(h.setVariable("excerpt",i),h.setVariable("seo_description",i),""!==(t=q((0,l.applyFilters)("rankMath/description",t))))return G.Helpers.cleanText(t);if(!(0,B.isUndefined)(r)&&!(0,B.isEmpty)(r))return G.Helpers.cleanText(r);var a=(0,B.unescape)(rankMath.assessor.serpData.descriptionTemplate);return(0,B.isUndefined)(a)||""===a?n:G.Helpers.cleanText(a)}(t)),rankMathEditor.refresh("description"),g("serpDescription",t)}function Y(t){return g("isSnippetEditorOpen",t)}function Z(t){return g("snippetPreviewType",t)}function tt(t){return y("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function et(t){return y("twitterCardType",t,"rank_math_twitter_card_type")}function rt(t){return y("twitterTitle",t,"rank_math_twitter_title")}function nt(t){return y("twitterDescription",t,"rank_math_twitter_description")}function it(t){return y("twitterAuthor",t,"rank_math_twitter_author")}function at(t){return y("twitterImageID",t,"rank_math_twitter_image_id")}function ot(t){return y("twitterImage",t,"rank_math_twitter_image")}function ut(t){return y("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function ct(t){return y("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function st(t){return y("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function lt(t){return y("twitterPlayerSize",t,"rank_math_twitter_player_size")}function pt(t){return y("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function ft(t){return y("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function dt(t){return y("twitterAppDescription",t,"rank_math_twitter_app_description")}function mt(t){return y("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function ht(t){return y("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function yt(t){return y("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function gt(t){return y("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function bt(t){return y("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function vt(t){return y("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function wt(t){return y("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function kt(t){return y("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function St(t){return y("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function _t(t){return y("twitterAppCountry",t,"rank_math_twitter_app_country")}function Tt(t){return g("isLoaded",t)}function Pt(t){return g("selectedKeyword",t)}function Dt(t){return g("socialTab",t)}function It(){return g("refreshResults",Date.now())}function Ot(){return g("isPro",!0)}function Et(t){return g("isDiviPageSettingsBarActive",t)}function At(t){return g("isDiviRankMathModalActive",t)}function jt(t){return g("highlightedParagraphs",t)}var Rt=wp.apiFetch,Mt=r.n(Rt);function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function Ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ct(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ct(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ft(t){return g("isSchemaEditorOpen",t)}function Ht(t){return g("isSchemaTemplatesOpen",t)}function Kt(t){return g("schemaUpdated",t)}function zt(t){return g("editingSchemaId",t)}function Lt(t){return g("editorTab",t)}function Gt(t){return g("templateTab",t)}function Bt(t){return g("editSchemas",t)}function Vt(t){return y("schemas",t)}function qt(t,e){var r=Nt({},(0,u.select)("rank-math").getEditSchemas());return r[t]=e,g("editSchemas",r)}function Wt(t,e){var r=Nt({},(0,u.select)("rank-math").getSchemas());return r[t]=e,y("schemas",r)}function $t(t){var e=Nt({},(0,u.select)("rank-math").getSchemas());return delete e[t],(0,l.doAction)("rank_math_schema_trash",t),y("schemas",e,"rank_math_delete_"+t,"")}function Jt(t,e,r){return Mt()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:r}}).then((function(r){e({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){e({showNotice:!1}),(0,B.get)(rankMath,"isTemplateScreen",!1)&&(document.title=(0,o.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Qt(t){return y("contentAIScore",t,"rank_math_contentai_score")}function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){te(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function te(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ee=rankMath.assessor.serpData,re=rankMath.assessor.hasRedirection,ne={postID:null,title:ee.title?ee.title:ee.titleTemplate,description:ee.description,keywords:ee.focusKeywords,pillarContent:ee.pillarContent,featuredImage:"",permalink:!1,primaryTerm:ee.primaryTerm,robots:ee.robots,advancedRobots:ee.advancedRobots,canonicalUrl:ee.canonicalUrl,breadcrumbTitle:ee.breadcrumbTitle,showScoreFrontend:ee.showScoreFrontend,redirectionID:re?(0,B.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:re?(0,B.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:re?(0,B.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:ee.facebookTitle,facebookImage:ee.facebookImage,facebookImageID:ee.facebookImageID,facebookAuthor:ee.facebookAuthor,facebookDescription:ee.facebookDescription,facebookHasOverlay:ee.facebookHasOverlay,facebookImageOverlay:ee.facebookImageOverlay,twitterTitle:ee.twitterTitle,twitterImage:ee.twitterImage,twitterAuthor:ee.twitterAuthor,twitterImageID:ee.twitterImageID,twitterCardType:ee.twitterCardType,twitterUseFacebook:ee.twitterUseFacebook,twitterDescription:ee.twitterDescription,twitterHasOverlay:ee.twitterHasOverlay,twitterImageOverlay:ee.twitterImageOverlay,twitterPlayerUrl:ee.twitterPlayerUrl,twitterPlayerSize:ee.twitterPlayerSize,twitterPlayerStream:ee.twitterPlayerStream,twitterPlayerStreamCtype:ee.twitterPlayerStreamCtype,twitterAppDescription:ee.twitterAppDescription,twitterAppIphoneName:ee.twitterAppIphoneName,twitterAppIphoneID:ee.twitterAppIphoneID,twitterAppIphoneUrl:ee.twitterAppIphoneUrl,twitterAppIpadName:ee.twitterAppIpadName,twitterAppIpadID:ee.twitterAppIpadID,twitterAppIpadUrl:ee.twitterAppIpadUrl,twitterAppGoogleplayName:ee.twitterAppGoogleplayName,twitterAppGoogleplayID:ee.twitterAppGoogleplayID,twitterAppGoogleplayUrl:ee.twitterAppGoogleplayUrl,twitterAppCountry:ee.twitterAppCountry,schemas:(0,B.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,e=arguments.length>1?arguments[1]:void 0,r=Zt({},t.dirtyMetadata);return!1!==e.metaKey&&(r[e.metaKey]=e.metaValue),"RANK_MATH_APP_DATA"===e.type?"dirtyMetadata"===e.key?Zt(Zt({},t),{},{dirtyMetadata:e.value}):Zt(Zt({},t),{},te(te({},e.key,e.value),"dirtyMetadata",r)):t}function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(r),!0).forEach((function(e){ce(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ce(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ae(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var se={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!(0,B.isEmpty)((0,B.get)(rankMath.assessor,"redirection.id",""))&&!(0,B.isEmpty)((0,B.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},socialTab:"facebook",highlightedParagraphs:[],editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?ue(ue({},t),{},ce({},e.key,e.value)):t}function pe(t){return t.appData}function fe(t){return t.appData.dirtyMetadata}function de(t){return t.appData.score}function me(t){return t.appData.keywords}function he(t){return t.appData.pillarContent}function ye(t){return t.appData.robots}function ge(t){return t.appData.advancedRobots}function be(t){return t.appData.canonicalUrl}function ve(t){return t.appData.breadcrumbTitle}function we(t){return"todo"}function ke(t){return t.appData.showScoreFrontend}function Se(t){return t.appUi.isLoaded}function _e(t){return t.appUi.selectedKeyword}function Te(t){return t.appUi.socialTab}function Pe(t){return t.appUi.refreshResults}function De(t){return t.appUi.isPro}function Ie(t){return t.appUi.isDiviPageSettingsBarActive}function Oe(t){return t.appUi.isDiviRankMathModalActive}function Ee(t){return t.appUi.highlightedParagraphs}function Ae(t){return t.appData.facebookTitle}function je(t){return t.appData.facebookDescription}function Re(t){return t.appData.facebookAuthor}function Me(t){return t.appData.facebookImageID}function Ce(t){return t.appData.facebookImage}function Ue(t){return t.appData.facebookHasOverlay}function Ne(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function xe(t){return t.appData.postID}function Fe(t){return t.appData.title}function He(t){return t.appData.permalink}function Ke(t){return t.appData.description}function ze(t){return t.appData.featuredImage}function Le(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Ge(t){return t.appData.primaryTerm}function Be(t){return t.appData.redirectionID}function Ve(t){return t.appData.redirectionType}function qe(t){return t.appData.redirectionUrl}function We(t){return t.appUi.redirectionItem}function $e(t){return t.appUi.hasRedirect}var Je=wp.url;function Qe(t){return q(t.appUi.serpTitle)}function Xe(t){return(0,Je.safeDecodeURIComponent)(t.appUi.serpSlug)}function Ye(t){return t.appUi.serpDescription}function Ze(t){return t.appUi.isSnippetEditorOpen}function tr(t){return t.appUi.snippetPreviewType}function er(t){return t.appUi.isSchemaEditorOpen}function rr(t){return t.appUi.isSchemaTemplatesOpen}function nr(t){return t.appUi.schemaUpdated}function ir(t){return t.appData.schemas}function ar(t){return t.appUi.editSchemas}function or(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function ur(t){return t.appData.schemas[t.appUi.editingSchemaId]}function cr(t){return t.appUi.editorTab}function sr(t){return t.appUi.templateTab}function lr(t){return t.appData.twitterUseFacebook}function pr(t){return t.appData.twitterCardType}function fr(t){return t.appData.twitterTitle}function dr(t){return t.appData.twitterDescription}function mr(t){return t.appData.twitterAuthor}function hr(t){return t.appData.twitterImageID}function yr(t){return t.appData.twitterImage}function gr(t){return t.appData.twitterHasOverlay}function br(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function vr(t){return t.appData.twitterAppDescription}function wr(t){return t.appData.twitterAppIphoneID}function kr(t){return t.appData.twitterAppIphoneName}function Sr(t){return t.appData.twitterAppIphoneUrl}function _r(t){return t.appData.twitterAppIpadID}function Tr(t){return t.appData.twitterAppIpadName}function Pr(t){return t.appData.twitterAppIpadUrl}function Dr(t){return t.appData.twitterAppGoogleplayID}function Ir(t){return t.appData.twitterAppGoogleplayName}function Or(t){return t.appData.twitterAppGoogleplayUrl}function Er(t){return t.appData.twitterAppCountry}function Ar(t){return t.appData.twitterPlayerUrl}function jr(t){return t.appData.twitterPlayerSize}function Rr(t){return t.appData.twitterPlayerStream}function Mr(t){return t.appData.twitterPlayerStreamCtype}var Cr=(0,u.registerStore)("rank-math",{reducer:(0,u.combineReducers)(e),selectors:n,actions:t});function Ur(){return Cr}var Nr={"&":"&",""":'"',"'":"'"},xr=/&(?:amp|quot|#(0+)?39);/g,Fr=RegExp(xr.source);var Hr=function(t){return t&&Fr.test(t)?t.replace(xr,(function(t){return Nr[t]||"'"})):t||""};function Kr(t){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(t)}function zr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Kr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Kr(a)?a:String(a)),n)}var i,a}var Lr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new G.Analyzer({i18n:o,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),(0,l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),(0,l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),(0,l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,r,n;return e=t,r=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&(0,u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||(0,B.isObject)(t)||(0,B.isEmpty)(t)?t:G.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var r=Ur().getState(),n=this.dataCollector.getData(),i=new G.Paper("",{locale:rankMath.localeFull});i.setTitle(r.appUi.serpTitle),i.setPermalink(n.slug),i.setDescription(r.appUi.serpDescription),i.setUrl(n.permalink),i.setText(Hr((0,l.applyFilters)("rank_math_content",n.content))),i.setKeyword(t),i.setKeywords(e),i.setSchema(r.appData.schemas),(0,B.isUndefined)(n.featuredImage)||(i.setThumbnail(n.featuredImage.source_url),i.setThumbnailAltText(G.Helpers.removeDiacritics(n.featuredImage.alt_text)));var a=(0,u.select)("rank-math-content-ai");if(!(0,B.isEmpty)(a)){var o=a.getData(),c=a.getScore();i.setContentAI(c||!(0,B.isEmpty)(o.keyword))}return i}},{key:"registerRefresh",value:function(){var t=this;this.refresh=(0,B.debounce)((function(e){var r=Ur().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),i=[];(0,l.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var a=t.getPaper(G.Helpers.removeDiacritics(e),n),o=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());i.push(t.analyzer.analyzeSome(o,a).then((function(t){rankMathEditor.resultManager.update(a.getKeyword(),t,0===r),0===r&&(0,u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(i).then((function(){(0,u.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 t=Ur().getState().appData.keywords;return G.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Ur().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return G.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return(0,B.intersection)(t,rankMath.assessor.researchesTests)}}],r&&zr(e.prototype,r),n&&zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Gr=Lr;function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Vr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Br(a)?a:String(a)),n)}var i,a}var qr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&((0,l.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),(0,l.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,r,n;return e=t,(r=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:(0,o.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:(0,o.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:(0,o.sprintf)((0,o.__)("Content should be %1$s long.","rank-math"),'<a href="https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_campaign=WP#overall-content-length" target="_blank">'+(0,o.__)("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}}}}])&&Vr(e.prototype,r),n&&Vr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}function $r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Wr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Wr(a)?a:String(a)),n)}var i,a}var Jr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,(r=[{key:"setup",value:function(t){Ur(),this.resultManager=new G.ResultManager,this.assessor=new Gr(t),new qr,(0,l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&$r(e.prototype,r),n&&$r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Qr=function(){return!((0,B.isNil)(window.wp)||(0,B.isNil)(wp.data)||(0,B.isNil)(wp.data.select("core/editor"))||!window.document.body.classList.contains("block-editor-page")||!(0,B.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))};function Xr(t){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(t)}function Yr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yr(Object(r),!0).forEach((function(e){en(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rn(n.key),n)}}function en(t,e,r){return(e=rn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rn(t){var e=function(t,e){if("object"!==Xr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xr(e)?e:String(e)}var nn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),en(this,"initialize",!1),en(this,"isSavingRedirection",!1),en(this,"isSavingSchemas",!1),en(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 e,r,n;return e=t,(r=[{key:"collectGutenbergData",value:function(){if(Qr())return this._coreEditorSelect||(this._coreEditorSelect=(0,u.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 t=this.getPostAttribute("generated_slug");return"auto-draft"!==t&&"en"===rankMath.locale||(t=""),(0,Je.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var t=this.getPostAttribute("generated_slug");return"auto-draft"!==t&&"en"===rankMath.locale||(t=""),(0,Je.safeDecodeURIComponent)(this.getPostAttribute("slug")||t)}},{key:"getFeaturedImage",value:function(){var t=this.getPostAttribute("featured_media");if(this.isValidMediaId(t)){var e=(0,u.select)("core").getMedia(t);if(!(0,B.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"getPostAttribute",value:function(t){return Qr()?(this._coreEditorSelect||(this._coreEditorSelect=(0,u.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(t)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=(0,B.debounce)(this.refresh,500),(0,u.subscribe)(this.subscriber),(0,u.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var t=Zr({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t)}},{key:"isSavingPost",value:function(){var t=(0,u.select)("core/editor");if(!t.isAutosavingPost()&&t.isSavingPost()){var e=(0,u.select)("rank-math").getDirtyMetadata();(0,B.isEmpty)(e)||(Mt()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getPostAttribute("content")}}).then((function(t){(0,l.doAction)("rank_math_metadata_updated",t)})),(0,u.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var t=this;if(!this.isSavingSchemas){var e=(0,u.select)("rank-math").getSchemas();if(!(0,B.isEmpty)(e)&&(0,u.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var r=(0,u.select)("rank-math").getEditSchemas();Mt()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:e}}).then((function(n){var i=Zr({},e),a=Zr({},r);(0,B.isEmpty)(n)||(0,B.map)(n,(function(t,e){i["schema-"+t]=Zr({},i[e]),a["schema-"+t]=Zr({},a[e]),delete i[e],delete a[e]})),(0,u.dispatch)("rank-math").updateSchemas(i),(0,u.dispatch)("rank-math").updateEditSchemas(a),setTimeout((function(){(0,u.dispatch)("rank-math").schemaUpdated(!1),(0,l.doAction)("rank_math_schema_changed"),t.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var t=this;if(!this.isSavingRedirection){var e=(0,u.select)("rank-math").getRedirectionItem();if(!(0,B.isEmpty)(e)){this.isSavingRedirection=!0,e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink();var r=(0,u.dispatch)("rank-math"),n=(0,u.dispatch)("core/notices");r.resetRedirection(),Mt()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?(n.createInfoNotice(e.message,{id:"redirectionNotice"}),r.updateRedirection("redirectionID",0)):"update"===e.action?n.createInfoNotice(e.message,{id:"redirectionNotice"}):"new"===e.action&&(r.updateRedirection("redirectionID",e.id),n.createSuccessNotice(e.message,{id:"redirectionNotice"})),setTimeout((function(){t.isSavingRedirection=!1,n.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&(0,B.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!(0,u.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var t=this.getSlug();if(this.oldSlug!==t){var e=(0,u.dispatch)("core/notices");this.oldSlug=t,e.createSuccessNotice((0,o.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){e.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if((0,B.isInteger)(t.id))return this.initialize?void(0,B.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,(0,B.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));(0,u.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){(0,u.dispatch)("rank-math").updatePostID(t),(0,u.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(t){h.setVariable("title",t),h.setVariable("term",t),h.setVariable("author",t),(0,u.dispatch)("rank-math").updateSerpTitle((0,u.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){h.setVariable("excerpt",t),h.setVariable("excerpt_only",t),h.setVariable("wc_shortdesc",t),h.setVariable("seo_description",t),(0,u.dispatch)("rank-math").updateSerpDescription((0,u.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){(0,u.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){(0,u.dispatch)("rank-math").updateSerpDescription((0,u.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&tn(e.prototype,r),n&&tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),an=wp.blocks,on=[],un=function(t){return(0,B.isEmpty)(on)||(0,B.forEach)(on,(function(e){(0,B.forEach)(e,(function(e){t+=e}))})),t},cn=function(){var t=(0,u.select)("core"),e=(0,u.select)("core/block-editor");(0,l.addFilter)("rank_math_content","rank-math",un,11),(0,u.subscribe)((0,B.debounce)((function(){var r=e.getBlocks();if(!(0,B.isEmpty)(r)){var n=!1;(0,B.forEach)(r,(function(e){if((0,an.isReusableBlock)(e)){var r=e.attributes.ref,i=function(t){return t&&t.content?(0,B.isFunction)(t.content)?t.content(t):t.content:""}(t.getEditedEntityRecord("postType","wp_block",r));if(!on[r])return on[r]={id:r,clientId:e.clientId,content:i},void(n=!0);on[r].content!==i&&(on[r].content=i,n=!0)}})),n&&rankMathEditor.refresh("content")}}),500))},sn=r(184),ln=r.n(sn);function pn(t){return 100<t?"bad-fk dark":80<t?"good-fk":50<t?"ok-fk":"bad-fk"}var fn=(0,u.withSelect)((function(t){var e=t("rank-math");return{score:e.getAnalysisScore(),isRefreshing:e.isRefreshing()}}))((function(t){var e=t.score;return wp.element.createElement("div",{className:"seo-score "+pn(e)},wp.element.createElement("div",{className:"score-text"},e," / 100"))}));function dn(t){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(t)}function mn(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hn=(0,u.withSelect)((function(t){var e=t("rank-math");return{isLoaded:e.isLoaded(),score:e.getAnalysisScore()}}))((function(t){var e=t.isLoaded,r=t.score,n=ln()("rank-math-toolbar-score",mn(mn({},pn(r),!0),"loading",!e));return wp.element.createElement("div",{className:n},wp.element.createElement("i",{className:"rm-icon rm-icon-rank-math"}),wp.element.createElement(fn,null))})),yn=wp.components,gn=(0,u.withSelect)((function(t){var e=t("rank-math"),r=e.getTwitterUseFacebook()?e.getFacebookTitle():e.getTwitterTitle();return(0,B.isEmpty)(r)&&(r=e.getSerpTitle()),{title:r,permalink:t("core/editor").getPermalink()}}))((function(t){var e=t.title,r=t.permalink,n=encodeURI(r),i=encodeURI(e);return wp.element.createElement(c.Fragment,null,wp.element.createElement("p",null,(0,o.__)("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="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(yn.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="+n+"&text="+i,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(yn.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+i+"&body="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(yn.Dashicon,{icon:"email"})))))}));function bn(t){return bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(t)}function vn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==bn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===bn(a)?a:String(a)),n)}var i,a}function wn(t,e){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wn(t,e)}function kn(t){var e=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(t){return!1}}();return function(){var r,n=_n(t);if(e){var i=_n(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===bn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sn(t)}(this,r)}}function Sn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}var Tn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wn(t,e)}(a,t);var e,r,n,i=kn(a);function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.apply(this,arguments)).onChange=t.onChange.bind(Sn(t)),t.state={loading:!0,availableTerms:[],selectedTerms:[]},t}return e=a,(r=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){(0,B.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(t,e){if(t.selectedTermIds.length<this.props.selectedTermIds.length){var r=(0,B.difference)(this.props.selectedTermIds,t.selectedTermIds)[0];if(!this.termIsAvailable(r))return void this.fetchTerms()}t.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),e.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(t){return!!this.state.availableTerms.find((function(e){return e.id===t}))}},{key:"updateSelectedTerms",value:function(t,e){this.setState({selectedTerms:this.filterSelectedTerms(t,e)})}},{key:"handleSelectedTermsChange",value:function(){var t=this.state.selectedTerms,e=this.props.primaryTermID;t.find((function(t){return t.id===e}))||this.onChange(t.length?t[0].id:"")}},{key:"fetchTerms",value:function(){var t=this,e=this.props.taxonomy;e&&(this.fetchRequest=Mt()({path:(0,Je.addQueryArgs)("/wp/v2/".concat(e.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(e){t.fetchRequest=null,t.setState({loading:!1,availableTerms:e,selectedTerms:t.filterSelectedTerms(e,t.props.selectedTermIds)})}),(function(e){"abort"!==e.statusText&&(t.fetchRequest=null,t.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(t,e){return t.filter((function(t){return e.includes(t.id)}))}},{key:"onChange",value:function(t){(0,u.dispatch)("rank-math").updatePrimaryTermID(t,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(t,e){return this.props.selectedTermIds!==t.selectedTermIds||this.props.primaryTermID!==t.primaryTermID||this.state.selectedTerms!==e.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(yn.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(yn.SelectControl,{label:(0,o.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(t){return{value:t.id,label:(0,B.unescape)(t.name)}})),onChange:this.onChange})}}])&&vn(e.prototype,r),n&&vn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.Component);function Pn(t){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(t)}function Dn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Pn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Pn(a)?a:String(a)),n)}var i,a}function In(t,e){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},In(t,e)}function On(t){var e=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(t){return!1}}();return function(){var r,n=En(t);if(e){var i=En(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Pn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},En(t)}var An=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&In(t,e)}(a,t);var e,r,n,i=On(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r&&Dn(e.prototype,r),n&&Dn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(Tn),jn=(0,u.withSelect)((function(t,e){var r=e.slug,n=t("core").getTaxonomy(r),i=t("core/editor").getEditedPostAttribute;return{taxonomy:n,selectedTermIds:n?i(n.rest_base):[],primaryTermID:t("rank-math").getPrimaryTermID()}}))(An),Rn=function(t){var e=t.TermComponent;return function(t){return!1!==rankMath.assessor.primaryTaxonomy&&t.slug===rankMath.assessor.primaryTaxonomy.name}(t)?wp.element.createElement(c.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(yn.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(jn,t))):wp.element.createElement(e,t)};function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Cn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Mn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Mn(a)?a:String(a)),n)}var i,a}function Un(t,e,r){return e&&Cn(t.prototype,e),r&&Cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Nn=Un((function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a().fn.extend({insertLink:function(t,e){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var i=r.selectionStart,a=r.selectionEnd,o=r.scrollTop;n='<a href="'+t+'">'+r.value.substring(i,a)+"</a>",i===a&&(n='<a href="'+t+'">'+e+"</a>"),r.value=r.value.substring(0,i)+n+r.value.substring(a,r.value.length),r.focus(),r.selectionStart=i+n.length,r.selectionEnd=i+n.length,r.scrollTop=o}else n='<a href="'+t+'">'+e+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS&&a()(".suggestion-copy").on("click",(function(t){t.preventDefault(),new ClipboardJS(".suggestion-copy");var e=a()(this).parent().next(".suggestion-title"),r=e.html();e.text("Link Copied"),setTimeout((function(){e.html(r)}),1500)})),"object"!==("undefined"==typeof tinymce?"undefined":Mn(tinymce)))return!0;var e=null,r=null;a()(".suggestion-insert").on("click",(function(t){t.preventDefault();var n,i,o,c,s=a()(this);if(s.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()&&"content"===tinymce.activeEditor.id){e=tinymce.activeEditor,r=a()(e.getBody());var l=e.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var p=(n="",i="",o=e.selection.getStart(),(c=e.dom.getParent(o,"a[href]"))||(i=e.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((n=i.match(/href="([^">]+)"/))&&n[1]&&(c=e.$('a[href="'+n[1]+'"]',o)[0]),c&&e.selection.select(c)),c);e.dom.setAttribs(p,{href:s.data("url")}),a()(p).text()!==l&&e.insertContent(l)}else l.length?e.insertContent('<a href="'+s.data("url")+'">'+l+"</a>"):e.insertContent('<a href="'+s.data("url")+'">'+s.data("text")+"</a>")}else if(Qr()){var f=(0,u.select)("core/block-editor").getSelectedBlock().clientId,d=(0,u.select)("core/block-editor").getSelectionStart().offset,m=(0,u.select)("core/block-editor").getSelectionEnd().offset;if(document.getSelection){var h=document.getSelection();if(h.rangeCount){var y=h.getRangeAt(0),g=a()("#block-"+f).text().substring(d,m),b=document.createElement("a");b.href=s.data("url"),b.innerText=""!==g?g:s.data("text"),y.deleteContents(),y.insertNode(b);var v=h.focusNode.innerHTML;(0,u.dispatch)("core/block-editor").updateBlock(f,{attributes:{content:v}})}}}var w=s.closest(".suggestion-item").find(".suggestion-title"),k=w.html();w.text("Link Inserted"),s.addClass("clicked"),setTimeout((function(){var t,e,r,n;w.html(k),s.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(e=s,r=(t=w).data("fkcount")||0,n=t.data("fk"),(r+=1)===n.length&&(r=0),t.find(">a").text(n[r]),t.data("fkcount",r),e.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}})),xn=(0,yn.createSlotFill)("RankMathAfterEditor"),Fn=xn.Fill,Hn=xn.Slot,Kn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Fn,null,wp.element.createElement(yn.PanelRow,{className:r},e))};Kn.Slot=Hn;var zn=Kn,Ln=(0,yn.createSlotFill)("RankMathAdvancedTab"),Gn=Ln.Fill,Bn=Ln.Slot,Vn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Gn,null,wp.element.createElement(yn.PanelRow,{className:r},e))};Vn.Slot=Bn;var qn=Vn,Wn=(0,yn.createSlotFill)("RankMathAfterFocusKeyword"),$n=Wn.Fill,Jn=Wn.Slot,Qn=function(t){var e=t.children,r=t.className;return wp.element.createElement($n,null,wp.element.createElement("div",{className:r},e))};Qn.Slot=Jn;var Xn=Qn;function Yn(t){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(t)}function Zn(){return Zn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zn.apply(this,arguments)}function ti(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Yn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Yn(a)?a:String(a)),n)}var i,a}function ei(){return ei="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ii(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},ei.apply(this,arguments)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ri(t,e)}function ni(t){var e=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(t){return!1}}();return function(){var r,n=ii(t);if(e){var i=ii(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function ii(t){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ii(t)}var ai=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ri(t,e)}(a,t);var e,r,n,i=ni(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"setup",value:function(t){Ur(),this.registerSlots=this.registerSlots.bind(this),(0,l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),ei(ii(a.prototype),"setup",this).call(this,t),this.registerPostPublish(),this.registerPrimaryTermSelector(),new Nn,new cn}},{key:"registerSlots",value:function(){this.registerSidebar(),this.RankMathAfterEditor=zn,this.RankMathAfterFocusKeyword=Xn,this.RankMathAdvancedTab=qn,this.slots={AfterEditor:zn,AfterFocusKeyword:Xn,AdvancedTab:qn}}},{key:"registerSidebar",value:function(){(0,s.registerPlugin)("rank-math",{icon:wp.element.createElement(hn,null),render:function(){return wp.element.createElement(c.Fragment,null,wp.element.createElement(p.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(hn,null)},o.__("Rank Math","rank-math")),wp.element.createElement(p.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:o.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},(0,l.applyFilters)("rank_math_app",{})()))}})}},{key:"registerPostPublish",value:function(){(0,s.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(p.PluginPostPublishPanel,{initialOpen:!0,title:o.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(c.Fragment,null)},wp.element.createElement(gn,null))}})}},{key:"registerPrimaryTermSelector",value:function(){(0,l.addFilter)("editor.PostTaxonomyType","rank-math",(function(t){return function(e){return wp.element.createElement(Rn,Zn({TermComponent:t},e))}}))}},{key:"updatePermalink",value:function(t){(0,u.dispatch)("core/editor").editPost({slug:t})}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),(0,u.dispatch)("core/editor").editPost({slug:t})}}])&&ti(e.prototype,r),n&&ti(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Jr);a()(document).ready((function(){window.rankMathEditor=new ai,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new nn)}))}()}();