Files
2026-10-06 18:51:23 -06:00

1 line
32 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},dn:function(e){(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})}},t={};e.r(t),e.d(t,{updateResults:function(){return De},updateUrl:function(){return ze}});var n={};e.r(n),e.d(n,{appUi:function(){return Ie}});var r={};e.r(r),e.d(r,{getResults:function(){return Ke},getUrl:function(){return Ve}});const a=jQuery;var o=e.n(a);const s=wp.element;const i=React,l=ReactDOM;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}var c;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(c||(c={}));const m="popstate";function p(e,t){if(!1===e||null==e)throw new Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,r){return void 0===n&&(n=null),u({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function y(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function b(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,i=c.Pop,l=null,h=g();function g(){return(s.state||{idx:null}).idx}function b(){i=c.Pop;let e=g(),t=null==e?null:e-h;h=e,l&&l({action:i,location:k.location,delta:t})}function w(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:y(e);return n=n.replace(/ $/,"%20"),p(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,s.replaceState(u({},s.state,{idx:h}),""));let k={get action(){return i},get location(){return e(a,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(m,b),l=e,()=>{a.removeEventListener(m,b),l=null}},createHref:e=>t(a,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=c.Push;let r=f(k.location,e,t);n&&n(r,e),h=g()+1;let u=d(r,h),m=k.createHref(r);try{s.pushState(u,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(m)}o&&l&&l({action:i,location:k.location,delta:1})},replace:function(e,t){i=c.Replace;let r=f(k.location,e,t);n&&n(r,e),h=g();let a=d(r,h),u=k.createHref(r);s.replaceState(a,"",u),o&&l&&l({action:i,location:k.location,delta:0})},go:e=>s.go(e)};return k}var w;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(w||(w={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function E(e,t){void 0===t&&(t="/");let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?g(e):e;if(r)if(s=r,v.test(s))n=r;else{if(r.includes("//")){let e=r;r=A(r),h(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?O(r.substring(1),"/"):O(r,t)}else n=t;var s;return{pathname:n,search:C(a),hash:T(o)}}function O(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function S(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function _(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let n=_(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function R(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=g(e):(a=u({},e),p(!a.pathname||!a.pathname.includes("?"),S("?","pathname","search",a)),p(!a.pathname||!a.pathname.includes("#"),S("#","pathname","hash",a)),p(!a.search||!a.search.includes("#"),S("#","search","hash",a)));let o,s=""===e||""===a.pathname,i=s?"/":a.pathname;if(null==i)o=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=E(a,o),c=i&&"/"!==i&&i.endsWith("/"),m=(s||"."===i)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!m||(l.pathname+="/"),l}const A=e=>e.replace(/\/\/+/g,"/"),j=e=>A(e.join("/")),C=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",T=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const N=["post","put","patch","delete"],U=(new Set(N),["get",...N]);new Set(U),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const M=i.createContext(null);const D=i.createContext(null);const z=i.createContext(null);const W=i.createContext({outlet:null,matches:[],isDataRoute:!1});function L(){return null!=i.useContext(z)}function H(){return L()||p(!1),i.useContext(z).location}function F(e){i.useContext(D).static||i.useLayoutEffect(e)}function B(){let{isDataRoute:e}=i.useContext(W);return e?function(){let{router:e}=V(I.UseNavigateStable),t=$(K.UseNavigateStable),n=i.useRef(!1);return F(()=>{n.current=!0}),i.useCallback(function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,x({fromRouteId:t},a)))},[e,t])}():function(){L()||p(!1);let e=i.useContext(M),{basename:t,future:n,navigator:r}=i.useContext(D),{matches:a}=i.useContext(W),{pathname:o}=H(),s=JSON.stringify(P(a,n.v7_relativeSplatPath)),l=i.useRef(!1);return F(()=>{l.current=!0}),i.useCallback(function(n,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof n)return void r.go(n);let i=R(n,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:j([t,i.pathname])),(a.replace?r.replace:r.push)(i,a.state,a)},[t,r,s,o,e])}()}i.Component;var I=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I||{}),K=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(K||{});function V(e){let t=i.useContext(M);return t||p(!1),t}function $(e){let t=function(){let e=i.useContext(W);return e||p(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||p(!1),n.route.id}function J(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}i.startTransition;function q(e){let{basename:t="/",children:n=null,location:r,navigationType:a=c.Pop,navigator:o,static:s=!1,future:l}=e;L()&&p(!1);let u=t.replace(/^\/*/,"/"),m=i.useMemo(()=>({basename:u,navigator:o,static:s,future:x({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);"string"==typeof r&&(r=g(r));let{pathname:h="/",search:d="",hash:f="",state:y=null,key:b="default"}=r,w=i.useMemo(()=>{let e=k(h,u);return null==e?null:{location:{pathname:e,search:d,hash:f,state:y,key:b},navigationType:a}},[u,h,d,f,y,b,a]);return null==w?null:i.createElement(D.Provider,{value:m},i.createElement(z.Provider,{children:n,value:w}))}new Promise(()=>{});i.Component;function G(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const Y=i.startTransition;l.flushSync,i.useId;function Q(e){let{basename:t,children:n,future:r,window:a}=e,o=i.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:a,v5Compat:!0})&&(s={}),b(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return f("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:y(t)},null,s)));let l=o.current,[u,c]=i.useState({action:l.action,location:l.location}),{v7_startTransition:m}=r||{},p=i.useCallback(e=>{m&&Y?Y(()=>c(e)):c(e)},[c,m]);return i.useLayoutEffect(()=>l.listen(p),[l,p]),i.useEffect(()=>J(r),[r]),i.createElement(q,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var X,Z;function ee(e){let t=i.useRef(G(e)),n=i.useRef(!1),r=H(),a=i.useMemo(()=>function(e,t){let n=G(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),o=B(),s=i.useCallback((e,t)=>{const r=G("function"==typeof e?e(a):e);n.current=!0,o("?"+r,t)},[o,a]);return[a,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(X||(X={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Z||(Z={}));const te=lodash,ne=wp.i18n,re=wp.hooks,ae=window.rankMathComponents,oe=wp.data,se=wp.compose;function ie(e,t,n){return o().ajax({url:rankMath.ajaxurl,type:n||"POST",dataType:"json",data:o().extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}e.dn(ie);var ue=["children","startAudit"];function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fe=(0,s.createContext)();const ye=(0,se.compose)((0,oe.withSelect)(function(e){var t=e("rank-math-seo-analysis"),n=t.getResults,r=t.getUrl;return{results:n(),url:r()}}),(0,oe.withDispatch)(function(e){return{updateUrl:function(t){e("rank-math-seo-analysis").updateUrl(t)},updateResults:function(t){e("rank-math-seo-analysis").updateResults(t)},startAudit:function(t,n){t(!0),ie("analyze").always(function(r){r.error?n(r.error):e("rank-math-seo-analysis").updateResults(r),t(!1)})}}}))(function(e){var t=e.children,n=e.startAudit,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,ue),a=he((0,s.useState)(!1),2),o=a[0],i=a[1],l=he((0,s.useState)(""),2),u=l[0],c=l[1];return wp.element.createElement(fe.Provider,{value:me(me({},r),{},{startProgress:o,setStartProgress:i,startAnalysis:function(){n(i,c)},analysisError:u})},t)});var ge=function(){return(0,s.useContext)(fe)};function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ke=function(){var e=be((0,s.useState)(!1),2),t=e[0],n=e[1],r=ge(),a=r.url,o=r.updateUrl,i=r.startAnalysis;return wp.element.createElement("p",{className:"page-analysis-selected"},(0,ne.__)("Selected page: ","seo-by-rank-math"),t?wp.element.createElement("form",{className:"changeurl-form",onSubmit:function(e){e.preventDefault(),n(!1),i()}},wp.element.createElement(ae.TextControl,{className:"rank-math-analyze-url",variant:"default",value:a,onChange:o})," ",wp.element.createElement(ae.Button,{type:"submit",variant:"secondary",className:"rank-math-changeurl-ok",disabled:!a},(0,ne.__)("OK","seo-by-rank-math"))):wp.element.createElement(React.Fragment,null,wp.element.createElement("a",{href:a,target:"_blank",rel:"noreferrer",className:"rank-math-current-url"},a)," ",wp.element.createElement(ae.Button,{variant:"secondary",className:"rank-math-changeurl",onClick:function(){n(!0)}},(0,ne.__)("Change URL","seo-by-rank-math"))))};e.dn(ke);const ve=function(){var e=ge(),t=e.results,n=e.startProgress,r=e.startAnalysis,a=e.analysisError,o=rankMath.analyzeSubpage;return(0,te.isEmpty)(t)?wp.element.createElement(React.Fragment,null,a&&wp.element.createElement(s.RawHTML,null,a),wp.element.createElement("div",{className:"rank-math-seo-analysis-header"},n?wp.element.createElement(React.Fragment,null,o?wp.element.createElement("h2",null,(0,ne.__)("Analysing Page…","seo-by-rank-math")):wp.element.createElement("h2",null,(0,ne.__)("Analysing Website…","seo-by-rank-math")),wp.element.createElement(ae.ProgressBar,null)):wp.element.createElement(React.Fragment,null,o&&wp.element.createElement(ke,null),wp.element.createElement(ae.Button,{variant:"primary",size:"xlarge",className:"rank-math-recheck",onClick:r},o?(0,ne.__)("Start Page Analysis","seo-by-rank-math"):(0,ne.__)("Start SEO Analyzer","seo-by-rank-math"))))):wp.element.createElement(ae.AnalyzerResult,{results:t})};e.dn(ve);const Ee=wp.components;function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=rankMath.links[e]||"";if(!r)return"#";if(!t)return r;var a={utm_source:"Plugin",utm_medium:encodeURIComponent(t),utm_campaign:"WP"},o=r,s="",i=r.indexOf("#");-1!==i&&(o=r.substring(0,i),s=r.substring(i));var l=Object.keys(a).map(function(e){return"".concat(e,"=").concat(a[e])}).join("&"),u=o.includes("?")&&!o.endsWith("?")?"&":"?";return o+u+l+s+n}e.dn(Oe);const Se=function(){var e=ge(),t=e.results,n=e.updateResults,r=e.startAnalysis;if(!(0,te.isEmpty)(t))return wp.element.createElement("div",{className:"analyzer-result-actions"},wp.element.createElement(ae.Button,{variant:"link",className:"rank-math-recheck",onClick:function(){n([]),r()}},(0,ne.__)("Restart SEO Analyzer","seo-by-rank-math"),wp.element.createElement(Ee.Dashicon,{icon:"update"})),wp.element.createElement("div",{className:"analyzer-results-header"},(0,re.applyFilters)("rank_math_seo_analysis_print_result",wp.element.createElement("div",{id:"print-results"},wp.element.createElement(ae.Button,{href:Oe("pro","SEO Analyzer Print Button"),variant:"secondary",className:"rank-math-print-results is-inactive",target:"_blank"},wp.element.createElement("span",{className:"dashicons dashicons-printer"}),(0,ne.__)("Print","seo-by-rank-math"),wp.element.createElement("span",{className:"rank-math-pro-badge"},"PRO")))),wp.element.createElement(ae.Button,{variant:"primary",href:"#analysis-result",className:"rank-math-view-issues"},(0,ne.__)("View Issues","seo-by-rank-math"))))};e.dn(Se);const _e=function(){var e=rankMath,t=e.connectUrl,n=e.isSiteConnected;return wp.element.createElement(React.Fragment,null,wp.element.createElement("header",{className:"rank-math-box"},wp.element.createElement("h2",null,wp.element.createElement("span",{className:"title-prefix"},(0,ne.__)("SEO Analysis for","seo-by-rank-math")),wp.element.createElement("span",null,window.location.hostname)),n&&wp.element.createElement(Se,null)),wp.element.createElement("div",{className:"rank-math-box rank-math-analyzer-result"},n?wp.element.createElement(ve,null):wp.element.createElement("div",{className:"rank-math-seo-analysis-header"},wp.element.createElement("h3",null,(0,ne.__)("Analyze your site by ","seo-by-rank-math"),wp.element.createElement("a",{href:t,target:"_blank",rel:"noreferrer"},(0,ne.__)("linking your Rank Math account","seo-by-rank-math"))))))};e.dn(_e);const Pe=function(){return{metrices:{percent:85,total:29,statuses:{ok:20,warning:2,fail:7}},date:{date:"October 17, 2024",time:"8:01 am"},serpData:{favicon:"",url:"https://www.rankmath.com/",title:"Rank Math - Best Free WordPress SEO Tools in 2025",description:"Rank Math WordPress SEO plugin will help you rank higher in search engines. DOWNLOAD for FREE this plugin today to optimize WordPress website for higher ra..."},results:{basic:[{status:"info",test_id:"common_keywords",title:"Common Keywords",tooltip:"A list of keywords that appear frequently in the text of the content.",kb_link:"https://rankmath.com/kb/seo-analysis/#common-keywords-test",message:"Here are the most common keywords we found on the page:",data:{rank:31,math:29,wordpress:15,plugin:10,best:9,search:8,google:7,support:7,features:6,free:6}},{status:"fail",test_id:"description_length",title:"SEO Description",tooltip:"SEO analysis of page's meta-description.",kb_link:"https://rankmath.com/kb/seo-analysis/#seo-description-test",message:"The description of page has 184 characters. Most search engines will truncate meta description to 160 characters.",fix:"<p>Write a meta-description for page. Use target keyword(s) (in a natural way) and write with human readers in mind. Summarize the content - describe the topics article discusses.</p><p>The description should stimulate reader interest and get them to click on the article. Think of it as a mini-advert for content.</p>",data:["Rank Math WordPress SEO plugin will help you rank higher in search engines. DOWNLOAD for FREE this plugin today to optimize WordPress website for higher rankings and more traffic."]},{status:"ok",test_id:"h1_heading",title:"H1 Heading",tooltip:"SEO Analysis of the H1 Tags on the page.",kb_link:"https://rankmath.com/kb/seo-analysis/#h1-heading-test",message:"One H1 tag was found on the page.",data:["WordPress SEO Made Easy"]},{status:"ok",test_id:"h2_headings",title:"H2 Headings",tooltip:"SEO analysis of the H2 headings on your page.",kb_link:"https://rankmath.com/kb/seo-analysis/#h2-headings-test",message:"One or more H2 tags were found on the page.",data:["Powering SEO optimization for businesses around the world","What is Rank Math?","Recommended By the Best SEOs On The Planet","What you can do with Rank Math","Take The Guesswork Out of WordPress SEO","Your all-in-one solution for all the SEO needs","Leading SEOs are Loving Rank Math!"]},{status:"ok",test_id:"img_alt",title:"Image ALT Attributes",tooltip:'SEO analysis of the "alt" attribute for image tags.',kb_link:"https://rankmath.com/kb/seo-analysis/#image-alt-attributes-test",message:"All images on the page have alt attributes."},{status:"ok",test_id:"keywords_meta",title:"Keywords in Title & Description",tooltip:"SEO analysis of the HTML page's Title and meta description content.",kb_link:"https://rankmath.com/kb/seo-analysis/#keywords-in-title-and-description-test",message:"One or more common keywords were found in the title and description of the page.",data:{title:["rank","math","wordpress","best","free"],description:["rank","math","wordpress","plugin","search","free"]}}]}}};e.dn(Pe);const Re=function(){var e={metrices:{percent:85,total:29,statuses:{ok:20,warning:2,fail:7}},date:{date:"October 17, 2024",time:"8:01 am"},serpData:{favicon:"",url:"https://www.rankmath.com/",title:"Rank Math - Best Free WordPress SEO Tools in 2025",description:"Rank Math WordPress SEO plugin will help you rank higher in search engines. DOWNLOAD for FREE this plugin today to optimize WordPress website for higher ra..."},results:{basic:[{status:"info",test_id:"common_keywords",title:"Common Keywords",tooltip:"A list of keywords that appear frequently in the text of the content.",kb_link:"https://rankmath.com/kb/seo-analysis/#common-keywords-test",message:"Here are the most common keywords we found on the page:",data:{rank:31,math:29,wordpress:15,plugin:10,best:9,search:8,google:7,support:7,features:6,free:6}},{status:"fail",test_id:"description_length",title:"SEO Description",tooltip:"SEO analysis of page's meta-description.",kb_link:"https://rankmath.com/kb/seo-analysis/#seo-description-test",message:"The description of page has 184 characters. Most search engines will truncate meta description to 160 characters.",fix:"<p>Write a meta-description for page. Use target keyword(s) (in a natural way) and write with human readers in mind. Summarize the content - describe the topics article discusses.</p><p>The description should stimulate reader interest and get them to click on the article. Think of it as a mini-advert for content.</p>",data:["Rank Math WordPress SEO plugin will help you rank higher in search engines. DOWNLOAD for FREE this plugin today to optimize WordPress website for higher rankings and more traffic."]},{status:"ok",test_id:"h1_heading",title:"H1 Heading",tooltip:"SEO Analysis of the H1 Tags on the page.",kb_link:"https://rankmath.com/kb/seo-analysis/#h1-heading-test",message:"One H1 tag was found on the page.",data:["WordPress SEO Made Easy"]},{status:"ok",test_id:"h2_headings",title:"H2 Headings",tooltip:"SEO analysis of the H2 headings on your page.",kb_link:"https://rankmath.com/kb/seo-analysis/#h2-headings-test",message:"One or more H2 tags were found on the page.",data:["Powering SEO optimization for businesses around the world","What is Rank Math?","Recommended By the Best SEOs On The Planet","What you can do with Rank Math","Take The Guesswork Out of WordPress SEO","Your all-in-one solution for all the SEO needs","Leading SEOs are Loving Rank Math!"]},{status:"ok",test_id:"img_alt",title:"Image ALT Attributes",tooltip:'SEO analysis of the "alt" attribute for image tags.',kb_link:"https://rankmath.com/kb/seo-analysis/#image-alt-attributes-test",message:"All images on the page have alt attributes."},{status:"ok",test_id:"keywords_meta",title:"Keywords in Title & Description",tooltip:"SEO analysis of the HTML page's Title and meta description content.",kb_link:"https://rankmath.com/kb/seo-analysis/#keywords-in-title-and-description-test",message:"One or more common keywords were found in the title and description of the page.",data:{title:["rank","math","wordpress","best","free"],description:["rank","math","wordpress","plugin","search","free"]}}]}};return wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{className:"rank-math-box blurred"},wp.element.createElement("h2",null,(0,ne.__)("Competitor Analyzer","seo-by-rank-math")),wp.element.createElement("p",null,(0,ne.__)("Enter a site URL to see how it ranks for the same SEO criteria as site.","seo-by-rank-math")),wp.element.createElement("div",{className:"url-form"},wp.element.createElement("input",{type:"text",name:"competitor_url",id:"competitor_url",placeholder:"https://rankmath.com",disabled:!0}),wp.element.createElement(ae.Button,{variant:"primary",id:"competitor_url_submit",disabled:!0},(0,ne.__)("Start SEO Analyzer","seo-by-rank-math")))),wp.element.createElement("div",{className:"rank-math-box rank-math-analyzer-result blurred"},wp.element.createElement("span",{className:"wp-header-end"}),!(0,te.isEmpty)(e)&&wp.element.createElement(ae.AnalyzerResult,{results:e})),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50 top-20 less-padding"},wp.element.createElement("h3",null,(0,ne.__)("Competitor Analyzer","seo-by-rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,(0,ne.__)("Analyze competitor websites to gain an edge","seo-by-rank-math")),wp.element.createElement("li",null,(0,ne.__)("Evaluate strengths and weaknesses","seo-by-rank-math")),wp.element.createElement("li",null,(0,ne.__)("Explore new keywords and opportunities","seo-by-rank-math")),wp.element.createElement("li",null,(0,ne.__)("Make more informed decisions & strategy","seo-by-rank-math"))),wp.element.createElement(ae.Button,{variant:"green",href:Oe("pro","Competitor Analyzer Tab"),target:"_blank",rel:"noreferrer"},(0,ne.__)("Upgrade","seo-by-rank-math")))))};function Ae(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return i}}(e,t)||Ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.dn(Re);var Ne=function(){return(0,re.applyFilters)("rank_math_analyzer_tabs",[{name:"seo_analyzer",title:wp.element.createElement(React.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-analyzer"}),(0,ne.__)("SEO Analyzer","seo-by-rank-math")),view:_e},{name:"competitor_analyzer",title:wp.element.createElement(React.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-users"}),(0,ne.__)("Competitor Analyzer","seo-by-rank-math")),view:Re}])},Ue=function(){var e=je(ee(),2),t=e[0],n=e[1],r=t.get("view")||Ne()[0].name,a=function(e){return n(function(t){return(0,te.fromPairs)([].concat(Ae(t),[["view",e]]))})};return wp.element.createElement(React.Fragment,null,wp.element.createElement(ae.DashboardHeader,{page:r}),wp.element.createElement("div",{className:"wrap rank-math-wrap rank-math-seo-analysis-wrap dashboard"},wp.element.createElement(ae.TabPanel,{tabs:Ne(),key:r,initialTabName:r,onSelect:function(e){return a(e)}},function(e){var t=e.name,n=e.view;return wp.element.createElement("div",{className:"rank-math-ui seo-analysis ".concat(t)},wp.element.createElement(n,{onTabSelect:a}))})))};const xe=function(){return wp.element.createElement(Q,null,wp.element.createElement(ye,null,wp.element.createElement(Ue,null)))};function Me(e,t){return{type:"RANK_MATH_APP_UI",key:e,value:t}}function De(e){return Me("results",e)}function ze(e){return Me("url",e)}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==We(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.dn(xe);var Be={results:rankMath.results,url:rankMath.analyzeUrl};function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?He(He({},e),{},Fe({},t.key,t.value)):e}function Ke(e){return e.appUi.results}function Ve(e){return e.appUi.url}var $e;(0,oe.register)((0,oe.createReduxStore)("rank-math-seo-analysis",{reducer:(0,oe.combineReducers)(n),selectors:r,actions:t}));$e=function(){(0,s.createRoot)(document.getElementById("rank-math-seo-analysis-wrapper")).render(wp.element.createElement(xe,null)),o()(document).on("click",".enable-auto-update",function(e){e.preventDefault(),ie("enable_auto_update"),o()(this).closest(".auto-update-disabled").addClass("hidden").siblings(".auto-update-enabled").removeClass("hidden").closest(".row-description").find(".status-icon").removeClass("status-warning dashicons-warning").addClass("status-ok dashicons-yes")})},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",$e):$e())}();