Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ !function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{deleteSchema:function(){return Be},lockModifiedDate:function(){return ht},refreshResults:function(){return Se},resetDirtyMetadata:function(){return yt},resetRedirection:function(){return Mt},resetStore:function(){return gt},saveSchema:function(){return ze},saveTemplate:function(){return He},schemaUpdated:function(){return Re},setEditingSchemaId:function(){return Ue},setEditorTab:function(){return xe},setTemplateTab:function(){return Ne},setVersion:function(){return Pe},toggleFrontendScore:function(){return st},toggleIsDiviPageSettingsBarActive:function(){return Te},toggleIsDiviRankMathModalActive:function(){return De},toggleLoaded:function(){return ke},toggleSchemaEditor:function(){return Me},toggleSchemaTemplates:function(){return Ce},toggleSnippetEditor:function(){return Jt},updateAIScore:function(){return Ge},updateAdvancedRobots:function(){return ft},updateAnalysisScore:function(){return lt},updateAppData:function(){return it},updateAppUi:function(){return ot},updateBreadcrumbTitle:function(){return mt},updateCanonicalUrl:function(){return pt},updateDescription:function(){return It},updateEditSchema:function(){return Le},updateEditSchemas:function(){return Fe},updateFacebookDescription:function(){return vt},updateFacebookHasOverlay:function(){return _t},updateFacebookImage:function(){return kt},updateFacebookImageID:function(){return wt},updateFacebookImageOverlay:function(){return St},updateFacebookTitle:function(){return bt},updateFeaturedImage:function(){return Ot},updateHasRedirect:function(){return Ct},updateHighlightedParagraphs:function(){return Ie},updateKeywords:function(){return ut},updatePermalink:function(){return Tt},updatePillarContent:function(){return ct},updatePostID:function(){return Pt},updatePrimaryTermID:function(){return Et},updateRedirection:function(){return jt},updateRedirectionItem:function(){return At},updateRobots:function(){return dt},updateSchemas:function(){return Ke},updateSelectedKeyword:function(){return we},updateSerpDescription:function(){return $t},updateSerpSlug:function(){return Wt},updateSerpTitle:function(){return Vt},updateSnippetPreviewType:function(){return qt},updateSocialTab:function(){return _e},updateTitle:function(){return Dt},updateTwitterAppCountry:function(){return ve},updateTwitterAppDescription:function(){return se},updateTwitterAppGoogleplayID:function(){return ye},updateTwitterAppGoogleplayName:function(){return ge},updateTwitterAppGoogleplayUrl:function(){return be},updateTwitterAppIpadID:function(){return de},updateTwitterAppIpadName:function(){return me},updateTwitterAppIpadUrl:function(){return he},updateTwitterAppIphoneID:function(){return le},updateTwitterAppIphoneName:function(){return pe},updateTwitterAppIphoneUrl:function(){return fe},updateTwitterAuthor:function(){return te},updateTwitterCardType:function(){return Xt},updateTwitterDescription:function(){return Zt},updateTwitterHasOverlay:function(){return ne},updateTwitterImage:function(){return re},updateTwitterImageID:function(){return ee},updateTwitterImageOverlay:function(){return ae},updateTwitterPlayerSize:function(){return oe},updateTwitterPlayerStreamCtype:function(){return ce},updateTwitterPlayerStreamUrl:function(){return ue},updateTwitterPlayerUrl:function(){return ie},updateTwitterTitle:function(){return Yt},updateTwitterUseFacebook:function(){return Qt}});var r={};t.r(r),t.d(r,{appData:function(){return Qe},appUi:function(){return rr}});var n={};t.r(n),t.d(n,{getAdvancedRobots:function(){return sr},getAnalysisScore:function(){return ir},getAppData:function(){return nr},getBreadcrumbTitle:function(){return pr},getCanonicalUrl:function(){return lr},getDescription:function(){return Cr},getDirtyMetadata:function(){return ar},getEditSchemas:function(){return Yr},getEditingSchema:function(){return Zr},getEditorTab:function(){return en},getFacebookAuthor:function(){return Tr},getFacebookDescription:function(){return Pr},getFacebookHasOverlay:function(){return Or},getFacebookImage:function(){return Ir},getFacebookImageID:function(){return Dr},getFacebookImageOverlay:function(){return Er},getFacebookTitle:function(){return Sr},getFeaturedImage:function(){return Rr},getFeaturedImageHtml:function(){return Ur},getHighlightedParagraphs:function(){return _r},getKeywords:function(){return or},getPermalink:function(){return Mr},getPillarContent:function(){return ur},getPostID:function(){return jr},getPreviewSchema:function(){return tn},getPrimaryTermID:function(){return xr},getRedirectionID:function(){return Nr},getRedirectionItem:function(){return Lr},getRedirectionType:function(){return Fr},getRedirectionUrl:function(){return Kr},getRichSnippets:function(){return fr},getRobots:function(){return cr},getSchemas:function(){return Xr},getSelectedKeyword:function(){return yr},getSerpDescription:function(){return Vr},getSerpSlug:function(){return Gr},getSerpTitle:function(){return Hr},getShowScoreFrontend:function(){return dr},getSnippetPreviewType:function(){return $r},getSocialTab:function(){return gr},getTemplateTab:function(){return rn},getTitle:function(){return Ar},getTwitterAppCountry:function(){return Sn},getTwitterAppDescription:function(){return dn},getTwitterAppGoogleplayID:function(){return kn},getTwitterAppGoogleplayName:function(){return wn},getTwitterAppGoogleplayUrl:function(){return _n},getTwitterAppIpadID:function(){return gn},getTwitterAppIpadName:function(){return bn},getTwitterAppIpadUrl:function(){return vn},getTwitterAppIphoneID:function(){return mn},getTwitterAppIphoneName:function(){return hn},getTwitterAppIphoneUrl:function(){return yn},getTwitterAuthor:function(){return cn},getTwitterCardType:function(){return an},getTwitterDescription:function(){return un},getTwitterHasOverlay:function(){return pn},getTwitterImage:function(){return ln},getTwitterImageID:function(){return sn},getTwitterImageOverlay:function(){return fn},getTwitterPlayerSize:function(){return Tn},getTwitterPlayerStream:function(){return Dn},getTwitterPlayerStreamCtype:function(){return In},getTwitterPlayerUrl:function(){return Pn},getTwitterTitle:function(){return on},getTwitterUseFacebook:function(){return nn},hasRedirect:function(){return zr},hasSchemaUpdated:function(){return Qr},isDiviPageSettingsBarActive:function(){return kr},isDiviRankMathModalActive:function(){return wr},isLoaded:function(){return hr},isModifiedDateLocked:function(){return mr},isPro:function(){return vr},isRefreshing:function(){return br},isSchemaEditorOpen:function(){return Jr},isSchemaTemplatesOpen:function(){return qr},isSnippetEditorOpen:function(){return Wr}});var a=jQuery,i=t.n(a),o=lodash,u=wp.hooks,c=wp.data,s=wp.element,l=rankMathAnalyzer,p=wp.i18n;var f=wp.apiFetch,d=t.n(f),m={"&":"&",""":'"',"'":"'"},h=/&(?:amp|quot|#(0+)?39);/g,y=RegExp(h.source);var g=function(t){return t&&y.test(t)?t.replace(h,function(t){return m[t]||"'"}):t||""},b=function(t){return t.replace(/<\/?[a-z][^>]*?>/gi,"")},v=function(t){return t.replace(/]*>([\S\s]*?)<\/style>/gim,"")},k=function(t){return t.replace(/ | /gi," ").replace(/\s{2,}/g," ").replace(/\s\./g,".").replace(/^\s+|\s+$/g,"")},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.replace(/]*>([\S\s]*?)<\/script>/gim,e)},_=function(t){return t.replace(/[‘’‛`]/g,"'").replace(/[“”〝〞〟‟„]/g,'"')},S=function(t){return t.replace(//g,"")},P=function(t){return t.replace(/&\S+?;/g,"")};function T(t){return(0,o.isUndefined)(t)||!t?"":(0,o.flow)([v,w,b,S,P,k,_])(t)}var D={};(0,o.isUndefined)(rankMath.assessor)||(0,o.forEach)(rankMath.assessor.diacritics,function(t,e){return D[e]=new RegExp(t,"g")});var I=function(t){if((0,o.isUndefined)(t))return t;for(var e in D)t=t.replace(D[e],e);return t},O=wp.compose,E=wp.components;function j(t){return j="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},j(t)}function A(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 M(t){for(var e=1;e3?(a=m===n)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=d&&((a=r<2&&dn||n>m)&&(i[4]=r,i[5]=n,f.n=m,u=0))}if(a||r>1)return o;throw p=!0,n}return function(a,l,m){if(s>1)throw TypeError("Generator is already running");for(p&&1===l&&d(l,m),u=l,c=m;(e=u<2?t:c)||!p;){i||(u?u<3?(u>1&&(f.n=-1),d(u,c)):f.n=c:f.v=c);try{if(s=2,i){if(u||(a="next"),e=i[a]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=t}else if((e=(p=f.n<0)?c:r.call(n,f))!==o)break}catch(e){i=t,u=1,c=e}finally{s=1}}return{value:e,done:p}}}(r,a,i),!0),s}var o={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(N(e={},n,function(){return this}),e),p=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,N(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return c.prototype=s,N(p,"constructor",s),N(s,"constructor",c),c.displayName="GeneratorFunction",N(s,a,"GeneratorFunction"),N(p),N(p,a,"Generator"),N(p,n,function(){return this}),N(p,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:f}})()}function N(t,e,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}N=function(t,e,r,n){function i(e,r){N(t,e,function(t){return this._invoke(e,r,t)})}e?a?a(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},N(t,e,r,n)}function F(t,e,r,n,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,a)}function K(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(t){F(i,n,a,o,u,"next",t)}function u(t){F(i,n,a,o,u,"throw",t)}o(void 0)})}}function L(t,e){for(var r=0;r'),i()("#misc-publishing-actions").append(this.scoreElem),setTimeout(function(){t.scoreText=' SEO: '+p.__("Not available","rank-math")+"",t.scoreElem.html(t.scoreText),t.scoreText=t.scoreElem.find("strong"),t.fkScoreText=''+p.__("Not available","rank-math")+"",t.fkScoreElem=i()('
'+t.fkScoreText+"
"),t.fkScoreText=t.fkScoreElem.find("span"),i()("#rank-math-metabox-wrapper .rank-math-focus-keyword").find("tags").parent("div").append(t.fkScoreElem),t.updateScore=t.updateScore.bind(t),t.updateScore(),(0,u.addAction)("rank_math_refresh_results","rank-math",t.updateScore)},2e3))}},{key:"addLockModifiedDate",value:function(){var t=i()("#misc-publishing-actions");t.length&&rankMath.showLockModifiedDate&&(t.append('
'),(0,s.createRoot)(document.getElementById("rank-math-lock-modified-date")).render(wp.element.createElement(R,null)))}},{key:"updateScore",value:function(){var t,e=rankMathEditor.resultManager.getScore(rankMathEditor.getPrimaryKeyword()),r=100<(t=e)?"bad-fk dark":80",{type:"hidden",name:e,value:r}))}i()(window).off("beforeunload"),window.onbeforeunload=null,t.dataCollector.form[0].submit()};return Promise.all([u,c,s]).then(l).catch(l),!1}})}}},{key:"saveMeta",value:function(){return new Promise(function(t){var e=(0,c.select)("rank-math").getDirtyMetadata();(0,o.isEmpty)(e)?t(!0):(d()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:rankMathEditor.assessor.dataCollector.getContent()}}).then(function(){t(!0)}).catch(function(){t(!0)}),(0,c.dispatch)("rank-math").resetDirtyMetadata())})}},{key:"saveRedirection",value:function(t){return new Promise(function(){var e=K(x().m(function e(r){var n,a,i;return x().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t;case 1:if(n=(0,c.select)("rank-math").getRedirectionItem(),!(0,o.isEmpty)(n)){e.n=2;break}return r(!0),e.a(2);case 2:n.objectID=window.rankMath.objectID,n.objectType=window.rankMath.objectType,n.redirectionSources=rankMathEditor.assessor.dataCollector.getData("permalink"),a=(0,c.dispatch)("rank-math"),i=(0,c.dispatch)("core/notices"),a.resetRedirection(),d()({method:"POST",path:"rankmath/v1/updateRedirection",data:n}).then(function(t){"delete"===t.action?(i.createInfoNotice(t.message,{id:"redirectionNotice"}),a.updateRedirection("redirectionID",0)):"update"===t.action?i.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(a.updateRedirection("redirectionID",t.id),i.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout(function(){i.removeNotice("redirectionNotice")},2e3),r(!0)}).catch(function(){r(!0)});case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}())}},{key:"saveSchemas",value:function(t){return new Promise(function(){var e=K(x().m(function e(r){var n;return x().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t;case 1:if(n=(0,c.select)("rank-math").getSchemas(),!(0,o.isEmpty)(n)&&(0,c.select)("rank-math").hasSchemaUpdated()){e.n=2;break}return r(!0),e.a(2);case 2:d()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:n}}).then(function(){r(!0)}).catch(function(){r(!0)});case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}())}}],e&&L(t.prototype,e),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),H=B,G=function(){return!((0,o.isNil)(window.wp)||(0,o.isNil)(wp.data)||(0,o.isNil)(wp.data.select("core/editor"))||!window.document.body.classList.contains("block-editor-page")||!(0,o.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))},V=function(){return!(0,o.isNull)(document.getElementById("site-editor"))&&(0,o.endsWith)(wp.data.select("core/editor").getCurrentPostId(),"//home")};function W(t){return W="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},W(t)}function $(t,e){for(var r=0;r'+(0,p.__)("300 words","rank-math")+"")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&$(t.prototype,e),r&&$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function Q(t){return Q="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},Q(t)}function X(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"content";console.warn("RankMathApp.reloadPlugin is deprecated, use rankMathEditor.refresh()"),this.refresh(e)}}],e&&X(t.prototype,e),r&&X(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),tt=Z;function et(t){return et="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},et(t)}function rt(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=(0,u.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,u.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,u.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function ot(t,e){return(0,u.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function ut(t){return at.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),it("keywords",t,"rank_math_focus_keyword")}function ct(t){return it("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function st(t){return it("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function lt(t){return it("score",t,"rank_math_seo_score")}function pt(t){return it("canonicalUrl",t,"rank_math_canonical_url")}function ft(t){return it("advancedRobots",t,"rank_math_advanced_robots")}function dt(t){return it("robots",t,"rank_math_robots",Object.keys(t))}function mt(t){return it("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function ht(t){return it("lockModifiedDate",t,"rank_math_lock_modified_date")}function yt(){return it("dirtyMetadata",{})}function gt(t){return{type:"RESET_STORE",value:t}}function bt(t){return it("facebookTitle",t,"rank_math_facebook_title")}function vt(t){return it("facebookDescription",t,"rank_math_facebook_description")}function kt(t){return it("facebookImage",t,"rank_math_facebook_image")}function wt(t){return it("facebookImageID",t,"rank_math_facebook_image_id")}function _t(t){return it("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function St(t){return it("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function Pt(t){return rankMath.objectID=t,it("postID",t)}function Tt(t){return it("permalink",t,"permalink")}function Dt(t){return it("title",t,"rank_math_title")}function It(t){return it("description",t,"rank_math_description")}function Ot(t){return it("featuredImage",t)}function Et(t,e){return it("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function jt(t,e){return it(t,e)}function At(t){return ot("redirectionItem",t)}function Mt(){return ot("redirectionItem",{})}function Ct(t){return ot("hasRedirect",t)}var Rt=wp.autop,Ut="[^<>&/\\[\\]\0- =]+?",xt=new RegExp("\\["+Ut+"( [^\\]]+?)?\\]","g"),Nt=new RegExp("\\[/"+Ut+"\\]","g"),Ft=function(t){return t.replace(xt,"").replace(Nt,"")},Kt=function(t,e){var r=function(t,e){for(var r,n=/]+)?>(.*?)<\/p>/gi,a=[];null!==(r=n.exec(t));)a.push(r);return(0,o.map)(a,function(t){return e?T(t[1]):t[1]})}(t=(0,o.flow)([Ft,S,Rt.autop])(t),e=e||!1);return 0]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),Lt.innerHTML=t,t=Lt.textContent,Lt.textContent=""),t}var Bt=function(t,e){return t=(t=T(t)).replace(/\r?\n|\r/g," "),e?(0,o.truncate)(t,{length:e,separator:" "}):t},Ht=function(t){if((0,o.isEmpty)(t))return"";t=w(t),t=v(t),t=(0,o.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,o.filter)(Kt(t,!0),function(t){return""!==t.trim()});if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,o.filter)(e,function(t){return(0,o.includes)(t.toLowerCase(),r.toLowerCase())});if(00&&void 0!==arguments[0]?arguments[0]:qe(rankMath),e=arguments.length>1?arguments[1]:void 0,r=$e({},t.dirtyMetadata);return!1!==e.metaKey&&(r[e.metaKey]=e.metaValue),"RESET_STORE"===e.type?$e({},qe(e.value)):"RANK_MATH_APP_DATA"===e.type?"dirtyMetadata"===e.key?$e($e({},t),{},{dirtyMetadata:e.value}):$e($e({},t),{},Je(Je({},e.key,e.value),"dirtyMetadata",r)):t}function Xe(t){return Xe="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},Xe(t)}function Ye(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 Ze(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:er,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?Ze(Ze({},t),{},tr({},e.key,e.value)):t}function nr(t){return t.appData}function ar(t){return t.appData.dirtyMetadata}function ir(t){return t.appData.score}function or(t){return t.appData.keywords}function ur(t){return t.appData.pillarContent}function cr(t){return t.appData.robots}function sr(t){return t.appData.advancedRobots}function lr(t){return t.appData.canonicalUrl}function pr(t){return t.appData.breadcrumbTitle}function fr(t){return"todo"}function dr(t){return t.appData.showScoreFrontend}function mr(t){return t.appData.lockModifiedDate}function hr(t){return t.appUi.isLoaded}function yr(t){return t.appUi.selectedKeyword}function gr(t){return t.appUi.socialTab}function br(t){return t.appUi.refreshResults}function vr(t){return t.appUi.isPro}function kr(t){return t.appUi.isDiviPageSettingsBarActive}function wr(t){return t.appUi.isDiviRankMathModalActive}function _r(t){return t.appUi.highlightedParagraphs}function Sr(t){return t.appData.facebookTitle}function Pr(t){return t.appData.facebookDescription}function Tr(t){return t.appData.facebookAuthor}function Dr(t){return t.appData.facebookImageID}function Ir(t){return t.appData.facebookImage}function Or(t){return t.appData.facebookHasOverlay}function Er(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function jr(t){return t.appData.postID}function Ar(t){return t.appData.title}function Mr(t){return t.appData.permalink}function Cr(t){return t.appData.description}function Rr(t){return t.appData.featuredImage}function Ur(t){var e=t.appData.featuredImage;return'').concat(e.alt_text,'')}function xr(t){return t.appData.primaryTerm}function Nr(t){return String(t.appData.redirectionID)}function Fr(t){return t.appData.redirectionType}function Kr(t){return t.appData.redirectionUrl}function Lr(t){return t.appUi.redirectionItem}function zr(t){return t.appUi.hasRedirect}var Br=wp.url;function Hr(t){return zt(t.appUi.serpTitle)}function Gr(t){return(0,Br.safeDecodeURIComponent)(t.appUi.serpSlug)}function Vr(t){return t.appUi.serpDescription}function Wr(t){return t.appUi.isSnippetEditorOpen}function $r(t){return t.appUi.snippetPreviewType}function Jr(t){return t.appUi.isSchemaEditorOpen}function qr(t){return t.appUi.isSchemaTemplatesOpen}function Qr(t){return t.appUi.schemaUpdated}function Xr(t){return t.appData.schemas}function Yr(t){return t.appUi.editSchemas}function Zr(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function tn(t){return t.appData.schemas[t.appUi.editingSchemaId]}function en(t){return t.appUi.editorTab}function rn(t){return t.appUi.templateTab}function nn(t){return t.appData.twitterUseFacebook}function an(t){return t.appData.twitterCardType}function on(t){return t.appData.twitterTitle}function un(t){return t.appData.twitterDescription}function cn(t){return t.appData.twitterAuthor}function sn(t){return t.appData.twitterImageID}function ln(t){return t.appData.twitterImage}function pn(t){return t.appData.twitterHasOverlay}function fn(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function dn(t){return t.appData.twitterAppDescription}function mn(t){return t.appData.twitterAppIphoneID}function hn(t){return t.appData.twitterAppIphoneName}function yn(t){return t.appData.twitterAppIphoneUrl}function gn(t){return t.appData.twitterAppIpadID}function bn(t){return t.appData.twitterAppIpadName}function vn(t){return t.appData.twitterAppIpadUrl}function kn(t){return t.appData.twitterAppGoogleplayID}function wn(t){return t.appData.twitterAppGoogleplayName}function _n(t){return t.appData.twitterAppGoogleplayUrl}function Sn(t){return t.appData.twitterAppCountry}function Pn(t){return t.appData.twitterPlayerUrl}function Tn(t){return t.appData.twitterPlayerSize}function Dn(t){return t.appData.twitterPlayerStream}function In(t){return t.appData.twitterPlayerStreamCtype}(0,c.registerStore)("rank-math",{reducer:(0,c.combineReducers)(r),selectors:n,actions:e});function On(t){return On="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},On(t)}function En(t,e){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];("auto-draft"!==this.getStatus()||e)&&this.elemSlug.val(t),i()("#editable-post-name").text(t),i()("#editable-post-name-full").text(t),this._data.slug=this.getSlug(),this._data.permalink=this.getPermalink(),(0,c.dispatch)("rank-math").updateSerpSlug(t),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){at.setVariable("title",t),at.setVariable("term",t),at.setVariable("author",t),(0,c.dispatch)("rank-math").updateSerpTitle((0,c.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(){this._data.excerpt=this.getExcerpt(),(0,c.dispatch)("rank-math").updateSerpDescription((0,c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(){this._data.featuredImage=this.getFeaturedImage(),(0,c.dispatch)("rank-math").updateFeaturedImage(this.getFeaturedImage()),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){this._data.excerpt=this.getExcerpt(),this._data.content=this.getContent(),(0,c.dispatch)("rank-math").updateSerpDescription((0,c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t?this._data[t]:this._data;return(0,u.applyFilters)("rank_math_dataCollector_data",e)}},{key:"updateData",value:function(t,e){this._data[t]=e}},{key:"isTinymce",value:function(){return"undefined"!=typeof tinymce}},{key:"getStatus",value:function(){var t=!(0,o.isUndefined)(this.postStatus)&&this.postStatus.length?this.postStatus.val():"";return(0,o.isUndefined)(t)?"":t}}],e&&En(t.prototype,e),r&&En(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),Mn=An;function Cn(t){return Cn="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},Cn(t)}function Rn(t,e){for(var r=0;r"+r.responseText+"").find("#editable-post-name-full").text(),rankMathEditor.updatePermalink(o))}}),this.saveDraft.on("click",function(){t.updateBtn.attr("data-disable","true")})}},{key:"assessThumbnail",value:function(t){this.featuredImage={source_url:t.src,alt_text:t.alt},this.handleFeaturedImageChange(t)}}])&&Rn(r.prototype,n),a&&Rn(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(Mn),zn=Ln;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 Hn(t,e){for(var r=0;r'+r.value.substring(a,i)+"",a===i&&(n=''+e+""),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n=''+e+"",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS&&i()(".suggestion-copy").on("click",function(t){t.preventDefault(),new ClipboardJS(".suggestion-copy");var e=i()(this).parent().next(".suggestion-title"),r=e.html();e.text("Link Copied"),setTimeout(function(){e.html(r)},1500)}),"object"!==("undefined"==typeof tinymce?"undefined":ya(tinymce)))return!0;var e=null,r=null;i()(".suggestion-insert").on("click",function(t){t.preventDefault();var n,a,o,u,s=i()(this);if(s.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()&&"content"===tinymce.activeEditor.id){e=tinymce.activeEditor,r=i()(e.getBody());var l=e.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var p=(n="",a="",o=e.selection.getStart(),(u=e.dom.getParent(o,"a[href]"))||(a=e.selection.getContent({format:"raw"}))&&-1!==a.indexOf("")&&((n=a.match(/href="([^">]+)"/))&&n[1]&&(u=e.$('a[href="'+n[1]+'"]',o)[0]),u&&e.selection.select(u)),u);e.dom.setAttribs(p,{href:s.data("url")}),i()(p).text()!==l&&e.insertContent(l)}else l.length?e.insertContent(''+l+""):e.insertContent(''+s.data("text")+"")}else if(G()){var f=(0,c.select)("core/block-editor"),d=s.data("url"),m=s.data("text"),h=''+m+"",y=function(t,e){for(var r=0,n=0;n"!==t[n];)n++;n++}else r++,n++;for(;n"!==t[n];)n++;n++}return n},g=f.getSelectedBlock();if(g&&g.attributes&&"content"in g.attributes){var b=f.getSelectionStart(),v=f.getSelectionEnd(),k=b?b.offset:null,w=v?v.offset:null,_=function(t,e,r){if(null!==e&&null!==r&&e!==r){var n=y(t,e),a=y(t,r),i=t.substring(n,a);return t.substring(0,n)+''+i+""+t.substring(a)}if(null!==e){var o=y(t,e);return t.substring(0,o)+h+t.substring(o)}return t+h}(g.attributes.content||"",k,w);(0,c.dispatch)("core/block-editor").updateBlock(g.clientId,{attributes:{content:_}})}else{for(var S=f.getBlocks(),P=null,T=S.length-1;T>=0;T--)if("content"in(S[T].attributes||{})){P=S[T];break}if(P){var D=(P.attributes.content||"")+h;(0,c.dispatch)("core/block-editor").updateBlock(P.clientId,{attributes:{content:D}})}}}var I=s.closest(".suggestion-item").find(".suggestion-title"),O=I.html();I.text("Link Inserted"),s.addClass("clicked"),setTimeout(function(){var t,e,r,n;I.html(O),s.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(e=s,r=(t=I).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)}),i()("#rank_math_metabox_link_suggestions").find("h2").append(i()("#rank-math-link-suggestions-tooltip").html())}});function wa(t){return wa="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},wa(t)}function _a(t,e){for(var r=0;r'+(0,p.__)("Make Term Primary","rank-math")+"")}),u.each(function(){var t=i()(this),r=t.closest("li");r.addClass("term-checked"),e===t.attr("value")&&(r.addClass("term-marked-primary"),r.find(">label .rank-math-make-primary").prop("checked",!0))}),n.on("click",'input[type="checkbox"]',function(){var e=i()(this).closest("li");if(e.toggleClass("term-checked"),1===a.find("li.term-checked").length||e.hasClass("term-marked-primary")&&!e.hasClass("term-checked")){var r=a.find("li.term-checked:first > label .rank-math-make-primary");0'+(0,p.__)("Make Term Primary","rank-math")+"")})})})});function Da(t){return Da="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},Da(t)}function Ia(t,e){for(var r=0;rr.length&&(r=i()(''),i()(".facebook-thumbnail",".rank-math-social-preview-image").before(r)),"large"in n.sizes?r.attr("src",n.sizes.large.url):r.attr("src",n.sizes.full.url),t.setFeaturedImage(n)})}}},{key:"removeImage",value:function(){var t=this;i()("#postimagediv").on("click","#remove-post-thumbnail",function(){i()("#rank_math_image_warning").remove(),i()("#rank_math_post_thumbnail").remove(),t.setFeaturedImage("")})}},{key:"gutenbergImage",value:function(){var t,e,r=this;wp.data.subscribe(function(){var n=wp.data.select("core/editor").getEditedPostAttribute("featured_media");r.isValidMediaId(n)&&(t=wp.data.select("core").getMedia(n),(0,o.isUndefined)(t)||t!==e&&(e=t,r.setFeaturedImage({url:t.guid.rendered,alt:t.alt_text})))})}},{key:"setFeaturedImage",value:function(t){var e={src:(0,o.get)(t,"url",""),alt:(0,o.get)(t,"alt","")};(0,u.doAction)("rank_math_updated_featured_image",e)}},{key:"sizeWarning",value:function(t){if(i()("#rank_math_image_warning").remove(),!(200

'+rankMath.featuredImageNotice+"

").insertAfter(e)}}},{key:"getFeaturedImage",value:function(){var t=i()("#postimagediv img");if(!t||t.length){var e={url:t[0].src,alt:t[0].alt};this.setFeaturedImage(e)}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&01&&void 0!==arguments[1]&&arguments[1];this.assessor.dataCollector.handleSlugChange(t,e),(0,c.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),(0,c.dispatch)("rank-math").updatePermalink(t)}},{key:"getPrimaryKeyword",value:function(){return I(this.assessor.getPrimaryKeyword())}},{key:"getSelectedKeyword",value:function(){var t=this.assessor.getSelectedKeyword();return(0,o.isUndefined)(t)?"":I(t)}},{key:"getCollector",value:function(){return"post"===rankMath.objectType?G()?new ha:new zn(this):"term"===rankMath.objectType?new Qn:"user"===rankMath.objectType?new ia:void 0}}],e&&Wa(t.prototype,e),r&&Wa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();i()(function(){window.rankMathEditor=new Ja,window.rankMathEditor.setup(),window.RankMathApp=new tt}),i()(window).on("load",function(){i().when(i().ready).then(function(){(0,u.doAction)("rank_math_loaded")})})}();