From 53f5ebc258f1345b17bbf3b8d0e5ca286c8ec8b0 Mon Sep 17 00:00:00 2001 From: mostafa Date: Sun, 25 Oct 2026 14:58:06 +0200 Subject: [PATCH 1/2] Smoother connect: open MonoRanks after activation, honest fixes status, quieter first load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in a fresh-install test of the connect flow. - After activating the plugin by itself on a single site, the next admin page is the MonoRanks screen (once, for the user who activated it; not for bulk, network or WP-CLI activation, or users without manage_options). The Plugins row shows "Connect" while not connected and "Settings" after. - Settings no longer claims fixes are written with an app password when there is none. It checks every admin for the MonoRanks Application Password and shows "Fixes: Not set up · Allow" otherwise. Allow opens MonoRanks' approve step for this website, which leads to WordPress's own approve screen. - The "What to do next" cards show "Checking…" after one slow or failed answer instead of "could not be reached, tries again within the hour". The first pull gets a longer timeout, and failed pulls are retried after 2 minutes, then 10, then hourly, by one scheduled event at a time. - The paste-key form's button reads "Save key". - A stale connect link no longer shows "Could not connect" above "Connected". - Connect opens MonoRanks in the same tab, so the return lands there. Version 0.1.25. --- CHANGELOG.md | 9 + build/main.js | 2 +- languages/monoranks-fa_IR-admin.json | 34 +- languages/monoranks-fa_IR.mo | Bin 31857 -> 32008 bytes languages/monoranks-fa_IR.po | 376 ++++++++++++++++------- languages/monoranks.pot | 376 ++++++++++++++++------- monoranks.php | 4 +- readme.txt | 10 +- resources/admin/src/lib/api.ts | 4 + resources/admin/src/screens/Grow.tsx | 16 +- resources/admin/src/screens/Overview.tsx | 2 +- resources/admin/src/screens/Settings.tsx | 12 +- src/Admin.php | 53 ++++ src/Grow.php | 55 +++- src/Settings.php | 60 ++++ tests/e2e/plugin.spec.ts | 10 +- tests/integration/AppPasswordTest.php | 56 ++++ tests/unit/AdminTest.php | 79 +++++ tests/unit/GrowTest.php | 55 +++- tests/unit/SettingsTest.php | 39 +++ tests/unit/bootstrap.php | 12 + 21 files changed, 1013 insertions(+), 251 deletions(-) create mode 100644 tests/integration/AppPasswordTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index ce1675a..b95a067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to the MonoRanks WordPress plugin. The format follows [Keep a Changelog](https://keepachangelog.com/); versions follow [Semantic Versioning](https://semver.org/). +## v0.1.25 - 2026-10-25 + +- **New:** After activation, the plugin opens its MonoRanks screen, and the Plugins list shows a Connect link. +- **Fix:** Settings shows "Fixes: Not set up" with an Allow link when no MonoRanks app password exists, instead of saying fixes are written with one. +- **Fix:** The "What to do next" cards show "Checking…" after one slow answer and try again within minutes, not an hour. +- **Fix:** No "Could not connect" message on a site that is already connected. +- **Enhancement:** Connect opens MonoRanks in the same tab and comes back there. +- **Enhancement:** The connector key button now reads "Save key". + ## v0.1.24 - 2026-10-23 - **New:** Category, tag and product category pages are sent to MonoRanks with their SEO title and meta description. diff --git a/build/main.js b/build/main.js index 67fc65f..3fec57e 100644 --- a/build/main.js +++ b/build/main.js @@ -6,4 +6,4 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r= `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Be(n):``}function Ue(e,t){switch(e.tag){case 26:case 27:case 5:return Be(e.type);case 16:return Be(`Lazy`);case 13:return e.child!==t&&t!==null?Be(`Suspense Fallback`):Be(`Suspense`);case 19:return Be(`SuspenseList`);case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return Be(`Activity`);case 30:return Be(`ViewTransition`);default:return``}}function We(e){try{var t=``,n=null;do t+=Ue(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Ge=Object.prototype.hasOwnProperty,Ke=t.unstable_scheduleCallback,qe=t.unstable_cancelCallback,Je=t.unstable_shouldYield,Ye=t.unstable_requestPaint,Xe=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,$e=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,tt=t.unstable_LowPriority,nt=t.unstable_IdlePriority,rt=t.log,it=t.unstable_setDisableYieldValue,at=null,ot=null;function st(e){if(typeof rt==`function`&&it(e),ot&&typeof ot.setStrictMode==`function`)try{ot.setStrictMode(at,e)}catch{}}var ct=Math.clz32?Math.clz32:dt,lt=Math.log,ut=Math.LN2;function dt(e){return e>>>=0,e===0?32:31-(lt(e)/ut|0)|0}var ft=256,pt=262144,mt=4194304;function k(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ht(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=k(n))):i=k(o):i=k(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=k(n))):i=k(o)):i=k(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _t(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function xt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function St(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=pr),gr=` `,_r=!1;function vr(e,t){switch(e){case`keyup`:return dr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var br=!1;function xr(e,t){switch(e){case`compositionend`:return yr(t);case`keypress`:return t.which===32?(_r=!0,gr):null;case`textInput`:return e=t.data,e===gr&&_r?null:e;default:return null}}function Sr(e,t){if(br)return e===`compositionend`||!fr&&vr(e,t)?(e=Fn(),Pn=Nn=Mn=null,br=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Gr(n)}}function qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wr(e.document)}return t}function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Xr=kn&&`documentMode`in document&&11>=document.documentMode,Zr=null,Qr=null,$r=null,ei=!1;function ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Zr==null||Zr!==Wr(r)||(r=Zr,`selectionStart`in r&&Yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$r&&Ur($r,r)||($r=r,r=Jf(Qr,`onSelect`),0>=o,i-=o,Zi=1<<32-ct(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&$i(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&$i(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&$i(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&$i(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===w&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ae:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===w){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===me&&to(l)===r.type){n(e,r.sibling),c=a(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===w?(c=Ri(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Li(o.type,o.key,o.props,null,e.mode,c),co(c,o),c.return=e,e=c)}return s(e);case oe:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Vi(o,e.mode,c),c.return=e,e=c}return s(e);case me:return o=to(o),_(e,r,o,c)}if(we(o))return h(e,r,o,c);if(xe(o)){if(l=xe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,so(o),c);if(o.$$typeof===ue)return _(e,r,Ea(e,o),c);lo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=zi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ai(e),ki(e,null,n),t}return Ei(e,r,t,n),Ai(e)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,A(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===za&&(xo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=C({},d,f);break a;case 2:mo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function wo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};s.types=o===null?null:o.types,E.T=s,dc(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Ua(c,r),jd(e)):uc(e,t,r,jd(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,Te,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:Te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},jd())}function ic(){return Ta(sh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=_o(n);var r=vo(t,e,n);r!==null&&(Pd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=Di(e,t,n,r),n!==null&&(Pd(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,jd())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Hr(s,o))return Ei(e,t,i,0),q===null&&Ti(),!1}catch{}if(n=Di(e,t,i,r),n!==null)return Pd(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=Di(e,n,r,2),t!==null&&Pd(t,e,2)}function fc(e){var t=e.alternate;return e===V||t!==null&&t===V}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,A(e,n)}}var hc={readContext:Ta,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:Ta,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){st(!0);try{e()}finally{st(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){st(!0);try{n(t)}finally{st(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=cc.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,V,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=os();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),q===null)throw Error(i(349));Y&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=q.identifierPrefix;if(B){var n=Qi,r=Zi;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[At]=t,o[jt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ml(t)}}return U(t),t.subtreeFlags&=-33554433,hl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Me.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ia,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ca(t,!0)}else e=lp(e).createTextNode(r),e[At]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[At]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(i(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=da(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[At]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),a=!1}else a=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_l(t,t.updateQueue),U(t),null);case 4:return Fe(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,U(t),null;case 10:return ya(t.type),U(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return U(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)vl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,vl(r,!1),e=o.updateQueue,t.updateQueue=e,_l(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ii(n,e),n=n.sibling;return zo(t,Ro.current&1|2),B&&$i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Xe()>gd&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_l(t,e),vl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!B)return U(t),null}else 2*Xe()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Xe(),e.sibling=null,o=Ro.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||B?zo(t,o):(n=o,O(jo,t),O(Ro,n),Mo===null&&(Mo=t)),B&&$i(t,r.treeForkCount),e}return U(t),null;case 22:case 23:return Lo(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&_l(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ke(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),U(t),null;case 25:return null;case 30:return t.flags|=33554432,U(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch(na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Le(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Fe(),null;case 10:return ya(t.type),null;case 22:case 23:return Lo(t),Ao(),e!==null&&ke(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function xl(e,t){switch(na(t),t.tag){case 3:ya(ja),Fe();break;case 26:case 27:case 5:Le(t);break;case 4:Fe();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:ya(t.type);break;case 22:case 23:Lo(t),Ao(),e!==null&&ke(Ga);break;case 24:ya(ja)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){Z(e,e.return,t)}}}function Tl(e,t,n){n.props=Cc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=vi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[At]=e,Ht(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Kr(s,h),v=Kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,K&6)throw Error(i(331));var c=K;if(K|=4,Yu(o.current),Vu(o,o.current,s,n),K=c,Df(0,!1),ot&&typeof ot.onPostCommitFiberRoot==`function`)try{ot.onPostCommitFiberRoot(at,o)}catch{}return!0}finally{D.p=a,E.T=r,uf(e,t)}}function pf(e,t,n){t=Ui(n,t),t=kc(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(xt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Ui(n,e),n=Ac(2),r=vo(t,n,2),r!==null&&(jc(n,r,t,e),xt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(ad===4||ad===3&&(Y&62914560)===Y&&300>Xe()-md?K&2?cd|=n:Vd(e,0):cd|=n,ud===Y&&(ud=0)),Ef(e)}function gf(e,t){t===0&&(t=yt()),e=Oi(e,t),e!==null&&(xt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ke(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ct(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Y,a=ht(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||gt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Xe(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}yd!==0&&yd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ht(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Ut(o)}),Ht(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=C({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ht(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=M(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ht(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Me.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=M(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=M(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=M(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+sn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Ut.bind(null,t),np(t,`link`,n),Ht(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+sn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Ht(r),r;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ht(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ht(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ht(a),a):(r=n,(a=vm.get(o))&&(r=C({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ht(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ht(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}))(),_=c(u(),1);function v(){(0,_.useEffect)(()=>{let e=document.getElementById(`adminmenuwrap`),t=document.getElementById(`wpbody-content`);if(!e||!t)return;let n=()=>t.style.setProperty(`--mr-fill`,Math.ceil(e.getBoundingClientRect().height)+`px`);n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t.style.removeProperty(`--mr-fill`)}},[])}function y(){let e=window.monoranksAdmin;if(!e)throw Error(`monoranksAdmin settings missing`);return e}var b={overview:`monoranks`,settings:`monoranks-settings`};function ee(){return new URLSearchParams(window.location.search).get(`page`)===b.settings?`settings`:`overview`}function te(){let[e,t]=(0,_.useState)(ee),n=(0,_.useRef)(()=>void 0);(0,_.useEffect)(()=>{let e=()=>t(ee());window.addEventListener(`popstate`,e);let r=e=>{let t=e.target.closest(`#toplevel_page_monoranks a[href*="page=monoranks"]`);if(!t||e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0)return;let r=new URL(t.href,window.location.href).searchParams.get(`page`),i=r===b.settings?`settings`:r===b.overview?`overview`:null;i&&(e.preventDefault(),n.current(i))};return document.addEventListener(`click`,r),()=>{window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,r)}},[]),(0,_.useEffect)(()=>{ne(e),document.title=document.title.replace(/^[^‹]*‹/,(y().titles[e]||`MonoRanks`)+` ‹`)},[e]);let r=n=>{if(n===e)return;let r=n===`settings`?y().urls.settings:y().urls.overview;window.history.pushState({monoranks:n},``,r),t(n),window.scrollTo({top:0})};return n.current=r,[e,r]}function ne(e){let t=document.getElementById(`toplevel_page_monoranks`);t&&t.querySelectorAll(`.wp-submenu a`).forEach(t=>{let n=new URL(t.href,window.location.href).searchParams.get(`page`)===b[e];t.classList.toggle(`current`,n),t.parentElement?.classList.toggle(`current`,n),n?t.setAttribute(`aria-current`,`page`):t.removeAttribute(`aria-current`)})}var{__:x,_n:S,_x:re,sprintf:C,isRTL:ie}=window.wp.i18n,ae=window.wp.apiFetch,oe=`/monoranks/v1/admin`,w={overview:()=>ae({path:`${oe}/overview`}),settings:()=>ae({path:`${oe}/settings`}),grow:()=>ae({path:`${oe}/grow`}),apply:e=>ae({path:`${oe}/apply`,method:`POST`,data:{fix:e}}),undo:(e,t)=>ae({path:`${oe}/undo`,method:`POST`,data:{entry:e.index,at:e.at,screen:t}}),sync:e=>ae({path:`${oe}/sync`,method:`POST`,data:{screen:e}}),connect:(e,t)=>ae({path:`${oe}/connect`,method:`POST`,data:{key:e,api_base:t}}),disconnect:()=>ae({path:`${oe}/disconnect`,method:`POST`}),deleteEverything:()=>ae({path:`${oe}/delete`,method:`POST`})};function se(e,t){let n=e?.message;return typeof n==`string`&&n?n:t}var ce=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function le(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ce(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ue=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},T=e=>{let t=ue(e);return t.charAt(0).toUpperCase()+t.slice(1)},de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pe(e){return e!=null}function me(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??fe.width,a=e.size??e.height??fe.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?de(...c):de(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??fe[`stroke-width`])*Number(e.size??e.width??fe.width)/Number(t.size??t.width??fe.width):t.strokeWidth??fe[`stroke-width`];return[`svg`,{...Object.entries(fe).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pe(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pe(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pe(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function he(e,t={}){return me(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ge=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_e=(0,_.createContext)({}),ve=()=>(0,_.useContext)(_e),ye=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=ve()??{},b=!!c||ge(d),[ee,te,ne=[]]=he(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:de(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(ee,{ref:f,...te},[...ne.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function be(e,t=[],n=[]){let r=typeof e==`string`?le(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ye,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=T(r.name)),i}var xe={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};xe.node;var Se=be(xe),Ce={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Ce.node;var we=be(Ce),E={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};E.node;var D=be(E),Te={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Te.node;var Ee=be(Te),De={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};De.node;var Oe=be(De),ke={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ke.node;var O=be(ke),Ae={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ae.node;var je=be(Ae),Me={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Me.node;var Ne=be(Me);function Pe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Re=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ze=`-`,Be=[],Ve=`arbitrary..`,He=e=>{let t=Ge(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return We(e);let n=e.split(ze);return Ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ie(i,t):t:i||Be}return n[e]||Be}}},Ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ze):e.slice(t).join(ze),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ve+r:void 0})(),Ge=e=>{let{theme:t,classGroups:n}=e;return Ke(n,t)},Ke=(e,t)=>{let n=Re();for(let r in e){let i=e[r];qe(i,n,r,t)}return n},qe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ye(e,t,n);return}if(typeof e==`function`){Xe(e,t,n,r);return}Ze(e,t,n,r)},Ye=(e,t,n)=>{let r=e===``?t:Qe(t,e);r.classGroupId=n},Xe=(e,t,n,r)=>{if($e(e)){qe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Le(n,e))},Ze=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(ze),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,et=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},tt=`!`,nt=`:`,rt=[],it=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),at=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return it(t,l,c,u)};if(t){let e=t+nt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):it(rt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ot=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},st=e=>({cache:et(e.cacheSize),parseClassName:at(e),sortModifiers:ot(e),postfixLookupClassGroupIds:ct(e),...He(e)}),ct=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(lt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+tt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},dt=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=st(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ut(e,n);return i(e,a),a};return a=o,(...e)=>a(dt(...e))},mt=[],k=e=>{let t=t=>t[e]||mt;return t.isThemeGetter=!0,t.themeKey=e,t},ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_t=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,St=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>_t.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Et=e=>vt.test(e),Dt=()=>!0,Ot=e=>yt.test(e)&&!bt.test(e),kt=()=>!1,At=e=>xt.test(e),jt=e=>St.test(e),Mt=e=>!j(e)&&!M(e),Nt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Pt=e=>Yt(e,Qt,kt),j=e=>ht.test(e),Ft=e=>Yt(e,$t,Ot),It=e=>Yt(e,en,A),Lt=e=>Yt(e,nn,Dt),Rt=e=>Yt(e,tn,kt),zt=e=>Yt(e,Zt,kt),Bt=e=>Yt(e,N,jt),Vt=e=>Yt(e,rn,At),M=e=>gt.test(e),Ht=e=>Xt(e,$t),Ut=e=>Xt(e,tn),Wt=e=>Xt(e,Zt),Gt=e=>Xt(e,Qt),Kt=e=>Xt(e,N),qt=e=>Xt(e,rn,!0),Jt=e=>Xt(e,nn,!0),Yt=(e,t,n)=>{let r=ht.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Xt=(e,t,n=!1)=>{let r=gt.exec(e);return r?r[1]?t(r[1]):n:!1},Zt=e=>e===`position`||e===`percentage`,N=e=>e===`image`||e===`url`,Qt=e=>e===`length`||e===`size`||e===`bg-size`,$t=e=>e===`length`,en=e=>e===`number`,tn=e=>e===`family-name`,nn=e=>e===`number`||e===`weight`,rn=e=>e===`shadow`,an=pt(()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[M,j,c],S=()=>[Ct,`full`,`auto`,...x()],re=()=>[wt,`none`,`subgrid`,M,j],C=()=>[`auto`,{span:[`full`,wt,M,j]},wt,M,j],ie=()=>[wt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],w=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...x()],ce=()=>[Ct,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],le=()=>[s,Ct,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],ue=()=>[Ct,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],T=()=>[e,M,j],de=()=>[...b(),Wt,zt,{position:[M,j]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Gt,Pt,{size:[M,j]}],me=()=>[Tt,Ht,Ft],he=()=>[``,`none`,`full`,l,M,j],ge=()=>[``,A,Ht,Ft],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[A,Tt,Wt,zt],be=()=>[``,`none`,m,M,j],xe=()=>[`none`,A,M,j],Se=()=>[`none`,A,M,j],Ce=()=>[A,M,j],we=()=>[Ct,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Et],breakpoint:[Et],color:[Dt],container:[Et],"drop-shadow":[Et],ease:[`in`,`out`,`in-out`],font:[Mt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Et],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Et],shadow:[Et],spacing:[`px`,A],text:[Et],"text-shadow":[Et],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ct,j,M,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,M,j]}],"container-named":[Nt],columns:[{columns:[A,`auto`,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[wt,`auto`,M,j]}],basis:[{basis:[Ct,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,Ct,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[wt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...w(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...w()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...w(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...w(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...w(),`baseline`]}],"place-self":[{"place-self":[`auto`,...w()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,Ht,Ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Jt,Lt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tt,j]}],"font-family":[{font:[Ut,Rt,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,It]}],leading:[{leading:[`none`,a,...x()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,Ft]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"tab-size":[{tab:[wt,M,j]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wt,M,j],radial:[``,M,j],conic:[``,wt,M,j]},Kt,Bt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,Ht,Ft]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,qt,Vt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,qt,Vt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,Ft]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,qt,Vt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:be()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,qt,Vt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[wt,M,j]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,Ht,Ft,It]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function P(...e){return an(Fe(e))}var on=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=on()}))(),sn=`.notice, .update-nag, .updated, .error, #message`;function cn({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let e=document.getElementById(`wpbody-content`),n=t.current;if(!e||!n)return;let r=()=>{e.querySelectorAll(`:scope > *`).forEach(e=>{e.id!==`monoranks-admin`&&e.matches(sn)&&n.appendChild(e)})};r();let i=new MutationObserver(r);return i.observe(e,{childList:!0}),()=>i.disconnect()},[]),(0,F.jsx)(`div`,{ref:t,className:P(`empty:hidden`,e)})}function ln(e,t,n=`plugin-admin`){try{let r=new URL(e);return r.host===new URL(y().apiBase).host?e:(r.searchParams.set(`utm_source`,`wordpress-plugin`),r.searchParams.set(`utm_medium`,`admin`),r.searchParams.set(`utm_campaign`,n),r.searchParams.set(`utm_content`,t),r.toString())}catch{return e}}function un({which:e,className:t}){return(0,F.jsx)(`span`,{className:P(`inline-flex [&>svg]:block`,t),dangerouslySetInnerHTML:{__html:y().logos[e]}})}var dn=`mx-auto w-full max-w-[1260px] px-10 max-[960px]:px-6 max-[782px]:px-4`;function fn({section:e,go:t,title:n,description:r,actions:i,children:a}){let o=y(),s=[{id:`overview`,label:x(`Overview`,`monoranks`),href:o.urls.overview},{id:`settings`,label:x(`Settings`,`monoranks`),href:o.urls.settings}];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`header`,{className:`bg-band text-band-ink`,children:(0,F.jsxs)(`div`,{className:P(dn,`flex min-h-16 items-center gap-7 max-[782px]:gap-3`),children:[(0,F.jsx)(`a`,{href:o.urls.overview,onClick:e=>{e.preventDefault(),t(`overview`)},className:`inline-flex items-center text-band-ink hover:text-white`,children:(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-7 [&>svg]:w-[138px]`})}),(0,F.jsx)(`nav`,{className:`flex self-stretch gap-[22px] max-[782px]:gap-3`,"aria-label":x(`MonoRanks sections`,`monoranks`),children:s.map(n=>(0,F.jsx)(`a`,{href:n.href,onClick:e=>{e.preventDefault(),t(n.id)},"aria-current":e===n.id?`page`:void 0,className:P(`inline-flex items-center border-b-2 pt-[2px] text-[13px] font-medium`,e===n.id?`border-brand text-band-ink`:`border-transparent text-band-muted hover:text-white`),children:n.label},n.id))}),(0,F.jsxs)(`div`,{className:`ms-auto flex items-center gap-1.5`,children:[(0,F.jsx)(`a`,{href:ln(o.urls.docs,`header-help`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-[12.5px] font-medium text-band-muted hover:bg-band-edge hover:text-white`,children:x(`Help`,`monoranks`)}),(0,F.jsxs)(`a`,{href:ln(o.urls.app,`header-open`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md border border-band-edge px-3 text-[12.5px] font-medium text-band-ink hover:bg-band-edge hover:text-white max-[782px]:hidden`,children:[x(`Open MonoRanks`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]})]})}),(0,F.jsxs)(`div`,{className:P(dn,`flex flex-wrap items-start justify-between gap-x-6 gap-y-3 pb-1.5 pt-[30px]`),children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_420px] flex-col gap-1.5`,children:[(0,F.jsx)(`h1`,{className:`text-[26px] font-semibold tracking-[-0.02em] leading-tight text-ink`,children:n}),r&&(0,F.jsx)(`p`,{className:`max-w-[72ch] text-ink2`,children:r})]}),i&&(0,F.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 pt-1`,children:i})]}),(0,F.jsx)(`div`,{className:`wp-header-end`}),(0,F.jsx)(cn,{className:P(dn,`flex flex-col gap-2.5 pt-3`)}),(0,F.jsx)(`main`,{className:P(dn,`flex flex-[1_0_auto] flex-col gap-5 pb-10 pt-[22px]`),children:a}),(0,F.jsx)(pn,{section:e,go:t})]})}function pn({section:e,go:t}){let n=y();return(0,F.jsxs)(`footer`,{className:`mt-auto bg-band text-band-ink`,children:[(0,F.jsxs)(`div`,{className:P(dn,`grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-8 py-7 max-[960px]:grid-cols-[minmax(0,1fr)_auto] max-[960px]:gap-5 max-[782px]:grid-cols-1`),children:[(0,F.jsxs)(`div`,{className:`inline-flex items-center gap-2.5`,children:[(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-[26px] [&>svg]:w-[128px]`}),(0,F.jsxs)(`span`,{className:`rounded-md border border-band-edge px-[7px] py-[2px] text-[11px] font-medium text-band-muted`,children:[`v`,n.version]})]}),(0,F.jsxs)(`div`,{className:`min-w-0 border-s border-band-edge ps-7 max-[960px]:col-start-1 max-[960px]:border-0 max-[960px]:ps-0`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] uppercase tracking-[.08em] text-band-muted`,children:x(`Your data`,`monoranks`)}),(0,F.jsxs)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},className:`inline-flex items-center gap-[7px] text-[13px] text-band-ink hover:text-white hover:underline hover:underline-offset-4`,children:[x(`What is sent and what can change`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]}),(0,F.jsxs)(`a`,{href:ln(n.urls.docs,`footer-help`,e),target:`_blank`,rel:`noopener`,className:`block rounded-[9px] border border-band-edge px-[18px] py-3 text-start text-band-ink hover:bg-band-edge hover:text-white max-[960px]:col-start-2 max-[960px]:row-span-2 max-[960px]:row-start-1 max-[782px]:col-auto max-[782px]:row-auto`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] text-band-muted`,children:x(`Need a hand?`,`monoranks`)}),(0,F.jsxs)(`strong`,{className:`flex items-center justify-between gap-5 text-[13px] font-medium`,children:[x(`Help and resources`,`monoranks`),(0,F.jsx)(Se,{size:14,className:`mr-flip`})]})]})]}),(0,F.jsx)(`div`,{className:P(dn),children:(0,F.jsxs)(`div`,{className:`flex items-center justify-center gap-3 border-t border-band-edge pb-[18px] pt-4 text-[11px] text-band-muted`,children:[(0,F.jsx)(`span`,{children:x(`A product by`,`monoranks`)}),(0,F.jsx)(`a`,{href:ln(`https://veronalabs.com/`,`footer-publisher`,e),target:`_blank`,rel:`noopener`,"aria-label":`VeronaLabs`,className:`inline-flex min-h-7 items-center text-band-muted opacity-75 hover:opacity-100 hover:text-band-muted`,children:(0,F.jsx)(un,{which:`veronalabs`,className:`[&>svg]:h-auto [&>svg]:w-28`})})]})})]})}function mn({notice:e}){if(!e)return null;let t={success:`text-good-ink`,error:`text-critical`,warning:`text-warn`}[e.type],n={success:Oe,error:Ee,warning:je}[e.type];return(0,F.jsxs)(`div`,{className:P(`notice`,`notice-${e.type}`,`flex items-start gap-2.5`),role:`status`,children:[(0,F.jsx)(n,{size:16,className:P(`mt-[1px] shrink-0`,t),"aria-hidden":`true`}),(0,F.jsx)(`p`,{className:`text-ink`,children:e.text})]})}function hn({rows:e}){return(0,F.jsx)(`div`,{className:`grid grid-cols-[150px_minmax(0,1fr)] gap-x-3 gap-y-2 text-[12px] max-[960px]:grid-cols-1`,children:e.map(([e,t],n)=>(0,F.jsxs)(`div`,{className:`contents`,children:[(0,F.jsx)(`div`,{className:`text-mute max-[960px]:mt-1`,children:e}),(0,F.jsx)(`div`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]},n))})}function gn({title:e,text:t}){return(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-6 py-9 text-center text-ink2`,children:[(0,F.jsx)(`span`,{className:`text-[13px] font-semibold text-ink`,children:e}),(0,F.jsx)(`span`,{className:`text-[12px]`,children:t})]})}function I(e){if(e==null)return`—`;try{return new Intl.NumberFormat(y().locale,{maximumFractionDigits:0}).format(e)}catch{return String(e)}}function _n(e,t=``){return(e>0?`+`:e<0?`−`:``)+I(Math.abs(e))+t}function vn(e){return e==null?`none`:e>=80?`good`:e>=60?`warn`:`critical`}function yn({score:e,size:t=`sm`,label:n}){let r=t===`lg`?64:30,i=t===`lg`?5:3,a=(r-i)/2,o=2*Math.PI*a,s=r/2,c=e===null?x(`Not scored yet`,`monoranks`):C(x(`%s of 100`,`monoranks`),I(e));return(0,F.jsxs)(`span`,{className:P(`mr-score`,`mr-${t}`,`mr-${vn(e)}`),title:(n?`${n}: `:``)+c,children:[(0,F.jsxs)(`span`,{className:`mr-ring`,children:[(0,F.jsx)(`svg`,{width:r,height:r,viewBox:`0 0 ${r} ${r}`,"aria-hidden":`true`,children:e===null?(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeDasharray:`3 4`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`var(--grayTrack)`,strokeWidth:i}),(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeDasharray:`${o*e/100} ${o}`,transform:`rotate(-90 ${s} ${s})`})]})}),(0,F.jsx)(`span`,{children:e===null?`—`:I(e)})]}),n&&(0,F.jsx)(`span`,{className:`mr-lbl`,children:n})]})}function bn({n:e,unit:t=``,period:n=`week`}){if(e==null)return null;let r=e>0?`text-good-ink`:e<0?`text-critical`:`text-mute`,i=`⁨`+_n(e,t)+`⁩`,a=C(x(n===`previous28`?`%s vs previous 28 days`:`%s this week`,`monoranks`),i);return(0,F.jsx)(`span`,{className:P(`text-[12px] font-medium`,r),children:a})}function xn({series:e}){if(e.length<2)return null;let t=Math.max(1,...e),n=e.map((n,r)=>[Math.round(200*r/(e.length-1)*10)/10,Math.round((34-30*n/t)*10)/10]),r=`M`+n.map(e=>e.join(` `)).join(` L`),i=n[n.length-1];return(0,F.jsxs)(`svg`,{className:`block h-[38px] w-full`,viewBox:`0 0 200 38`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`${r} L200 38 L0 38 Z`,fill:`var(--accentSoft)`}),(0,F.jsx)(`path`,{d:r,fill:`none`,stroke:`var(--accent)`,strokeWidth:`1.5`}),(0,F.jsx)(`circle`,{cx:i[0],cy:i[1],r:`2.5`,fill:`var(--accent)`})]})}var Sn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Cn=Fe,wn=(e,t)=>n=>{if(t?.variants==null)return Cn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Sn(t)||Sn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Cn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Tn=wn(`inline-flex shrink-0 items-center whitespace-nowrap font-medium`,{variants:{variant:{badge:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-ink2`,warn:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-warn`,pill:`h-[22px] gap-[6px] rounded-full bg-surface2 ps-[7px] pe-2 text-[12px] text-ink`}},defaultVariants:{variant:`badge`}});function L({className:e,variant:t,...n}){return(0,F.jsx)(`span`,{"data-slot":`badge`,className:P(Tn({variant:t}),e),...n})}function En({tone:e=`muted`}){let t={good:`bg-good`,warn:`bg-warn`,critical:`bg-critical`,muted:`bg-mute`}[e];return(0,F.jsx)(`span`,{className:P(`inline-block h-2 w-2 shrink-0 rounded-full`,t)})}var Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;tMn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Un(r)&&typeof qn==`function`&&(r=qn(r._payload)),_.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Un(n)&&typeof qn==`function`&&(n=qn(n._payload)),a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Kn(e):Gn(e));return r}let u=zn(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);var Gn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qn=_.use,Jn=wn(`inline-flex items-center justify-center gap-[7px] whitespace-nowrap rounded-md border text-[13px] font-medium leading-none transition-[background-color,border-color,color,opacity] duration-100 disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:shrink-0 cursor-pointer`,{variants:{variant:{default:`border-border bg-surface text-ink hover:bg-surface2 hover:border-line`,primary:`border-primary bg-primary text-primary-foreground hover:opacity-85`,accent:`border-brand bg-brand text-white hover:opacity-85`,ghost:`border-transparent bg-transparent text-ink2 hover:bg-surface3 hover:text-ink`,danger:`border-critical/50 bg-surface text-critical hover:border-critical hover:bg-critical hover:text-white`,dangerSolid:`border-critical bg-critical text-white hover:opacity-85`},size:{default:`h-[34px] px-3`,sm:`h-7 px-[10px] text-[12px]`,icon:`h-8 w-8 px-0`}},defaultVariants:{variant:`default`,size:`default`}});function R({className:e,variant:t,size:n,asChild:r=!1,children:i,...a}){let o=a[`aria-busy`]===!0||a[`aria-busy`]===`true`,s=P(Jn({variant:t,size:n,className:e}),o&&`pointer-events-none opacity-85`);return r?(0,F.jsx)(Fn,{"data-slot":`button`,className:s,...a,children:i}):(0,F.jsxs)(`button`,{"data-slot":`button`,className:s,...a,children:[o&&(0,F.jsx)(`span`,{className:`spin`,"aria-hidden":`true`}),i]})}function Yn({rows:e,onUndo:t,busy:n}){if(!e.length)return(0,F.jsx)(gn,{title:x(`No changes yet`,`monoranks`),text:x(`Fixes you approve in MonoRanks show up here, each with Undo.`,`monoranks`)});let r=`whitespace-nowrap border-b border-border px-[12px] py-[11px] text-start text-[12px] font-medium text-mute`,i=`border-b border-grid px-[12px] py-3 align-middle text-[12px] group-last:border-b-0`,a=`overflow-hidden text-ellipsis whitespace-nowrap text-start`;return(0,F.jsx)(`div`,{className:`rounded-b-xl`,children:(0,F.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,children:[(0,F.jsxs)(`colgroup`,{children:[(0,F.jsx)(`col`,{className:`w-[15%] min-w-[130px]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[18%]`}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{className:`w-[96px]`})]}),(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:r,children:x(`When`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Who`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Field`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Where`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Before`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`After`,`monoranks`)}),(0,F.jsx)(`th`,{className:r})]})}),(0,F.jsx)(`tbody`,{children:e.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:`${i} tabular-nums`,children:(0,F.jsx)(`div`,{className:a,title:e.when,children:e.when})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,title:e.actor,children:e.actor})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(L,{className:`max-w-full overflow-hidden text-ellipsis whitespace-nowrap`,title:e.fieldLabel,children:e.fieldLabel})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.where,children:e.where})}),(0,F.jsx)(`td`,{className:`${i} text-mute`,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.previous,children:e.previous||`—`})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.value,children:e.value||`—`})}),(0,F.jsx)(`td`,{className:`${i} text-end`,children:(0,F.jsxs)(R,{variant:`ghost`,size:`sm`,disabled:n!==null,"aria-busy":n===e.index,onClick:()=>t(e),children:[n!==e.index&&(0,F.jsx)(Ne,{size:13,className:`mr-flip`}),x(`Undo`,`monoranks`)]})})]},e.index))})]})})}function Xn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card`,className:P(`min-w-0 rounded-xl border border-border bg-surface`,e),...t})}function Zn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-header`,className:P(`flex flex-wrap items-center justify-between gap-3 px-[22px] pt-[18px]`,e),...t})}function Qn({className:e,...t}){return(0,F.jsx)(`h2`,{"data-slot":`card-title`,className:P(`inline-flex items-center gap-2 text-[15px] font-semibold text-ink`,e),...t})}function $n({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-body`,className:P(`px-[22px] pb-[22px] pt-4`,e),...t})}function er({text:e,children:t,className:n,align:r=`center`}){let i=_.useId(),[a,o]=_.useState(!1),s=()=>o(!0),c=()=>o(!1),l=t?_.cloneElement(t,{"aria-describedby":i,tabIndex:t.props.tabIndex??0}):(0,F.jsx)(`button`,{type:`button`,"aria-describedby":i,"aria-label":x(`More info`,`monoranks`),className:`inline-flex h-4 w-4 items-center justify-center rounded-full text-mute hover:text-ink focus-visible:text-ink focus-visible:outline-2 focus-visible:outline-brand`,children:(0,F.jsx)(O,{size:13,"aria-hidden":`true`})});return(0,F.jsxs)(`span`,{className:P(`relative inline-flex items-center`,n),onMouseEnter:s,onMouseLeave:c,onFocus:s,onBlur:c,onKeyDown:e=>{e.key===`Escape`&&c()},children:[l,(0,F.jsx)(`span`,{id:i,role:`tooltip`,className:P(`pointer-events-none absolute bottom-[calc(100%+6px)] z-50 w-max max-w-[260px] rounded-md bg-ink px-2.5 py-1.5 text-start text-[12px] font-normal leading-snug text-page shadow-md`,{center:`left-1/2 -translate-x-1/2`,start:`start-0`,end:`end-0`}[r],a?`visible opacity-100`:`invisible opacity-0`),children:e})]})}var tr={target:`_blank`,rel:`noopener`};function nr(){let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(!1);if((0,_.useEffect)(()=>{w.grow().then(t).catch(()=>r(!0))},[]),n)return null;if(!e)return(0,F.jsx)(`section`,{"aria-label":x(`What to do next`,`monoranks`),"aria-busy":`true`,className:`grid grid-cols-2 gap-5 max-[960px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[180px] animate-pulse bg-surface2`},e))});if(!e.connected)return null;let i=e.scope_url??``;return(0,F.jsxs)(`section`,{"aria-labelledby":`mr-grow-title`,className:`flex flex-col gap-3`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,F.jsx)(`h2`,{id:`mr-grow-title`,className:`text-[15px] font-semibold text-ink`,children:x(`What to do next`,`monoranks`)}),e.fetched&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(x(`Updated %s`,`monoranks`),e.fetched)})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsx)(ar,{d:e.outreach,scope:i}),(0,F.jsx)(or,{d:e.backlinks,scope:i}),(0,F.jsx)(sr,{d:e.competitors,scope:i}),(0,F.jsx)(cr,{d:e.keywords,scope:i})]}),(0,F.jsx)(lr,{d:e.report})]})}function rr({state:e,scope:t,empty:n}){let r=n;return e===`no_access`?r=(0,F.jsxs)(F.Fragment,{children:[x(`The MonoRanks key of this site cannot read this yet. Allow it under Integrations in MonoRanks, or connect again.`,`monoranks`),` `,t&&(0,F.jsx)(`a`,{className:`font-medium text-brand-ink hover:underline`,href:ln(t,`grow-scope`),...tr,children:x(`Open Integrations`,`monoranks`)})]}):e===`off`?r=x(`Not available in your MonoRanks yet.`,`monoranks`):e===`error`?r=x(`MonoRanks could not be reached. The plugin tries again within the hour.`,`monoranks`):e===`pending`&&(r=x(`Still loading. Reload this screen in a minute.`,`monoranks`)),(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:r})}function ir({title:e,badge:t,link:n,linkText:r,children:i}){return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[e,t]}),n&&(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(n,`grow-card`),...tr,children:[r,(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]}),(0,F.jsx)($n,{className:`flex flex-col gap-3 pt-3`,children:i})]})}function ar({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ir,{title:x(`Outreach`,`monoranks`),badge:n&&n.to_contact>0?(0,F.jsx)(L,{children:C(S(`%s to contact`,`%s to contact`,n.to_contact,`monoranks`),I(n.to_contact))}):void 0,link:n?.link||e?.link,linkText:x(`All targets`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[n.top.length>0?(0,F.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-2.5 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`a`,{className:`truncate text-[13px] font-semibold text-ink hover:underline`,href:e.url,...tr,children:[(0,F.jsx)(`bdi`,{children:e.title}),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`text-[12px] text-ink2`,children:[e.why,e.domain&&(0,F.jsxs)(F.Fragment,{children:[` · `,(0,F.jsx)(`bdi`,{className:`text-mute`,children:e.domain})]})]})]},e.url))}):(0,F.jsx)(rr,{state:`empty`,scope:t,empty:x(`Every target is contacted. MonoRanks looks for new ones each week.`,`monoranks`)}),(0,F.jsx)(`p`,{className:`m-0 text-[11px] text-mute`,children:x(`Sites worth asking for a link or a mention. MonoRanks never sends email; you reach out and set the status there.`,`monoranks`)})]}):(0,F.jsx)(rr,{state:e?.state??`pending`,scope:t,empty:x(`No outreach targets yet. MonoRanks looks for pages worth a link each week.`,`monoranks`)})})}function or({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ir,{title:x(`Backlinks`,`monoranks`),link:n?.link||e?.link,linkText:x(`All backlinks`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-5 gap-y-1`,children:[(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-good-ink`,children:[`+`,I(n.new)]}),(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-critical`,children:[`−`,I(n.lost)]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`websites linking to you, won and lost in 28 days`,`monoranks`)})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s website links to you`,`%s websites link to you`,n.domains,`monoranks`),I(n.domains))}),n.review>0&&(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s to review for spam`,`%s to review for spam`,n.review,`monoranks`),I(n.review))})]}),n.top.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Newest strong links`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-x-3 gap-y-1 p-0 text-[12px]`,children:n.top.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`bdi`,{children:e.domain}),e.rank!==null&&(0,F.jsxs)(`span`,{className:`text-mute`,children:[` · `,C(x(`strength %s`,`monoranks`),I(e.rank))]})]},e.domain))})]})]}):(0,F.jsx)(rr,{state:e?.state??`pending`,scope:t,empty:x(`No backlink data yet. MonoRanks refreshes it weekly.`,`monoranks`)})})}function sr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ir,{title:x(`Competitors`,`monoranks`),badge:n&&n.gaps?(0,F.jsx)(L,{children:C(S(`%s keyword gap`,`%s keyword gaps`,n.gaps,`monoranks`),I(n.gaps))}):void 0,link:n?.link||e?.link,linkText:x(`All competitors`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`span`,{className:`text-[13px] font-semibold`,children:[(0,F.jsx)(`bdi`,{children:e.domain}),!e.picked&&(0,F.jsx)(`span`,{className:`ms-1.5 text-[11px] font-normal text-mute`,children:x(`suggested`,`monoranks`)})]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:e.reason||C(S(`%1$s shared keyword, %2$s where they rank higher`,`%1$s shared keywords, %2$s where they rank higher`,e.shared,`monoranks`),I(e.shared),I(e.above_us))})]},e.domain))}),n.keywords.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`They rank for these, you do not`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1.5 p-0`,children:n.keywords.map(e=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:e.keyword}),e.volume!==null&&(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:C(x(`%s/mo`,`monoranks`),I(e.volume))})]})},e.keyword))})]})]}):(0,F.jsx)(rr,{state:e?.state??`pending`,scope:t,empty:x(`No competitors yet. Pick some in MonoRanks to see the keywords they win.`,`monoranks`)})})}function cr({d:e,scope:t}){let n=e?.state===`ok`?e:null,r=({k:e,up:t})=>(0,F.jsxs)(`li`,{className:`flex items-baseline justify-between gap-3 text-[12px]`,children:[(0,F.jsx)(`bdi`,{className:`min-w-0 truncate`,children:e.keyword}),(0,F.jsxs)(`span`,{className:`shrink-0 tabular-nums ${t?`text-good-ink`:`text-critical`}`,children:[(0,F.jsxs)(`span`,{className:`sr-only`,children:[x(t?`up`:`down`,`monoranks`),` `]}),C(x(`%1$s → %2$s`,`monoranks`),I(e.from),I(e.to))]})]});return(0,F.jsx)(ir,{title:x(`Keyword movers this week`,`monoranks`),link:n?.link||e?.link,linkText:x(`All keywords`,`monoranks`),children:n?n.up.length||n.down.length?(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Up`,`monoranks`)}),n.up.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.up.map(e=>(0,F.jsx)(r,{k:e,up:!0},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]}),(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Down`,`monoranks`)}),n.down.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.down.map(e=>(0,F.jsx)(r,{k:e,up:!1},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]})]}):(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:C(S(`Your %s tracked keyword held its place this week.`,`Your %s tracked keywords held their places this week.`,n.tracked,`monoranks`),I(n.tracked))}):(0,F.jsx)(rr,{state:e?.state??`pending`,scope:t,empty:x(`No tracked keywords yet. Track some in MonoRanks to see them move here.`,`monoranks`)})})}function lr({d:e}){if(!e||e.state!==`ok`&&e.state!==`empty`)return null;let t=e.state===`ok`?e.emails??[]:[],n=e.state===`ok`?e.reports??[]:[];return(0,F.jsx)(Xn,{className:`grid gap-3 px-5 py-3.5`,children:e.state===`empty`?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`text-[13px] text-ink2`,children:x(`No reports yet. Create a website report, a client report or a weekly email in MonoRanks to share progress.`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:x(`Reports`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}),(0,F.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[t.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.name})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,x(`Weekly email`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[12px] text-ink2`,children:[e.enabled&&e.next_label?(0,F.jsx)(`span`,{children:C(x(`Next send %s`,`monoranks`),e.next_label)}):null,(0,F.jsx)(`span`,{children:C(S(`%s recipient`,`%s recipients`,e.recipients,`monoranks`),I(e.recipients))}),(0,F.jsx)(L,{children:e.enabled?x(`On`,`monoranks`):x(`Off`,`monoranks`)})]})]},`e${t}`)),n.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.scope||e.title})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,e.client?x(`Client report`,`monoranks`):x(`Report`,`monoranks`),e.when?` · ${e.when}`:``]})]}),e.link&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(e.link,`latest-report`),...tr,children:[x(`Open report`,`monoranks`),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]},`r${t}`))]})]})})}var ur=`whitespace-nowrap border-b border-border px-[10px] py-[11px] text-start text-[12px] font-medium text-mute`,dr=`border-b border-grid px-[10px] py-3 align-middle group-last:border-b-0`;function fr(e,t){let n=e.replace(/<[^>]+>/g,``).trim();return n.length>t?n.slice(0,t-1)+`…`:n}function pr(e){try{let t=new URL(e);return t.pathname+t.search}catch{return e}}function mr({fix:e,labels:t}){let n=e.title||(e.field===`redirect`?e.from:x(`Site`,`monoranks`)),r=e.before?fr(e.before,90):null;return(0,F.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:t[e.field]??e.field}),(0,F.jsx)(`span`,{className:`min-w-0 truncate text-[12px] text-ink2`,children:e.field===`redirect`||e.field===`ai_bots`||e.field===`llms_txt`?(0,F.jsx)(`b`,{className:`font-semibold text-ink`,children:(0,F.jsx)(`bdi`,{children:n})}):(0,F.jsx)(`bdi`,{children:C(x(`on %s`,`monoranks`),n)})})]}),e.field===`alt`&&e.image&&(0,F.jsx)(`span`,{className:`truncate text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:C(x(`Image: %s`,`monoranks`),e.image)})}),e.field===`content`?(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Adds one answer-first paragraph at the top. Review the before/after in MonoRanks first.`,`monoranks`)}):(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-[12px]`,children:[(0,F.jsx)(`span`,{className:`text-mute`,children:r?(0,F.jsx)(`s`,{children:(0,F.jsx)(`bdi`,{children:r})}):x(`(empty)`,`monoranks`)}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`→`}),(0,F.jsx)(`span`,{className:`sr-only`,children:x(`changes to`,`monoranks`)}),(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:fr(e.after,120)})})]}),e.note&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:e.note})})]})}function hr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null);(0,_.useEffect)(()=>{w.overview().then(r).catch(e=>a(se(e,x(`Could not load the overview.`,`monoranks`))))},[]);async function f(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let p=n?.overview??null,m=typeof p?.to_review?.needs_value==`number`?p.to_review.needs_value:null,h=p?.to_review&&(p.to_review.total>0||(m??0)>0)&&p.to_review.review_url?p.to_review:null,g=n?p?(0,F.jsxs)(F.Fragment,{children:[x(`Weekly SEO, AEO and GEO audit of`,`monoranks`),` `,(0,F.jsx)(`code`,{children:n.host}),n.audited&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`last audit %s`,`monoranks`),n.audited)]}),p.pages_total>0&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`%1$s of %2$s published pages scored`,`monoranks`),I(p.pages_scored),I(p.pages_total))]})]}):void 0:`\xA0`,v=n?.connected?(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>f(`sync`,()=>w.sync(`overview`)),children:x(`Sync content now`,`monoranks`)}):null;return(0,F.jsxs)(fn,{section:`overview`,go:e,title:x(`Overview`,`monoranks`),description:g,actions:v,children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(gr,{}),n&&(!n.connected||n.revoked)&&(0,F.jsx)(_r,{revoked:n.revoked,go:e}),n&&n.connected&&!n.revoked&&!p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yr,{data:n}),(0,F.jsx)(nr,{})]}),n&&p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Health score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.health})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.health,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Technical, on-page, links, speed`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(S(`Site average, %s page`,`Site average, %s pages`,p.pages_scored,`monoranks`),I(p.pages_scored))})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`AEO score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.aeo})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.aeo,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Answer-first, structure, entities`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`How well AI answers can use your pages`,`monoranks`)})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Search clicks, 28 days`,`monoranks`)}),p.traffic&&(0,F.jsx)(bn,{n:p.traffic.delta_pct,unit:`%`,period:`previous28`})]}),p.traffic?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:I(p.traffic.clicks_28d)}),(0,F.jsx)(xn,{series:p.traffic.series}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`From Google Search Console, through MonoRanks`,`monoranks`)})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold text-mute`,children:`—`}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`Connect Google Search Console in MonoRanks to see clicks here.`,`monoranks`)})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Fixes`,`monoranks`)}),p.fixes.ready>0&&(0,F.jsx)(L,{children:C(x(`%s ready`,`monoranks`),I(p.fixes.ready))})]}),(0,F.jsxs)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:[I(p.fixes.applied_30d),` `,(0,F.jsx)(`span`,{className:`text-[12px] font-normal text-ink2`,children:x(`applied in 30 days`,`monoranks`)})]}),h&&h.total>0&&(0,F.jsxs)(`a`,{className:`text-[12px] font-medium text-brand-ink hover:underline`,href:ln(h.review_url,`fixes-card`),target:`_blank`,rel:`noopener`,children:[C(x(`%s waiting for your approval in MonoRanks`,`monoranks`),I(h.total)),` →`]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.bots_rules?`good`:`muted`}),p.ai.bots_rules?x(`AI crawler rules on`,`monoranks`):x(`No AI crawler rules`,`monoranks`)]}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.llms_txt?`good`:`muted`}),p.ai.llms_txt?x(`llms.txt published`,`monoranks`):x(`No llms.txt`,`monoranks`)]})]})]})]}),!n.revoked&&(0,F.jsx)(nr,{}),(0,F.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,3fr)_minmax(0,2fr)] items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Pages needing attention`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.app_url,`all-pages`),target:`_blank`,rel:`noopener`,children:x(`All pages in MonoRanks`,`monoranks`)})})]}),p.attention.length?(0,F.jsx)(`div`,{className:`overflow-x-auto rounded-b-xl pt-2`,children:(0,F.jsxs)(`table`,{className:`w-full border-collapse`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:ur,children:x(`Page`,`monoranks`)}),(0,F.jsx)(`th`,{className:ur,children:x(`Health`,`monoranks`)}),(0,F.jsx)(`th`,{className:ur,children:x(`AEO`,`monoranks`)}),(0,F.jsx)(`th`,{className:ur,children:x(`Biggest issue`,`monoranks`)}),(0,F.jsx)(`th`,{className:ur})]})}),(0,F.jsx)(`tbody`,{children:p.attention.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:dr,children:(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:e.title||e.url}),e.url&&(0,F.jsx)(`code`,{className:`max-w-[180px] text-[11px]`,children:pr(e.url)})]})}),(0,F.jsx)(`td`,{className:dr,children:(0,F.jsx)(yn,{score:e.health})}),(0,F.jsx)(`td`,{className:dr,children:(0,F.jsx)(yn,{score:e.aeo})}),(0,F.jsx)(`td`,{className:`${dr} text-[12px]`,children:e.issue}),(0,F.jsx)(`td`,{className:`${dr} text-end`,children:e.page_url&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`fix-page`),target:`_blank`,rel:`noopener`,children:x(`Fix in MonoRanks`,`monoranks`)})})})]},e.post_id+e.url))})]})}):(0,F.jsx)(gn,{title:x(`Nothing needs attention`,`monoranks`),text:x(`Every scored page is above 60. The next audit may change that.`,`monoranks`)})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[x(`Ready to apply`,`monoranks`),p.ready.length>0&&(0,F.jsx)(L,{children:I(p.ready.length)}),p.ready.length>0&&(0,F.jsx)(er,{text:x(`Approved in MonoRanks. Each write is logged under Settings and can be undone for 30 days.`,`monoranks`)})]}),p.ready.length>1&&(0,F.jsx)(R,{variant:`primary`,size:`sm`,disabled:c!==null,"aria-busy":c===`all`,onClick:()=>f(`all`,()=>w.apply(`all`)),children:x(`Apply all`,`monoranks`)})]}),(0,F.jsxs)($n,{className:`flex flex-col pt-1.5`,children:[p.ready.length===0&&h&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 py-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[m===null?(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:C(x(`%s fixes are ready for your approval`,`monoranks`),I(h.total))}):(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:[h.total>0&&C(S(`%s ready to apply`,`%s ready to apply`,h.total,`monoranks`),I(h.total)),m>0&&C(S(`%s needs a value in MonoRanks`,`%s need a value in MonoRanks`,m,`monoranks`),I(m))].filter(Boolean).join(` · `)}),(0,F.jsx)(er,{text:x(m!==null&&m>0?`Type a value or draft one with AI in MonoRanks, approve it, and it is written here, with undo.`:`Approve them in MonoRanks and they are written here, with undo.`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Object.entries(h.by_field).sort((e,t)=>t[1]-e[1]).map(([e,t])=>(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:n.labels[e]??e}),(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:I(t)})]},e))}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(h.review_url,`review-fixes`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})})]}),p.ready.length===0&&!h&&(0,F.jsx)(gn,{title:x(`No fixes waiting`,`monoranks`),text:x(`Fixes you approve in MonoRanks appear here, ready to write into WordPress.`,`monoranks`)}),p.ready.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(mr,{fix:e,labels:n.labels}),e.field===`content`&&e.page_url?(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review`,`monoranks`)})}):(0,F.jsx)(R,{size:`sm`,disabled:c!==null,"aria-busy":c===e.id,onClick:()=>f(e.id,()=>w.apply(e.id)),children:x(`Apply`,`monoranks`)})]},e.id))]})]}),(p.needs_review??[]).length>0&&(0,F.jsxs)(Xn,{children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{children:[x(`Needs review in MonoRanks`,`monoranks`),(0,F.jsx)(L,{children:I(p.needs_review.length)}),(0,F.jsx)(er,{text:x(`These changed in WordPress after they were reviewed, so they are not applied from here. Review them again in MonoRanks.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col pt-1.5`,children:p.needs_review.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(mr,{fix:e,labels:n.labels}),(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url||p.site_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})]},e.id))})]})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:t.urls.settings,onClick:t=>{t.preventDefault(),e(`settings`)},children:x(`All changes`,`monoranks`)})})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),f(`undo`,()=>w.undo(e,`overview`))}})})]})]})]})}function gr(){return(0,F.jsx)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[150px] animate-pulse bg-surface2`},e))})}function _r({revoked:e,go:t}){let n=y();return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(e?`Connect MonoRanks again`:`Connect MonoRanks`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:e?`critical`:`muted`}),x(e?`Key revoked`:`Not connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsxs)(vr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.urls.connect,`connect-step`),target:`_blank`,rel:`noopener`,children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(vr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},children:x(`Open settings`,`monoranks`)})})})]}),(0,F.jsx)(vr,{n:3,later:!0,children:(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`See scores here and in your Posts list`,`monoranks`)})})]})]})}function vr({n:e,later:t,children:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`span`,{className:`flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${t?`bg-surface3 text-ink2`:`bg-ink text-page`}`,children:e}),(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:n})]})}function yr({data:e}){let t=e.status,[n,r]=t===`unsupported`?[x(`Not shared yet`,`monoranks`),x(`This MonoRanks does not share audit results with the plugin yet. Scores stay in MonoRanks for now; the plugin asks again tomorrow.`,`monoranks`)]:t===`error`?[x(`MonoRanks not reached`,`monoranks`),x(`MonoRanks could not be reached for the audit results. The plugin tries again within the hour, or when you reload this screen.`,`monoranks`)]:[x(`Not scored yet`,`monoranks`),x(`MonoRanks has not scored this site yet. Scores appear here and in the Posts list after the first weekly audit.`,`monoranks`)];return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Waiting for the first audit`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`good`}),x(`Connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsx)(hn,{rows:[[x(`Content`,`monoranks`),e.last_sent?C(x(`%1$s published items sent %2$s`,`monoranks`),I(e.items),e.last_sent):x(`Not sent yet. Use "Sync content now" above.`,`monoranks`)],[x(`Audit results`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n,(0,F.jsx)(er,{text:e.fetched?(0,F.jsxs)(F.Fragment,{children:[r,` · `,C(x(`checked %s`,`monoranks`),e.fetched)]}):r})]})]]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.app_url,`open-audit`),target:`_blank`,rel:`noopener`,children:x(`Open the audit in MonoRanks`,`monoranks`)})})})]})]})}function br({className:e,type:t,...n}){return(0,F.jsx)(`input`,{type:t,"data-slot":`input`,className:P(`flex h-10 w-full max-w-[440px] rounded-lg border border-input bg-surface px-[14px] text-[13px] text-ink outline-none placeholder:text-mute focus:border-brand disabled:opacity-55`,e),...n})}function xr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1);(0,_.useEffect)(()=>{w.settings().then(e=>{r(e),p(e.revoked)}).catch(e=>a(se(e,x(`Could not load the settings.`,`monoranks`))))},[]);let[g,v]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(g===null||n?.connected)return;let e=!1,t=()=>{if(!(e||document.visibilityState!==`visible`)){if(Date.now()-g>6e5){v(null);return}w.settings().then(t=>{!e&&t.connected&&(r(t),p(!1),v(null))}).catch(()=>{})}},i=window.setInterval(t,4e3);return document.addEventListener(`visibilitychange`,t),()=>{e=!0,window.clearInterval(i),document.removeEventListener(`visibilitychange`,t)}},[g,n?.connected]);async function b(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let ee=!!n?.connected,te=!!n?.revoked;return(0,F.jsxs)(fn,{section:`settings`,go:e,title:x(`Settings`,`monoranks`),children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(Xn,{className:`h-[260px] animate-pulse bg-surface2`}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-[9px] bg-surface2 [&_svg]:h-5 [&_svg]:w-5`,"aria-hidden":`true`,children:(0,F.jsx)(un,{which:`mark`})}),(0,F.jsx)(Qn,{children:x(`Connection`,`monoranks`)})]}),ee?(0,F.jsx)(er,{align:`end`,text:x(te?`MonoRanks no longer accepts this key. Connect again from MonoRanks or paste a new key below.`:`Sending published content to MonoRanks. Nothing else leaves this site.`,`monoranks`),children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:te?`critical`:`good`}),x(te?`Key revoked`:`Connected`,`monoranks`)]})}):(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`muted`}),x(`Not connected`,`monoranks`)]})]}),(0,F.jsx)($n,{className:`flex flex-col gap-4`,children:ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hn,{rows:[[x(`Connector key`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`code`,{children:n.key_hint}),(0,F.jsx)(er,{text:n.key_via})]})],[x(`Last sync`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n.last_sent_date?(0,F.jsx)(er,{text:n.last_sent_date,children:(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short})}):(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short}),n.sending&&(0,F.jsx)(L,{children:C(x(`sending, batch %1$s of %2$s`,`monoranks`),I(n.sending.page),I(Math.max(1,n.sending.pages)))}),n.items>0&&(0,F.jsx)(L,{children:C(S(`%s published item`,`%s published items`,n.items,`monoranks`),I(n.items))}),n.last_error&&(0,F.jsx)(L,{variant:`warn`,children:n.last_error})]})],...n.next_audit?[[x(`Next audit`,`monoranks`),n.next_audit]]:[],[x(`Fixes written with`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`App password`,`monoranks`),(0,F.jsx)(er,{text:x(`Fixes are written with the "MonoRanks" Application Password. Revoke it in your profile to stop writes.`,`monoranks`)}),(0,F.jsx)(`a`,{href:n.profile_url,children:x(`Revoke`,`monoranks`)})]})],[x(`Works with`,`monoranks`),n.seo_plugin&&!n.seo_supported?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{variant:`warn`,children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`MonoRanks cannot write titles, descriptions, canonicals or noindex into %s yet, so those fixes are refused`,`monoranks`),n.seo_plugin)})]}):n.seo_plugin?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`titles and descriptions go into the fields %s reads`,`monoranks`),n.seo_plugin)})]}):(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:x(`No SEO plugin`,`monoranks`)}),(0,F.jsx)(er,{text:x(`MonoRanks prints the approved title, description, canonical and noindex tags itself`,`monoranks`)})]})]]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>b(`sync`,()=>w.sync(`settings`)),children:x(`Send content now`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Disconnect stops sending. Fixes already applied stay.`,`monoranks`),children:(0,F.jsx)(R,{disabled:c!==null,"aria-busy":c===`disconnect`,onClick:()=>b(`disconnect`,()=>w.disconnect()),children:x(`Disconnect`,`monoranks`)})})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(vr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.connect_url,`connect-step`,`settings`),target:`_blank`,rel:`noopener`,onClick:()=>v(Date.now()),children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(vr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(Sr,{data:n,busy:c,onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})]})]})})]}),ee&&(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{open:f,onToggle:e=>p(e.currentTarget.open),className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`Use a different key`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(Sr,{data:n,busy:c,hint:x(`In MonoRanks: Settings → API and MCP → New credential, content:write, this website.`,`monoranks`),onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})})]})}),(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`What is sent`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(hn,{rows:[[x(`Sent`,`monoranks`),x(`Published titles, a 40-word excerpt, dates, authors, categories, tags, SEO fields, image alt text and plugin status.`,`monoranks`)],[x(`Read back`,`monoranks`),x(`This website's audit results: scores, issues and the fixes you approved, shown here and in the Posts list.`,`monoranks`)],[x(`Never sent`,`monoranks`),x(`Drafts, private posts, comments, emails, passwords, plugin or theme settings.`,`monoranks`)],[x(`Can change`,`monoranks`),x(`SEO title, meta description, canonical, noindex, image alt text, redirects, one opening paragraph, AI crawler rules, llms.txt. Only after you approve each one.`,`monoranks`)]]})})]})}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Last 50 · undo for 30 days`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),b(`undo`,()=>w.undo(e,`settings`))}})})]}),!ee&&n.has_data&&(0,F.jsxs)(Xn,{className:`border-critical/40`,children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{className:`text-critical`,children:[x(`Danger zone`,`monoranks`),(0,F.jsx)(er,{text:x(`Erases the connection, scores, redirects, AI files and change log. Written fixes stay.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col gap-3`,children:m?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-critical`,children:x(`This cannot be undone. Delete everything?`,`monoranks`)}),(0,F.jsx)(R,{variant:`dangerSolid`,disabled:c!==null,"aria-busy":c===`delete`,onClick:()=>{h(!1),b(`delete`,()=>w.deleteEverything())},children:x(`Yes, delete all data`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,disabled:c!==null,onClick:()=>h(!1),children:x(`Cancel`,`monoranks`)})]}):(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`danger`,onClick:()=>h(!0),children:x(`Delete all MonoRanks data`,`monoranks`)})})})]})]})]})}function Sr({data:e,busy:t,hint:n,onSubmit:r}){let[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(e.api_base);function c(t){t.preventDefault(),r(i,e.show_address?o:void 0)}return(0,F.jsxs)(`form`,{onSubmit:c,className:`flex flex-col gap-3 pt-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-key`,className:`text-[12px] font-medium text-ink2`,children:x(`Connector key`,`monoranks`)}),n&&(0,F.jsx)(er,{align:`start`,text:n})]}),(0,F.jsx)(br,{id:`monoranks-key`,name:`key`,type:`password`,autoComplete:`off`,placeholder:`mr_ws_… or mr_site_…`,required:!0,value:i,onChange:e=>a(e.target.value)})]}),e.show_address&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-address`,className:`text-[12px] font-medium text-ink2`,children:x(`MonoRanks address (development sites only)`,`monoranks`)}),(0,F.jsx)(br,{id:`monoranks-address`,name:`api_base`,type:`url`,value:o,onChange:e=>s(e.target.value)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,type:`submit`,disabled:t!==null,"aria-busy":t===`connect`,children:x(`Connect`,`monoranks`)})})]})}function Cr(){let[e,t]=te();return v(),e===`settings`?(0,F.jsx)(xr,{go:t}):(0,F.jsx)(hr,{go:t})}var wr=document.getElementById(`monoranks-admin`);wr&&(0,g.createRoot)(wr).render((0,F.jsx)(_.StrictMode,{children:(0,F.jsx)(Cr,{})})); \ No newline at end of file +`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&mn(e,``+r);else return;break;case`className`:en(e,`class`,r);break;case`tabIndex`:en(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:en(e,n,r);break;case`style`:I(e,r,o);return;case`data`:if(t!==`object`){en(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=xn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=bn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),$t(e,`popover`,r);break;case`xlinkActuate`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:$t(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ht(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Ut(o)}),Ht(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=C({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ht(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=M(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ht(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Me.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=M(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=M(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=M(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+sn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Ut.bind(null,t),np(t,`link`,n),Ht(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+sn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Ht(r),r;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ht(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ht(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ht(a),a):(r=n,(a=vm.get(o))&&(r=C({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ht(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ht(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}))(),_=c(u(),1);function v(){(0,_.useEffect)(()=>{let e=document.getElementById(`adminmenuwrap`),t=document.getElementById(`wpbody-content`);if(!e||!t)return;let n=()=>t.style.setProperty(`--mr-fill`,Math.ceil(e.getBoundingClientRect().height)+`px`);n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t.style.removeProperty(`--mr-fill`)}},[])}function y(){let e=window.monoranksAdmin;if(!e)throw Error(`monoranksAdmin settings missing`);return e}var b={overview:`monoranks`,settings:`monoranks-settings`};function ee(){return new URLSearchParams(window.location.search).get(`page`)===b.settings?`settings`:`overview`}function te(){let[e,t]=(0,_.useState)(ee),n=(0,_.useRef)(()=>void 0);(0,_.useEffect)(()=>{let e=()=>t(ee());window.addEventListener(`popstate`,e);let r=e=>{let t=e.target.closest(`#toplevel_page_monoranks a[href*="page=monoranks"]`);if(!t||e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0)return;let r=new URL(t.href,window.location.href).searchParams.get(`page`),i=r===b.settings?`settings`:r===b.overview?`overview`:null;i&&(e.preventDefault(),n.current(i))};return document.addEventListener(`click`,r),()=>{window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,r)}},[]),(0,_.useEffect)(()=>{ne(e),document.title=document.title.replace(/^[^‹]*‹/,(y().titles[e]||`MonoRanks`)+` ‹`)},[e]);let r=n=>{if(n===e)return;let r=n===`settings`?y().urls.settings:y().urls.overview;window.history.pushState({monoranks:n},``,r),t(n),window.scrollTo({top:0})};return n.current=r,[e,r]}function ne(e){let t=document.getElementById(`toplevel_page_monoranks`);t&&t.querySelectorAll(`.wp-submenu a`).forEach(t=>{let n=new URL(t.href,window.location.href).searchParams.get(`page`)===b[e];t.classList.toggle(`current`,n),t.parentElement?.classList.toggle(`current`,n),n?t.setAttribute(`aria-current`,`page`):t.removeAttribute(`aria-current`)})}var{__:x,_n:S,_x:re,sprintf:C,isRTL:ie}=window.wp.i18n,ae=window.wp.apiFetch,oe=`/monoranks/v1/admin`,w={overview:()=>ae({path:`${oe}/overview`}),settings:()=>ae({path:`${oe}/settings`}),grow:()=>ae({path:`${oe}/grow`}),apply:e=>ae({path:`${oe}/apply`,method:`POST`,data:{fix:e}}),undo:(e,t)=>ae({path:`${oe}/undo`,method:`POST`,data:{entry:e.index,at:e.at,screen:t}}),sync:e=>ae({path:`${oe}/sync`,method:`POST`,data:{screen:e}}),connect:(e,t)=>ae({path:`${oe}/connect`,method:`POST`,data:{key:e,api_base:t}}),disconnect:()=>ae({path:`${oe}/disconnect`,method:`POST`}),deleteEverything:()=>ae({path:`${oe}/delete`,method:`POST`})};function se(e,t){let n=e?.message;return typeof n==`string`&&n?n:t}var ce=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function le(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ce(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ue=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},T=e=>{let t=ue(e);return t.charAt(0).toUpperCase()+t.slice(1)},de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pe(e){return e!=null}function me(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??fe.width,a=e.size??e.height??fe.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?de(...c):de(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??fe[`stroke-width`])*Number(e.size??e.width??fe.width)/Number(t.size??t.width??fe.width):t.strokeWidth??fe[`stroke-width`];return[`svg`,{...Object.entries(fe).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pe(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pe(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pe(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function he(e,t={}){return me(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ge=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_e=(0,_.createContext)({}),ve=()=>(0,_.useContext)(_e),ye=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=ve()??{},b=!!c||ge(d),[ee,te,ne=[]]=he(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:de(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(ee,{ref:f,...te},[...ne.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function be(e,t=[],n=[]){let r=typeof e==`string`?le(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ye,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=T(r.name)),i}var xe={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};xe.node;var Se=be(xe),Ce={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Ce.node;var we=be(Ce),E={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};E.node;var D=be(E),Te={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Te.node;var Ee=be(Te),De={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};De.node;var Oe=be(De),ke={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ke.node;var O=be(ke),Ae={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ae.node;var je=be(Ae),Me={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Me.node;var Ne=be(Me);function Pe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Re=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ze=`-`,Be=[],Ve=`arbitrary..`,He=e=>{let t=Ge(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return We(e);let n=e.split(ze);return Ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ie(i,t):t:i||Be}return n[e]||Be}}},Ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ze):e.slice(t).join(ze),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ve+r:void 0})(),Ge=e=>{let{theme:t,classGroups:n}=e;return Ke(n,t)},Ke=(e,t)=>{let n=Re();for(let r in e){let i=e[r];qe(i,n,r,t)}return n},qe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ye(e,t,n);return}if(typeof e==`function`){Xe(e,t,n,r);return}Ze(e,t,n,r)},Ye=(e,t,n)=>{let r=e===``?t:Qe(t,e);r.classGroupId=n},Xe=(e,t,n,r)=>{if($e(e)){qe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Le(n,e))},Ze=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(ze),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,et=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},tt=`!`,nt=`:`,rt=[],it=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),at=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return it(t,l,c,u)};if(t){let e=t+nt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):it(rt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ot=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},st=e=>({cache:et(e.cacheSize),parseClassName:at(e),sortModifiers:ot(e),postfixLookupClassGroupIds:ct(e),...He(e)}),ct=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(lt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+tt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},dt=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=st(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ut(e,n);return i(e,a),a};return a=o,(...e)=>a(dt(...e))},mt=[],k=e=>{let t=t=>t[e]||mt;return t.isThemeGetter=!0,t.themeKey=e,t},ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_t=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,St=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>_t.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Et=e=>vt.test(e),Dt=()=>!0,Ot=e=>yt.test(e)&&!bt.test(e),kt=()=>!1,At=e=>xt.test(e),jt=e=>St.test(e),Mt=e=>!j(e)&&!M(e),Nt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Pt=e=>Yt(e,Qt,kt),j=e=>ht.test(e),Ft=e=>Yt(e,$t,Ot),It=e=>Yt(e,en,A),Lt=e=>Yt(e,nn,Dt),Rt=e=>Yt(e,tn,kt),zt=e=>Yt(e,Zt,kt),Bt=e=>Yt(e,N,jt),Vt=e=>Yt(e,rn,At),M=e=>gt.test(e),Ht=e=>Xt(e,$t),Ut=e=>Xt(e,tn),Wt=e=>Xt(e,Zt),Gt=e=>Xt(e,Qt),Kt=e=>Xt(e,N),qt=e=>Xt(e,rn,!0),Jt=e=>Xt(e,nn,!0),Yt=(e,t,n)=>{let r=ht.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Xt=(e,t,n=!1)=>{let r=gt.exec(e);return r?r[1]?t(r[1]):n:!1},Zt=e=>e===`position`||e===`percentage`,N=e=>e===`image`||e===`url`,Qt=e=>e===`length`||e===`size`||e===`bg-size`,$t=e=>e===`length`,en=e=>e===`number`,tn=e=>e===`family-name`,nn=e=>e===`number`||e===`weight`,rn=e=>e===`shadow`,an=pt(()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[M,j,c],S=()=>[Ct,`full`,`auto`,...x()],re=()=>[wt,`none`,`subgrid`,M,j],C=()=>[`auto`,{span:[`full`,wt,M,j]},wt,M,j],ie=()=>[wt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],w=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...x()],ce=()=>[Ct,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],le=()=>[s,Ct,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],ue=()=>[Ct,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],T=()=>[e,M,j],de=()=>[...b(),Wt,zt,{position:[M,j]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Gt,Pt,{size:[M,j]}],me=()=>[Tt,Ht,Ft],he=()=>[``,`none`,`full`,l,M,j],ge=()=>[``,A,Ht,Ft],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[A,Tt,Wt,zt],be=()=>[``,`none`,m,M,j],xe=()=>[`none`,A,M,j],Se=()=>[`none`,A,M,j],Ce=()=>[A,M,j],we=()=>[Ct,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Et],breakpoint:[Et],color:[Dt],container:[Et],"drop-shadow":[Et],ease:[`in`,`out`,`in-out`],font:[Mt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Et],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Et],shadow:[Et],spacing:[`px`,A],text:[Et],"text-shadow":[Et],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ct,j,M,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,M,j]}],"container-named":[Nt],columns:[{columns:[A,`auto`,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[wt,`auto`,M,j]}],basis:[{basis:[Ct,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,Ct,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[wt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...w(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...w()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...w(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...w(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...w(),`baseline`]}],"place-self":[{"place-self":[`auto`,...w()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,Ht,Ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Jt,Lt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tt,j]}],"font-family":[{font:[Ut,Rt,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,It]}],leading:[{leading:[`none`,a,...x()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,Ft]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"tab-size":[{tab:[wt,M,j]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wt,M,j],radial:[``,M,j],conic:[``,wt,M,j]},Kt,Bt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,Ht,Ft]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,qt,Vt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,qt,Vt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,Ft]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,qt,Vt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:be()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,qt,Vt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[wt,M,j]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,Ht,Ft,It]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function P(...e){return an(Fe(e))}var on=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=on()}))(),sn=`.notice, .update-nag, .updated, .error, #message`;function cn({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let e=document.getElementById(`wpbody-content`),n=t.current;if(!e||!n)return;let r=()=>{e.querySelectorAll(`:scope > *`).forEach(e=>{e.id!==`monoranks-admin`&&e.matches(sn)&&n.appendChild(e)})};r();let i=new MutationObserver(r);return i.observe(e,{childList:!0}),()=>i.disconnect()},[]),(0,F.jsx)(`div`,{ref:t,className:P(`empty:hidden`,e)})}function ln(e,t,n=`plugin-admin`){try{let r=new URL(e);return r.host===new URL(y().apiBase).host?e:(r.searchParams.set(`utm_source`,`wordpress-plugin`),r.searchParams.set(`utm_medium`,`admin`),r.searchParams.set(`utm_campaign`,n),r.searchParams.set(`utm_content`,t),r.toString())}catch{return e}}function un({which:e,className:t}){return(0,F.jsx)(`span`,{className:P(`inline-flex [&>svg]:block`,t),dangerouslySetInnerHTML:{__html:y().logos[e]}})}var dn=`mx-auto w-full max-w-[1260px] px-10 max-[960px]:px-6 max-[782px]:px-4`;function fn({section:e,go:t,title:n,description:r,actions:i,children:a}){let o=y(),s=[{id:`overview`,label:x(`Overview`,`monoranks`),href:o.urls.overview},{id:`settings`,label:x(`Settings`,`monoranks`),href:o.urls.settings}];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`header`,{className:`bg-band text-band-ink`,children:(0,F.jsxs)(`div`,{className:P(dn,`flex min-h-16 items-center gap-7 max-[782px]:gap-3`),children:[(0,F.jsx)(`a`,{href:o.urls.overview,onClick:e=>{e.preventDefault(),t(`overview`)},className:`inline-flex items-center text-band-ink hover:text-white`,children:(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-7 [&>svg]:w-[138px]`})}),(0,F.jsx)(`nav`,{className:`flex self-stretch gap-[22px] max-[782px]:gap-3`,"aria-label":x(`MonoRanks sections`,`monoranks`),children:s.map(n=>(0,F.jsx)(`a`,{href:n.href,onClick:e=>{e.preventDefault(),t(n.id)},"aria-current":e===n.id?`page`:void 0,className:P(`inline-flex items-center border-b-2 pt-[2px] text-[13px] font-medium`,e===n.id?`border-brand text-band-ink`:`border-transparent text-band-muted hover:text-white`),children:n.label},n.id))}),(0,F.jsxs)(`div`,{className:`ms-auto flex items-center gap-1.5`,children:[(0,F.jsx)(`a`,{href:ln(o.urls.docs,`header-help`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-[12.5px] font-medium text-band-muted hover:bg-band-edge hover:text-white`,children:x(`Help`,`monoranks`)}),(0,F.jsxs)(`a`,{href:ln(o.urls.app,`header-open`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md border border-band-edge px-3 text-[12.5px] font-medium text-band-ink hover:bg-band-edge hover:text-white max-[782px]:hidden`,children:[x(`Open MonoRanks`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]})]})}),(0,F.jsxs)(`div`,{className:P(dn,`flex flex-wrap items-start justify-between gap-x-6 gap-y-3 pb-1.5 pt-[30px]`),children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_420px] flex-col gap-1.5`,children:[(0,F.jsx)(`h1`,{className:`text-[26px] font-semibold tracking-[-0.02em] leading-tight text-ink`,children:n}),r&&(0,F.jsx)(`p`,{className:`max-w-[72ch] text-ink2`,children:r})]}),i&&(0,F.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 pt-1`,children:i})]}),(0,F.jsx)(`div`,{className:`wp-header-end`}),(0,F.jsx)(cn,{className:P(dn,`flex flex-col gap-2.5 pt-3`)}),(0,F.jsx)(`main`,{className:P(dn,`flex flex-[1_0_auto] flex-col gap-5 pb-10 pt-[22px]`),children:a}),(0,F.jsx)(pn,{section:e,go:t})]})}function pn({section:e,go:t}){let n=y();return(0,F.jsxs)(`footer`,{className:`mt-auto bg-band text-band-ink`,children:[(0,F.jsxs)(`div`,{className:P(dn,`grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-8 py-7 max-[960px]:grid-cols-[minmax(0,1fr)_auto] max-[960px]:gap-5 max-[782px]:grid-cols-1`),children:[(0,F.jsxs)(`div`,{className:`inline-flex items-center gap-2.5`,children:[(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-[26px] [&>svg]:w-[128px]`}),(0,F.jsxs)(`span`,{className:`rounded-md border border-band-edge px-[7px] py-[2px] text-[11px] font-medium text-band-muted`,children:[`v`,n.version]})]}),(0,F.jsxs)(`div`,{className:`min-w-0 border-s border-band-edge ps-7 max-[960px]:col-start-1 max-[960px]:border-0 max-[960px]:ps-0`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] uppercase tracking-[.08em] text-band-muted`,children:x(`Your data`,`monoranks`)}),(0,F.jsxs)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},className:`inline-flex items-center gap-[7px] text-[13px] text-band-ink hover:text-white hover:underline hover:underline-offset-4`,children:[x(`What is sent and what can change`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]}),(0,F.jsxs)(`a`,{href:ln(n.urls.docs,`footer-help`,e),target:`_blank`,rel:`noopener`,className:`block rounded-[9px] border border-band-edge px-[18px] py-3 text-start text-band-ink hover:bg-band-edge hover:text-white max-[960px]:col-start-2 max-[960px]:row-span-2 max-[960px]:row-start-1 max-[782px]:col-auto max-[782px]:row-auto`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] text-band-muted`,children:x(`Need a hand?`,`monoranks`)}),(0,F.jsxs)(`strong`,{className:`flex items-center justify-between gap-5 text-[13px] font-medium`,children:[x(`Help and resources`,`monoranks`),(0,F.jsx)(Se,{size:14,className:`mr-flip`})]})]})]}),(0,F.jsx)(`div`,{className:P(dn),children:(0,F.jsxs)(`div`,{className:`flex items-center justify-center gap-3 border-t border-band-edge pb-[18px] pt-4 text-[11px] text-band-muted`,children:[(0,F.jsx)(`span`,{children:x(`A product by`,`monoranks`)}),(0,F.jsx)(`a`,{href:ln(`https://veronalabs.com/`,`footer-publisher`,e),target:`_blank`,rel:`noopener`,"aria-label":`VeronaLabs`,className:`inline-flex min-h-7 items-center text-band-muted opacity-75 hover:opacity-100 hover:text-band-muted`,children:(0,F.jsx)(un,{which:`veronalabs`,className:`[&>svg]:h-auto [&>svg]:w-28`})})]})})]})}function mn({notice:e}){if(!e)return null;let t={success:`text-good-ink`,error:`text-critical`,warning:`text-warn`}[e.type],n={success:Oe,error:Ee,warning:je}[e.type];return(0,F.jsxs)(`div`,{className:P(`notice`,`notice-${e.type}`,`flex items-start gap-2.5`),role:`status`,children:[(0,F.jsx)(n,{size:16,className:P(`mt-[1px] shrink-0`,t),"aria-hidden":`true`}),(0,F.jsx)(`p`,{className:`text-ink`,children:e.text})]})}function hn({rows:e}){return(0,F.jsx)(`div`,{className:`grid grid-cols-[150px_minmax(0,1fr)] gap-x-3 gap-y-2 text-[12px] max-[960px]:grid-cols-1`,children:e.map(([e,t],n)=>(0,F.jsxs)(`div`,{className:`contents`,children:[(0,F.jsx)(`div`,{className:`text-mute max-[960px]:mt-1`,children:e}),(0,F.jsx)(`div`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]},n))})}function gn({title:e,text:t}){return(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-6 py-9 text-center text-ink2`,children:[(0,F.jsx)(`span`,{className:`text-[13px] font-semibold text-ink`,children:e}),(0,F.jsx)(`span`,{className:`text-[12px]`,children:t})]})}function I(e){if(e==null)return`—`;try{return new Intl.NumberFormat(y().locale,{maximumFractionDigits:0}).format(e)}catch{return String(e)}}function _n(e,t=``){return(e>0?`+`:e<0?`−`:``)+I(Math.abs(e))+t}function vn(e){return e==null?`none`:e>=80?`good`:e>=60?`warn`:`critical`}function yn({score:e,size:t=`sm`,label:n}){let r=t===`lg`?64:30,i=t===`lg`?5:3,a=(r-i)/2,o=2*Math.PI*a,s=r/2,c=e===null?x(`Not scored yet`,`monoranks`):C(x(`%s of 100`,`monoranks`),I(e));return(0,F.jsxs)(`span`,{className:P(`mr-score`,`mr-${t}`,`mr-${vn(e)}`),title:(n?`${n}: `:``)+c,children:[(0,F.jsxs)(`span`,{className:`mr-ring`,children:[(0,F.jsx)(`svg`,{width:r,height:r,viewBox:`0 0 ${r} ${r}`,"aria-hidden":`true`,children:e===null?(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeDasharray:`3 4`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`var(--grayTrack)`,strokeWidth:i}),(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeDasharray:`${o*e/100} ${o}`,transform:`rotate(-90 ${s} ${s})`})]})}),(0,F.jsx)(`span`,{children:e===null?`—`:I(e)})]}),n&&(0,F.jsx)(`span`,{className:`mr-lbl`,children:n})]})}function bn({n:e,unit:t=``,period:n=`week`}){if(e==null)return null;let r=e>0?`text-good-ink`:e<0?`text-critical`:`text-mute`,i=`⁨`+_n(e,t)+`⁩`,a=C(x(n===`previous28`?`%s vs previous 28 days`:`%s this week`,`monoranks`),i);return(0,F.jsx)(`span`,{className:P(`text-[12px] font-medium`,r),children:a})}function xn({series:e}){if(e.length<2)return null;let t=Math.max(1,...e),n=e.map((n,r)=>[Math.round(200*r/(e.length-1)*10)/10,Math.round((34-30*n/t)*10)/10]),r=`M`+n.map(e=>e.join(` `)).join(` L`),i=n[n.length-1];return(0,F.jsxs)(`svg`,{className:`block h-[38px] w-full`,viewBox:`0 0 200 38`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`${r} L200 38 L0 38 Z`,fill:`var(--accentSoft)`}),(0,F.jsx)(`path`,{d:r,fill:`none`,stroke:`var(--accent)`,strokeWidth:`1.5`}),(0,F.jsx)(`circle`,{cx:i[0],cy:i[1],r:`2.5`,fill:`var(--accent)`})]})}var Sn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Cn=Fe,wn=(e,t)=>n=>{if(t?.variants==null)return Cn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Sn(t)||Sn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Cn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Tn=wn(`inline-flex shrink-0 items-center whitespace-nowrap font-medium`,{variants:{variant:{badge:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-ink2`,warn:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-warn`,pill:`h-[22px] gap-[6px] rounded-full bg-surface2 ps-[7px] pe-2 text-[12px] text-ink`}},defaultVariants:{variant:`badge`}});function L({className:e,variant:t,...n}){return(0,F.jsx)(`span`,{"data-slot":`badge`,className:P(Tn({variant:t}),e),...n})}function En({tone:e=`muted`}){let t={good:`bg-good`,warn:`bg-warn`,critical:`bg-critical`,muted:`bg-mute`}[e];return(0,F.jsx)(`span`,{className:P(`inline-block h-2 w-2 shrink-0 rounded-full`,t)})}var Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;tMn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Un(r)&&typeof qn==`function`&&(r=qn(r._payload)),_.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Un(n)&&typeof qn==`function`&&(n=qn(n._payload)),a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Kn(e):Gn(e));return r}let u=zn(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);var Gn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qn=_.use,Jn=wn(`inline-flex items-center justify-center gap-[7px] whitespace-nowrap rounded-md border text-[13px] font-medium leading-none transition-[background-color,border-color,color,opacity] duration-100 disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:shrink-0 cursor-pointer`,{variants:{variant:{default:`border-border bg-surface text-ink hover:bg-surface2 hover:border-line`,primary:`border-primary bg-primary text-primary-foreground hover:opacity-85`,accent:`border-brand bg-brand text-white hover:opacity-85`,ghost:`border-transparent bg-transparent text-ink2 hover:bg-surface3 hover:text-ink`,danger:`border-critical/50 bg-surface text-critical hover:border-critical hover:bg-critical hover:text-white`,dangerSolid:`border-critical bg-critical text-white hover:opacity-85`},size:{default:`h-[34px] px-3`,sm:`h-7 px-[10px] text-[12px]`,icon:`h-8 w-8 px-0`}},defaultVariants:{variant:`default`,size:`default`}});function R({className:e,variant:t,size:n,asChild:r=!1,children:i,...a}){let o=a[`aria-busy`]===!0||a[`aria-busy`]===`true`,s=P(Jn({variant:t,size:n,className:e}),o&&`pointer-events-none opacity-85`);return r?(0,F.jsx)(Fn,{"data-slot":`button`,className:s,...a,children:i}):(0,F.jsxs)(`button`,{"data-slot":`button`,className:s,...a,children:[o&&(0,F.jsx)(`span`,{className:`spin`,"aria-hidden":`true`}),i]})}function Yn({rows:e,onUndo:t,busy:n}){if(!e.length)return(0,F.jsx)(gn,{title:x(`No changes yet`,`monoranks`),text:x(`Fixes you approve in MonoRanks show up here, each with Undo.`,`monoranks`)});let r=`whitespace-nowrap border-b border-border px-[12px] py-[11px] text-start text-[12px] font-medium text-mute`,i=`border-b border-grid px-[12px] py-3 align-middle text-[12px] group-last:border-b-0`,a=`overflow-hidden text-ellipsis whitespace-nowrap text-start`;return(0,F.jsx)(`div`,{className:`rounded-b-xl`,children:(0,F.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,children:[(0,F.jsxs)(`colgroup`,{children:[(0,F.jsx)(`col`,{className:`w-[15%] min-w-[130px]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[18%]`}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{className:`w-[96px]`})]}),(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:r,children:x(`When`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Who`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Field`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Where`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Before`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`After`,`monoranks`)}),(0,F.jsx)(`th`,{className:r})]})}),(0,F.jsx)(`tbody`,{children:e.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:`${i} tabular-nums`,children:(0,F.jsx)(`div`,{className:a,title:e.when,children:e.when})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,title:e.actor,children:e.actor})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(L,{className:`max-w-full overflow-hidden text-ellipsis whitespace-nowrap`,title:e.fieldLabel,children:e.fieldLabel})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.where,children:e.where})}),(0,F.jsx)(`td`,{className:`${i} text-mute`,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.previous,children:e.previous||`—`})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.value,children:e.value||`—`})}),(0,F.jsx)(`td`,{className:`${i} text-end`,children:(0,F.jsxs)(R,{variant:`ghost`,size:`sm`,disabled:n!==null,"aria-busy":n===e.index,onClick:()=>t(e),children:[n!==e.index&&(0,F.jsx)(Ne,{size:13,className:`mr-flip`}),x(`Undo`,`monoranks`)]})})]},e.index))})]})})}function Xn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card`,className:P(`min-w-0 rounded-xl border border-border bg-surface`,e),...t})}function Zn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-header`,className:P(`flex flex-wrap items-center justify-between gap-3 px-[22px] pt-[18px]`,e),...t})}function Qn({className:e,...t}){return(0,F.jsx)(`h2`,{"data-slot":`card-title`,className:P(`inline-flex items-center gap-2 text-[15px] font-semibold text-ink`,e),...t})}function $n({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-body`,className:P(`px-[22px] pb-[22px] pt-4`,e),...t})}function er({text:e,children:t,className:n,align:r=`center`}){let i=_.useId(),[a,o]=_.useState(!1),s=()=>o(!0),c=()=>o(!1),l=t?_.cloneElement(t,{"aria-describedby":i,tabIndex:t.props.tabIndex??0}):(0,F.jsx)(`button`,{type:`button`,"aria-describedby":i,"aria-label":x(`More info`,`monoranks`),className:`inline-flex h-4 w-4 items-center justify-center rounded-full text-mute hover:text-ink focus-visible:text-ink focus-visible:outline-2 focus-visible:outline-brand`,children:(0,F.jsx)(O,{size:13,"aria-hidden":`true`})});return(0,F.jsxs)(`span`,{className:P(`relative inline-flex items-center`,n),onMouseEnter:s,onMouseLeave:c,onFocus:s,onBlur:c,onKeyDown:e=>{e.key===`Escape`&&c()},children:[l,(0,F.jsx)(`span`,{id:i,role:`tooltip`,className:P(`pointer-events-none absolute bottom-[calc(100%+6px)] z-50 w-max max-w-[260px] rounded-md bg-ink px-2.5 py-1.5 text-start text-[12px] font-normal leading-snug text-page shadow-md`,{center:`left-1/2 -translate-x-1/2`,start:`start-0`,end:`end-0`}[r],a?`visible opacity-100`:`invisible opacity-0`),children:e})]})}var tr={target:`_blank`,rel:`noopener`},nr=[`outreach`,`backlinks`,`competitors`,`keywords`,`report`];function rr(){let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(0);(0,_.useEffect)(()=>{w.grow().then(t).catch(()=>r(!0))},[i]);let o=!!e?.connected&&nr.some(t=>e[t]?.state===`pending`);if((0,_.useEffect)(()=>{if(!o||i>=4)return;let e=window.setTimeout(()=>a(e=>e+1),6e4);return()=>window.clearTimeout(e)},[o,i]),n)return null;if(!e)return(0,F.jsx)(`section`,{"aria-label":x(`What to do next`,`monoranks`),"aria-busy":`true`,className:`grid grid-cols-2 gap-5 max-[960px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[180px] animate-pulse bg-surface2`},e))});if(!e.connected)return null;let s=e.scope_url??``;return(0,F.jsxs)(`section`,{"aria-labelledby":`mr-grow-title`,className:`flex flex-col gap-3`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,F.jsx)(`h2`,{id:`mr-grow-title`,className:`text-[15px] font-semibold text-ink`,children:x(`What to do next`,`monoranks`)}),e.fetched&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(x(`Updated %s`,`monoranks`),e.fetched)})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsx)(or,{d:e.outreach,scope:s}),(0,F.jsx)(sr,{d:e.backlinks,scope:s}),(0,F.jsx)(cr,{d:e.competitors,scope:s}),(0,F.jsx)(lr,{d:e.keywords,scope:s})]}),(0,F.jsx)(ur,{d:e.report})]})}function ir({state:e,scope:t,empty:n}){let r=n;if(e===`no_access`)r=(0,F.jsxs)(F.Fragment,{children:[x(`The MonoRanks key of this site cannot read this yet. Allow it under Integrations in MonoRanks, or connect again.`,`monoranks`),` `,t&&(0,F.jsx)(`a`,{className:`font-medium text-brand-ink hover:underline`,href:ln(t,`grow-scope`),...tr,children:x(`Open Integrations`,`monoranks`)})]});else if(e===`off`)r=x(`Not available in your MonoRanks yet.`,`monoranks`);else if(e===`error`)r=x(`Could not reach MonoRanks. Retrying soon.`,`monoranks`);else if(e===`pending`)return(0,F.jsx)(`p`,{className:`m-0 animate-pulse text-[12px] text-mute`,role:`status`,children:x(`Checking…`,`monoranks`)});return(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:r})}function ar({title:e,badge:t,link:n,linkText:r,children:i}){return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[e,t]}),n&&(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(n,`grow-card`),...tr,children:[r,(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]}),(0,F.jsx)($n,{className:`flex flex-col gap-3 pt-3`,children:i})]})}function or({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Outreach`,`monoranks`),badge:n&&n.to_contact>0?(0,F.jsx)(L,{children:C(S(`%s to contact`,`%s to contact`,n.to_contact,`monoranks`),I(n.to_contact))}):void 0,link:n?.link||e?.link,linkText:x(`All targets`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[n.top.length>0?(0,F.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-2.5 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`a`,{className:`truncate text-[13px] font-semibold text-ink hover:underline`,href:e.url,...tr,children:[(0,F.jsx)(`bdi`,{children:e.title}),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`text-[12px] text-ink2`,children:[e.why,e.domain&&(0,F.jsxs)(F.Fragment,{children:[` · `,(0,F.jsx)(`bdi`,{className:`text-mute`,children:e.domain})]})]})]},e.url))}):(0,F.jsx)(ir,{state:`empty`,scope:t,empty:x(`Every target is contacted. MonoRanks looks for new ones each week.`,`monoranks`)}),(0,F.jsx)(`p`,{className:`m-0 text-[11px] text-mute`,children:x(`Sites worth asking for a link or a mention. MonoRanks never sends email; you reach out and set the status there.`,`monoranks`)})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No outreach targets yet. MonoRanks looks for pages worth a link each week.`,`monoranks`)})})}function sr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Backlinks`,`monoranks`),link:n?.link||e?.link,linkText:x(`All backlinks`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-5 gap-y-1`,children:[(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-good-ink`,children:[`+`,I(n.new)]}),(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-critical`,children:[`−`,I(n.lost)]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`websites linking to you, won and lost in 28 days`,`monoranks`)})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s website links to you`,`%s websites link to you`,n.domains,`monoranks`),I(n.domains))}),n.review>0&&(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s to review for spam`,`%s to review for spam`,n.review,`monoranks`),I(n.review))})]}),n.top.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Newest strong links`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-x-3 gap-y-1 p-0 text-[12px]`,children:n.top.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`bdi`,{children:e.domain}),e.rank!==null&&(0,F.jsxs)(`span`,{className:`text-mute`,children:[` · `,C(x(`strength %s`,`monoranks`),I(e.rank))]})]},e.domain))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No backlink data yet. MonoRanks refreshes it weekly.`,`monoranks`)})})}function cr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Competitors`,`monoranks`),badge:n&&n.gaps?(0,F.jsx)(L,{children:C(S(`%s keyword gap`,`%s keyword gaps`,n.gaps,`monoranks`),I(n.gaps))}):void 0,link:n?.link||e?.link,linkText:x(`All competitors`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`span`,{className:`text-[13px] font-semibold`,children:[(0,F.jsx)(`bdi`,{children:e.domain}),!e.picked&&(0,F.jsx)(`span`,{className:`ms-1.5 text-[11px] font-normal text-mute`,children:x(`suggested`,`monoranks`)})]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:e.reason||C(S(`%1$s shared keyword, %2$s where they rank higher`,`%1$s shared keywords, %2$s where they rank higher`,e.shared,`monoranks`),I(e.shared),I(e.above_us))})]},e.domain))}),n.keywords.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`They rank for these, you do not`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1.5 p-0`,children:n.keywords.map(e=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:e.keyword}),e.volume!==null&&(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:C(x(`%s/mo`,`monoranks`),I(e.volume))})]})},e.keyword))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No competitors yet. Pick some in MonoRanks to see the keywords they win.`,`monoranks`)})})}function lr({d:e,scope:t}){let n=e?.state===`ok`?e:null,r=({k:e,up:t})=>(0,F.jsxs)(`li`,{className:`flex items-baseline justify-between gap-3 text-[12px]`,children:[(0,F.jsx)(`bdi`,{className:`min-w-0 truncate`,children:e.keyword}),(0,F.jsxs)(`span`,{className:`shrink-0 tabular-nums ${t?`text-good-ink`:`text-critical`}`,children:[(0,F.jsxs)(`span`,{className:`sr-only`,children:[x(t?`up`:`down`,`monoranks`),` `]}),C(x(`%1$s → %2$s`,`monoranks`),I(e.from),I(e.to))]})]});return(0,F.jsx)(ar,{title:x(`Keyword movers this week`,`monoranks`),link:n?.link||e?.link,linkText:x(`All keywords`,`monoranks`),children:n?n.up.length||n.down.length?(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Up`,`monoranks`)}),n.up.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.up.map(e=>(0,F.jsx)(r,{k:e,up:!0},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]}),(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Down`,`monoranks`)}),n.down.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.down.map(e=>(0,F.jsx)(r,{k:e,up:!1},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]})]}):(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:C(S(`Your %s tracked keyword held its place this week.`,`Your %s tracked keywords held their places this week.`,n.tracked,`monoranks`),I(n.tracked))}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No tracked keywords yet. Track some in MonoRanks to see them move here.`,`monoranks`)})})}function ur({d:e}){if(!e||e.state!==`ok`&&e.state!==`empty`)return null;let t=e.state===`ok`?e.emails??[]:[],n=e.state===`ok`?e.reports??[]:[];return(0,F.jsx)(Xn,{className:`grid gap-3 px-5 py-3.5`,children:e.state===`empty`?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`text-[13px] text-ink2`,children:x(`No reports yet. Create a website report, a client report or a weekly email in MonoRanks to share progress.`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:x(`Reports`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}),(0,F.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[t.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.name})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,x(`Weekly email`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[12px] text-ink2`,children:[e.enabled&&e.next_label?(0,F.jsx)(`span`,{children:C(x(`Next send %s`,`monoranks`),e.next_label)}):null,(0,F.jsx)(`span`,{children:C(S(`%s recipient`,`%s recipients`,e.recipients,`monoranks`),I(e.recipients))}),(0,F.jsx)(L,{children:e.enabled?x(`On`,`monoranks`):x(`Off`,`monoranks`)})]})]},`e${t}`)),n.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.scope||e.title})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,e.client?x(`Client report`,`monoranks`):x(`Report`,`monoranks`),e.when?` · ${e.when}`:``]})]}),e.link&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(e.link,`latest-report`),...tr,children:[x(`Open report`,`monoranks`),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]},`r${t}`))]})]})})}var dr=`whitespace-nowrap border-b border-border px-[10px] py-[11px] text-start text-[12px] font-medium text-mute`,fr=`border-b border-grid px-[10px] py-3 align-middle group-last:border-b-0`;function pr(e,t){let n=e.replace(/<[^>]+>/g,``).trim();return n.length>t?n.slice(0,t-1)+`…`:n}function mr(e){try{let t=new URL(e);return t.pathname+t.search}catch{return e}}function hr({fix:e,labels:t}){let n=e.title||(e.field===`redirect`?e.from:x(`Site`,`monoranks`)),r=e.before?pr(e.before,90):null;return(0,F.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:t[e.field]??e.field}),(0,F.jsx)(`span`,{className:`min-w-0 truncate text-[12px] text-ink2`,children:e.field===`redirect`||e.field===`ai_bots`||e.field===`llms_txt`?(0,F.jsx)(`b`,{className:`font-semibold text-ink`,children:(0,F.jsx)(`bdi`,{children:n})}):(0,F.jsx)(`bdi`,{children:C(x(`on %s`,`monoranks`),n)})})]}),e.field===`alt`&&e.image&&(0,F.jsx)(`span`,{className:`truncate text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:C(x(`Image: %s`,`monoranks`),e.image)})}),e.field===`content`?(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Adds one answer-first paragraph at the top. Review the before/after in MonoRanks first.`,`monoranks`)}):(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-[12px]`,children:[(0,F.jsx)(`span`,{className:`text-mute`,children:r?(0,F.jsx)(`s`,{children:(0,F.jsx)(`bdi`,{children:r})}):x(`(empty)`,`monoranks`)}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`→`}),(0,F.jsx)(`span`,{className:`sr-only`,children:x(`changes to`,`monoranks`)}),(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:pr(e.after,120)})})]}),e.note&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:e.note})})]})}function gr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null);(0,_.useEffect)(()=>{w.overview().then(r).catch(e=>a(se(e,x(`Could not load the overview.`,`monoranks`))))},[]);async function f(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let p=n?.overview??null,m=typeof p?.to_review?.needs_value==`number`?p.to_review.needs_value:null,h=p?.to_review&&(p.to_review.total>0||(m??0)>0)&&p.to_review.review_url?p.to_review:null,g=n?p?(0,F.jsxs)(F.Fragment,{children:[x(`Weekly SEO, AEO and GEO audit of`,`monoranks`),` `,(0,F.jsx)(`code`,{children:n.host}),n.audited&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`last audit %s`,`monoranks`),n.audited)]}),p.pages_total>0&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`%1$s of %2$s published pages scored`,`monoranks`),I(p.pages_scored),I(p.pages_total))]})]}):void 0:`\xA0`,v=n?.connected?(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>f(`sync`,()=>w.sync(`overview`)),children:x(`Sync content now`,`monoranks`)}):null;return(0,F.jsxs)(fn,{section:`overview`,go:e,title:x(`Overview`,`monoranks`),description:g,actions:v,children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(_r,{}),n&&(!n.connected||n.revoked)&&(0,F.jsx)(vr,{revoked:n.revoked,go:e}),n&&n.connected&&!n.revoked&&!p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(br,{data:n}),(0,F.jsx)(rr,{})]}),n&&p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Health score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.health})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.health,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Technical, on-page, links, speed`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(S(`Site average, %s page`,`Site average, %s pages`,p.pages_scored,`monoranks`),I(p.pages_scored))})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`AEO score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.aeo})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.aeo,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Answer-first, structure, entities`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`How well AI answers can use your pages`,`monoranks`)})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Search clicks, 28 days`,`monoranks`)}),p.traffic&&(0,F.jsx)(bn,{n:p.traffic.delta_pct,unit:`%`,period:`previous28`})]}),p.traffic?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:I(p.traffic.clicks_28d)}),(0,F.jsx)(xn,{series:p.traffic.series}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`From Google Search Console, through MonoRanks`,`monoranks`)})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold text-mute`,children:`—`}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`Connect Google Search Console in MonoRanks to see clicks here.`,`monoranks`)})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Fixes`,`monoranks`)}),p.fixes.ready>0&&(0,F.jsx)(L,{children:C(x(`%s ready`,`monoranks`),I(p.fixes.ready))})]}),(0,F.jsxs)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:[I(p.fixes.applied_30d),` `,(0,F.jsx)(`span`,{className:`text-[12px] font-normal text-ink2`,children:x(`applied in 30 days`,`monoranks`)})]}),h&&h.total>0&&(0,F.jsxs)(`a`,{className:`text-[12px] font-medium text-brand-ink hover:underline`,href:ln(h.review_url,`fixes-card`),target:`_blank`,rel:`noopener`,children:[C(x(`%s waiting for your approval in MonoRanks`,`monoranks`),I(h.total)),` →`]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.bots_rules?`good`:`muted`}),p.ai.bots_rules?x(`AI crawler rules on`,`monoranks`):x(`No AI crawler rules`,`monoranks`)]}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.llms_txt?`good`:`muted`}),p.ai.llms_txt?x(`llms.txt published`,`monoranks`):x(`No llms.txt`,`monoranks`)]})]})]})]}),!n.revoked&&(0,F.jsx)(rr,{}),(0,F.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,3fr)_minmax(0,2fr)] items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Pages needing attention`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.app_url,`all-pages`),target:`_blank`,rel:`noopener`,children:x(`All pages in MonoRanks`,`monoranks`)})})]}),p.attention.length?(0,F.jsx)(`div`,{className:`overflow-x-auto rounded-b-xl pt-2`,children:(0,F.jsxs)(`table`,{className:`w-full border-collapse`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:dr,children:x(`Page`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Health`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`AEO`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Biggest issue`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr})]})}),(0,F.jsx)(`tbody`,{children:p.attention.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:fr,children:(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:e.title||e.url}),e.url&&(0,F.jsx)(`code`,{className:`max-w-[180px] text-[11px]`,children:mr(e.url)})]})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.health})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.aeo})}),(0,F.jsx)(`td`,{className:`${fr} text-[12px]`,children:e.issue}),(0,F.jsx)(`td`,{className:`${fr} text-end`,children:e.page_url&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`fix-page`),target:`_blank`,rel:`noopener`,children:x(`Fix in MonoRanks`,`monoranks`)})})})]},e.post_id+e.url))})]})}):(0,F.jsx)(gn,{title:x(`Nothing needs attention`,`monoranks`),text:x(`Every scored page is above 60. The next audit may change that.`,`monoranks`)})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[x(`Ready to apply`,`monoranks`),p.ready.length>0&&(0,F.jsx)(L,{children:I(p.ready.length)}),p.ready.length>0&&(0,F.jsx)(er,{text:x(`Approved in MonoRanks. Each write is logged under Settings and can be undone for 30 days.`,`monoranks`)})]}),p.ready.length>1&&(0,F.jsx)(R,{variant:`primary`,size:`sm`,disabled:c!==null,"aria-busy":c===`all`,onClick:()=>f(`all`,()=>w.apply(`all`)),children:x(`Apply all`,`monoranks`)})]}),(0,F.jsxs)($n,{className:`flex flex-col pt-1.5`,children:[p.ready.length===0&&h&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 py-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[m===null?(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:C(x(`%s fixes are ready for your approval`,`monoranks`),I(h.total))}):(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:[h.total>0&&C(S(`%s ready to apply`,`%s ready to apply`,h.total,`monoranks`),I(h.total)),m>0&&C(S(`%s needs a value in MonoRanks`,`%s need a value in MonoRanks`,m,`monoranks`),I(m))].filter(Boolean).join(` · `)}),(0,F.jsx)(er,{text:x(m!==null&&m>0?`Type a value or draft one with AI in MonoRanks, approve it, and it is written here, with undo.`:`Approve them in MonoRanks and they are written here, with undo.`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Object.entries(h.by_field).sort((e,t)=>t[1]-e[1]).map(([e,t])=>(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:n.labels[e]??e}),(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:I(t)})]},e))}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(h.review_url,`review-fixes`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})})]}),p.ready.length===0&&!h&&(0,F.jsx)(gn,{title:x(`No fixes waiting`,`monoranks`),text:x(`Fixes you approve in MonoRanks appear here, ready to write into WordPress.`,`monoranks`)}),p.ready.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),e.field===`content`&&e.page_url?(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review`,`monoranks`)})}):(0,F.jsx)(R,{size:`sm`,disabled:c!==null,"aria-busy":c===e.id,onClick:()=>f(e.id,()=>w.apply(e.id)),children:x(`Apply`,`monoranks`)})]},e.id))]})]}),(p.needs_review??[]).length>0&&(0,F.jsxs)(Xn,{children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{children:[x(`Needs review in MonoRanks`,`monoranks`),(0,F.jsx)(L,{children:I(p.needs_review.length)}),(0,F.jsx)(er,{text:x(`These changed in WordPress after they were reviewed, so they are not applied from here. Review them again in MonoRanks.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col pt-1.5`,children:p.needs_review.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url||p.site_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})]},e.id))})]})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:t.urls.settings,onClick:t=>{t.preventDefault(),e(`settings`)},children:x(`All changes`,`monoranks`)})})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),f(`undo`,()=>w.undo(e,`overview`))}})})]})]})]})}function _r(){return(0,F.jsx)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[150px] animate-pulse bg-surface2`},e))})}function vr({revoked:e,go:t}){let n=y();return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(e?`Connect MonoRanks again`:`Connect MonoRanks`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:e?`critical`:`muted`}),x(e?`Key revoked`:`Not connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.urls.connect,`connect-step`),target:`_self`,children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},children:x(`Open settings`,`monoranks`)})})})]}),(0,F.jsx)(yr,{n:3,later:!0,children:(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`See scores here and in your Posts list`,`monoranks`)})})]})]})}function yr({n:e,later:t,children:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`span`,{className:`flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${t?`bg-surface3 text-ink2`:`bg-ink text-page`}`,children:e}),(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:n})]})}function br({data:e}){let t=e.status,[n,r]=t===`unsupported`?[x(`Not shared yet`,`monoranks`),x(`This MonoRanks does not share audit results with the plugin yet. Scores stay in MonoRanks for now; the plugin asks again tomorrow.`,`monoranks`)]:t===`error`?[x(`MonoRanks not reached`,`monoranks`),x(`MonoRanks could not be reached for the audit results. The plugin tries again within the hour, or when you reload this screen.`,`monoranks`)]:[x(`Not scored yet`,`monoranks`),x(`MonoRanks has not scored this site yet. Scores appear here and in the Posts list after the first weekly audit.`,`monoranks`)];return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Waiting for the first audit`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`good`}),x(`Connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsx)(hn,{rows:[[x(`Content`,`monoranks`),e.last_sent?C(x(`%1$s published items sent %2$s`,`monoranks`),I(e.items),e.last_sent):x(`Not sent yet. Use "Sync content now" above.`,`monoranks`)],[x(`Audit results`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n,(0,F.jsx)(er,{text:e.fetched?(0,F.jsxs)(F.Fragment,{children:[r,` · `,C(x(`checked %s`,`monoranks`),e.fetched)]}):r})]})]]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.app_url,`open-audit`),target:`_blank`,rel:`noopener`,children:x(`Open the audit in MonoRanks`,`monoranks`)})})})]})]})}function xr({className:e,type:t,...n}){return(0,F.jsx)(`input`,{type:t,"data-slot":`input`,className:P(`flex h-10 w-full max-w-[440px] rounded-lg border border-input bg-surface px-[14px] text-[13px] text-ink outline-none placeholder:text-mute focus:border-brand disabled:opacity-55`,e),...n})}function Sr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1);(0,_.useEffect)(()=>{w.settings().then(e=>{r(e),p(e.revoked)}).catch(e=>a(se(e,x(`Could not load the settings.`,`monoranks`))))},[]);let[g,v]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(g===null||n?.connected)return;let e=!1,t=()=>{if(!(e||document.visibilityState!==`visible`)){if(Date.now()-g>6e5){v(null);return}w.settings().then(t=>{!e&&t.connected&&(r(t),p(!1),v(null))}).catch(()=>{})}},i=window.setInterval(t,4e3);return document.addEventListener(`visibilitychange`,t),()=>{e=!0,window.clearInterval(i),document.removeEventListener(`visibilitychange`,t)}},[g,n?.connected]);async function b(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let ee=!!n?.connected,te=!!n?.revoked;return(0,F.jsxs)(fn,{section:`settings`,go:e,title:x(`Settings`,`monoranks`),children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(Xn,{className:`h-[260px] animate-pulse bg-surface2`}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-[9px] bg-surface2 [&_svg]:h-5 [&_svg]:w-5`,"aria-hidden":`true`,children:(0,F.jsx)(un,{which:`mark`})}),(0,F.jsx)(Qn,{children:x(`Connection`,`monoranks`)})]}),ee?(0,F.jsx)(er,{align:`end`,text:x(te?`MonoRanks no longer accepts this key. Connect again from MonoRanks or paste a new key below.`:`Sending published content to MonoRanks. Nothing else leaves this site.`,`monoranks`),children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:te?`critical`:`good`}),x(te?`Key revoked`:`Connected`,`monoranks`)]})}):(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`muted`}),x(`Not connected`,`monoranks`)]})]}),(0,F.jsx)($n,{className:`flex flex-col gap-4`,children:ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hn,{rows:[[x(`Connector key`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`code`,{children:n.key_hint}),(0,F.jsx)(er,{text:n.key_via})]})],[x(`Last sync`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n.last_sent_date?(0,F.jsx)(er,{text:n.last_sent_date,children:(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short})}):(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short}),n.sending&&(0,F.jsx)(L,{children:C(x(`sending, batch %1$s of %2$s`,`monoranks`),I(n.sending.page),I(Math.max(1,n.sending.pages)))}),n.items>0&&(0,F.jsx)(L,{children:C(S(`%s published item`,`%s published items`,n.items,`monoranks`),I(n.items))}),n.last_error&&(0,F.jsx)(L,{variant:`warn`,children:n.last_error})]})],...n.next_audit?[[x(`Next audit`,`monoranks`),n.next_audit]]:[],n.app_password?.exists?[x(`Fixes written with`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`App password`,`monoranks`),(0,F.jsx)(er,{text:x(`Fixes are written with the "MonoRanks" Application Password. Revoke it in your profile to stop writes.`,`monoranks`)}),(0,F.jsx)(`a`,{href:n.app_password.revoke_url||n.profile_url,children:x(`Revoke`,`monoranks`)})]})]:[x(`Fixes`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`Not set up`,`monoranks`),(0,F.jsx)(er,{text:x(`Approve MonoRanks in WordPress so it can write the fixes you accept.`,`monoranks`)}),n.app_password?.available!==!1&&(0,F.jsx)(`a`,{href:ln(n.allow_url||n.connect_url,`allow-fixes`,`settings`),target:`_self`,children:x(`Allow`,`monoranks`)})]})],[x(`Works with`,`monoranks`),n.seo_plugin&&!n.seo_supported?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{variant:`warn`,children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`MonoRanks cannot write titles, descriptions, canonicals or noindex into %s yet, so those fixes are refused`,`monoranks`),n.seo_plugin)})]}):n.seo_plugin?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`titles and descriptions go into the fields %s reads`,`monoranks`),n.seo_plugin)})]}):(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:x(`No SEO plugin`,`monoranks`)}),(0,F.jsx)(er,{text:x(`MonoRanks prints the approved title, description, canonical and noindex tags itself`,`monoranks`)})]})]]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>b(`sync`,()=>w.sync(`settings`)),children:x(`Send content now`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Disconnect stops sending. Fixes already applied stay.`,`monoranks`),children:(0,F.jsx)(R,{disabled:c!==null,"aria-busy":c===`disconnect`,onClick:()=>b(`disconnect`,()=>w.disconnect()),children:x(`Disconnect`,`monoranks`)})})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.connect_url,`connect-step`,`settings`),target:`_self`,onClick:()=>v(Date.now()),children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(Cr,{data:n,busy:c,onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})]})]})})]}),ee&&(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{open:f,onToggle:e=>p(e.currentTarget.open),className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`Use a different key`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(Cr,{data:n,busy:c,hint:x(`In MonoRanks: Settings → API and MCP → New credential, content:write, this website.`,`monoranks`),onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})})]})}),(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`What is sent`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(hn,{rows:[[x(`Sent`,`monoranks`),x(`Published titles, a 40-word excerpt, dates, authors, categories, tags, SEO fields, image alt text and plugin status.`,`monoranks`)],[x(`Read back`,`monoranks`),x(`This website's audit results: scores, issues and the fixes you approved, shown here and in the Posts list.`,`monoranks`)],[x(`Never sent`,`monoranks`),x(`Drafts, private posts, comments, emails, passwords, plugin or theme settings.`,`monoranks`)],[x(`Can change`,`monoranks`),x(`SEO title, meta description, canonical, noindex, image alt text, redirects, one opening paragraph, AI crawler rules, llms.txt. Only after you approve each one.`,`monoranks`)]]})})]})}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Last 50 · undo for 30 days`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),b(`undo`,()=>w.undo(e,`settings`))}})})]}),!ee&&n.has_data&&(0,F.jsxs)(Xn,{className:`border-critical/40`,children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{className:`text-critical`,children:[x(`Danger zone`,`monoranks`),(0,F.jsx)(er,{text:x(`Erases the connection, scores, redirects, AI files and change log. Written fixes stay.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col gap-3`,children:m?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-critical`,children:x(`This cannot be undone. Delete everything?`,`monoranks`)}),(0,F.jsx)(R,{variant:`dangerSolid`,disabled:c!==null,"aria-busy":c===`delete`,onClick:()=>{h(!1),b(`delete`,()=>w.deleteEverything())},children:x(`Yes, delete all data`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,disabled:c!==null,onClick:()=>h(!1),children:x(`Cancel`,`monoranks`)})]}):(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`danger`,onClick:()=>h(!0),children:x(`Delete all MonoRanks data`,`monoranks`)})})})]})]})]})}function Cr({data:e,busy:t,hint:n,onSubmit:r}){let[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(e.api_base);function c(t){t.preventDefault(),r(i,e.show_address?o:void 0)}return(0,F.jsxs)(`form`,{onSubmit:c,className:`flex flex-col gap-3 pt-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-key`,className:`text-[12px] font-medium text-ink2`,children:x(`Connector key`,`monoranks`)}),n&&(0,F.jsx)(er,{align:`start`,text:n})]}),(0,F.jsx)(xr,{id:`monoranks-key`,name:`key`,type:`password`,autoComplete:`off`,placeholder:`mr_ws_… or mr_site_…`,required:!0,value:i,onChange:e=>a(e.target.value)})]}),e.show_address&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-address`,className:`text-[12px] font-medium text-ink2`,children:x(`MonoRanks address (development sites only)`,`monoranks`)}),(0,F.jsx)(xr,{id:`monoranks-address`,name:`api_base`,type:`url`,value:o,onChange:e=>s(e.target.value)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,type:`submit`,disabled:t!==null,"aria-busy":t===`connect`,children:x(`Save key`,`monoranks`)})})]})}function wr(){let[e,t]=te();return v(),e===`settings`?(0,F.jsx)(Sr,{go:t}):(0,F.jsx)(gr,{go:t})}var Tr=document.getElementById(`monoranks-admin`);Tr&&(0,g.createRoot)(Tr).render((0,F.jsx)(_.StrictMode,{children:(0,F.jsx)(wr,{})})); \ No newline at end of file diff --git a/languages/monoranks-fa_IR-admin.json b/languages/monoranks-fa_IR-admin.json index 2c6443f..18e46c6 100644 --- a/languages/monoranks-fa_IR-admin.json +++ b/languages/monoranks-fa_IR-admin.json @@ -1,5 +1,5 @@ { - "translation-revision-date": "2026-10-17T10:10:18+00:00", + "translation-revision-date": "2026-10-25T12:57:45+00:00", "generator": "WP-CLI/2.12.0", "source": "resources/admin", "domain": "messages", @@ -52,9 +52,15 @@ "Next audit": [ "ممیزی بعدی" ], + "Fixes": [ + "اصلاح‌ها" + ], "Settings": [ "تنظیمات" ], + "Connect": [ + "اتصال" + ], "Something went wrong. Try again.": [ "مشکلی پیش آمد. دوباره تلاش کنید." ], @@ -73,9 +79,6 @@ "Sign in and approve. Takes a minute.": [ "وارد شوید و تأیید کنید. یک دقیقه طول می‌کشد." ], - "Connect": [ - "اتصال" - ], "Or paste a connector key": [ "یا کلید اتصال را وارد کنید" ], @@ -122,6 +125,15 @@ "Revoke": [ "لغو" ], + "Not set up": [ + "تنظیم نشده" + ], + "Approve MonoRanks in WordPress so it can write the fixes you accept.": [ + "MonoRanks را در وردپرس تأیید کنید تا اصلاح‌هایی که می‌پذیرید را بنویسد." + ], + "Allow": [ + "اجازه دادن" + ], "Works with": [ "سازگار با" ], @@ -206,6 +218,9 @@ "MonoRanks address (development sites only)": [ "نشانی مونورنکس (فقط سایت‌های توسعه)" ], + "Save key": [ + "ذخیره کلید" + ], "(opens in a new tab)": [ "(در زبانهٔ تازه باز می‌شود)" ], @@ -224,11 +239,11 @@ "Not available in your MonoRanks yet.": [ "هنوز در مونورنکس شما در دسترس نیست." ], - "MonoRanks could not be reached. The plugin tries again within the hour.": [ - "دسترسی به مونورنکس ممکن نشد. افزونه تا یک ساعت دیگر دوباره تلاش می‌کند." + "Could not reach MonoRanks. Retrying soon.": [ + "دسترسی به MonoRanks ممکن نشد. به‌زودی دوباره تلاش می‌شود." ], - "Still loading. Reload this screen in a minute.": [ - "هنوز در حال بارگذاری است. یک دقیقهٔ دیگر این صفحه را بازخوانی کنید." + "Checking…": [ + "در حال بررسی…" ], "Outreach": [ "جذب لینک" @@ -371,9 +386,6 @@ "AEO": [ "AEO" ], - "Fixes": [ - "اصلاح‌ها" - ], "%s ready to apply": [ "%s آمادهٔ اعمال", "%s آمادهٔ اعمال" diff --git a/languages/monoranks-fa_IR.mo b/languages/monoranks-fa_IR.mo index 164eee343bef69911bb0fca4ed8c427fd5fd8388..95057a6c22a42aa80da5176946f4ed28b840e14d 100644 GIT binary patch delta 5121 zcmYk<3s{s@9>?(m;su5j1VOyetLO?Unygsf!V6_-l9748?1-aWY%oATGRG8@Em|vf zyIGc%fMt>n?N+X4rL8^elTSXSGg+$m>=VRwKvV5==Z`nI%()&D(2z}EWj)9E$oKx zAwT8}FCOf`{&)$8U{XTo{Q)zPMiv8$a01?kis3kF!IP-K&Y^C+j6HBjq75VyW9i?5 zT3{KDz#1HgO_+p7F$2%wXzbdDUlTAUn+9WMB4*+o)Iu9k6F-Ap@I_Q$ZP*VFqcRaj zVlqFWG7!&d^YKdTidCrbyHJ_97qzj6F_!gBGYx)B8!vi8JL<;MI0!#N1#%g$!`Nhd zJs%a&0@QsgFc0|nztIWaSM*cSNfCxC>k9M6yrBI8<#Qb zJlu=gK^H1%8cxGftV12qcc@hU*X_shNUWmY8!2?N9%o_$PQufeiHTR*BcB$a5y`+p zRK!bA)m?}>k~>gmUyTa14mI&T_#1ozmBFK~@1W)h;e7lIb^j#Cn4WkeYTgB?j0Bd` z&<(}NahXaa31&Mgb@DS}ev^ybJpcHf9Pw zf|FU_glVj1Aem>$j{#hQ9mo@9W^vHBq8BUiB~%7R5{1k`Etrqm=@L{?7GYOhj|wn= zdQ9(e`#U@P0b};iP_Z3C6-7JtMCJDe=!M$Z0-T6NsEqAKy>CCx#3MKZJ;Q9V-iiuj zF>2lt)+=hMgx7)lWkOo{h@XR19e6c{Ft9OI)i_H~bM*6HV9yUvoW&jc zqT9cnD96#SLTzZD>mk&9e;>~Icc<|_14{8n*bO^SXZ4-ik0uQokHaT188yLQkn%A{ zkPk=mDRPUsgq(&MI?~R26JAe$DJt-1QTOi|N&a;f2iyy%kstFRFKaQHht&`6{Z$-of4&^;=5?m`MK;uEt(G3aXVVq;>-4ZW>zn zQB;xaMNM!JwZL2Mcsq73gjXtrPokwCb-=hM|=Hftn0L!rz zb+&12PXUg?0XPNk#HF|a!}uu9W7}HrE7X16rrVl`pB}IaW-_2ib5Rq`!Za*IReu9^ z7AdCC--~(*-a-X-3iZBkQ42)ma$FdTYw#iLk6o^_-vw8q=9wFyp(^&{BCJA9a1wR) zAK|D7W4?CBof-DbMQU8MVM^4B~n03@p!>$LOEHXR-KZjtP6s z>CAAz%%KslHRW#3_QhX3qWXG`@KSdSsl3Q#bC8$6euoic^<7xT! zXme5PcyXYfyE|y~Wneo_!4_1?&Lf{GX6UVU;zg*Ux)Z4*bJ2C;T>HJg5w&m=#^K9I z{h7CMKYDI6=AU>7YjF2G=3;&0%(p3h98b}o!87;@rY^L98HKQczJ~(2fRCVqwTtaz zwHsAT$56%l4^+l}#2%Qq#0EGJN7BCz6R->e<7jN9k&1^<70qa$H3ya2n^6HQKo#d^{0g_D7TUy@{$02ObtEaPtz%Fdx-mdQ zRlXFJ%0jn)H#+niP#;V$xVGW&2r_`0;EO{02g)TJPJeun{onFRq<+oIs82pmG1G$v( zGaZ|87hb@lcwZ^sfSA9Q|0A%z$-cw>)!L7P?%=|5Q~-J9oF6`hpX1aD8^Ex2w%W7s z1mibhZydnKnu=>Qs)mX&2{+(SY{Yx;71WXCR_RYM&fiZ%J9-?Inq#OpoWs!=TWwQ2 z2`Ox|8vEkkP#HUmI->LF!LLwf|061pFHH@>qnMq>^)?gw&iHf`p zmGX9X{1j?|3#bXcM+Fdfr(G}wb>CRj^;xL&i}Of2dg(_dDTw+O6TkyapRPd`VHyapl3h{=>p`XBy6JYT(L?XBtBL z`E7M?YYA@+*V7M%T1T12O|zY#XKFAarE|K_3!&z4trKctK4#PuO~FIcCPp=8&FdZg z%hnrr%}wap65hrF#91F|J=4&*y(HP=E*feJ*9X77{@Px_ws{^;Lg=~h*3ipm8p3rB rjW)vF7Ch|D?3VCiXrE$ZqaW-E*D6HQxNrV|V7J1Tx&+6rnH={&xfBnc delta 4836 zcmYk<2~btn9mnzW1X*Me5Cu{61w`3J#0^B;q67tlB9v5AL_jFuh9qk0i>PR$V~sBh zZWucz8k<(_OJayxM`LZ1Ok9#Cf~MMNZL3*^Y>m;(q~D+S&a}*%_c`a>d(Zjb|M}nd z9-HntzPjshT?_Mm&hQuIFs46#?x&tHCqn;c7|oOPd*Vfm#lPbK^yc6KjKv^qK_7e; zd6`|j1>oc2(mK!!bz+p=AB2iH3AJDr zYT~K*D9*rf_#&!ot|L>LuTYuw?`zFB0JG`Gqt>hHOa2wWQU-pFF4V+5$*)oz!JGCx z9aRG*wvDJjoqq_-`9x-)h-+~%o<*fP zg9=jWGEx0$ScQd1-I_Ns58uPF*oTr%!CA;|nYGvrTTub;LKW`;)D|3Z(a;_rLq&QP zHSs$*7(YR6h1WpKAk;(=Sc0*r>sMniZbD7`0xBbIsPkVzcEh}mdJNB_GUvKOLkoC2 zjVZujjKeb23F}Z3?LlSYAnN>fOvJab7Qe(_Vkwn79xr1yM#fMlSd7)!h7IV$qcex~ z%?cVkDdq#5h5yDT9LvTl6CT@hsD(RGcYG6jVi#&_6tx2NK|PM4c0bPUr=eX`MpID>%tIYtjC#!0*!^vGe=jQFqo@p>L@o3# zYR@}tzeQail0g1d6frdXFw1r_dehHG1uzr+u@)P#(eB^Ik@UYo1(rxb$T6t-a?uwH zQJF18AFM@f(b7cnuYnErfi1X~z8k3%Gn};OF)BueOg)la(~6q#6i&g5sDLAqt%due zQXhvJ&qH2j25(F7Np#{D$>d)F1oP0QVsBKcC!-c9LMK+@Y;3`L`~-($9v7A2Dy+f| z)B-sitiU5U5W~}qX~qmBS>_n({7+ppYH8#Sv#QvGf%MyPE}lc(K^$L^JQyYsyI}$L zz(Q0i=b(yf35Maz_INvL@87q_Z`=JJ(aE?ga=5kN7}UTNR0gV13qOwC@k#W;X4Jwh zw$ETV{oPoNN6{bq@+hcwVlfP}Fc=F^*OwvlyUZf{Ks`QK2!lAG8C68vP!sI1$6rNF z^cHHOcTjiuS5#`dFaV=ShXNUl#AMP?nOle?-Be?_gZ*!%p#|SQ}>yh0u>ro57fn)FvvWyu-M>Vk@bpw8xY@H57(BQMiB%v-S zL@l%#iOuXl1$F^-hc~bg1NoGifOAo`@gh#dvp5fZ`9{)0)u_Ol@Mm}sbJ4-)vn!NF z9u4j791Owvs0Ef{Ilhg&Ox!r@Yq_yo(Cl{A7G_!^z)c+?6c2G`Ti zK#jMf_VNn$#P3mC=38j}vWdg-^v9tx>OyVNadcuAs)j;mT2IN=2eSW{Xbj;%_$+JT zu^2+X04Lx)Jc|49UpT9XLc*-sR5reWYcajpO6_a-G5vWZ1dStk=F+hXw_t23g^Wkg z$@*qD6*CY|Vqg3l>Q28$r7ryE)?Ou}0v&FFW$s(Mzj6-$J<)GP zU7uBEeT`S(gXh14MkELBpa;F?@{Hm!^u={lngZI4oMH}QCi={`{_&WA@$}bX9Uj6^ zj3~Fh#uIQE{ppy7r;s`|UFGb50*x^XtYWIb82TGgCmup4UPXOE{)kZ+Q(^swl#ROM zd8qT(;0Qd7(Rd4oqSr#JW`^5NLRJ5)g)ZwObq)in&KB%KH)^5vmDaD?y{N5-uCg3~ zN_{@6%F9t1th4(Y&`EzA`ruL9H!;yc25=nXcU;xhFPnr#*00|pq#n&d)F<41+>W6& z))wqXJuRn^2gY1PKXlge&j}`=VSyDmhGx?*tN@ST6ZDT`JZ7*@PIQ&g7)@ghw&O8u z!=?4cOu~=`>)Wpg&(i-7-oWFF`4=49mhfu{*Dd9L0Q?IokYjB4%jmV7ZNNjQOl@nl zihLJd(DVN~jW7;uSYZ`aE2?-t#6EZnAM8CoO+Ti|+Opqa3jNEdJL>+pm7!Ejpg#?@ z_bV_FUqb5ETtsbE8tL$3ee(zn9|mS(0G6Wmz7iG4Q>cly<7GU9k+^fEHSWPd^lxG~ z`mM48k4D{b25LM9HGdK6`uXUm$7v;vC~QXE@gCF(uc0P*AJee|^DtnwHBm8!&|iRL z-7H7d!YypZFIRi+gu}$4Q&&S7j zc}^$YbR^f*)j8`HmoKbos7`gxtW?w4xTt2ib9u$G%E|_3O@p)CSzptzqOmg7voB?c zf55O&MZ?lE^&0K|aO6Y(-}n49a)Q67XuQ9}eLBCl`=^2c&kqwk4$rwsnckiSxtTrP z9i{2+e#J@dr;6h|yGsHBJjWL#`?wF!AL$uZv(wAJb7N;q=cbN7INe!A1L6;KcsdTH vI\n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-10-17T10:10:17+00:00\n" +"POT-Creation-Date: 2026-10-25T12:57:45+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: monoranks\n" #. Plugin Name of the plugin #: monoranks.php -#: src/Admin.php:46 +#: dist/monoranks/src/Admin.php:95 +#: dist/monoranks/src/Column.php:35 +#: dist/monoranks/src/PostPanel.php:34 +#: src/Admin.php:95 #: src/Column.php:35 #: src/PostPanel.php:34 msgid "MonoRanks" @@ -42,20 +45,27 @@ msgstr "" msgid "https://veronalabs.com/" msgstr "" +#: dist/monoranks/resources/views/app.php:13 #: resources/views/app.php:13 msgid "The MonoRanks admin app is not built. Run npm install and npm run build in the plugin folder." msgstr "" +#: dist/monoranks/resources/views/column-cell.php:20 +#: dist/monoranks/resources/views/post-panel.php:25 #: resources/views/column-cell.php:20 #: resources/views/post-panel.php:25 #: tmp/i18n/screens/Overview.js:181 msgid "Connect MonoRanks" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:24 #: resources/views/column-cell.php:24 msgid "Drafts are not sent to MonoRanks. This page gets its scores after the first audit that follows publishing." msgstr "" +#: dist/monoranks/resources/views/column-cell.php:27 +#: dist/monoranks/resources/views/column-cell.php:38 +#: dist/monoranks/resources/views/post-panel.php:35 #: resources/views/column-cell.php:27 #: resources/views/column-cell.php:38 #: resources/views/post-panel.php:35 @@ -63,6 +73,9 @@ msgstr "" msgid "Health" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:27 +#: dist/monoranks/resources/views/column-cell.php:38 +#: dist/monoranks/resources/views/post-panel.php:35 #: resources/views/column-cell.php:27 #: resources/views/column-cell.php:38 #: resources/views/post-panel.php:35 @@ -70,48 +83,61 @@ msgstr "" msgid "AEO" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:30 #: resources/views/column-cell.php:30 msgid "Status" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:30 +#: dist/monoranks/src/Column.php:68 #: resources/views/column-cell.php:30 #: src/Column.php:68 msgid "Not audited yet" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:31 +#: dist/monoranks/resources/views/column-cell.php:54 #: resources/views/column-cell.php:31 #: resources/views/column-cell.php:54 #: tmp/i18n/screens/Settings.js:89 msgid "Next audit" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:32 #: resources/views/column-cell.php:32 msgid "Published" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:35 #: resources/views/column-cell.php:35 msgid "Scores arrive after the next audit" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:35 #: resources/views/column-cell.php:35 #: tmp/i18n/shell/Shell.js:38 msgid "Open MonoRanks" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:38 #: resources/views/column-cell.php:38 msgid "Not checked in this audit" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:38 #: resources/views/column-cell.php:38 msgid "Not checked: MonoRanks reads AEO on a sample of pages" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:41 #: resources/views/column-cell.php:41 #: tmp/i18n/screens/Overview.js:97 +#: tmp/i18n/screens/Settings.js:90 msgid "Fixes" msgstr "" #. translators: %s: number +#: dist/monoranks/resources/views/column-cell.php:43 #: resources/views/column-cell.php:43 #: tmp/i18n/screens/Overview.js:136 #, php-format,js-format @@ -120,15 +146,18 @@ msgid_plural "%s ready to apply" msgstr[0] "" msgstr[1] "" +#: dist/monoranks/resources/views/column-cell.php:45 #: resources/views/column-cell.php:45 msgid "Nothing waiting" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:47 #: resources/views/column-cell.php:47 msgid "Issues" msgstr "" #. translators: %s: number +#: dist/monoranks/resources/views/column-cell.php:49 #: resources/views/column-cell.php:49 #, php-format msgid "%s open" @@ -136,23 +165,29 @@ msgid_plural "%s open" msgstr[0] "" msgstr[1] "" +#: dist/monoranks/resources/views/column-cell.php:51 +#: dist/monoranks/src/Column.php:142 #: resources/views/column-cell.php:51 #: src/Column.php:142 msgid "No open issues" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:53 #: resources/views/column-cell.php:53 msgid "Audited" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:58 #: resources/views/column-cell.php:58 msgid "Apply fixes" msgstr "" +#: dist/monoranks/resources/views/column-cell.php:59 #: resources/views/column-cell.php:59 msgid "Open in MonoRanks" msgstr "" +#: dist/monoranks/resources/views/partials/score-ring.php:16 #: resources/views/partials/score-ring.php:16 #: tmp/i18n/screens/Overview.js:197 #: tmp/i18n/shell/Ring.js:14 @@ -160,6 +195,7 @@ msgid "Not scored yet" msgstr "" #. translators: %s: score out of 100 +#: dist/monoranks/resources/views/partials/score-ring.php:18 #: resources/views/partials/score-ring.php:18 #: tmp/i18n/shell/Ring.js:14 #, php-format,js-format @@ -167,54 +203,67 @@ msgid "%s of 100" msgstr "" #. translators: %s: link to the website's Integrations screen in MonoRanks +#: dist/monoranks/resources/views/post-panel.php:19 #: resources/views/post-panel.php:19 #, php-format msgid "The MonoRanks key of this site cannot read this yet. Allow it under %s in MonoRanks, or connect again." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:20 #: resources/views/post-panel.php:20 msgid "Integrations" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:27 +#: dist/monoranks/src/PostPanel.php:39 #: resources/views/post-panel.php:27 #: src/PostPanel.php:39 msgid "MonoRanks reads published pages. Scores, clicks and changes appear here after the first audit that follows publishing." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:38 #: resources/views/post-panel.php:38 msgid "Not audited yet. Scores arrive after the next audit." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:43 #: resources/views/post-panel.php:43 msgid "Google search, 28 days" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:45 #: resources/views/post-panel.php:45 msgid "Search data arrives with the next refresh." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:49 #: resources/views/post-panel.php:49 #: tmp/i18n/screens/Overview.js:94 msgid "Connect Google Search Console in MonoRanks to see clicks here." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:52 #: resources/views/post-panel.php:52 msgid "Clicks" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:53 #: resources/views/post-panel.php:53 msgid "Impressions" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:55 #: resources/views/post-panel.php:55 msgid "Average position" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:59 #: resources/views/post-panel.php:59 msgid "Top searches" msgstr "" #. translators: %s: number of clicks +#: dist/monoranks/resources/views/post-panel.php:62 #: resources/views/post-panel.php:62 #, php-format msgid "%s click" @@ -222,36 +271,45 @@ msgid_plural "%s clicks" msgstr[0] "" msgstr[1] "" +#: dist/monoranks/resources/views/post-panel.php:71 #: resources/views/post-panel.php:71 msgid "Visits and revenue, 28 days" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:74 #: resources/views/post-panel.php:74 msgid "Visits from search" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:75 #: resources/views/post-panel.php:75 msgid "Key events" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:76 #: resources/views/post-panel.php:76 msgid "Revenue" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:81 #: resources/views/post-panel.php:81 msgid "Connect Google Analytics in MonoRanks to see what visits to this page are worth." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:81 #: resources/views/post-panel.php:81 msgid "Open Analytics" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:83 +#: dist/monoranks/resources/views/post-panel.php:117 #: resources/views/post-panel.php:83 #: resources/views/post-panel.php:117 msgid "Not available from MonoRanks right now." msgstr "" #. translators: %s: number of links +#: dist/monoranks/resources/views/post-panel.php:90 #: resources/views/post-panel.php:90 #, php-format msgid "%s lost link to win back" @@ -259,15 +317,18 @@ msgid_plural "%s lost links to win back" msgstr[0] "" msgstr[1] "" +#: dist/monoranks/resources/views/post-panel.php:96 #: resources/views/post-panel.php:96 msgid "These sites used to link to this page. Fix the address if it moved, or ask them to update the link." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:101 #: resources/views/post-panel.php:101 msgid "Last change MonoRanks saw" msgstr "" #. translators: %s: number of changes +#: dist/monoranks/resources/views/post-panel.php:109 #: resources/views/post-panel.php:109 #, php-format msgid "and %s more" @@ -275,58 +336,80 @@ msgid_plural "and %s more" msgstr[0] "" msgstr[1] "" +#: dist/monoranks/resources/views/post-panel.php:113 #: resources/views/post-panel.php:113 msgid "Nothing changed between the recent checks." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:115 #: resources/views/post-panel.php:115 msgid "No history yet. MonoRanks keeps one from the next audit on." msgstr "" +#: dist/monoranks/resources/views/post-panel.php:122 #: resources/views/post-panel.php:122 msgid "Open this page in MonoRanks" msgstr "" +#: dist/monoranks/resources/views/post-panel.php:122 #: resources/views/post-panel.php:122 -#: tmp/i18n/screens/Grow.js:55 -#: tmp/i18n/screens/Grow.js:66 -#: tmp/i18n/screens/Grow.js:161 +#: tmp/i18n/screens/Grow.js:63 +#: tmp/i18n/screens/Grow.js:74 +#: tmp/i18n/screens/Grow.js:169 msgid "(opens in a new tab)" msgstr "" -#: src/Admin.php:47 +#: dist/monoranks/src/Admin.php:77 +#: dist/monoranks/src/Admin.php:97 +#: src/Admin.php:77 +#: src/Admin.php:97 +#: tmp/i18n/screens/Settings.js:74 +#: tmp/i18n/shell/Shell.js:15 +msgid "Settings" +msgstr "" + +#: dist/monoranks/src/Admin.php:77 +#: src/Admin.php:77 +#: tmp/i18n/screens/Overview.js:183 +#: tmp/i18n/screens/Settings.js:98 +msgid "Connect" +msgstr "" + +#: dist/monoranks/src/Admin.php:96 +#: dist/monoranks/src/Assets.php:67 +#: src/Admin.php:96 #: src/Assets.php:67 #: tmp/i18n/screens/Overview.js:76 #: tmp/i18n/shell/Shell.js:14 msgid "Overview" msgstr "" -#: src/Admin.php:48 +#: dist/monoranks/src/Admin.php:97 +#: dist/monoranks/src/Assets.php:67 +#: src/Admin.php:97 #: src/Assets.php:67 msgid "MonoRanks settings" msgstr "" -#: src/Admin.php:48 -#: tmp/i18n/screens/Settings.js:74 -#: tmp/i18n/shell/Shell.js:15 -msgid "Settings" -msgstr "" - #. translators: 1: relative time, 2: date -#: src/Admin.php:168 +#: dist/monoranks/src/Admin.php:217 +#: src/Admin.php:217 #, php-format msgid "in %1$s (%2$s)" msgstr "" #. translators: 1: relative time, 2: date -#: src/Admin.php:171 +#: dist/monoranks/src/Admin.php:220 +#: src/Admin.php:220 #, php-format msgid "%1$s ago (%2$s)" msgstr "" #. translators: %s: relative time, e.g. 3 minutes #. translators: %s: relative time such as "5 days" -#: src/Admin.php:181 +#: dist/monoranks/src/Admin.php:230 +#: dist/monoranks/src/Column.php:63 +#: src/Admin.php:230 #: src/Column.php:63 #, php-format msgid "in %s" @@ -334,105 +417,131 @@ msgstr "" #. translators: %s: relative time, e.g. 3 minutes #. translators: %s: relative time such as "2 days" -#: src/Admin.php:181 +#: dist/monoranks/src/Admin.php:230 +#: dist/monoranks/src/Column.php:78 +#: dist/monoranks/src/Column.php:92 +#: src/Admin.php:230 #: src/Column.php:78 #: src/Column.php:92 #, php-format msgid "%s ago" msgstr "" -#: src/Admin.php:193 +#: dist/monoranks/src/Admin.php:242 +#: src/Admin.php:242 msgid "Connected. Your published content is on its way to MonoRanks." msgstr "" -#: src/Admin.php:194 +#: dist/monoranks/src/Admin.php:243 +#: src/Admin.php:243 msgid "Content sent to MonoRanks." msgstr "" -#: src/Admin.php:195 +#: dist/monoranks/src/Admin.php:244 +#: src/Admin.php:244 msgid "Disconnected. Nothing is sent to MonoRanks any more." msgstr "" -#: src/Admin.php:196 +#: dist/monoranks/src/Admin.php:245 +#: src/Admin.php:245 msgid "Everything MonoRanks stored in WordPress is gone: the connection, the scores, the redirects and the change log." msgstr "" -#: src/Admin.php:197 +#: dist/monoranks/src/Admin.php:246 +#: src/Admin.php:246 msgid "Applied. The change is listed under Recent changes and can be undone." msgstr "" -#: src/Admin.php:198 +#: dist/monoranks/src/Admin.php:247 +#: src/Admin.php:247 msgid "Some fixes were applied; the rest could not be applied. Recent changes lists what was written." msgstr "" -#: src/Admin.php:199 +#: dist/monoranks/src/Admin.php:248 +#: src/Admin.php:248 msgid "That change has moved in the log since this screen loaded. Reload and try Undo again." msgstr "" -#: src/Admin.php:200 +#: dist/monoranks/src/Admin.php:249 +#: src/Admin.php:249 msgid "Undone. The previous value is back." msgstr "" -#: src/Admin.php:201 +#: dist/monoranks/src/Admin.php:250 +#: src/Admin.php:250 msgid "MonoRanks could not apply that change. Open it in MonoRanks to review it again." msgstr "" -#: src/Admin.php:202 +#: dist/monoranks/src/Admin.php:251 +#: src/Admin.php:251 msgid "Nothing was changed: the value in WordPress is not the one that was reviewed. It now needs review in MonoRanks." msgstr "" -#: src/Admin.php:203 +#: dist/monoranks/src/Admin.php:252 +#: src/Admin.php:252 msgid "Some changes were applied. The others no longer match WordPress and need review in MonoRanks." msgstr "" -#: src/Admin.php:204 +#: dist/monoranks/src/Admin.php:253 +#: src/Admin.php:253 msgid "That does not look like a MonoRanks connector key. Copy it again from MonoRanks → Settings → API and MCP." msgstr "" -#: src/Admin.php:205 +#: dist/monoranks/src/Admin.php:254 +#: src/Admin.php:254 msgid "The MonoRanks address must start with https://." msgstr "" -#: src/Admin.php:206 +#: dist/monoranks/src/Admin.php:255 +#: src/Admin.php:255 msgid "MonoRanks did not accept this key. It may have been revoked or replaced; create a new one in MonoRanks." msgstr "" -#: src/Admin.php:207 +#: dist/monoranks/src/Admin.php:256 +#: src/Admin.php:256 msgid "This key belongs to a different website in MonoRanks. Create the key on the website with this address." msgstr "" -#: src/Admin.php:208 +#: dist/monoranks/src/Admin.php:257 +#: src/Admin.php:257 msgid "MonoRanks could not be reached. Check the address and try again." msgstr "" -#: src/Admin.php:209 +#: dist/monoranks/src/Admin.php:258 +#: src/Admin.php:258 msgid "Could not connect. Please try again." msgstr "" +#: dist/monoranks/src/AuthorizeScreen.php:39 #: src/AuthorizeScreen.php:39 msgid "Reads your content and applies only fixes you approve." msgstr "" #. translators: %s: relative time such as "in 5 days" +#: dist/monoranks/src/Column.php:71 #: src/Column.php:71 #, php-format msgid "next audit %s" msgstr "" +#: dist/monoranks/src/Column.php:121 #: src/Column.php:121 msgid "Clicks, 28 days" msgstr "" +#: dist/monoranks/src/Column.php:124 #: src/Column.php:124 msgid "Revenue, 28 days" msgstr "" #. translators: %s: number of links +#: dist/monoranks/src/Column.php:128 #: src/Column.php:128 msgid "Lost links" msgstr "" #. translators: %s: number of links +#: dist/monoranks/src/Column.php:128 #: src/Column.php:128 #, php-format msgid "%s to win back" @@ -441,6 +550,7 @@ msgstr[0] "" msgstr[1] "" #. translators: %s: number of fixes +#: dist/monoranks/src/Column.php:137 #: src/Column.php:137 #, php-format msgid "%s fix ready" @@ -449,6 +559,7 @@ msgstr[0] "" msgstr[1] "" #. translators: %s: number of issues +#: dist/monoranks/src/Column.php:140 #: src/Column.php:140 #, php-format msgid "%s open issue" @@ -457,39 +568,46 @@ msgstr[0] "" msgstr[1] "" #. translators: %s: relative time such as "2 days" +#: dist/monoranks/src/Column.php:146 #: src/Column.php:146 #, php-format msgid "audited %s ago" msgstr "" +#: dist/monoranks/src/Column.php:186 #: src/Column.php:186 msgid "Needs attention" msgstr "" #. translators: %s: a question people ask -#: src/Grow.php:221 +#: dist/monoranks/src/Grow.php:252 +#: src/Grow.php:252 #, php-format msgid "AI answers quote this page for \"%s\"" msgstr "" #. translators: %s: a question people ask -#: src/Grow.php:221 +#: dist/monoranks/src/Grow.php:252 +#: src/Grow.php:252 msgid "AI answers quote this page" msgstr "" #. translators: %s: a search keyword -#: src/Grow.php:225 +#: dist/monoranks/src/Grow.php:256 +#: src/Grow.php:256 #, php-format msgid "A \"best of\" list for \"%s\" that leaves you out" msgstr "" #. translators: %s: a search keyword -#: src/Grow.php:225 +#: dist/monoranks/src/Grow.php:256 +#: src/Grow.php:256 msgid "A \"best of\" list that leaves you out" msgstr "" #. translators: %s: number of competitors -#: src/Grow.php:229 +#: dist/monoranks/src/Grow.php:260 +#: src/Grow.php:260 #, php-format msgid "Links to %s competitor, not to you" msgid_plural "Links to %s of your competitors, not to you" @@ -497,141 +615,177 @@ msgstr[0] "" msgstr[1] "" #. translators: %s: number of competitors -#: src/Grow.php:229 +#: dist/monoranks/src/Grow.php:260 +#: src/Grow.php:260 msgid "Links to your competitors, not to you" msgstr "" #. translators: %s: a page address on this site, like /pricing -#: src/Grow.php:233 +#: dist/monoranks/src/Grow.php:264 +#: src/Grow.php:264 #, php-format msgid "Used to link to %s" msgstr "" #. translators: %s: a page address on this site, like /pricing -#: src/Grow.php:233 +#: dist/monoranks/src/Grow.php:264 +#: src/Grow.php:264 msgid "Used to link to you" msgstr "" -#: src/Grow.php:235 +#: dist/monoranks/src/Grow.php:266 +#: src/Grow.php:266 msgid "Added by hand" msgstr "" +#: dist/monoranks/src/Overview.php:41 +#: dist/monoranks/src/PostPanel.php:152 #: src/Overview.php:41 #: src/PostPanel.php:152 msgid "Title" msgstr "" +#: dist/monoranks/src/Overview.php:42 +#: dist/monoranks/src/PostPanel.php:153 #: src/Overview.php:42 #: src/PostPanel.php:153 msgid "Meta description" msgstr "" +#: dist/monoranks/src/Overview.php:43 +#: dist/monoranks/src/PostPanel.php:156 #: src/Overview.php:43 #: src/PostPanel.php:156 msgid "Canonical" msgstr "" +#: dist/monoranks/src/Overview.php:44 +#: dist/monoranks/src/PostPanel.php:157 #: src/Overview.php:44 #: src/PostPanel.php:157 msgid "Noindex" msgstr "" +#: dist/monoranks/src/Overview.php:45 #: src/Overview.php:45 msgid "Image alt" msgstr "" +#: dist/monoranks/src/Overview.php:46 +#: dist/monoranks/src/PostPanel.php:151 #: src/Overview.php:46 #: src/PostPanel.php:151 msgid "Redirect" msgstr "" +#: dist/monoranks/src/Overview.php:47 #: src/Overview.php:47 msgid "Opening paragraph" msgstr "" +#: dist/monoranks/src/Overview.php:48 #: src/Overview.php:48 msgid "robots.txt" msgstr "" +#: dist/monoranks/src/Overview.php:49 #: src/Overview.php:49 msgid "llms.txt" msgstr "" #. translators: %d: attachment ID +#: dist/monoranks/src/Overview.php:68 #: src/Overview.php:68 #, php-format msgid "Image #%d" msgstr "" +#: dist/monoranks/src/Overview.php:70 #: src/Overview.php:70 #: tmp/i18n/screens/Overview.js:30 msgid "Site" msgstr "" +#: dist/monoranks/src/PostPanel.php:45 #: src/PostPanel.php:45 msgid "MonoRanks could not be reached. Reload the page to try again." msgstr "" +#: dist/monoranks/src/PostPanel.php:46 #: src/PostPanel.php:46 msgid "Loading MonoRanks data…" msgstr "" +#: dist/monoranks/src/PostPanel.php:150 #: src/PostPanel.php:150 msgid "HTTP status" msgstr "" +#: dist/monoranks/src/PostPanel.php:154 #: src/PostPanel.php:154 msgid "H1" msgstr "" +#: dist/monoranks/src/PostPanel.php:155 #: src/PostPanel.php:155 msgid "Headings" msgstr "" +#: dist/monoranks/src/PostPanel.php:158 #: src/PostPanel.php:158 msgid "Robots" msgstr "" +#: dist/monoranks/src/PostPanel.php:159 #: src/PostPanel.php:159 msgid "Word count" msgstr "" +#: dist/monoranks/src/PostPanel.php:160 #: src/PostPanel.php:160 msgid "Structured data" msgstr "" +#: dist/monoranks/src/PostPanel.php:161 #: src/PostPanel.php:161 msgid "Internal links" msgstr "" +#: dist/monoranks/src/PostPanel.php:162 #: src/PostPanel.php:162 #: tmp/i18n/screens/Overview.js:85 msgid "Health score" msgstr "" +#: dist/monoranks/src/PostPanel.php:163 #: src/PostPanel.php:163 #: tmp/i18n/screens/Overview.js:89 msgid "AEO score" msgstr "" #. translators: 1: what changed, such as "Word count", 2: the number before, 3: the number after +#: dist/monoranks/src/PostPanel.php:171 #: src/PostPanel.php:171 #, php-format msgid "%1$s %2$s → %3$s" msgstr "" #. translators: 1: user, 2: date -#: src/Settings.php:44 +#: dist/monoranks/src/Settings.php:102 +#: src/Settings.php:102 #, php-format msgid "set when %1$s connected MonoRanks on %2$s" msgstr "" -#: src/Settings.php:45 +#: dist/monoranks/src/Settings.php:103 +#: src/Settings.php:103 msgid "pasted by hand" msgstr "" -#: src/Settings.php:47 -#: src/Settings.php:48 +#: dist/monoranks/src/Settings.php:105 +#: dist/monoranks/src/Settings.php:106 +#: src/Settings.php:105 +#: src/Settings.php:106 msgid "Never" msgstr "" @@ -639,227 +793,227 @@ msgstr "" msgid "More info" msgstr "" -#: tmp/i18n/screens/Grow.js:18 #: tmp/i18n/screens/Grow.js:26 +#: tmp/i18n/screens/Grow.js:34 msgid "What to do next" msgstr "" -#: tmp/i18n/screens/Grow.js:27 +#: tmp/i18n/screens/Grow.js:35 #, js-format msgid "Updated %s" msgstr "" -#: tmp/i18n/screens/Grow.js:41 +#: tmp/i18n/screens/Grow.js:49 msgid "The MonoRanks key of this site cannot read this yet. Allow it under Integrations in MonoRanks, or connect again." msgstr "" -#: tmp/i18n/screens/Grow.js:41 +#: tmp/i18n/screens/Grow.js:49 msgid "Open Integrations" msgstr "" -#: tmp/i18n/screens/Grow.js:43 +#: tmp/i18n/screens/Grow.js:51 msgid "Not available in your MonoRanks yet." msgstr "" -#: tmp/i18n/screens/Grow.js:45 -msgid "MonoRanks could not be reached. The plugin tries again within the hour." +#: tmp/i18n/screens/Grow.js:53 +msgid "Could not reach MonoRanks. Retrying soon." msgstr "" -#: tmp/i18n/screens/Grow.js:47 -msgid "Still loading. Reload this screen in a minute." +#: tmp/i18n/screens/Grow.js:55 +msgid "Checking…" msgstr "" -#: tmp/i18n/screens/Grow.js:62 +#: tmp/i18n/screens/Grow.js:70 msgid "Outreach" msgstr "" -#: tmp/i18n/screens/Grow.js:62 +#: tmp/i18n/screens/Grow.js:70 #, js-format msgid "%s to contact" msgid_plural "%s to contact" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:62 +#: tmp/i18n/screens/Grow.js:70 msgid "All targets" msgstr "" -#: tmp/i18n/screens/Grow.js:69 +#: tmp/i18n/screens/Grow.js:77 msgid "Every target is contacted. MonoRanks looks for new ones each week." msgstr "" -#: tmp/i18n/screens/Grow.js:70 +#: tmp/i18n/screens/Grow.js:78 msgid "Sites worth asking for a link or a mention. MonoRanks never sends email; you reach out and set the status there." msgstr "" -#: tmp/i18n/screens/Grow.js:71 +#: tmp/i18n/screens/Grow.js:79 msgid "No outreach targets yet. MonoRanks looks for pages worth a link each week." msgstr "" -#: tmp/i18n/screens/Grow.js:76 +#: tmp/i18n/screens/Grow.js:84 msgid "Backlinks" msgstr "" -#: tmp/i18n/screens/Grow.js:76 +#: tmp/i18n/screens/Grow.js:84 msgid "All backlinks" msgstr "" -#: tmp/i18n/screens/Grow.js:81 +#: tmp/i18n/screens/Grow.js:89 msgid "websites linking to you, won and lost in 28 days" msgstr "" -#: tmp/i18n/screens/Grow.js:84 +#: tmp/i18n/screens/Grow.js:92 #, js-format msgid "%s website links to you" msgid_plural "%s websites link to you" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:85 +#: tmp/i18n/screens/Grow.js:93 #, js-format msgid "%s to review for spam" msgid_plural "%s to review for spam" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:88 +#: tmp/i18n/screens/Grow.js:96 msgid "Newest strong links" msgstr "" -#: tmp/i18n/screens/Grow.js:90 +#: tmp/i18n/screens/Grow.js:98 #, js-format msgid "strength %s" msgstr "" -#: tmp/i18n/screens/Grow.js:93 +#: tmp/i18n/screens/Grow.js:101 msgid "No backlink data yet. MonoRanks refreshes it weekly." msgstr "" -#: tmp/i18n/screens/Grow.js:98 +#: tmp/i18n/screens/Grow.js:106 msgid "Competitors" msgstr "" -#: tmp/i18n/screens/Grow.js:98 +#: tmp/i18n/screens/Grow.js:106 #, js-format msgid "%s keyword gap" msgid_plural "%s keyword gaps" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:98 +#: tmp/i18n/screens/Grow.js:106 msgid "All competitors" msgstr "" -#: tmp/i18n/screens/Grow.js:102 +#: tmp/i18n/screens/Grow.js:110 msgid "suggested" msgstr "" -#: tmp/i18n/screens/Grow.js:103 +#: tmp/i18n/screens/Grow.js:111 #, js-format msgid "%1$s shared keyword, %2$s where they rank higher" msgid_plural "%1$s shared keywords, %2$s where they rank higher" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:107 +#: tmp/i18n/screens/Grow.js:115 msgid "They rank for these, you do not" msgstr "" -#: tmp/i18n/screens/Grow.js:109 +#: tmp/i18n/screens/Grow.js:117 #, js-format msgid "%s/mo" msgstr "" -#: tmp/i18n/screens/Grow.js:112 +#: tmp/i18n/screens/Grow.js:120 msgid "No competitors yet. Pick some in MonoRanks to see the keywords they win." msgstr "" -#: tmp/i18n/screens/Grow.js:120 +#: tmp/i18n/screens/Grow.js:128 msgid "up" msgstr "" -#: tmp/i18n/screens/Grow.js:120 +#: tmp/i18n/screens/Grow.js:128 msgid "down" msgstr "" -#: tmp/i18n/screens/Grow.js:121 +#: tmp/i18n/screens/Grow.js:129 #, js-format msgid "%1$s → %2$s" msgstr "" -#: tmp/i18n/screens/Grow.js:124 +#: tmp/i18n/screens/Grow.js:132 msgid "Keyword movers this week" msgstr "" -#: tmp/i18n/screens/Grow.js:124 +#: tmp/i18n/screens/Grow.js:132 msgid "All keywords" msgstr "" -#: tmp/i18n/screens/Grow.js:127 +#: tmp/i18n/screens/Grow.js:135 msgid "Up" msgstr "" -#: tmp/i18n/screens/Grow.js:131 +#: tmp/i18n/screens/Grow.js:139 msgid "Down" msgstr "" -#: tmp/i18n/screens/Grow.js:134 +#: tmp/i18n/screens/Grow.js:142 #, js-format msgid "Your %s tracked keyword held its place this week." msgid_plural "Your %s tracked keywords held their places this week." msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:134 +#: tmp/i18n/screens/Grow.js:142 msgid "No tracked keywords yet. Track some in MonoRanks to see them move here." msgstr "" -#: tmp/i18n/screens/Grow.js:143 +#: tmp/i18n/screens/Grow.js:151 msgid "No reports yet. Create a website report, a client report or a weekly email in MonoRanks to share progress." msgstr "" -#: tmp/i18n/screens/Grow.js:144 -#: tmp/i18n/screens/Grow.js:148 +#: tmp/i18n/screens/Grow.js:152 +#: tmp/i18n/screens/Grow.js:156 msgid "Open reports" msgstr "" -#: tmp/i18n/screens/Grow.js:147 +#: tmp/i18n/screens/Grow.js:155 msgid "Reports" msgstr "" -#: tmp/i18n/screens/Grow.js:152 +#: tmp/i18n/screens/Grow.js:160 msgid "Weekly email" msgstr "" -#: tmp/i18n/screens/Grow.js:154 +#: tmp/i18n/screens/Grow.js:162 #, js-format msgid "Next send %s" msgstr "" -#: tmp/i18n/screens/Grow.js:155 +#: tmp/i18n/screens/Grow.js:163 #, js-format msgid "%s recipient" msgid_plural "%s recipients" msgstr[0] "" msgstr[1] "" -#: tmp/i18n/screens/Grow.js:156 +#: tmp/i18n/screens/Grow.js:164 msgid "On" msgstr "" -#: tmp/i18n/screens/Grow.js:156 +#: tmp/i18n/screens/Grow.js:164 msgid "Off" msgstr "" -#: tmp/i18n/screens/Grow.js:160 +#: tmp/i18n/screens/Grow.js:168 msgid "Client report" msgstr "" -#: tmp/i18n/screens/Grow.js:160 +#: tmp/i18n/screens/Grow.js:168 msgid "Report" msgstr "" -#: tmp/i18n/screens/Grow.js:161 +#: tmp/i18n/screens/Grow.js:169 msgid "Open report" msgstr "" @@ -1091,12 +1245,6 @@ msgstr "" msgid "Sign in and approve. Takes a minute." msgstr "" -#: tmp/i18n/screens/Overview.js:183 -#: tmp/i18n/screens/Settings.js:98 -#: tmp/i18n/screens/Settings.js:161 -msgid "Connect" -msgstr "" - #: tmp/i18n/screens/Overview.js:184 #: tmp/i18n/screens/Settings.js:99 msgid "Or paste a connector key" @@ -1223,6 +1371,18 @@ msgstr "" msgid "Revoke" msgstr "" +#: tmp/i18n/screens/Settings.js:90 +msgid "Not set up" +msgstr "" + +#: tmp/i18n/screens/Settings.js:90 +msgid "Approve MonoRanks in WordPress so it can write the fixes you accept." +msgstr "" + +#: tmp/i18n/screens/Settings.js:90 +msgid "Allow" +msgstr "" + #: tmp/i18n/screens/Settings.js:91 msgid "Works with" msgstr "" @@ -1338,6 +1498,10 @@ msgstr "" msgid "MonoRanks address (development sites only)" msgstr "" +#: tmp/i18n/screens/Settings.js:161 +msgid "Save key" +msgstr "" + #: tmp/i18n/shell/ChangeLog.js:8 msgid "No changes yet" msgstr "" diff --git a/monoranks.php b/monoranks.php index 52ead5a..628dc9e 100644 --- a/monoranks.php +++ b/monoranks.php @@ -4,7 +4,7 @@ * Description: Connects this site to MonoRanks (SEO, AEO and GEO audits): sends published content metadata and applies the fixes you approve there, with undo. * Plugin URI: https://monoranks.com/product/wordpress/ * Author URI: https://veronalabs.com/ - * Version: 0.1.24 + * Version: 0.1.25 * Requires at least: 6.0 * Requires PHP: 7.4 * Author: VeronaLabs @@ -26,7 +26,7 @@ return; } -define( 'MONORANKS_CONNECTOR_VERSION', '0.1.24' ); +define( 'MONORANKS_CONNECTOR_VERSION', '0.1.25' ); define( 'MONORANKS_CONNECTOR_FILE', __FILE__ ); // MonoRanks address used when a key is pasted by hand. The download build sets it; wp-config.php may override it. if ( ! defined( 'MONORANKS_API_BASE' ) ) { diff --git a/readme.txt b/readme.txt index f597fc0..6ea0a1a 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: seo, ai-seo, seo-audit, aeo, geo Requires at least: 6.0 Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 0.1.24 +Stable tag: 0.1.25 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -167,6 +167,14 @@ Please report security bugs found in the source code of the MonoRanks plugin thr == Changelog == += 0.1.25 - 2026-10-25 = +* **New:** After activation, the plugin opens its MonoRanks screen, and the Plugins list shows a Connect link. +* **Fix:** Settings shows "Fixes: Not set up" with an Allow link when no MonoRanks app password exists, instead of saying fixes are written with one. +* **Fix:** The "What to do next" cards show "Checking…" after one slow answer and try again within minutes, not an hour. +* **Fix:** No "Could not connect" message on a site that is already connected. +* **Enhancement:** Connect opens MonoRanks in the same tab and comes back there. +* **Enhancement:** The connector key button now reads "Save key". + = 0.1.24 - 2026-10-23 = * **New:** Category, tag and product category pages are sent to MonoRanks with their SEO title and meta description. * **New:** MonoRanks can write and undo the SEO title and meta description of these pages in Rank Math and Yoast SEO. Without an SEO plugin, it writes the category description. diff --git a/resources/admin/src/lib/api.ts b/resources/admin/src/lib/api.ts index 3bb8d66..f65ea80 100644 --- a/resources/admin/src/lib/api.ts +++ b/resources/admin/src/lib/api.ts @@ -35,6 +35,10 @@ export type SettingsData = { key_hint: string; key_via: string; api_base: string; last_sent: string; last_sent_short: string; last_sent_date: string; last_error: string; sending: null | { page: number; pages: number }; items: number; next_audit: string; seo_plugin: string; seo_supported: boolean; profile_url: string; show_address: boolean; app_url: string; connect_url: string; log: LogRow[]; labels: Record; + /** The MonoRanks Application Password fixes are written with: whether any admin has one, and where to revoke it. */ + app_password: { exists: boolean; revoke_url: string; available: boolean }; + /** MonoRanks' approve step for this website, for "Allow" when fixes are not set up. */ + allow_url: string; }; /** One Grow section's state: ok, empty (no data yet), no_access (the key lacks the read scope), off, error, pending. */ diff --git a/resources/admin/src/screens/Grow.tsx b/resources/admin/src/screens/Grow.tsx index 3e32c8a..d513997 100644 --- a/resources/admin/src/screens/Grow.tsx +++ b/resources/admin/src/screens/Grow.tsx @@ -8,6 +8,7 @@ import { out } from '@/lib/links'; import { fmt } from '@/lib/format'; const ext = { target: '_blank', rel: 'noopener' } as const; +const SECTIONS = ['outreach', 'backlinks', 'competitors', 'keywords', 'report'] as const; /** * "What to do next" on the Overview: outreach targets to contact, backlinks won and lost, competitors and the keywords @@ -18,9 +19,18 @@ export function GrowCards() { const [data, setData] = useState(null); const [failed, setFailed] = useState(false); + // A card still "checking" (the first answer was slow, or MonoRanks finishes it in the background) is asked again a few + // times, a minute apart, so it fills in without a reload. The plugin itself decides when MonoRanks is really called. + const [tries, setTries] = useState(0); useEffect(() => { api.grow().then(setData).catch(() => setFailed(true)); - }, []); + }, [tries]); + const checking = !!data?.connected && SECTIONS.some((k) => data[k]?.state === 'pending'); + useEffect(() => { + if (!checking || tries >= 4) return; + const timer = window.setTimeout(() => setTries((n) => n + 1), 60 * 1000); + return () => window.clearTimeout(timer); + }, [checking, tries]); if (failed) return null; if (!data) { @@ -58,9 +68,9 @@ function StateLine({ state, scope, empty }: { state: GrowState; scope: string; e } else if (state === 'off') { text = __('Not available in your MonoRanks yet.', 'monoranks'); } else if (state === 'error') { - text = __('MonoRanks could not be reached. The plugin tries again within the hour.', 'monoranks'); + text = __('Could not reach MonoRanks. Retrying soon.', 'monoranks'); } else if (state === 'pending') { - text = __('Still loading. Reload this screen in a minute.', 'monoranks'); + return

{__('Checking…', 'monoranks')}

; } return

{text}

; } diff --git a/resources/admin/src/screens/Overview.tsx b/resources/admin/src/screens/Overview.tsx index 30c76ba..c72b570 100644 --- a/resources/admin/src/screens/Overview.tsx +++ b/resources/admin/src/screens/Overview.tsx @@ -229,7 +229,7 @@ export function ConnectSteps({ revoked, go }: { revoked: boolean; go: (next: Scr {revoked ? __('Connect MonoRanks again', 'monoranks') : __('Connect MonoRanks', 'monoranks')}{revoked ? __('Key revoked', 'monoranks') : __('Not connected', 'monoranks')} - {__('Connect to MonoRanks', 'monoranks')}{__('Sign in and approve. Takes a minute.', 'monoranks')} + {__('Connect to MonoRanks', 'monoranks')}{__('Sign in and approve. Takes a minute.', 'monoranks')} {__('Or paste a connector key', 'monoranks')} {__('See scores here and in your Posts list', 'monoranks')} diff --git a/resources/admin/src/screens/Settings.tsx b/resources/admin/src/screens/Settings.tsx index 143dcf5..a096533 100644 --- a/resources/admin/src/screens/Settings.tsx +++ b/resources/admin/src/screens/Settings.tsx @@ -30,8 +30,8 @@ export function Settings({ go }: { go: (next: Screen) => void }) { api.settings().then((d) => { setData(d); setKeyOpen(d.revoked); }).catch((e) => setError(errorText(e, __('Could not load the settings.', 'monoranks')))); }, []); - // After Connect opens MonoRanks in another tab, check every few seconds (while this tab is visible) so the page shows - // Connected by itself once the person approves there. Gives up after 10 minutes. + // Connect opens MonoRanks in this tab and comes back here. If the person opened it in another tab anyway (middle click), + // check every few seconds while this tab is visible, so the page shows Connected by itself. Gives up after 10 minutes. const [waitingSince, setWaitingSince] = useState(null); useEffect(() => { if (waitingSince === null || data?.connected) return; @@ -85,7 +85,9 @@ export function Settings({ go }: { go: (next: Screen) => void }) { [__('Connector key', 'monoranks'), {data.key_hint}], [__('Last sync', 'monoranks'), {data.last_sent_date ? {data.last_sent_short} : {data.last_sent_short}}{data.sending && {sprintf(__('sending, batch %1$s of %2$s', 'monoranks'), fmt(data.sending.page), fmt(Math.max(1, data.sending.pages)))}}{data.items > 0 && {sprintf(_n('%s published item', '%s published items', data.items, 'monoranks'), fmt(data.items))}}{data.last_error && {data.last_error}}], ...(data.next_audit ? [[__('Next audit', 'monoranks'), data.next_audit] as [string, React.ReactNode]] : []), - [__('Fixes written with', 'monoranks'), {__('App password', 'monoranks')}{__('Revoke', 'monoranks')}], + data.app_password?.exists + ? [__('Fixes written with', 'monoranks'), {__('App password', 'monoranks')}{__('Revoke', 'monoranks')}] + : [__('Fixes', 'monoranks'), {__('Not set up', 'monoranks')}{data.app_password?.available !== false && {__('Allow', 'monoranks')}}], [__('Works with', 'monoranks'), data.seo_plugin && !data.seo_supported ? {sprintf(__('%s detected', 'monoranks'), data.seo_plugin)} : data.seo_plugin @@ -99,7 +101,7 @@ export function Settings({ go }: { go: (next: Screen) => void }) { ) : ( <> - {__('Connect to MonoRanks', 'monoranks')}{__('Sign in and approve. Takes a minute.', 'monoranks')} + {__('Connect to MonoRanks', 'monoranks')}{__('Sign in and approve. Takes a minute.', 'monoranks')} {__('Or paste a connector key', 'monoranks')} run('connect', () => api.connect(key, base))} /> )} @@ -169,7 +171,7 @@ function KeyForm({ data, busy, hint, onSubmit }: { data: SettingsData; busy: str
{hint && } setKey(e.target.value)} />
{data.show_address &&
setBase(e.target.value)} />
} -
+
); } diff --git a/src/Admin.php b/src/Admin.php index 531b654..dc7123b 100644 --- a/src/Admin.php +++ b/src/Admin.php @@ -28,6 +28,55 @@ public static function register() { add_filter( 'admin_body_class', array( __CLASS__, 'body_class' ) ); add_filter( 'admin_footer_text', array( __CLASS__, 'footer_text' ), 100 ); add_filter( 'update_footer', array( __CLASS__, 'footer_text' ), 100 ); + add_action( 'activated_plugin', array( __CLASS__, 'activated' ), 10, 2 ); + add_action( 'admin_init', array( __CLASS__, 'after_activation' ) ); + add_filter( 'plugin_action_links_' . plugin_basename( MONORANKS_CONNECTOR_FILE ), array( __CLASS__, 'action_links' ) ); + } + + /** Set on activation for the user who activated the plugin; read once on their next admin screen. */ + const ACTIVATION_REDIRECT = 'monoranks_activation_redirect'; + + /** + * Activating this plugin by itself, from the Plugins screen of a single site, opens the MonoRanks screen next. Bulk and + * network activation, WP-CLI, and users who cannot manage options stay where they are. + */ + public static function activated( $plugin, $network_wide = false ) { + if ( plugin_basename( MONORANKS_CONNECTOR_FILE ) !== $plugin || $network_wide || is_multisite() ) { + return; + } + if ( ( defined( 'WP_CLI' ) && WP_CLI ) || wp_doing_ajax() || ! current_user_can( 'manage_options' ) ) { + return; + } + // phpcs:ignore WordPress.Security.NonceVerification -- reading which list action ran; WordPress checked its nonce + $action = isset( $_REQUEST['action'] ) ? sanitize_key( wp_unslash( $_REQUEST['action'] ) ) : ''; + if ( 'activate-selected' === $action || isset( $_GET['activate-multi'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended + return; + } + set_transient( self::ACTIVATION_REDIRECT, get_current_user_id(), 60 ); + } + + /** The one redirect after activation: once, for the same user, on a normal admin page load. */ + public static function after_activation() { + $user = get_transient( self::ACTIVATION_REDIRECT ); + if ( false === $user ) { + return; + } + if ( wp_doing_ajax() || ( function_exists( 'wp_doing_cron' ) && wp_doing_cron() ) || is_network_admin() ) { + return; + } + delete_transient( self::ACTIVATION_REDIRECT ); + if ( (int) $user !== get_current_user_id() || ! current_user_can( 'manage_options' ) || isset( $_GET['activate-multi'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended + return; + } + wp_safe_redirect( Connection::has_key() ? self::overview_url() : self::settings_url() ); + exit; + } + + /** The plugin's row on the Plugins screen: Connect while not connected, Settings after. */ + public static function action_links( $links ) { + $label = Connection::has_key() ? __( 'Settings', 'monoranks' ) : __( 'Connect', 'monoranks' ); + array_unshift( $links, '' . esc_html( $label ) . '' ); + return $links; } /** @@ -213,6 +262,10 @@ public static function notice_for( $code ) { public static function notice() { $code = isset( $_GET['monoranks'] ) ? sanitize_key( wp_unslash( $_GET['monoranks'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display only + // An old or reused connect link fails its state check, but a site that is connected has nothing to try again. + if ( 'connect_failed' === $code && Connection::has_key() ) { + return null; + } return $code ? self::notice_for( $code ) : null; } diff --git a/src/Grow.php b/src/Grow.php index 7f44220..b531763 100644 --- a/src/Grow.php +++ b/src/Grow.php @@ -17,7 +17,8 @@ class Grow { const LOCK = 'monoranks_grow_lock'; const REFRESH_HOOK = 'monoranks_grow_refresh'; const FRESH_FOR = 6 * HOUR_IN_SECONDS; - const RETRY_AFTER = HOUR_IN_SECONDS; + /** A pull with a failed section is tried again after 2 minutes, then 10, then every hour (fails counts them). */ + const RETRY_STEPS = array( 2 * MINUTE_IN_SECONDS, 10 * MINUTE_IN_SECONDS, HOUR_IN_SECONDS ); const KEEP_FOR = 3 * DAY_IN_SECONDS; const SECTIONS = array( 'outreach', 'backlinks', 'competitors', 'keywords', 'report' ); @@ -31,20 +32,35 @@ public static function cached() { return is_array( $c ) ? $c : array(); } - /** True when the cache is missing, older than six hours, or has a section that failed more than an hour ago. */ + /** True when a section of the cache failed or is still missing. */ + public static function has_gaps( array $cache ) { + foreach ( self::SECTIONS as $s ) { + if ( ! isset( $cache[ $s ]['state'] ) || in_array( $cache[ $s ]['state'], array( 'error', 'pending' ), true ) ) { + return true; + } + } + return false; + } + + /** Seconds to wait before pulling again after $fails failed pulls in a row: 2 minutes, 10 minutes, then an hour. */ + public static function retry_after( $fails ) { + $fails = max( 1, (int) $fails ); + return self::RETRY_STEPS[ min( $fails, count( self::RETRY_STEPS ) ) - 1 ]; + } + + /** + * True when the cache is missing, older than six hours, or has a failed section older than its retry delay (2 minutes + * after the first failure, 10 after the second, an hour after that), so one slow answer does not hide a card for an hour + * and a MonoRanks that is down is not asked on every screen load. + */ public static function is_stale( array $cache, $now = null ) { $now = null === $now ? time() : (int) $now; $at = isset( $cache['fetched_at'] ) ? strtotime( (string) $cache['fetched_at'] ) : 0; if ( ! $at ) { return true; } - $failed = false; - foreach ( self::SECTIONS as $s ) { - if ( ! isset( $cache[ $s ]['state'] ) || in_array( $cache[ $s ]['state'], array( 'error', 'pending' ), true ) ) { - $failed = true; - } - } - return $now - $at >= ( $failed ? self::RETRY_AFTER : self::FRESH_FOR ); + $wait = self::has_gaps( $cache ) ? self::retry_after( isset( $cache['fails'] ) ? $cache['fails'] : 1 ) : self::FRESH_FOR; + return $now - $at >= $wait; } /** @@ -57,11 +73,17 @@ public static function data() { } $cache = self::cached(); if ( self::is_stale( $cache ) ) { - $cache = self::refresh( 5, 12 ); + // The first pull (nothing cached yet) gets more time: a MonoRanks that answers slowly once is not an error. + $cache = empty( $cache['fetched_at'] ) ? self::refresh( 10, 20 ) : self::refresh( 5, 12 ); } $out = array( 'connected' => true ); + // After one failed pull a section reads "checking", not "could not be reached": the next try is minutes away. + $first_fail = isset( $cache['fails'] ) && (int) $cache['fails'] <= 1; foreach ( self::SECTIONS as $s ) { $out[ $s ] = isset( $cache[ $s ] ) && is_array( $cache[ $s ] ) ? $cache[ $s ] : array( 'state' => 'pending' ); + if ( $first_fail && 'error' === $out[ $s ]['state'] ) { + $out[ $s ] = array( 'state' => 'pending' ); + } } if ( 'ok' === $out['report']['state'] ) { $out['report']['when'] = Admin::ago( $out['report']['created_at'] ); @@ -110,11 +132,20 @@ public static function refresh( $timeout = 10, $budget = 0 ) { } $cache[ $s ] = call_user_func( array( __CLASS__, 'pull_' . $s ), $timeout ); } + $failed = false; + foreach ( self::SECTIONS as $s ) { + if ( isset( $cache[ $s ]['state'] ) && 'error' === $cache[ $s ]['state'] ) { + $failed = true; + } + } + $cache['fails'] = $failed ? ( isset( $cache['fails'] ) ? (int) $cache['fails'] : 0 ) + 1 : 0; $cache['fetched_at'] = gmdate( 'c' ); set_transient( self::CACHE, $cache, self::KEEP_FOR ); delete_transient( self::LOCK ); - if ( $left && ! wp_next_scheduled( self::REFRESH_HOOK ) ) { - wp_schedule_single_event( time() + 30, self::REFRESH_HOOK ); + // Sections left for later are finished in 30 seconds; a failed one is tried again after its retry delay, so the card + // fills in without anyone reloading. One event at a time keeps MonoRanks from being asked more often. + if ( ( $left || $failed ) && ! wp_next_scheduled( self::REFRESH_HOOK ) ) { + wp_schedule_single_event( time() + ( $failed ? self::retry_after( $cache['fails'] ) : 30 ), self::REFRESH_HOOK ); spawn_cron(); } return $cache; diff --git a/src/Settings.php b/src/Settings.php index 9bf5729..8c32f61 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -27,6 +27,64 @@ public static function connect_url( $base = '' ) { return $base . '/connect/wordpress?site=' . rawurlencode( untrailingslashit( home_url( '/' ) ) ) . '&return=' . rawurlencode( Admin::settings_url() ) . ( $state ? '&state=' . $state : '' ); } + /** + * The Application Password MonoRanks writes fixes with, if one exists. MonoRanks' approve step creates it for the admin + * who approves, so every user who can manage options is checked, the current one first. A site connected with a one-time + * code or a pasted key has none until someone approves. + * + * @return array{exists:bool, revoke_url:string, available:bool} + */ + public static function app_password() { + $available = function_exists( 'wp_is_application_passwords_available' ) ? (bool) wp_is_application_passwords_available() : false; + $none = array( 'exists' => false, 'revoke_url' => '', 'available' => $available ); + if ( ! class_exists( 'WP_Application_Passwords' ) ) { + return $none; + } + $me = get_current_user_id(); + $users = array_map( 'intval', (array) get_users( array( 'capability' => 'manage_options', 'fields' => 'ID', 'number' => 100 ) ) ); + usort( $users, static function ( $a, $b ) use ( $me ) { return (int) ( $b === $me ) - (int) ( $a === $me ); } ); + foreach ( $users as $user_id ) { + foreach ( (array) \WP_Application_Passwords::get_user_application_passwords( $user_id ) as $item ) { + if ( self::is_monoranks_password( $item ) ) { + $url = $user_id === $me ? admin_url( 'profile.php' ) : admin_url( 'user-edit.php?user_id=' . $user_id ); + return array( 'exists' => true, 'revoke_url' => $url . '#application-passwords-section', 'available' => $available ); + } + } + } + return $none; + } + + /** One Application Password is MonoRanks': made with MonoRanks' app id, or (older approvals) named MonoRanks. */ + public static function is_monoranks_password( $item ) { + if ( ! is_array( $item ) ) { + return false; + } + if ( ! empty( $item['app_id'] ) && is_string( $item['app_id'] ) ) { + return 0 === strcasecmp( $item['app_id'], AuthorizeScreen::APP_ID ); + } + return isset( $item['name'] ) && is_string( $item['name'] ) && 0 === strcasecmp( trim( $item['name'] ), 'MonoRanks' ); + } + + /** + * Where "Allow" goes when fixes are not set up: MonoRanks' approve step for this website ({base}/api/wordpress/start), + * which opens WordPress's own approve screen and comes back to Settings. A site connected with a one-time code or a key + * is already connected in MonoRanks, so the connect page would only say so. Without the website's id: the connect link. + */ + public static function allow_url( $base = '' ) { + $conn = Connection::get(); + $base = untrailingslashit( $base ? (string) $base : ( ! empty( $conn['api_base'] ) ? $conn['api_base'] : MONORANKS_API_BASE ) ); + $site_id = isset( $conn['site_id'] ) ? (string) $conn['site_id'] : ''; + if ( '' === $site_id ) { + return self::connect_url( $base ); + } + $state = Handoff::state( $base ); + $query = array( 'site' => $site_id, 'wp' => untrailingslashit( home_url( '/' ) ), 'connect' => '1', 'return' => Admin::settings_url() ); + if ( $state ) { + $query['state'] = $state; + } + return $base . '/api/wordpress/start?' . http_build_query( $query, '', '&', PHP_QUERY_RFC3986 ); + } + public static function data() { $conn = Connection::get(); $connected = Connection::has_key(); @@ -54,6 +112,8 @@ public static function data() { 'seo_plugin' => SeoFields::plugin_name(), 'seo_supported' => SeoFields::supported(), 'profile_url' => admin_url( 'profile.php#application-passwords-section' ), + 'app_password' => $connected ? self::app_password() : array( 'exists' => false, 'revoke_url' => '', 'available' => false ), + 'allow_url' => $connected ? self::allow_url( $conn['api_base'] ) : '', 'show_address' => Admin::shows_address_field(), 'app_url' => $connected ? $conn['api_base'] : MONORANKS_API_BASE, 'connect_url' => self::connect_url( $connected ? $conn['api_base'] : MONORANKS_API_BASE ), diff --git a/tests/e2e/plugin.spec.ts b/tests/e2e/plugin.spec.ts index 06ff9a4..5958b63 100644 --- a/tests/e2e/plugin.spec.ts +++ b/tests/e2e/plugin.spec.ts @@ -17,7 +17,7 @@ test('settings page renders and rejects a malformed key', async ({ page }) => { await expect(page.getByRole('img', { name: 'MonoRanks' }).first()).toBeVisible(); await expect(page.getByText('Not connected', { exact: true })).toBeVisible(); await page.fill('#monoranks-key', 'not-a-key'); - await page.getByRole('button', { name: 'Connect' }).click(); + await page.getByRole('button', { name: 'Save key' }).click(); await expect(page.locator('.notice-error')).toContainText('does not look like a MonoRanks connector key'); await expect(page.getByText('Not connected', { exact: true })).toBeVisible(); }); @@ -36,6 +36,14 @@ test('overview and settings are one app: switching screens changes the URL witho await expect(page.getByRole('heading', { name: 'Overview', level: 1 })).toBeVisible(); }); +test('the Plugins screen offers Connect while not connected, and Connect stays in this tab', async ({ page }) => { + await page.goto('/wp-admin/plugins.php'); + const row = page.locator('tr[data-plugin$="/monoranks.php"]'); + await expect(row.getByRole('link', { name: 'Connect', exact: true })).toHaveAttribute('href', /page=monoranks-settings/); + await page.goto('/wp-admin/admin.php?page=monoranks-settings'); + await expect(page.getByRole('link', { name: 'Connect', exact: true })).toHaveAttribute('target', '_self'); +}); + test('the posts list has a MonoRanks column with a hover card', async ({ page }) => { await page.goto('/wp-admin/edit.php'); await expect(page.locator('th#monoranks')).toContainText('MonoRanks'); diff --git a/tests/integration/AppPasswordTest.php b/tests/integration/AppPasswordTest.php new file mode 100644 index 0000000..810e87f --- /dev/null +++ b/tests/integration/AppPasswordTest.php @@ -0,0 +1,56 @@ +markTestSkipped( 'Set MONORANKS_WP_PATH to a local WordPress install to run the integration tests.' ); + } + defined( 'MONORANKS_CONNECTOR_VERSION' ) || define( 'MONORANKS_CONNECTOR_VERSION', 'test' ); + defined( 'MONORANKS_CONNECTOR_FILE' ) || define( 'MONORANKS_CONNECTOR_FILE', dirname( __DIR__, 2 ) . '/monoranks.php' ); + defined( 'MONORANKS_API_BASE' ) || define( 'MONORANKS_API_BASE', 'https://app.monoranks.com' ); + require_once ABSPATH . 'wp-admin/includes/user.php'; + } + + protected function tear_down() { + foreach ( $this->users as $id ) { + wp_delete_user( $id ); + } + wp_set_current_user( 0 ); + parent::tear_down(); + } + + private function admin( $login ) { + $id = wp_insert_user( array( 'user_login' => $login . wp_generate_password( 6, false ), 'user_pass' => wp_generate_password(), 'role' => 'administrator' ) ); + $this->users[] = $id; + return $id; + } + + public function test_only_a_monoranks_application_password_counts() { + $me = $this->admin( 'mr-me-' ); + $other = $this->admin( 'mr-other-' ); + wp_set_current_user( $me ); + \WP_Application_Passwords::create_new_application_password( $me, array( 'name' => 'Some other app', 'app_id' => wp_generate_uuid4() ) ); + $this->assertFalse( Settings::app_password()['exists'], 'another app\'s password is not MonoRanks\'' ); + + \WP_Application_Passwords::create_new_application_password( $other, array( 'name' => 'MonoRanks', 'app_id' => AuthorizeScreen::APP_ID ) ); + $got = Settings::app_password(); + $this->assertTrue( $got['exists'], 'approved by another admin still counts' ); + $this->assertStringContainsString( 'user-edit.php?user_id=' . $other, $got['revoke_url'] ); + + \WP_Application_Passwords::delete_all_application_passwords( $other ); + $this->assertFalse( Settings::app_password()['exists'] ); + } +} diff --git a/tests/unit/AdminTest.php b/tests/unit/AdminTest.php index da49f69..d432b92 100644 --- a/tests/unit/AdminTest.php +++ b/tests/unit/AdminTest.php @@ -54,4 +54,83 @@ public function test_last_sync_time_is_short_and_the_date_is_separate() { $this->assertSame( 'Never', Admin::ago_short( '', 'Never' ) ); $this->assertSame( '', Admin::date_of( '' ) ); } + + private function activation_env( array $over = array() ) { + $o = array_merge( array( 'multisite' => false, 'ajax' => false, 'can' => true ), $over ); + Functions\when( 'plugin_basename' )->justReturn( 'monoranks/monoranks.php' ); + Functions\when( 'is_multisite' )->justReturn( $o['multisite'] ); + Functions\when( 'wp_doing_ajax' )->justReturn( $o['ajax'] ); + Functions\when( 'current_user_can' )->justReturn( $o['can'] ); + Functions\when( 'get_current_user_id' )->justReturn( 3 ); + Functions\when( 'sanitize_key' )->alias( static function ( $k ) { return strtolower( (string) $k ); } ); + Functions\when( 'wp_unslash' )->returnArg(); + } + + public function test_activating_this_plugin_alone_sets_a_one_time_redirect() { + $this->activation_env(); + Functions\expect( 'set_transient' )->once()->with( Admin::ACTIVATION_REDIRECT, 3, 60 ); + Admin::activated( 'monoranks/monoranks.php', false ); + $this->addToAssertionCount( 1 ); + } + + public function test_no_redirect_for_other_plugins_network_bulk_or_non_admins() { + Functions\expect( 'set_transient' )->never(); + $this->activation_env(); + Admin::activated( 'akismet/akismet.php', false ); + Admin::activated( 'monoranks/monoranks.php', true ); + $_REQUEST['action'] = 'activate-selected'; + Admin::activated( 'monoranks/monoranks.php', false ); + unset( $_REQUEST['action'] ); + $this->activation_env( array( 'multisite' => true ) ); + Admin::activated( 'monoranks/monoranks.php', false ); + $this->activation_env( array( 'can' => false ) ); + Admin::activated( 'monoranks/monoranks.php', false ); + $this->activation_env( array( 'ajax' => true ) ); + Admin::activated( 'monoranks/monoranks.php', false ); + $this->addToAssertionCount( 1 ); + } + + public function test_the_redirect_is_used_once_and_only_by_the_same_user() { + $this->activation_env(); + Functions\when( 'is_network_admin' )->justReturn( false ); + Functions\when( 'wp_doing_cron' )->justReturn( false ); + Functions\when( 'get_transient' )->justReturn( 9 ); + Functions\expect( 'delete_transient' )->once()->with( Admin::ACTIVATION_REDIRECT ); + Functions\expect( 'wp_safe_redirect' )->never(); + Admin::after_activation(); + $this->addToAssertionCount( 1 ); + } + + public function test_no_transient_no_redirect() { + Functions\when( 'get_transient' )->justReturn( false ); + Functions\expect( 'wp_safe_redirect' )->never(); + Functions\expect( 'delete_transient' )->never(); + Admin::after_activation(); + $this->addToAssertionCount( 1 ); + } + + public function test_plugin_row_says_connect_until_connected_then_settings() { + Functions\when( 'admin_url' )->alias( static function ( $p ) { return 'https://example.com/wp-admin/' . $p; } ); + Functions\when( 'esc_url' )->returnArg(); + Functions\when( 'esc_html' )->returnArg(); + Functions\when( '__' )->returnArg(); + Functions\when( 'get_option' )->justReturn( array() ); + $links = Admin::action_links( array( 'deactivate' => 'Deactivate' ) ); + $this->assertSame( 'Connect', $links[0] ); + $this->assertCount( 2, $links ); + Functions\when( 'get_option' )->justReturn( array( 'api_base' => 'https://app.monoranks.com', 'key' => 'mr_ws_' . str_repeat( 'a', 30 ) ) ); + $this->assertStringContainsString( '>Settings', Admin::action_links( array() )[0] ); + } + + public function test_a_failed_connect_notice_is_hidden_when_the_site_is_connected() { + Functions\when( 'sanitize_key' )->returnArg(); + Functions\when( 'wp_unslash' )->returnArg(); + Functions\when( '__' )->returnArg(); + $_GET['monoranks'] = 'connect_failed'; + Functions\when( 'get_option' )->justReturn( array() ); + $this->assertSame( 'error', Admin::notice()['type'] ); + Functions\when( 'get_option' )->justReturn( array( 'api_base' => 'https://app.monoranks.com', 'key' => 'mr_ws_' . str_repeat( 'a', 30 ) ) ); + $this->assertNull( Admin::notice() ); + unset( $_GET['monoranks'] ); + } } diff --git a/tests/unit/GrowTest.php b/tests/unit/GrowTest.php index 693fbf4..a8f52eb 100644 --- a/tests/unit/GrowTest.php +++ b/tests/unit/GrowTest.php @@ -224,11 +224,62 @@ public function test_refresh_reads_every_section_and_caches_them() { $this->assertSame( $cache, $this->transients[ Grow::CACHE ] ); // Outreach, backlinks, competitors and their gaps, keywords (stops at the first refusal), reports. $this->assertCount( 6, $this->called ); - // A section that failed is asked again within the hour, not after six. - $this->assertFalse( Grow::is_stale( $cache, time() + 30 * 60 ) ); + // A section that failed is asked again within minutes after the first failure, not after an hour or six. + $this->assertSame( 1, $cache['fails'] ); + $this->assertFalse( Grow::is_stale( $cache, time() + 60 ) ); + $this->assertTrue( Grow::is_stale( $cache, time() + 3 * 60 ) ); + } + + public function test_retries_back_off_after_each_failed_pull() { + $this->assertSame( 120, Grow::retry_after( 1 ) ); + $this->assertSame( 600, Grow::retry_after( 2 ) ); + $this->assertSame( 3600, Grow::retry_after( 3 ) ); + $this->assertSame( 3600, Grow::retry_after( 9 ) ); + $cache = array( 'fetched_at' => gmdate( 'c' ), 'fails' => 3 ); + foreach ( Grow::SECTIONS as $s ) { + $cache[ $s ] = array( 'state' => 'error' ); + } + $this->assertFalse( Grow::is_stale( $cache, time() + 30 * 60 ), 'a MonoRanks that keeps failing is asked hourly' ); $this->assertTrue( Grow::is_stale( $cache, time() + 61 * 60 ) ); } + public function test_failed_pulls_count_up_and_a_good_one_resets() { + $this->connect(); + $this->answer( array( '#/#' => array( 500, array( 'error' => array( 'code' => 'internal', 'message' => 'x' ) ) ) ) ); + $this->assertSame( 1, Grow::refresh()['fails'] ); + $this->assertSame( 2, Grow::refresh()['fails'] ); + $this->answer( array( '#/#' => array( 200, array() ) ) ); + $this->assertSame( 0, Grow::refresh()['fails'] ); + } + + public function test_a_failed_pull_schedules_its_own_retry() { + $this->connect(); + $this->answer( array( '#/#' => array( 500, array( 'error' => array( 'code' => 'internal', 'message' => 'x' ) ) ) ) ); + $at = null; + Functions\when( 'wp_schedule_single_event' )->alias( static function ( $time ) use ( &$at ) { $at = $time; return true; } ); + Grow::refresh(); + $this->assertNotNull( $at ); + $this->assertEqualsWithDelta( time() + 120, $at, 5 ); + } + + public function test_first_failure_reads_as_checking_and_later_ones_as_errors() { + $this->connect(); + $this->answer( array( '#/#' => array( 500, array( 'error' => array( 'code' => 'internal', 'message' => 'x' ) ) ) ) ); + $data = Grow::data(); + $this->assertSame( 'pending', $data['outreach']['state'], 'one slow or failed answer is not shown as an error' ); + $this->transients[ Grow::CACHE ]['fetched_at'] = gmdate( 'c', time() - 5 * 60 ); + $data = Grow::data(); + $this->assertSame( 'error', $data['outreach']['state'] ); + } + + public function test_first_pull_gets_a_longer_timeout() { + $this->connect(); + $timeouts = array(); + Functions\when( 'wp_remote_get' )->alias( static function ( $url, $args ) use ( &$timeouts ) { $timeouts[] = $args['timeout']; return array( 'code' => 200, 'body' => '{}' ); } ); + Grow::data(); + $this->assertSame( 10, $timeouts[0] ); + } + public function test_a_second_pull_while_one_runs_does_nothing() { $this->connect(); $this->transients[ Grow::LOCK ] = 1; diff --git a/tests/unit/SettingsTest.php b/tests/unit/SettingsTest.php index 9e30de0..af6c782 100644 --- a/tests/unit/SettingsTest.php +++ b/tests/unit/SettingsTest.php @@ -50,4 +50,43 @@ public function test_connect_link_carries_the_users_state_and_keeps_it_while_it_ $this->assertSame( 'https://app.monoranks.com', $store['monoranks_connect_7']['base'] ); $this->assertNotSame( substr( $url, -40 ), substr( Settings::connect_url( 'http://localhost:3000' ), -40 ), 'another MonoRanks address gets its own state' ); } + + public function test_monoranks_password_is_found_by_app_id_or_name() { + $this->assertTrue( Settings::is_monoranks_password( array( 'app_id' => '6F1C1B5E-3F7A-4D8E-9A51-7A2B0C4E8D10', 'name' => 'Whatever' ) ) ); + $this->assertTrue( Settings::is_monoranks_password( array( 'app_id' => '', 'name' => 'MonoRanks' ) ) ); + $this->assertFalse( Settings::is_monoranks_password( array( 'app_id' => 'other-app', 'name' => 'MonoRanks' ) ), 'another app named MonoRanks is not it' ); + $this->assertFalse( Settings::is_monoranks_password( array( 'name' => 'Jetpack' ) ) ); + $this->assertFalse( Settings::is_monoranks_password( null ) ); + } + + public function test_no_application_password_means_fixes_are_not_set_up() { + Functions\when( 'wp_is_application_passwords_available' )->justReturn( true ); + Functions\when( 'get_users' )->justReturn( array( 1, 2 ) ); + \WP_Application_Passwords::$by_user = array( 1 => array( array( 'app_id' => '', 'name' => 'Jetpack' ) ) ); + $this->assertSame( array( 'exists' => false, 'revoke_url' => '', 'available' => true ), Settings::app_password() ); + } + + public function test_another_admins_monoranks_password_counts_and_links_to_their_profile() { + Functions\when( 'wp_is_application_passwords_available' )->justReturn( true ); + Functions\when( 'get_users' )->justReturn( array( 1, 2 ) ); + Functions\when( 'admin_url' )->alias( static function ( $path ) { return 'https://example.com/wp-admin/' . $path; } ); + \WP_Application_Passwords::$by_user = array( 2 => array( array( 'app_id' => '6f1c1b5e-3f7a-4d8e-9a51-7a2b0c4e8d10', 'name' => 'MonoRanks' ) ) ); + $got = Settings::app_password(); + $this->assertTrue( $got['exists'] ); + $this->assertSame( 'https://example.com/wp-admin/user-edit.php?user_id=2#application-passwords-section', $got['revoke_url'] ); + Functions\when( 'get_current_user_id' )->justReturn( 2 ); + $this->assertSame( 'https://example.com/wp-admin/profile.php#application-passwords-section', Settings::app_password()['revoke_url'] ); + } + + public function test_allow_goes_to_the_approve_step_for_this_website() { + Functions\when( 'home_url' )->justReturn( 'http://localhost:8091/' ); + Functions\when( 'admin_url' )->alias( static function ( $path ) { return 'http://localhost:8091/wp-admin/' . $path; } ); + Functions\when( 'get_option' )->justReturn( array( 'api_base' => 'http://localhost:3200', 'key' => 'mr_site_' . str_repeat( 'k', 30 ), 'site_id' => 'site-1' ) ); + $this->assertSame( + 'http://localhost:3200/api/wordpress/start?site=site-1&wp=http%3A%2F%2Flocalhost%3A8091&connect=1&return=http%3A%2F%2Flocalhost%3A8091%2Fwp-admin%2Fadmin.php%3Fpage%3Dmonoranks-settings', + Settings::allow_url() + ); + Functions\when( 'get_option' )->justReturn( array( 'api_base' => 'http://localhost:3200', 'key' => 'mr_site_' . str_repeat( 'k', 30 ) ) ); + $this->assertStringStartsWith( 'http://localhost:3200/connect/wordpress?site=', Settings::allow_url(), 'without the website id: the connect link' ); + } } diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php index 61bf118..67b525a 100644 --- a/tests/unit/bootstrap.php +++ b/tests/unit/bootstrap.php @@ -8,3 +8,15 @@ define( 'MINUTE_IN_SECONDS', 60 ); define( 'HOUR_IN_SECONDS', 3600 ); define( 'DAY_IN_SECONDS', 86400 ); + +// WordPress's Application Passwords store, faked per user for Settings::app_password(). +if ( ! class_exists( 'WP_Application_Passwords' ) ) { + // phpcs:ignore Generic.Files.OneObjectStructurePerFile + class WP_Application_Passwords { + /** @var array>> */ + public static $by_user = array(); + public static function get_user_application_passwords( $user_id ) { + return isset( self::$by_user[ $user_id ] ) ? self::$by_user[ $user_id ] : array(); + } + } +} From fae8aa2aa28e0456504f927f738936a092f62df6 Mon Sep 17 00:00:00 2001 From: mostafa Date: Sun, 25 Oct 2026 15:36:04 +0200 Subject: [PATCH 2/2] Send content right after connecting, and let MonoRanks offer Connect again after Disconnect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Pairing (the direct approve path) starts the first content send in WP-Cron right away, as a pasted key or a one-time code already did. It no longer waits for MonoRanks to ask, which left "Not sent yet" on the Overview. - The Overview's Content row says "Sending…" while the first send runs, and "Not sent. Use "Sync content now"." only when a send failed. - The public ping reports whether the plugin holds a key, so MonoRanks can offer Connect again after a Disconnect here. - Integration tests: ping, pairing starts the send, the failed-send line, and Disconnect telling MonoRanks. --- CHANGELOG.md | 2 + build/main.js | 2 +- languages/monoranks-fa_IR-admin.json | 9 ++- languages/monoranks-fa_IR.mo | Bin 32008 -> 32009 bytes languages/monoranks-fa_IR.po | 30 ++++---- languages/monoranks.pot | 30 ++++---- readme.txt | 2 + resources/admin/src/lib/api.ts | 2 + resources/admin/src/screens/Overview.tsx | 2 +- src/Overview.php | 3 + src/Rest.php | 5 +- src/Sync.php | 17 +++++ tests/integration/ConnectFlowTest.php | 87 +++++++++++++++++++++++ 13 files changed, 159 insertions(+), 32 deletions(-) create mode 100644 tests/integration/ConnectFlowTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index b95a067..a22860c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to the MonoRanks WordPress plugin. The format follows [Keep - **Fix:** Settings shows "Fixes: Not set up" with an Allow link when no MonoRanks app password exists, instead of saying fixes are written with one. - **Fix:** The "What to do next" cards show "Checking…" after one slow answer and try again within minutes, not an hour. - **Fix:** No "Could not connect" message on a site that is already connected. +- **Fix:** Content is sent right after connecting, on every way of connecting. +- **Fix:** After Disconnect, Connect works again for the same website. - **Enhancement:** Connect opens MonoRanks in the same tab and comes back there. - **Enhancement:** The connector key button now reads "Save key". diff --git a/build/main.js b/build/main.js index 3fec57e..9f4efed 100644 --- a/build/main.js +++ b/build/main.js @@ -6,4 +6,4 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r= `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Be(n):``}function Ue(e,t){switch(e.tag){case 26:case 27:case 5:return Be(e.type);case 16:return Be(`Lazy`);case 13:return e.child!==t&&t!==null?Be(`Suspense Fallback`):Be(`Suspense`);case 19:return Be(`SuspenseList`);case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return Be(`Activity`);case 30:return Be(`ViewTransition`);default:return``}}function We(e){try{var t=``,n=null;do t+=Ue(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Ge=Object.prototype.hasOwnProperty,Ke=t.unstable_scheduleCallback,qe=t.unstable_cancelCallback,Je=t.unstable_shouldYield,Ye=t.unstable_requestPaint,Xe=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,$e=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,tt=t.unstable_LowPriority,nt=t.unstable_IdlePriority,rt=t.log,it=t.unstable_setDisableYieldValue,at=null,ot=null;function st(e){if(typeof rt==`function`&&it(e),ot&&typeof ot.setStrictMode==`function`)try{ot.setStrictMode(at,e)}catch{}}var ct=Math.clz32?Math.clz32:dt,lt=Math.log,ut=Math.LN2;function dt(e){return e>>>=0,e===0?32:31-(lt(e)/ut|0)|0}var ft=256,pt=262144,mt=4194304;function k(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ht(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=k(n))):i=k(o):i=k(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=k(n))):i=k(o)):i=k(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _t(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function xt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function St(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=pr),gr=` `,_r=!1;function vr(e,t){switch(e){case`keyup`:return dr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var br=!1;function xr(e,t){switch(e){case`compositionend`:return yr(t);case`keypress`:return t.which===32?(_r=!0,gr):null;case`textInput`:return e=t.data,e===gr&&_r?null:e;default:return null}}function Sr(e,t){if(br)return e===`compositionend`||!fr&&vr(e,t)?(e=Fn(),Pn=Nn=Mn=null,br=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Gr(n)}}function qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wr(e.document)}return t}function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Xr=kn&&`documentMode`in document&&11>=document.documentMode,Zr=null,Qr=null,$r=null,ei=!1;function ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Zr==null||Zr!==Wr(r)||(r=Zr,`selectionStart`in r&&Yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$r&&Ur($r,r)||($r=r,r=Jf(Qr,`onSelect`),0>=o,i-=o,Zi=1<<32-ct(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&$i(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&$i(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&$i(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&$i(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===w&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ae:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===w){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===me&&to(l)===r.type){n(e,r.sibling),c=a(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===w?(c=Ri(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Li(o.type,o.key,o.props,null,e.mode,c),co(c,o),c.return=e,e=c)}return s(e);case oe:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Vi(o,e.mode,c),c.return=e,e=c}return s(e);case me:return o=to(o),_(e,r,o,c)}if(we(o))return h(e,r,o,c);if(xe(o)){if(l=xe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,so(o),c);if(o.$$typeof===ue)return _(e,r,Ea(e,o),c);lo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=zi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ai(e),ki(e,null,n),t}return Ei(e,r,t,n),Ai(e)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,A(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===za&&(xo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=C({},d,f);break a;case 2:mo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function wo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};s.types=o===null?null:o.types,E.T=s,dc(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Ua(c,r),jd(e)):uc(e,t,r,jd(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,Te,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:Te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},jd())}function ic(){return Ta(sh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=_o(n);var r=vo(t,e,n);r!==null&&(Pd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=Di(e,t,n,r),n!==null&&(Pd(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,jd())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Hr(s,o))return Ei(e,t,i,0),q===null&&Ti(),!1}catch{}if(n=Di(e,t,i,r),n!==null)return Pd(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=Di(e,n,r,2),t!==null&&Pd(t,e,2)}function fc(e){var t=e.alternate;return e===V||t!==null&&t===V}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,A(e,n)}}var hc={readContext:Ta,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:Ta,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){st(!0);try{e()}finally{st(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){st(!0);try{n(t)}finally{st(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=cc.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,V,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=os();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),q===null)throw Error(i(349));Y&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=q.identifierPrefix;if(B){var n=Qi,r=Zi;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[At]=t,o[jt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ml(t)}}return U(t),t.subtreeFlags&=-33554433,hl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Me.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ia,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ca(t,!0)}else e=lp(e).createTextNode(r),e[At]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[At]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(i(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=da(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[At]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),a=!1}else a=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_l(t,t.updateQueue),U(t),null);case 4:return Fe(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,U(t),null;case 10:return ya(t.type),U(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return U(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)vl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,vl(r,!1),e=o.updateQueue,t.updateQueue=e,_l(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ii(n,e),n=n.sibling;return zo(t,Ro.current&1|2),B&&$i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Xe()>gd&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_l(t,e),vl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!B)return U(t),null}else 2*Xe()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Xe(),e.sibling=null,o=Ro.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||B?zo(t,o):(n=o,O(jo,t),O(Ro,n),Mo===null&&(Mo=t)),B&&$i(t,r.treeForkCount),e}return U(t),null;case 22:case 23:return Lo(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&_l(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ke(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),U(t),null;case 25:return null;case 30:return t.flags|=33554432,U(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch(na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Le(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Fe(),null;case 10:return ya(t.type),null;case 22:case 23:return Lo(t),Ao(),e!==null&&ke(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function xl(e,t){switch(na(t),t.tag){case 3:ya(ja),Fe();break;case 26:case 27:case 5:Le(t);break;case 4:Fe();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:ya(t.type);break;case 22:case 23:Lo(t),Ao(),e!==null&&ke(Ga);break;case 24:ya(ja)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){Z(e,e.return,t)}}}function Tl(e,t,n){n.props=Cc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=vi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[At]=e,Ht(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Kr(s,h),v=Kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,K&6)throw Error(i(331));var c=K;if(K|=4,Yu(o.current),Vu(o,o.current,s,n),K=c,Df(0,!1),ot&&typeof ot.onPostCommitFiberRoot==`function`)try{ot.onPostCommitFiberRoot(at,o)}catch{}return!0}finally{D.p=a,E.T=r,uf(e,t)}}function pf(e,t,n){t=Ui(n,t),t=kc(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(xt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Ui(n,e),n=Ac(2),r=vo(t,n,2),r!==null&&(jc(n,r,t,e),xt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(ad===4||ad===3&&(Y&62914560)===Y&&300>Xe()-md?K&2?cd|=n:Vd(e,0):cd|=n,ud===Y&&(ud=0)),Ef(e)}function gf(e,t){t===0&&(t=yt()),e=Oi(e,t),e!==null&&(xt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ke(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ct(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Y,a=ht(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||gt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Xe(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}yd!==0&&yd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ht(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Ut(o)}),Ht(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=C({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ht(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=M(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ht(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Me.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=M(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=M(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=M(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+sn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Ut.bind(null,t),np(t,`link`,n),Ht(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+sn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Ht(r),r;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ht(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ht(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ht(a),a):(r=n,(a=vm.get(o))&&(r=C({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ht(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ht(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}))(),_=c(u(),1);function v(){(0,_.useEffect)(()=>{let e=document.getElementById(`adminmenuwrap`),t=document.getElementById(`wpbody-content`);if(!e||!t)return;let n=()=>t.style.setProperty(`--mr-fill`,Math.ceil(e.getBoundingClientRect().height)+`px`);n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t.style.removeProperty(`--mr-fill`)}},[])}function y(){let e=window.monoranksAdmin;if(!e)throw Error(`monoranksAdmin settings missing`);return e}var b={overview:`monoranks`,settings:`monoranks-settings`};function ee(){return new URLSearchParams(window.location.search).get(`page`)===b.settings?`settings`:`overview`}function te(){let[e,t]=(0,_.useState)(ee),n=(0,_.useRef)(()=>void 0);(0,_.useEffect)(()=>{let e=()=>t(ee());window.addEventListener(`popstate`,e);let r=e=>{let t=e.target.closest(`#toplevel_page_monoranks a[href*="page=monoranks"]`);if(!t||e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0)return;let r=new URL(t.href,window.location.href).searchParams.get(`page`),i=r===b.settings?`settings`:r===b.overview?`overview`:null;i&&(e.preventDefault(),n.current(i))};return document.addEventListener(`click`,r),()=>{window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,r)}},[]),(0,_.useEffect)(()=>{ne(e),document.title=document.title.replace(/^[^‹]*‹/,(y().titles[e]||`MonoRanks`)+` ‹`)},[e]);let r=n=>{if(n===e)return;let r=n===`settings`?y().urls.settings:y().urls.overview;window.history.pushState({monoranks:n},``,r),t(n),window.scrollTo({top:0})};return n.current=r,[e,r]}function ne(e){let t=document.getElementById(`toplevel_page_monoranks`);t&&t.querySelectorAll(`.wp-submenu a`).forEach(t=>{let n=new URL(t.href,window.location.href).searchParams.get(`page`)===b[e];t.classList.toggle(`current`,n),t.parentElement?.classList.toggle(`current`,n),n?t.setAttribute(`aria-current`,`page`):t.removeAttribute(`aria-current`)})}var{__:x,_n:S,_x:re,sprintf:C,isRTL:ie}=window.wp.i18n,ae=window.wp.apiFetch,oe=`/monoranks/v1/admin`,w={overview:()=>ae({path:`${oe}/overview`}),settings:()=>ae({path:`${oe}/settings`}),grow:()=>ae({path:`${oe}/grow`}),apply:e=>ae({path:`${oe}/apply`,method:`POST`,data:{fix:e}}),undo:(e,t)=>ae({path:`${oe}/undo`,method:`POST`,data:{entry:e.index,at:e.at,screen:t}}),sync:e=>ae({path:`${oe}/sync`,method:`POST`,data:{screen:e}}),connect:(e,t)=>ae({path:`${oe}/connect`,method:`POST`,data:{key:e,api_base:t}}),disconnect:()=>ae({path:`${oe}/disconnect`,method:`POST`}),deleteEverything:()=>ae({path:`${oe}/delete`,method:`POST`})};function se(e,t){let n=e?.message;return typeof n==`string`&&n?n:t}var ce=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function le(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ce(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ue=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},T=e=>{let t=ue(e);return t.charAt(0).toUpperCase()+t.slice(1)},de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pe(e){return e!=null}function me(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??fe.width,a=e.size??e.height??fe.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?de(...c):de(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??fe[`stroke-width`])*Number(e.size??e.width??fe.width)/Number(t.size??t.width??fe.width):t.strokeWidth??fe[`stroke-width`];return[`svg`,{...Object.entries(fe).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pe(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pe(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pe(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function he(e,t={}){return me(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ge=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_e=(0,_.createContext)({}),ve=()=>(0,_.useContext)(_e),ye=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=ve()??{},b=!!c||ge(d),[ee,te,ne=[]]=he(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:de(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(ee,{ref:f,...te},[...ne.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function be(e,t=[],n=[]){let r=typeof e==`string`?le(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ye,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=T(r.name)),i}var xe={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};xe.node;var Se=be(xe),Ce={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Ce.node;var we=be(Ce),E={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};E.node;var D=be(E),Te={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Te.node;var Ee=be(Te),De={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};De.node;var Oe=be(De),ke={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ke.node;var O=be(ke),Ae={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ae.node;var je=be(Ae),Me={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Me.node;var Ne=be(Me);function Pe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Re=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ze=`-`,Be=[],Ve=`arbitrary..`,He=e=>{let t=Ge(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return We(e);let n=e.split(ze);return Ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ie(i,t):t:i||Be}return n[e]||Be}}},Ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ze):e.slice(t).join(ze),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ve+r:void 0})(),Ge=e=>{let{theme:t,classGroups:n}=e;return Ke(n,t)},Ke=(e,t)=>{let n=Re();for(let r in e){let i=e[r];qe(i,n,r,t)}return n},qe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ye(e,t,n);return}if(typeof e==`function`){Xe(e,t,n,r);return}Ze(e,t,n,r)},Ye=(e,t,n)=>{let r=e===``?t:Qe(t,e);r.classGroupId=n},Xe=(e,t,n,r)=>{if($e(e)){qe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Le(n,e))},Ze=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(ze),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,et=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},tt=`!`,nt=`:`,rt=[],it=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),at=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return it(t,l,c,u)};if(t){let e=t+nt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):it(rt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ot=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},st=e=>({cache:et(e.cacheSize),parseClassName:at(e),sortModifiers:ot(e),postfixLookupClassGroupIds:ct(e),...He(e)}),ct=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(lt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+tt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},dt=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=st(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ut(e,n);return i(e,a),a};return a=o,(...e)=>a(dt(...e))},mt=[],k=e=>{let t=t=>t[e]||mt;return t.isThemeGetter=!0,t.themeKey=e,t},ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_t=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,St=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>_t.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Et=e=>vt.test(e),Dt=()=>!0,Ot=e=>yt.test(e)&&!bt.test(e),kt=()=>!1,At=e=>xt.test(e),jt=e=>St.test(e),Mt=e=>!j(e)&&!M(e),Nt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Pt=e=>Yt(e,Qt,kt),j=e=>ht.test(e),Ft=e=>Yt(e,$t,Ot),It=e=>Yt(e,en,A),Lt=e=>Yt(e,nn,Dt),Rt=e=>Yt(e,tn,kt),zt=e=>Yt(e,Zt,kt),Bt=e=>Yt(e,N,jt),Vt=e=>Yt(e,rn,At),M=e=>gt.test(e),Ht=e=>Xt(e,$t),Ut=e=>Xt(e,tn),Wt=e=>Xt(e,Zt),Gt=e=>Xt(e,Qt),Kt=e=>Xt(e,N),qt=e=>Xt(e,rn,!0),Jt=e=>Xt(e,nn,!0),Yt=(e,t,n)=>{let r=ht.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Xt=(e,t,n=!1)=>{let r=gt.exec(e);return r?r[1]?t(r[1]):n:!1},Zt=e=>e===`position`||e===`percentage`,N=e=>e===`image`||e===`url`,Qt=e=>e===`length`||e===`size`||e===`bg-size`,$t=e=>e===`length`,en=e=>e===`number`,tn=e=>e===`family-name`,nn=e=>e===`number`||e===`weight`,rn=e=>e===`shadow`,an=pt(()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[M,j,c],S=()=>[Ct,`full`,`auto`,...x()],re=()=>[wt,`none`,`subgrid`,M,j],C=()=>[`auto`,{span:[`full`,wt,M,j]},wt,M,j],ie=()=>[wt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],w=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...x()],ce=()=>[Ct,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],le=()=>[s,Ct,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],ue=()=>[Ct,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],T=()=>[e,M,j],de=()=>[...b(),Wt,zt,{position:[M,j]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Gt,Pt,{size:[M,j]}],me=()=>[Tt,Ht,Ft],he=()=>[``,`none`,`full`,l,M,j],ge=()=>[``,A,Ht,Ft],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[A,Tt,Wt,zt],be=()=>[``,`none`,m,M,j],xe=()=>[`none`,A,M,j],Se=()=>[`none`,A,M,j],Ce=()=>[A,M,j],we=()=>[Ct,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Et],breakpoint:[Et],color:[Dt],container:[Et],"drop-shadow":[Et],ease:[`in`,`out`,`in-out`],font:[Mt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Et],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Et],shadow:[Et],spacing:[`px`,A],text:[Et],"text-shadow":[Et],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ct,j,M,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,M,j]}],"container-named":[Nt],columns:[{columns:[A,`auto`,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[wt,`auto`,M,j]}],basis:[{basis:[Ct,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,Ct,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[wt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...w(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...w()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...w(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...w(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...w(),`baseline`]}],"place-self":[{"place-self":[`auto`,...w()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,Ht,Ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Jt,Lt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tt,j]}],"font-family":[{font:[Ut,Rt,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,It]}],leading:[{leading:[`none`,a,...x()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,Ft]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"tab-size":[{tab:[wt,M,j]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wt,M,j],radial:[``,M,j],conic:[``,wt,M,j]},Kt,Bt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,Ht,Ft]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,qt,Vt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,qt,Vt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,Ft]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,qt,Vt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:be()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,qt,Vt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[wt,M,j]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,Ht,Ft,It]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function P(...e){return an(Fe(e))}var on=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=on()}))(),sn=`.notice, .update-nag, .updated, .error, #message`;function cn({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let e=document.getElementById(`wpbody-content`),n=t.current;if(!e||!n)return;let r=()=>{e.querySelectorAll(`:scope > *`).forEach(e=>{e.id!==`monoranks-admin`&&e.matches(sn)&&n.appendChild(e)})};r();let i=new MutationObserver(r);return i.observe(e,{childList:!0}),()=>i.disconnect()},[]),(0,F.jsx)(`div`,{ref:t,className:P(`empty:hidden`,e)})}function ln(e,t,n=`plugin-admin`){try{let r=new URL(e);return r.host===new URL(y().apiBase).host?e:(r.searchParams.set(`utm_source`,`wordpress-plugin`),r.searchParams.set(`utm_medium`,`admin`),r.searchParams.set(`utm_campaign`,n),r.searchParams.set(`utm_content`,t),r.toString())}catch{return e}}function un({which:e,className:t}){return(0,F.jsx)(`span`,{className:P(`inline-flex [&>svg]:block`,t),dangerouslySetInnerHTML:{__html:y().logos[e]}})}var dn=`mx-auto w-full max-w-[1260px] px-10 max-[960px]:px-6 max-[782px]:px-4`;function fn({section:e,go:t,title:n,description:r,actions:i,children:a}){let o=y(),s=[{id:`overview`,label:x(`Overview`,`monoranks`),href:o.urls.overview},{id:`settings`,label:x(`Settings`,`monoranks`),href:o.urls.settings}];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`header`,{className:`bg-band text-band-ink`,children:(0,F.jsxs)(`div`,{className:P(dn,`flex min-h-16 items-center gap-7 max-[782px]:gap-3`),children:[(0,F.jsx)(`a`,{href:o.urls.overview,onClick:e=>{e.preventDefault(),t(`overview`)},className:`inline-flex items-center text-band-ink hover:text-white`,children:(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-7 [&>svg]:w-[138px]`})}),(0,F.jsx)(`nav`,{className:`flex self-stretch gap-[22px] max-[782px]:gap-3`,"aria-label":x(`MonoRanks sections`,`monoranks`),children:s.map(n=>(0,F.jsx)(`a`,{href:n.href,onClick:e=>{e.preventDefault(),t(n.id)},"aria-current":e===n.id?`page`:void 0,className:P(`inline-flex items-center border-b-2 pt-[2px] text-[13px] font-medium`,e===n.id?`border-brand text-band-ink`:`border-transparent text-band-muted hover:text-white`),children:n.label},n.id))}),(0,F.jsxs)(`div`,{className:`ms-auto flex items-center gap-1.5`,children:[(0,F.jsx)(`a`,{href:ln(o.urls.docs,`header-help`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-[12.5px] font-medium text-band-muted hover:bg-band-edge hover:text-white`,children:x(`Help`,`monoranks`)}),(0,F.jsxs)(`a`,{href:ln(o.urls.app,`header-open`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md border border-band-edge px-3 text-[12.5px] font-medium text-band-ink hover:bg-band-edge hover:text-white max-[782px]:hidden`,children:[x(`Open MonoRanks`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]})]})}),(0,F.jsxs)(`div`,{className:P(dn,`flex flex-wrap items-start justify-between gap-x-6 gap-y-3 pb-1.5 pt-[30px]`),children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_420px] flex-col gap-1.5`,children:[(0,F.jsx)(`h1`,{className:`text-[26px] font-semibold tracking-[-0.02em] leading-tight text-ink`,children:n}),r&&(0,F.jsx)(`p`,{className:`max-w-[72ch] text-ink2`,children:r})]}),i&&(0,F.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 pt-1`,children:i})]}),(0,F.jsx)(`div`,{className:`wp-header-end`}),(0,F.jsx)(cn,{className:P(dn,`flex flex-col gap-2.5 pt-3`)}),(0,F.jsx)(`main`,{className:P(dn,`flex flex-[1_0_auto] flex-col gap-5 pb-10 pt-[22px]`),children:a}),(0,F.jsx)(pn,{section:e,go:t})]})}function pn({section:e,go:t}){let n=y();return(0,F.jsxs)(`footer`,{className:`mt-auto bg-band text-band-ink`,children:[(0,F.jsxs)(`div`,{className:P(dn,`grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-8 py-7 max-[960px]:grid-cols-[minmax(0,1fr)_auto] max-[960px]:gap-5 max-[782px]:grid-cols-1`),children:[(0,F.jsxs)(`div`,{className:`inline-flex items-center gap-2.5`,children:[(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-[26px] [&>svg]:w-[128px]`}),(0,F.jsxs)(`span`,{className:`rounded-md border border-band-edge px-[7px] py-[2px] text-[11px] font-medium text-band-muted`,children:[`v`,n.version]})]}),(0,F.jsxs)(`div`,{className:`min-w-0 border-s border-band-edge ps-7 max-[960px]:col-start-1 max-[960px]:border-0 max-[960px]:ps-0`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] uppercase tracking-[.08em] text-band-muted`,children:x(`Your data`,`monoranks`)}),(0,F.jsxs)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},className:`inline-flex items-center gap-[7px] text-[13px] text-band-ink hover:text-white hover:underline hover:underline-offset-4`,children:[x(`What is sent and what can change`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]}),(0,F.jsxs)(`a`,{href:ln(n.urls.docs,`footer-help`,e),target:`_blank`,rel:`noopener`,className:`block rounded-[9px] border border-band-edge px-[18px] py-3 text-start text-band-ink hover:bg-band-edge hover:text-white max-[960px]:col-start-2 max-[960px]:row-span-2 max-[960px]:row-start-1 max-[782px]:col-auto max-[782px]:row-auto`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] text-band-muted`,children:x(`Need a hand?`,`monoranks`)}),(0,F.jsxs)(`strong`,{className:`flex items-center justify-between gap-5 text-[13px] font-medium`,children:[x(`Help and resources`,`monoranks`),(0,F.jsx)(Se,{size:14,className:`mr-flip`})]})]})]}),(0,F.jsx)(`div`,{className:P(dn),children:(0,F.jsxs)(`div`,{className:`flex items-center justify-center gap-3 border-t border-band-edge pb-[18px] pt-4 text-[11px] text-band-muted`,children:[(0,F.jsx)(`span`,{children:x(`A product by`,`monoranks`)}),(0,F.jsx)(`a`,{href:ln(`https://veronalabs.com/`,`footer-publisher`,e),target:`_blank`,rel:`noopener`,"aria-label":`VeronaLabs`,className:`inline-flex min-h-7 items-center text-band-muted opacity-75 hover:opacity-100 hover:text-band-muted`,children:(0,F.jsx)(un,{which:`veronalabs`,className:`[&>svg]:h-auto [&>svg]:w-28`})})]})})]})}function mn({notice:e}){if(!e)return null;let t={success:`text-good-ink`,error:`text-critical`,warning:`text-warn`}[e.type],n={success:Oe,error:Ee,warning:je}[e.type];return(0,F.jsxs)(`div`,{className:P(`notice`,`notice-${e.type}`,`flex items-start gap-2.5`),role:`status`,children:[(0,F.jsx)(n,{size:16,className:P(`mt-[1px] shrink-0`,t),"aria-hidden":`true`}),(0,F.jsx)(`p`,{className:`text-ink`,children:e.text})]})}function hn({rows:e}){return(0,F.jsx)(`div`,{className:`grid grid-cols-[150px_minmax(0,1fr)] gap-x-3 gap-y-2 text-[12px] max-[960px]:grid-cols-1`,children:e.map(([e,t],n)=>(0,F.jsxs)(`div`,{className:`contents`,children:[(0,F.jsx)(`div`,{className:`text-mute max-[960px]:mt-1`,children:e}),(0,F.jsx)(`div`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]},n))})}function gn({title:e,text:t}){return(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-6 py-9 text-center text-ink2`,children:[(0,F.jsx)(`span`,{className:`text-[13px] font-semibold text-ink`,children:e}),(0,F.jsx)(`span`,{className:`text-[12px]`,children:t})]})}function I(e){if(e==null)return`—`;try{return new Intl.NumberFormat(y().locale,{maximumFractionDigits:0}).format(e)}catch{return String(e)}}function _n(e,t=``){return(e>0?`+`:e<0?`−`:``)+I(Math.abs(e))+t}function vn(e){return e==null?`none`:e>=80?`good`:e>=60?`warn`:`critical`}function yn({score:e,size:t=`sm`,label:n}){let r=t===`lg`?64:30,i=t===`lg`?5:3,a=(r-i)/2,o=2*Math.PI*a,s=r/2,c=e===null?x(`Not scored yet`,`monoranks`):C(x(`%s of 100`,`monoranks`),I(e));return(0,F.jsxs)(`span`,{className:P(`mr-score`,`mr-${t}`,`mr-${vn(e)}`),title:(n?`${n}: `:``)+c,children:[(0,F.jsxs)(`span`,{className:`mr-ring`,children:[(0,F.jsx)(`svg`,{width:r,height:r,viewBox:`0 0 ${r} ${r}`,"aria-hidden":`true`,children:e===null?(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeDasharray:`3 4`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`var(--grayTrack)`,strokeWidth:i}),(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeDasharray:`${o*e/100} ${o}`,transform:`rotate(-90 ${s} ${s})`})]})}),(0,F.jsx)(`span`,{children:e===null?`—`:I(e)})]}),n&&(0,F.jsx)(`span`,{className:`mr-lbl`,children:n})]})}function bn({n:e,unit:t=``,period:n=`week`}){if(e==null)return null;let r=e>0?`text-good-ink`:e<0?`text-critical`:`text-mute`,i=`⁨`+_n(e,t)+`⁩`,a=C(x(n===`previous28`?`%s vs previous 28 days`:`%s this week`,`monoranks`),i);return(0,F.jsx)(`span`,{className:P(`text-[12px] font-medium`,r),children:a})}function xn({series:e}){if(e.length<2)return null;let t=Math.max(1,...e),n=e.map((n,r)=>[Math.round(200*r/(e.length-1)*10)/10,Math.round((34-30*n/t)*10)/10]),r=`M`+n.map(e=>e.join(` `)).join(` L`),i=n[n.length-1];return(0,F.jsxs)(`svg`,{className:`block h-[38px] w-full`,viewBox:`0 0 200 38`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`${r} L200 38 L0 38 Z`,fill:`var(--accentSoft)`}),(0,F.jsx)(`path`,{d:r,fill:`none`,stroke:`var(--accent)`,strokeWidth:`1.5`}),(0,F.jsx)(`circle`,{cx:i[0],cy:i[1],r:`2.5`,fill:`var(--accent)`})]})}var Sn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Cn=Fe,wn=(e,t)=>n=>{if(t?.variants==null)return Cn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Sn(t)||Sn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Cn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Tn=wn(`inline-flex shrink-0 items-center whitespace-nowrap font-medium`,{variants:{variant:{badge:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-ink2`,warn:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-warn`,pill:`h-[22px] gap-[6px] rounded-full bg-surface2 ps-[7px] pe-2 text-[12px] text-ink`}},defaultVariants:{variant:`badge`}});function L({className:e,variant:t,...n}){return(0,F.jsx)(`span`,{"data-slot":`badge`,className:P(Tn({variant:t}),e),...n})}function En({tone:e=`muted`}){let t={good:`bg-good`,warn:`bg-warn`,critical:`bg-critical`,muted:`bg-mute`}[e];return(0,F.jsx)(`span`,{className:P(`inline-block h-2 w-2 shrink-0 rounded-full`,t)})}var Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;tMn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Un(r)&&typeof qn==`function`&&(r=qn(r._payload)),_.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Un(n)&&typeof qn==`function`&&(n=qn(n._payload)),a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Kn(e):Gn(e));return r}let u=zn(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);var Gn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qn=_.use,Jn=wn(`inline-flex items-center justify-center gap-[7px] whitespace-nowrap rounded-md border text-[13px] font-medium leading-none transition-[background-color,border-color,color,opacity] duration-100 disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:shrink-0 cursor-pointer`,{variants:{variant:{default:`border-border bg-surface text-ink hover:bg-surface2 hover:border-line`,primary:`border-primary bg-primary text-primary-foreground hover:opacity-85`,accent:`border-brand bg-brand text-white hover:opacity-85`,ghost:`border-transparent bg-transparent text-ink2 hover:bg-surface3 hover:text-ink`,danger:`border-critical/50 bg-surface text-critical hover:border-critical hover:bg-critical hover:text-white`,dangerSolid:`border-critical bg-critical text-white hover:opacity-85`},size:{default:`h-[34px] px-3`,sm:`h-7 px-[10px] text-[12px]`,icon:`h-8 w-8 px-0`}},defaultVariants:{variant:`default`,size:`default`}});function R({className:e,variant:t,size:n,asChild:r=!1,children:i,...a}){let o=a[`aria-busy`]===!0||a[`aria-busy`]===`true`,s=P(Jn({variant:t,size:n,className:e}),o&&`pointer-events-none opacity-85`);return r?(0,F.jsx)(Fn,{"data-slot":`button`,className:s,...a,children:i}):(0,F.jsxs)(`button`,{"data-slot":`button`,className:s,...a,children:[o&&(0,F.jsx)(`span`,{className:`spin`,"aria-hidden":`true`}),i]})}function Yn({rows:e,onUndo:t,busy:n}){if(!e.length)return(0,F.jsx)(gn,{title:x(`No changes yet`,`monoranks`),text:x(`Fixes you approve in MonoRanks show up here, each with Undo.`,`monoranks`)});let r=`whitespace-nowrap border-b border-border px-[12px] py-[11px] text-start text-[12px] font-medium text-mute`,i=`border-b border-grid px-[12px] py-3 align-middle text-[12px] group-last:border-b-0`,a=`overflow-hidden text-ellipsis whitespace-nowrap text-start`;return(0,F.jsx)(`div`,{className:`rounded-b-xl`,children:(0,F.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,children:[(0,F.jsxs)(`colgroup`,{children:[(0,F.jsx)(`col`,{className:`w-[15%] min-w-[130px]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[18%]`}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{className:`w-[96px]`})]}),(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:r,children:x(`When`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Who`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Field`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Where`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Before`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`After`,`monoranks`)}),(0,F.jsx)(`th`,{className:r})]})}),(0,F.jsx)(`tbody`,{children:e.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:`${i} tabular-nums`,children:(0,F.jsx)(`div`,{className:a,title:e.when,children:e.when})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,title:e.actor,children:e.actor})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(L,{className:`max-w-full overflow-hidden text-ellipsis whitespace-nowrap`,title:e.fieldLabel,children:e.fieldLabel})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.where,children:e.where})}),(0,F.jsx)(`td`,{className:`${i} text-mute`,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.previous,children:e.previous||`—`})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.value,children:e.value||`—`})}),(0,F.jsx)(`td`,{className:`${i} text-end`,children:(0,F.jsxs)(R,{variant:`ghost`,size:`sm`,disabled:n!==null,"aria-busy":n===e.index,onClick:()=>t(e),children:[n!==e.index&&(0,F.jsx)(Ne,{size:13,className:`mr-flip`}),x(`Undo`,`monoranks`)]})})]},e.index))})]})})}function Xn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card`,className:P(`min-w-0 rounded-xl border border-border bg-surface`,e),...t})}function Zn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-header`,className:P(`flex flex-wrap items-center justify-between gap-3 px-[22px] pt-[18px]`,e),...t})}function Qn({className:e,...t}){return(0,F.jsx)(`h2`,{"data-slot":`card-title`,className:P(`inline-flex items-center gap-2 text-[15px] font-semibold text-ink`,e),...t})}function $n({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-body`,className:P(`px-[22px] pb-[22px] pt-4`,e),...t})}function er({text:e,children:t,className:n,align:r=`center`}){let i=_.useId(),[a,o]=_.useState(!1),s=()=>o(!0),c=()=>o(!1),l=t?_.cloneElement(t,{"aria-describedby":i,tabIndex:t.props.tabIndex??0}):(0,F.jsx)(`button`,{type:`button`,"aria-describedby":i,"aria-label":x(`More info`,`monoranks`),className:`inline-flex h-4 w-4 items-center justify-center rounded-full text-mute hover:text-ink focus-visible:text-ink focus-visible:outline-2 focus-visible:outline-brand`,children:(0,F.jsx)(O,{size:13,"aria-hidden":`true`})});return(0,F.jsxs)(`span`,{className:P(`relative inline-flex items-center`,n),onMouseEnter:s,onMouseLeave:c,onFocus:s,onBlur:c,onKeyDown:e=>{e.key===`Escape`&&c()},children:[l,(0,F.jsx)(`span`,{id:i,role:`tooltip`,className:P(`pointer-events-none absolute bottom-[calc(100%+6px)] z-50 w-max max-w-[260px] rounded-md bg-ink px-2.5 py-1.5 text-start text-[12px] font-normal leading-snug text-page shadow-md`,{center:`left-1/2 -translate-x-1/2`,start:`start-0`,end:`end-0`}[r],a?`visible opacity-100`:`invisible opacity-0`),children:e})]})}var tr={target:`_blank`,rel:`noopener`},nr=[`outreach`,`backlinks`,`competitors`,`keywords`,`report`];function rr(){let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(0);(0,_.useEffect)(()=>{w.grow().then(t).catch(()=>r(!0))},[i]);let o=!!e?.connected&&nr.some(t=>e[t]?.state===`pending`);if((0,_.useEffect)(()=>{if(!o||i>=4)return;let e=window.setTimeout(()=>a(e=>e+1),6e4);return()=>window.clearTimeout(e)},[o,i]),n)return null;if(!e)return(0,F.jsx)(`section`,{"aria-label":x(`What to do next`,`monoranks`),"aria-busy":`true`,className:`grid grid-cols-2 gap-5 max-[960px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[180px] animate-pulse bg-surface2`},e))});if(!e.connected)return null;let s=e.scope_url??``;return(0,F.jsxs)(`section`,{"aria-labelledby":`mr-grow-title`,className:`flex flex-col gap-3`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,F.jsx)(`h2`,{id:`mr-grow-title`,className:`text-[15px] font-semibold text-ink`,children:x(`What to do next`,`monoranks`)}),e.fetched&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(x(`Updated %s`,`monoranks`),e.fetched)})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsx)(or,{d:e.outreach,scope:s}),(0,F.jsx)(sr,{d:e.backlinks,scope:s}),(0,F.jsx)(cr,{d:e.competitors,scope:s}),(0,F.jsx)(lr,{d:e.keywords,scope:s})]}),(0,F.jsx)(ur,{d:e.report})]})}function ir({state:e,scope:t,empty:n}){let r=n;if(e===`no_access`)r=(0,F.jsxs)(F.Fragment,{children:[x(`The MonoRanks key of this site cannot read this yet. Allow it under Integrations in MonoRanks, or connect again.`,`monoranks`),` `,t&&(0,F.jsx)(`a`,{className:`font-medium text-brand-ink hover:underline`,href:ln(t,`grow-scope`),...tr,children:x(`Open Integrations`,`monoranks`)})]});else if(e===`off`)r=x(`Not available in your MonoRanks yet.`,`monoranks`);else if(e===`error`)r=x(`Could not reach MonoRanks. Retrying soon.`,`monoranks`);else if(e===`pending`)return(0,F.jsx)(`p`,{className:`m-0 animate-pulse text-[12px] text-mute`,role:`status`,children:x(`Checking…`,`monoranks`)});return(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:r})}function ar({title:e,badge:t,link:n,linkText:r,children:i}){return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[e,t]}),n&&(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(n,`grow-card`),...tr,children:[r,(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]}),(0,F.jsx)($n,{className:`flex flex-col gap-3 pt-3`,children:i})]})}function or({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Outreach`,`monoranks`),badge:n&&n.to_contact>0?(0,F.jsx)(L,{children:C(S(`%s to contact`,`%s to contact`,n.to_contact,`monoranks`),I(n.to_contact))}):void 0,link:n?.link||e?.link,linkText:x(`All targets`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[n.top.length>0?(0,F.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-2.5 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`a`,{className:`truncate text-[13px] font-semibold text-ink hover:underline`,href:e.url,...tr,children:[(0,F.jsx)(`bdi`,{children:e.title}),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`text-[12px] text-ink2`,children:[e.why,e.domain&&(0,F.jsxs)(F.Fragment,{children:[` · `,(0,F.jsx)(`bdi`,{className:`text-mute`,children:e.domain})]})]})]},e.url))}):(0,F.jsx)(ir,{state:`empty`,scope:t,empty:x(`Every target is contacted. MonoRanks looks for new ones each week.`,`monoranks`)}),(0,F.jsx)(`p`,{className:`m-0 text-[11px] text-mute`,children:x(`Sites worth asking for a link or a mention. MonoRanks never sends email; you reach out and set the status there.`,`monoranks`)})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No outreach targets yet. MonoRanks looks for pages worth a link each week.`,`monoranks`)})})}function sr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Backlinks`,`monoranks`),link:n?.link||e?.link,linkText:x(`All backlinks`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-5 gap-y-1`,children:[(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-good-ink`,children:[`+`,I(n.new)]}),(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-critical`,children:[`−`,I(n.lost)]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`websites linking to you, won and lost in 28 days`,`monoranks`)})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s website links to you`,`%s websites link to you`,n.domains,`monoranks`),I(n.domains))}),n.review>0&&(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s to review for spam`,`%s to review for spam`,n.review,`monoranks`),I(n.review))})]}),n.top.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Newest strong links`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-x-3 gap-y-1 p-0 text-[12px]`,children:n.top.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`bdi`,{children:e.domain}),e.rank!==null&&(0,F.jsxs)(`span`,{className:`text-mute`,children:[` · `,C(x(`strength %s`,`monoranks`),I(e.rank))]})]},e.domain))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No backlink data yet. MonoRanks refreshes it weekly.`,`monoranks`)})})}function cr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Competitors`,`monoranks`),badge:n&&n.gaps?(0,F.jsx)(L,{children:C(S(`%s keyword gap`,`%s keyword gaps`,n.gaps,`monoranks`),I(n.gaps))}):void 0,link:n?.link||e?.link,linkText:x(`All competitors`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`span`,{className:`text-[13px] font-semibold`,children:[(0,F.jsx)(`bdi`,{children:e.domain}),!e.picked&&(0,F.jsx)(`span`,{className:`ms-1.5 text-[11px] font-normal text-mute`,children:x(`suggested`,`monoranks`)})]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:e.reason||C(S(`%1$s shared keyword, %2$s where they rank higher`,`%1$s shared keywords, %2$s where they rank higher`,e.shared,`monoranks`),I(e.shared),I(e.above_us))})]},e.domain))}),n.keywords.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`They rank for these, you do not`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1.5 p-0`,children:n.keywords.map(e=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:e.keyword}),e.volume!==null&&(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:C(x(`%s/mo`,`monoranks`),I(e.volume))})]})},e.keyword))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No competitors yet. Pick some in MonoRanks to see the keywords they win.`,`monoranks`)})})}function lr({d:e,scope:t}){let n=e?.state===`ok`?e:null,r=({k:e,up:t})=>(0,F.jsxs)(`li`,{className:`flex items-baseline justify-between gap-3 text-[12px]`,children:[(0,F.jsx)(`bdi`,{className:`min-w-0 truncate`,children:e.keyword}),(0,F.jsxs)(`span`,{className:`shrink-0 tabular-nums ${t?`text-good-ink`:`text-critical`}`,children:[(0,F.jsxs)(`span`,{className:`sr-only`,children:[x(t?`up`:`down`,`monoranks`),` `]}),C(x(`%1$s → %2$s`,`monoranks`),I(e.from),I(e.to))]})]});return(0,F.jsx)(ar,{title:x(`Keyword movers this week`,`monoranks`),link:n?.link||e?.link,linkText:x(`All keywords`,`monoranks`),children:n?n.up.length||n.down.length?(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Up`,`monoranks`)}),n.up.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.up.map(e=>(0,F.jsx)(r,{k:e,up:!0},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]}),(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Down`,`monoranks`)}),n.down.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.down.map(e=>(0,F.jsx)(r,{k:e,up:!1},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]})]}):(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:C(S(`Your %s tracked keyword held its place this week.`,`Your %s tracked keywords held their places this week.`,n.tracked,`monoranks`),I(n.tracked))}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No tracked keywords yet. Track some in MonoRanks to see them move here.`,`monoranks`)})})}function ur({d:e}){if(!e||e.state!==`ok`&&e.state!==`empty`)return null;let t=e.state===`ok`?e.emails??[]:[],n=e.state===`ok`?e.reports??[]:[];return(0,F.jsx)(Xn,{className:`grid gap-3 px-5 py-3.5`,children:e.state===`empty`?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`text-[13px] text-ink2`,children:x(`No reports yet. Create a website report, a client report or a weekly email in MonoRanks to share progress.`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:x(`Reports`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}),(0,F.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[t.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.name})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,x(`Weekly email`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[12px] text-ink2`,children:[e.enabled&&e.next_label?(0,F.jsx)(`span`,{children:C(x(`Next send %s`,`monoranks`),e.next_label)}):null,(0,F.jsx)(`span`,{children:C(S(`%s recipient`,`%s recipients`,e.recipients,`monoranks`),I(e.recipients))}),(0,F.jsx)(L,{children:e.enabled?x(`On`,`monoranks`):x(`Off`,`monoranks`)})]})]},`e${t}`)),n.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.scope||e.title})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,e.client?x(`Client report`,`monoranks`):x(`Report`,`monoranks`),e.when?` · ${e.when}`:``]})]}),e.link&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(e.link,`latest-report`),...tr,children:[x(`Open report`,`monoranks`),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]},`r${t}`))]})]})})}var dr=`whitespace-nowrap border-b border-border px-[10px] py-[11px] text-start text-[12px] font-medium text-mute`,fr=`border-b border-grid px-[10px] py-3 align-middle group-last:border-b-0`;function pr(e,t){let n=e.replace(/<[^>]+>/g,``).trim();return n.length>t?n.slice(0,t-1)+`…`:n}function mr(e){try{let t=new URL(e);return t.pathname+t.search}catch{return e}}function hr({fix:e,labels:t}){let n=e.title||(e.field===`redirect`?e.from:x(`Site`,`monoranks`)),r=e.before?pr(e.before,90):null;return(0,F.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:t[e.field]??e.field}),(0,F.jsx)(`span`,{className:`min-w-0 truncate text-[12px] text-ink2`,children:e.field===`redirect`||e.field===`ai_bots`||e.field===`llms_txt`?(0,F.jsx)(`b`,{className:`font-semibold text-ink`,children:(0,F.jsx)(`bdi`,{children:n})}):(0,F.jsx)(`bdi`,{children:C(x(`on %s`,`monoranks`),n)})})]}),e.field===`alt`&&e.image&&(0,F.jsx)(`span`,{className:`truncate text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:C(x(`Image: %s`,`monoranks`),e.image)})}),e.field===`content`?(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Adds one answer-first paragraph at the top. Review the before/after in MonoRanks first.`,`monoranks`)}):(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-[12px]`,children:[(0,F.jsx)(`span`,{className:`text-mute`,children:r?(0,F.jsx)(`s`,{children:(0,F.jsx)(`bdi`,{children:r})}):x(`(empty)`,`monoranks`)}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`→`}),(0,F.jsx)(`span`,{className:`sr-only`,children:x(`changes to`,`monoranks`)}),(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:pr(e.after,120)})})]}),e.note&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:e.note})})]})}function gr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null);(0,_.useEffect)(()=>{w.overview().then(r).catch(e=>a(se(e,x(`Could not load the overview.`,`monoranks`))))},[]);async function f(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let p=n?.overview??null,m=typeof p?.to_review?.needs_value==`number`?p.to_review.needs_value:null,h=p?.to_review&&(p.to_review.total>0||(m??0)>0)&&p.to_review.review_url?p.to_review:null,g=n?p?(0,F.jsxs)(F.Fragment,{children:[x(`Weekly SEO, AEO and GEO audit of`,`monoranks`),` `,(0,F.jsx)(`code`,{children:n.host}),n.audited&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`last audit %s`,`monoranks`),n.audited)]}),p.pages_total>0&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`%1$s of %2$s published pages scored`,`monoranks`),I(p.pages_scored),I(p.pages_total))]})]}):void 0:`\xA0`,v=n?.connected?(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>f(`sync`,()=>w.sync(`overview`)),children:x(`Sync content now`,`monoranks`)}):null;return(0,F.jsxs)(fn,{section:`overview`,go:e,title:x(`Overview`,`monoranks`),description:g,actions:v,children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(_r,{}),n&&(!n.connected||n.revoked)&&(0,F.jsx)(vr,{revoked:n.revoked,go:e}),n&&n.connected&&!n.revoked&&!p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(br,{data:n}),(0,F.jsx)(rr,{})]}),n&&p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Health score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.health})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.health,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Technical, on-page, links, speed`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(S(`Site average, %s page`,`Site average, %s pages`,p.pages_scored,`monoranks`),I(p.pages_scored))})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`AEO score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.aeo})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.aeo,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Answer-first, structure, entities`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`How well AI answers can use your pages`,`monoranks`)})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Search clicks, 28 days`,`monoranks`)}),p.traffic&&(0,F.jsx)(bn,{n:p.traffic.delta_pct,unit:`%`,period:`previous28`})]}),p.traffic?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:I(p.traffic.clicks_28d)}),(0,F.jsx)(xn,{series:p.traffic.series}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`From Google Search Console, through MonoRanks`,`monoranks`)})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold text-mute`,children:`—`}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`Connect Google Search Console in MonoRanks to see clicks here.`,`monoranks`)})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Fixes`,`monoranks`)}),p.fixes.ready>0&&(0,F.jsx)(L,{children:C(x(`%s ready`,`monoranks`),I(p.fixes.ready))})]}),(0,F.jsxs)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:[I(p.fixes.applied_30d),` `,(0,F.jsx)(`span`,{className:`text-[12px] font-normal text-ink2`,children:x(`applied in 30 days`,`monoranks`)})]}),h&&h.total>0&&(0,F.jsxs)(`a`,{className:`text-[12px] font-medium text-brand-ink hover:underline`,href:ln(h.review_url,`fixes-card`),target:`_blank`,rel:`noopener`,children:[C(x(`%s waiting for your approval in MonoRanks`,`monoranks`),I(h.total)),` →`]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.bots_rules?`good`:`muted`}),p.ai.bots_rules?x(`AI crawler rules on`,`monoranks`):x(`No AI crawler rules`,`monoranks`)]}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.llms_txt?`good`:`muted`}),p.ai.llms_txt?x(`llms.txt published`,`monoranks`):x(`No llms.txt`,`monoranks`)]})]})]})]}),!n.revoked&&(0,F.jsx)(rr,{}),(0,F.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,3fr)_minmax(0,2fr)] items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Pages needing attention`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.app_url,`all-pages`),target:`_blank`,rel:`noopener`,children:x(`All pages in MonoRanks`,`monoranks`)})})]}),p.attention.length?(0,F.jsx)(`div`,{className:`overflow-x-auto rounded-b-xl pt-2`,children:(0,F.jsxs)(`table`,{className:`w-full border-collapse`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:dr,children:x(`Page`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Health`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`AEO`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Biggest issue`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr})]})}),(0,F.jsx)(`tbody`,{children:p.attention.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:fr,children:(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:e.title||e.url}),e.url&&(0,F.jsx)(`code`,{className:`max-w-[180px] text-[11px]`,children:mr(e.url)})]})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.health})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.aeo})}),(0,F.jsx)(`td`,{className:`${fr} text-[12px]`,children:e.issue}),(0,F.jsx)(`td`,{className:`${fr} text-end`,children:e.page_url&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`fix-page`),target:`_blank`,rel:`noopener`,children:x(`Fix in MonoRanks`,`monoranks`)})})})]},e.post_id+e.url))})]})}):(0,F.jsx)(gn,{title:x(`Nothing needs attention`,`monoranks`),text:x(`Every scored page is above 60. The next audit may change that.`,`monoranks`)})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[x(`Ready to apply`,`monoranks`),p.ready.length>0&&(0,F.jsx)(L,{children:I(p.ready.length)}),p.ready.length>0&&(0,F.jsx)(er,{text:x(`Approved in MonoRanks. Each write is logged under Settings and can be undone for 30 days.`,`monoranks`)})]}),p.ready.length>1&&(0,F.jsx)(R,{variant:`primary`,size:`sm`,disabled:c!==null,"aria-busy":c===`all`,onClick:()=>f(`all`,()=>w.apply(`all`)),children:x(`Apply all`,`monoranks`)})]}),(0,F.jsxs)($n,{className:`flex flex-col pt-1.5`,children:[p.ready.length===0&&h&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 py-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[m===null?(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:C(x(`%s fixes are ready for your approval`,`monoranks`),I(h.total))}):(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:[h.total>0&&C(S(`%s ready to apply`,`%s ready to apply`,h.total,`monoranks`),I(h.total)),m>0&&C(S(`%s needs a value in MonoRanks`,`%s need a value in MonoRanks`,m,`monoranks`),I(m))].filter(Boolean).join(` · `)}),(0,F.jsx)(er,{text:x(m!==null&&m>0?`Type a value or draft one with AI in MonoRanks, approve it, and it is written here, with undo.`:`Approve them in MonoRanks and they are written here, with undo.`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Object.entries(h.by_field).sort((e,t)=>t[1]-e[1]).map(([e,t])=>(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:n.labels[e]??e}),(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:I(t)})]},e))}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(h.review_url,`review-fixes`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})})]}),p.ready.length===0&&!h&&(0,F.jsx)(gn,{title:x(`No fixes waiting`,`monoranks`),text:x(`Fixes you approve in MonoRanks appear here, ready to write into WordPress.`,`monoranks`)}),p.ready.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),e.field===`content`&&e.page_url?(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review`,`monoranks`)})}):(0,F.jsx)(R,{size:`sm`,disabled:c!==null,"aria-busy":c===e.id,onClick:()=>f(e.id,()=>w.apply(e.id)),children:x(`Apply`,`monoranks`)})]},e.id))]})]}),(p.needs_review??[]).length>0&&(0,F.jsxs)(Xn,{children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{children:[x(`Needs review in MonoRanks`,`monoranks`),(0,F.jsx)(L,{children:I(p.needs_review.length)}),(0,F.jsx)(er,{text:x(`These changed in WordPress after they were reviewed, so they are not applied from here. Review them again in MonoRanks.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col pt-1.5`,children:p.needs_review.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url||p.site_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})]},e.id))})]})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:t.urls.settings,onClick:t=>{t.preventDefault(),e(`settings`)},children:x(`All changes`,`monoranks`)})})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),f(`undo`,()=>w.undo(e,`overview`))}})})]})]})]})}function _r(){return(0,F.jsx)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[150px] animate-pulse bg-surface2`},e))})}function vr({revoked:e,go:t}){let n=y();return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(e?`Connect MonoRanks again`:`Connect MonoRanks`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:e?`critical`:`muted`}),x(e?`Key revoked`:`Not connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.urls.connect,`connect-step`),target:`_self`,children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},children:x(`Open settings`,`monoranks`)})})})]}),(0,F.jsx)(yr,{n:3,later:!0,children:(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`See scores here and in your Posts list`,`monoranks`)})})]})]})}function yr({n:e,later:t,children:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`span`,{className:`flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${t?`bg-surface3 text-ink2`:`bg-ink text-page`}`,children:e}),(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:n})]})}function br({data:e}){let t=e.status,[n,r]=t===`unsupported`?[x(`Not shared yet`,`monoranks`),x(`This MonoRanks does not share audit results with the plugin yet. Scores stay in MonoRanks for now; the plugin asks again tomorrow.`,`monoranks`)]:t===`error`?[x(`MonoRanks not reached`,`monoranks`),x(`MonoRanks could not be reached for the audit results. The plugin tries again within the hour, or when you reload this screen.`,`monoranks`)]:[x(`Not scored yet`,`monoranks`),x(`MonoRanks has not scored this site yet. Scores appear here and in the Posts list after the first weekly audit.`,`monoranks`)];return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Waiting for the first audit`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`good`}),x(`Connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsx)(hn,{rows:[[x(`Content`,`monoranks`),e.last_sent?C(x(`%1$s published items sent %2$s`,`monoranks`),I(e.items),e.last_sent):x(`Not sent yet. Use "Sync content now" above.`,`monoranks`)],[x(`Audit results`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n,(0,F.jsx)(er,{text:e.fetched?(0,F.jsxs)(F.Fragment,{children:[r,` · `,C(x(`checked %s`,`monoranks`),e.fetched)]}):r})]})]]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.app_url,`open-audit`),target:`_blank`,rel:`noopener`,children:x(`Open the audit in MonoRanks`,`monoranks`)})})})]})]})}function xr({className:e,type:t,...n}){return(0,F.jsx)(`input`,{type:t,"data-slot":`input`,className:P(`flex h-10 w-full max-w-[440px] rounded-lg border border-input bg-surface px-[14px] text-[13px] text-ink outline-none placeholder:text-mute focus:border-brand disabled:opacity-55`,e),...n})}function Sr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1);(0,_.useEffect)(()=>{w.settings().then(e=>{r(e),p(e.revoked)}).catch(e=>a(se(e,x(`Could not load the settings.`,`monoranks`))))},[]);let[g,v]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(g===null||n?.connected)return;let e=!1,t=()=>{if(!(e||document.visibilityState!==`visible`)){if(Date.now()-g>6e5){v(null);return}w.settings().then(t=>{!e&&t.connected&&(r(t),p(!1),v(null))}).catch(()=>{})}},i=window.setInterval(t,4e3);return document.addEventListener(`visibilitychange`,t),()=>{e=!0,window.clearInterval(i),document.removeEventListener(`visibilitychange`,t)}},[g,n?.connected]);async function b(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let ee=!!n?.connected,te=!!n?.revoked;return(0,F.jsxs)(fn,{section:`settings`,go:e,title:x(`Settings`,`monoranks`),children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(Xn,{className:`h-[260px] animate-pulse bg-surface2`}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-[9px] bg-surface2 [&_svg]:h-5 [&_svg]:w-5`,"aria-hidden":`true`,children:(0,F.jsx)(un,{which:`mark`})}),(0,F.jsx)(Qn,{children:x(`Connection`,`monoranks`)})]}),ee?(0,F.jsx)(er,{align:`end`,text:x(te?`MonoRanks no longer accepts this key. Connect again from MonoRanks or paste a new key below.`:`Sending published content to MonoRanks. Nothing else leaves this site.`,`monoranks`),children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:te?`critical`:`good`}),x(te?`Key revoked`:`Connected`,`monoranks`)]})}):(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`muted`}),x(`Not connected`,`monoranks`)]})]}),(0,F.jsx)($n,{className:`flex flex-col gap-4`,children:ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hn,{rows:[[x(`Connector key`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`code`,{children:n.key_hint}),(0,F.jsx)(er,{text:n.key_via})]})],[x(`Last sync`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n.last_sent_date?(0,F.jsx)(er,{text:n.last_sent_date,children:(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short})}):(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short}),n.sending&&(0,F.jsx)(L,{children:C(x(`sending, batch %1$s of %2$s`,`monoranks`),I(n.sending.page),I(Math.max(1,n.sending.pages)))}),n.items>0&&(0,F.jsx)(L,{children:C(S(`%s published item`,`%s published items`,n.items,`monoranks`),I(n.items))}),n.last_error&&(0,F.jsx)(L,{variant:`warn`,children:n.last_error})]})],...n.next_audit?[[x(`Next audit`,`monoranks`),n.next_audit]]:[],n.app_password?.exists?[x(`Fixes written with`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`App password`,`monoranks`),(0,F.jsx)(er,{text:x(`Fixes are written with the "MonoRanks" Application Password. Revoke it in your profile to stop writes.`,`monoranks`)}),(0,F.jsx)(`a`,{href:n.app_password.revoke_url||n.profile_url,children:x(`Revoke`,`monoranks`)})]})]:[x(`Fixes`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`Not set up`,`monoranks`),(0,F.jsx)(er,{text:x(`Approve MonoRanks in WordPress so it can write the fixes you accept.`,`monoranks`)}),n.app_password?.available!==!1&&(0,F.jsx)(`a`,{href:ln(n.allow_url||n.connect_url,`allow-fixes`,`settings`),target:`_self`,children:x(`Allow`,`monoranks`)})]})],[x(`Works with`,`monoranks`),n.seo_plugin&&!n.seo_supported?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{variant:`warn`,children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`MonoRanks cannot write titles, descriptions, canonicals or noindex into %s yet, so those fixes are refused`,`monoranks`),n.seo_plugin)})]}):n.seo_plugin?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`titles and descriptions go into the fields %s reads`,`monoranks`),n.seo_plugin)})]}):(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:x(`No SEO plugin`,`monoranks`)}),(0,F.jsx)(er,{text:x(`MonoRanks prints the approved title, description, canonical and noindex tags itself`,`monoranks`)})]})]]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>b(`sync`,()=>w.sync(`settings`)),children:x(`Send content now`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Disconnect stops sending. Fixes already applied stay.`,`monoranks`),children:(0,F.jsx)(R,{disabled:c!==null,"aria-busy":c===`disconnect`,onClick:()=>b(`disconnect`,()=>w.disconnect()),children:x(`Disconnect`,`monoranks`)})})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.connect_url,`connect-step`,`settings`),target:`_self`,onClick:()=>v(Date.now()),children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(Cr,{data:n,busy:c,onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})]})]})})]}),ee&&(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{open:f,onToggle:e=>p(e.currentTarget.open),className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`Use a different key`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(Cr,{data:n,busy:c,hint:x(`In MonoRanks: Settings → API and MCP → New credential, content:write, this website.`,`monoranks`),onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})})]})}),(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`What is sent`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(hn,{rows:[[x(`Sent`,`monoranks`),x(`Published titles, a 40-word excerpt, dates, authors, categories, tags, SEO fields, image alt text and plugin status.`,`monoranks`)],[x(`Read back`,`monoranks`),x(`This website's audit results: scores, issues and the fixes you approved, shown here and in the Posts list.`,`monoranks`)],[x(`Never sent`,`monoranks`),x(`Drafts, private posts, comments, emails, passwords, plugin or theme settings.`,`monoranks`)],[x(`Can change`,`monoranks`),x(`SEO title, meta description, canonical, noindex, image alt text, redirects, one opening paragraph, AI crawler rules, llms.txt. Only after you approve each one.`,`monoranks`)]]})})]})}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Last 50 · undo for 30 days`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),b(`undo`,()=>w.undo(e,`settings`))}})})]}),!ee&&n.has_data&&(0,F.jsxs)(Xn,{className:`border-critical/40`,children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{className:`text-critical`,children:[x(`Danger zone`,`monoranks`),(0,F.jsx)(er,{text:x(`Erases the connection, scores, redirects, AI files and change log. Written fixes stay.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col gap-3`,children:m?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-critical`,children:x(`This cannot be undone. Delete everything?`,`monoranks`)}),(0,F.jsx)(R,{variant:`dangerSolid`,disabled:c!==null,"aria-busy":c===`delete`,onClick:()=>{h(!1),b(`delete`,()=>w.deleteEverything())},children:x(`Yes, delete all data`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,disabled:c!==null,onClick:()=>h(!1),children:x(`Cancel`,`monoranks`)})]}):(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`danger`,onClick:()=>h(!0),children:x(`Delete all MonoRanks data`,`monoranks`)})})})]})]})]})}function Cr({data:e,busy:t,hint:n,onSubmit:r}){let[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(e.api_base);function c(t){t.preventDefault(),r(i,e.show_address?o:void 0)}return(0,F.jsxs)(`form`,{onSubmit:c,className:`flex flex-col gap-3 pt-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-key`,className:`text-[12px] font-medium text-ink2`,children:x(`Connector key`,`monoranks`)}),n&&(0,F.jsx)(er,{align:`start`,text:n})]}),(0,F.jsx)(xr,{id:`monoranks-key`,name:`key`,type:`password`,autoComplete:`off`,placeholder:`mr_ws_… or mr_site_…`,required:!0,value:i,onChange:e=>a(e.target.value)})]}),e.show_address&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-address`,className:`text-[12px] font-medium text-ink2`,children:x(`MonoRanks address (development sites only)`,`monoranks`)}),(0,F.jsx)(xr,{id:`monoranks-address`,name:`api_base`,type:`url`,value:o,onChange:e=>s(e.target.value)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,type:`submit`,disabled:t!==null,"aria-busy":t===`connect`,children:x(`Save key`,`monoranks`)})})]})}function wr(){let[e,t]=te();return v(),e===`settings`?(0,F.jsx)(Sr,{go:t}):(0,F.jsx)(gr,{go:t})}var Tr=document.getElementById(`monoranks-admin`);Tr&&(0,g.createRoot)(Tr).render((0,F.jsx)(_.StrictMode,{children:(0,F.jsx)(wr,{})})); \ No newline at end of file +`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&mn(e,``+r);else return;break;case`className`:en(e,`class`,r);break;case`tabIndex`:en(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:en(e,n,r);break;case`style`:I(e,r,o);return;case`data`:if(t!==`object`){en(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=xn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=bn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),$t(e,`popover`,r);break;case`xlinkActuate`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:tn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:tn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:$t(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ht(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Ut(o)}),Ht(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=C({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ht(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=M(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ht(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=M(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Me.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=M(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=M(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=M(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+sn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Ut.bind(null,t),np(t,`link`,n),Ht(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+sn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Ht(r),r;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ht(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ht(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ht(a),a):(r=n,(a=vm.get(o))&&(r=C({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ht(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ht(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}))(),_=c(u(),1);function v(){(0,_.useEffect)(()=>{let e=document.getElementById(`adminmenuwrap`),t=document.getElementById(`wpbody-content`);if(!e||!t)return;let n=()=>t.style.setProperty(`--mr-fill`,Math.ceil(e.getBoundingClientRect().height)+`px`);n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t.style.removeProperty(`--mr-fill`)}},[])}function y(){let e=window.monoranksAdmin;if(!e)throw Error(`monoranksAdmin settings missing`);return e}var b={overview:`monoranks`,settings:`monoranks-settings`};function ee(){return new URLSearchParams(window.location.search).get(`page`)===b.settings?`settings`:`overview`}function te(){let[e,t]=(0,_.useState)(ee),n=(0,_.useRef)(()=>void 0);(0,_.useEffect)(()=>{let e=()=>t(ee());window.addEventListener(`popstate`,e);let r=e=>{let t=e.target.closest(`#toplevel_page_monoranks a[href*="page=monoranks"]`);if(!t||e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0)return;let r=new URL(t.href,window.location.href).searchParams.get(`page`),i=r===b.settings?`settings`:r===b.overview?`overview`:null;i&&(e.preventDefault(),n.current(i))};return document.addEventListener(`click`,r),()=>{window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,r)}},[]),(0,_.useEffect)(()=>{ne(e),document.title=document.title.replace(/^[^‹]*‹/,(y().titles[e]||`MonoRanks`)+` ‹`)},[e]);let r=n=>{if(n===e)return;let r=n===`settings`?y().urls.settings:y().urls.overview;window.history.pushState({monoranks:n},``,r),t(n),window.scrollTo({top:0})};return n.current=r,[e,r]}function ne(e){let t=document.getElementById(`toplevel_page_monoranks`);t&&t.querySelectorAll(`.wp-submenu a`).forEach(t=>{let n=new URL(t.href,window.location.href).searchParams.get(`page`)===b[e];t.classList.toggle(`current`,n),t.parentElement?.classList.toggle(`current`,n),n?t.setAttribute(`aria-current`,`page`):t.removeAttribute(`aria-current`)})}var{__:x,_n:S,_x:re,sprintf:C,isRTL:ie}=window.wp.i18n,ae=window.wp.apiFetch,oe=`/monoranks/v1/admin`,w={overview:()=>ae({path:`${oe}/overview`}),settings:()=>ae({path:`${oe}/settings`}),grow:()=>ae({path:`${oe}/grow`}),apply:e=>ae({path:`${oe}/apply`,method:`POST`,data:{fix:e}}),undo:(e,t)=>ae({path:`${oe}/undo`,method:`POST`,data:{entry:e.index,at:e.at,screen:t}}),sync:e=>ae({path:`${oe}/sync`,method:`POST`,data:{screen:e}}),connect:(e,t)=>ae({path:`${oe}/connect`,method:`POST`,data:{key:e,api_base:t}}),disconnect:()=>ae({path:`${oe}/disconnect`,method:`POST`}),deleteEverything:()=>ae({path:`${oe}/delete`,method:`POST`})};function se(e,t){let n=e?.message;return typeof n==`string`&&n?n:t}var ce=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function le(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ce(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ue=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},T=e=>{let t=ue(e);return t.charAt(0).toUpperCase()+t.slice(1)},de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pe(e){return e!=null}function me(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??fe.width,a=e.size??e.height??fe.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?de(...c):de(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??fe[`stroke-width`])*Number(e.size??e.width??fe.width)/Number(t.size??t.width??fe.width):t.strokeWidth??fe[`stroke-width`];return[`svg`,{...Object.entries(fe).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pe(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pe(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pe(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function he(e,t={}){return me(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ge=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_e=(0,_.createContext)({}),ve=()=>(0,_.useContext)(_e),ye=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=ve()??{},b=!!c||ge(d),[ee,te,ne=[]]=he(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:de(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(ee,{ref:f,...te},[...ne.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function be(e,t=[],n=[]){let r=typeof e==`string`?le(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ye,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=T(r.name)),i}var xe={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};xe.node;var Se=be(xe),Ce={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Ce.node;var we=be(Ce),E={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};E.node;var D=be(E),Te={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Te.node;var Ee=be(Te),De={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};De.node;var Oe=be(De),ke={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ke.node;var O=be(ke),Ae={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ae.node;var je=be(Ae),Me={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Me.node;var Ne=be(Me);function Pe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Re=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ze=`-`,Be=[],Ve=`arbitrary..`,He=e=>{let t=Ge(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return We(e);let n=e.split(ze);return Ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ie(i,t):t:i||Be}return n[e]||Be}}},Ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ze):e.slice(t).join(ze),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ve+r:void 0})(),Ge=e=>{let{theme:t,classGroups:n}=e;return Ke(n,t)},Ke=(e,t)=>{let n=Re();for(let r in e){let i=e[r];qe(i,n,r,t)}return n},qe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ye(e,t,n);return}if(typeof e==`function`){Xe(e,t,n,r);return}Ze(e,t,n,r)},Ye=(e,t,n)=>{let r=e===``?t:Qe(t,e);r.classGroupId=n},Xe=(e,t,n,r)=>{if($e(e)){qe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Le(n,e))},Ze=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(ze),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,et=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},tt=`!`,nt=`:`,rt=[],it=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),at=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return it(t,l,c,u)};if(t){let e=t+nt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):it(rt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ot=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},st=e=>({cache:et(e.cacheSize),parseClassName:at(e),sortModifiers:ot(e),postfixLookupClassGroupIds:ct(e),...He(e)}),ct=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(lt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+tt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},dt=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=st(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ut(e,n);return i(e,a),a};return a=o,(...e)=>a(dt(...e))},mt=[],k=e=>{let t=t=>t[e]||mt;return t.isThemeGetter=!0,t.themeKey=e,t},ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_t=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,St=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>_t.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Et=e=>vt.test(e),Dt=()=>!0,Ot=e=>yt.test(e)&&!bt.test(e),kt=()=>!1,At=e=>xt.test(e),jt=e=>St.test(e),Mt=e=>!j(e)&&!M(e),Nt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Pt=e=>Yt(e,Qt,kt),j=e=>ht.test(e),Ft=e=>Yt(e,$t,Ot),It=e=>Yt(e,en,A),Lt=e=>Yt(e,nn,Dt),Rt=e=>Yt(e,tn,kt),zt=e=>Yt(e,Zt,kt),Bt=e=>Yt(e,N,jt),Vt=e=>Yt(e,rn,At),M=e=>gt.test(e),Ht=e=>Xt(e,$t),Ut=e=>Xt(e,tn),Wt=e=>Xt(e,Zt),Gt=e=>Xt(e,Qt),Kt=e=>Xt(e,N),qt=e=>Xt(e,rn,!0),Jt=e=>Xt(e,nn,!0),Yt=(e,t,n)=>{let r=ht.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Xt=(e,t,n=!1)=>{let r=gt.exec(e);return r?r[1]?t(r[1]):n:!1},Zt=e=>e===`position`||e===`percentage`,N=e=>e===`image`||e===`url`,Qt=e=>e===`length`||e===`size`||e===`bg-size`,$t=e=>e===`length`,en=e=>e===`number`,tn=e=>e===`family-name`,nn=e=>e===`number`||e===`weight`,rn=e=>e===`shadow`,an=pt(()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[M,j,c],S=()=>[Ct,`full`,`auto`,...x()],re=()=>[wt,`none`,`subgrid`,M,j],C=()=>[`auto`,{span:[`full`,wt,M,j]},wt,M,j],ie=()=>[wt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],w=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...x()],ce=()=>[Ct,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],le=()=>[s,Ct,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],ue=()=>[Ct,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],T=()=>[e,M,j],de=()=>[...b(),Wt,zt,{position:[M,j]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Gt,Pt,{size:[M,j]}],me=()=>[Tt,Ht,Ft],he=()=>[``,`none`,`full`,l,M,j],ge=()=>[``,A,Ht,Ft],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[A,Tt,Wt,zt],be=()=>[``,`none`,m,M,j],xe=()=>[`none`,A,M,j],Se=()=>[`none`,A,M,j],Ce=()=>[A,M,j],we=()=>[Ct,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Et],breakpoint:[Et],color:[Dt],container:[Et],"drop-shadow":[Et],ease:[`in`,`out`,`in-out`],font:[Mt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Et],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Et],shadow:[Et],spacing:[`px`,A],text:[Et],"text-shadow":[Et],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ct,j,M,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,M,j]}],"container-named":[Nt],columns:[{columns:[A,`auto`,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[wt,`auto`,M,j]}],basis:[{basis:[Ct,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,Ct,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[wt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...w(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...w()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...w(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...w(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...w(),`baseline`]}],"place-self":[{"place-self":[`auto`,...w()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,Ht,Ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Jt,Lt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tt,j]}],"font-family":[{font:[Ut,Rt,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,It]}],leading:[{leading:[`none`,a,...x()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,Ft]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"tab-size":[{tab:[wt,M,j]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wt,M,j],radial:[``,M,j],conic:[``,wt,M,j]},Kt,Bt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,Ht,Ft]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,qt,Vt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,qt,Vt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,Ft]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,qt,Vt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:be()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,qt,Vt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[wt,M,j]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,Ht,Ft,It]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function P(...e){return an(Fe(e))}var on=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=on()}))(),sn=`.notice, .update-nag, .updated, .error, #message`;function cn({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let e=document.getElementById(`wpbody-content`),n=t.current;if(!e||!n)return;let r=()=>{e.querySelectorAll(`:scope > *`).forEach(e=>{e.id!==`monoranks-admin`&&e.matches(sn)&&n.appendChild(e)})};r();let i=new MutationObserver(r);return i.observe(e,{childList:!0}),()=>i.disconnect()},[]),(0,F.jsx)(`div`,{ref:t,className:P(`empty:hidden`,e)})}function ln(e,t,n=`plugin-admin`){try{let r=new URL(e);return r.host===new URL(y().apiBase).host?e:(r.searchParams.set(`utm_source`,`wordpress-plugin`),r.searchParams.set(`utm_medium`,`admin`),r.searchParams.set(`utm_campaign`,n),r.searchParams.set(`utm_content`,t),r.toString())}catch{return e}}function un({which:e,className:t}){return(0,F.jsx)(`span`,{className:P(`inline-flex [&>svg]:block`,t),dangerouslySetInnerHTML:{__html:y().logos[e]}})}var dn=`mx-auto w-full max-w-[1260px] px-10 max-[960px]:px-6 max-[782px]:px-4`;function fn({section:e,go:t,title:n,description:r,actions:i,children:a}){let o=y(),s=[{id:`overview`,label:x(`Overview`,`monoranks`),href:o.urls.overview},{id:`settings`,label:x(`Settings`,`monoranks`),href:o.urls.settings}];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`header`,{className:`bg-band text-band-ink`,children:(0,F.jsxs)(`div`,{className:P(dn,`flex min-h-16 items-center gap-7 max-[782px]:gap-3`),children:[(0,F.jsx)(`a`,{href:o.urls.overview,onClick:e=>{e.preventDefault(),t(`overview`)},className:`inline-flex items-center text-band-ink hover:text-white`,children:(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-7 [&>svg]:w-[138px]`})}),(0,F.jsx)(`nav`,{className:`flex self-stretch gap-[22px] max-[782px]:gap-3`,"aria-label":x(`MonoRanks sections`,`monoranks`),children:s.map(n=>(0,F.jsx)(`a`,{href:n.href,onClick:e=>{e.preventDefault(),t(n.id)},"aria-current":e===n.id?`page`:void 0,className:P(`inline-flex items-center border-b-2 pt-[2px] text-[13px] font-medium`,e===n.id?`border-brand text-band-ink`:`border-transparent text-band-muted hover:text-white`),children:n.label},n.id))}),(0,F.jsxs)(`div`,{className:`ms-auto flex items-center gap-1.5`,children:[(0,F.jsx)(`a`,{href:ln(o.urls.docs,`header-help`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-[12.5px] font-medium text-band-muted hover:bg-band-edge hover:text-white`,children:x(`Help`,`monoranks`)}),(0,F.jsxs)(`a`,{href:ln(o.urls.app,`header-open`,e),target:`_blank`,rel:`noopener`,className:`inline-flex h-8 items-center gap-1.5 rounded-md border border-band-edge px-3 text-[12.5px] font-medium text-band-ink hover:bg-band-edge hover:text-white max-[782px]:hidden`,children:[x(`Open MonoRanks`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]})]})}),(0,F.jsxs)(`div`,{className:P(dn,`flex flex-wrap items-start justify-between gap-x-6 gap-y-3 pb-1.5 pt-[30px]`),children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_420px] flex-col gap-1.5`,children:[(0,F.jsx)(`h1`,{className:`text-[26px] font-semibold tracking-[-0.02em] leading-tight text-ink`,children:n}),r&&(0,F.jsx)(`p`,{className:`max-w-[72ch] text-ink2`,children:r})]}),i&&(0,F.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 pt-1`,children:i})]}),(0,F.jsx)(`div`,{className:`wp-header-end`}),(0,F.jsx)(cn,{className:P(dn,`flex flex-col gap-2.5 pt-3`)}),(0,F.jsx)(`main`,{className:P(dn,`flex flex-[1_0_auto] flex-col gap-5 pb-10 pt-[22px]`),children:a}),(0,F.jsx)(pn,{section:e,go:t})]})}function pn({section:e,go:t}){let n=y();return(0,F.jsxs)(`footer`,{className:`mt-auto bg-band text-band-ink`,children:[(0,F.jsxs)(`div`,{className:P(dn,`grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-8 py-7 max-[960px]:grid-cols-[minmax(0,1fr)_auto] max-[960px]:gap-5 max-[782px]:grid-cols-1`),children:[(0,F.jsxs)(`div`,{className:`inline-flex items-center gap-2.5`,children:[(0,F.jsx)(un,{which:`wordmark`,className:`[&>svg]:h-[26px] [&>svg]:w-[128px]`}),(0,F.jsxs)(`span`,{className:`rounded-md border border-band-edge px-[7px] py-[2px] text-[11px] font-medium text-band-muted`,children:[`v`,n.version]})]}),(0,F.jsxs)(`div`,{className:`min-w-0 border-s border-band-edge ps-7 max-[960px]:col-start-1 max-[960px]:border-0 max-[960px]:ps-0`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] uppercase tracking-[.08em] text-band-muted`,children:x(`Your data`,`monoranks`)}),(0,F.jsxs)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},className:`inline-flex items-center gap-[7px] text-[13px] text-band-ink hover:text-white hover:underline hover:underline-offset-4`,children:[x(`What is sent and what can change`,`monoranks`),(0,F.jsx)(we,{size:14,className:`mr-flip`})]})]}),(0,F.jsxs)(`a`,{href:ln(n.urls.docs,`footer-help`,e),target:`_blank`,rel:`noopener`,className:`block rounded-[9px] border border-band-edge px-[18px] py-3 text-start text-band-ink hover:bg-band-edge hover:text-white max-[960px]:col-start-2 max-[960px]:row-span-2 max-[960px]:row-start-1 max-[782px]:col-auto max-[782px]:row-auto`,children:[(0,F.jsx)(`span`,{className:`mb-1.5 block text-[11px] text-band-muted`,children:x(`Need a hand?`,`monoranks`)}),(0,F.jsxs)(`strong`,{className:`flex items-center justify-between gap-5 text-[13px] font-medium`,children:[x(`Help and resources`,`monoranks`),(0,F.jsx)(Se,{size:14,className:`mr-flip`})]})]})]}),(0,F.jsx)(`div`,{className:P(dn),children:(0,F.jsxs)(`div`,{className:`flex items-center justify-center gap-3 border-t border-band-edge pb-[18px] pt-4 text-[11px] text-band-muted`,children:[(0,F.jsx)(`span`,{children:x(`A product by`,`monoranks`)}),(0,F.jsx)(`a`,{href:ln(`https://veronalabs.com/`,`footer-publisher`,e),target:`_blank`,rel:`noopener`,"aria-label":`VeronaLabs`,className:`inline-flex min-h-7 items-center text-band-muted opacity-75 hover:opacity-100 hover:text-band-muted`,children:(0,F.jsx)(un,{which:`veronalabs`,className:`[&>svg]:h-auto [&>svg]:w-28`})})]})})]})}function mn({notice:e}){if(!e)return null;let t={success:`text-good-ink`,error:`text-critical`,warning:`text-warn`}[e.type],n={success:Oe,error:Ee,warning:je}[e.type];return(0,F.jsxs)(`div`,{className:P(`notice`,`notice-${e.type}`,`flex items-start gap-2.5`),role:`status`,children:[(0,F.jsx)(n,{size:16,className:P(`mt-[1px] shrink-0`,t),"aria-hidden":`true`}),(0,F.jsx)(`p`,{className:`text-ink`,children:e.text})]})}function hn({rows:e}){return(0,F.jsx)(`div`,{className:`grid grid-cols-[150px_minmax(0,1fr)] gap-x-3 gap-y-2 text-[12px] max-[960px]:grid-cols-1`,children:e.map(([e,t],n)=>(0,F.jsxs)(`div`,{className:`contents`,children:[(0,F.jsx)(`div`,{className:`text-mute max-[960px]:mt-1`,children:e}),(0,F.jsx)(`div`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]},n))})}function gn({title:e,text:t}){return(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-6 py-9 text-center text-ink2`,children:[(0,F.jsx)(`span`,{className:`text-[13px] font-semibold text-ink`,children:e}),(0,F.jsx)(`span`,{className:`text-[12px]`,children:t})]})}function I(e){if(e==null)return`—`;try{return new Intl.NumberFormat(y().locale,{maximumFractionDigits:0}).format(e)}catch{return String(e)}}function _n(e,t=``){return(e>0?`+`:e<0?`−`:``)+I(Math.abs(e))+t}function vn(e){return e==null?`none`:e>=80?`good`:e>=60?`warn`:`critical`}function yn({score:e,size:t=`sm`,label:n}){let r=t===`lg`?64:30,i=t===`lg`?5:3,a=(r-i)/2,o=2*Math.PI*a,s=r/2,c=e===null?x(`Not scored yet`,`monoranks`):C(x(`%s of 100`,`monoranks`),I(e));return(0,F.jsxs)(`span`,{className:P(`mr-score`,`mr-${t}`,`mr-${vn(e)}`),title:(n?`${n}: `:``)+c,children:[(0,F.jsxs)(`span`,{className:`mr-ring`,children:[(0,F.jsx)(`svg`,{width:r,height:r,viewBox:`0 0 ${r} ${r}`,"aria-hidden":`true`,children:e===null?(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeDasharray:`3 4`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`var(--grayTrack)`,strokeWidth:i}),(0,F.jsx)(`circle`,{cx:s,cy:s,r:a,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeDasharray:`${o*e/100} ${o}`,transform:`rotate(-90 ${s} ${s})`})]})}),(0,F.jsx)(`span`,{children:e===null?`—`:I(e)})]}),n&&(0,F.jsx)(`span`,{className:`mr-lbl`,children:n})]})}function bn({n:e,unit:t=``,period:n=`week`}){if(e==null)return null;let r=e>0?`text-good-ink`:e<0?`text-critical`:`text-mute`,i=`⁨`+_n(e,t)+`⁩`,a=C(x(n===`previous28`?`%s vs previous 28 days`:`%s this week`,`monoranks`),i);return(0,F.jsx)(`span`,{className:P(`text-[12px] font-medium`,r),children:a})}function xn({series:e}){if(e.length<2)return null;let t=Math.max(1,...e),n=e.map((n,r)=>[Math.round(200*r/(e.length-1)*10)/10,Math.round((34-30*n/t)*10)/10]),r=`M`+n.map(e=>e.join(` `)).join(` L`),i=n[n.length-1];return(0,F.jsxs)(`svg`,{className:`block h-[38px] w-full`,viewBox:`0 0 200 38`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`${r} L200 38 L0 38 Z`,fill:`var(--accentSoft)`}),(0,F.jsx)(`path`,{d:r,fill:`none`,stroke:`var(--accent)`,strokeWidth:`1.5`}),(0,F.jsx)(`circle`,{cx:i[0],cy:i[1],r:`2.5`,fill:`var(--accent)`})]})}var Sn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Cn=Fe,wn=(e,t)=>n=>{if(t?.variants==null)return Cn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Sn(t)||Sn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Cn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Tn=wn(`inline-flex shrink-0 items-center whitespace-nowrap font-medium`,{variants:{variant:{badge:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-ink2`,warn:`h-5 gap-[5px] rounded-sm bg-surface2 px-[7px] text-[11px] text-warn`,pill:`h-[22px] gap-[6px] rounded-full bg-surface2 ps-[7px] pe-2 text-[12px] text-ink`}},defaultVariants:{variant:`badge`}});function L({className:e,variant:t,...n}){return(0,F.jsx)(`span`,{"data-slot":`badge`,className:P(Tn({variant:t}),e),...n})}function En({tone:e=`muted`}){let t={good:`bg-good`,warn:`bg-warn`,critical:`bg-critical`,muted:`bg-mute`}[e];return(0,F.jsx)(`span`,{className:P(`inline-block h-2 w-2 shrink-0 rounded-full`,t)})}var Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;tMn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Un(r)&&typeof qn==`function`&&(r=qn(r._payload)),_.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Un(n)&&typeof qn==`function`&&(n=qn(n._payload)),a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Kn(e):Gn(e));return r}let u=zn(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);var Gn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qn=_.use,Jn=wn(`inline-flex items-center justify-center gap-[7px] whitespace-nowrap rounded-md border text-[13px] font-medium leading-none transition-[background-color,border-color,color,opacity] duration-100 disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:shrink-0 cursor-pointer`,{variants:{variant:{default:`border-border bg-surface text-ink hover:bg-surface2 hover:border-line`,primary:`border-primary bg-primary text-primary-foreground hover:opacity-85`,accent:`border-brand bg-brand text-white hover:opacity-85`,ghost:`border-transparent bg-transparent text-ink2 hover:bg-surface3 hover:text-ink`,danger:`border-critical/50 bg-surface text-critical hover:border-critical hover:bg-critical hover:text-white`,dangerSolid:`border-critical bg-critical text-white hover:opacity-85`},size:{default:`h-[34px] px-3`,sm:`h-7 px-[10px] text-[12px]`,icon:`h-8 w-8 px-0`}},defaultVariants:{variant:`default`,size:`default`}});function R({className:e,variant:t,size:n,asChild:r=!1,children:i,...a}){let o=a[`aria-busy`]===!0||a[`aria-busy`]===`true`,s=P(Jn({variant:t,size:n,className:e}),o&&`pointer-events-none opacity-85`);return r?(0,F.jsx)(Fn,{"data-slot":`button`,className:s,...a,children:i}):(0,F.jsxs)(`button`,{"data-slot":`button`,className:s,...a,children:[o&&(0,F.jsx)(`span`,{className:`spin`,"aria-hidden":`true`}),i]})}function Yn({rows:e,onUndo:t,busy:n}){if(!e.length)return(0,F.jsx)(gn,{title:x(`No changes yet`,`monoranks`),text:x(`Fixes you approve in MonoRanks show up here, each with Undo.`,`monoranks`)});let r=`whitespace-nowrap border-b border-border px-[12px] py-[11px] text-start text-[12px] font-medium text-mute`,i=`border-b border-grid px-[12px] py-3 align-middle text-[12px] group-last:border-b-0`,a=`overflow-hidden text-ellipsis whitespace-nowrap text-start`;return(0,F.jsx)(`div`,{className:`rounded-b-xl`,children:(0,F.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,children:[(0,F.jsxs)(`colgroup`,{children:[(0,F.jsx)(`col`,{className:`w-[15%] min-w-[130px]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[12%]`}),(0,F.jsx)(`col`,{className:`w-[18%]`}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{}),(0,F.jsx)(`col`,{className:`w-[96px]`})]}),(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:r,children:x(`When`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Who`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Field`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Where`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`Before`,`monoranks`)}),(0,F.jsx)(`th`,{className:r,children:x(`After`,`monoranks`)}),(0,F.jsx)(`th`,{className:r})]})}),(0,F.jsx)(`tbody`,{children:e.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:`${i} tabular-nums`,children:(0,F.jsx)(`div`,{className:a,title:e.when,children:e.when})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,title:e.actor,children:e.actor})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(L,{className:`max-w-full overflow-hidden text-ellipsis whitespace-nowrap`,title:e.fieldLabel,children:e.fieldLabel})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.where,children:e.where})}),(0,F.jsx)(`td`,{className:`${i} text-mute`,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.previous,children:e.previous||`—`})}),(0,F.jsx)(`td`,{className:i,children:(0,F.jsx)(`div`,{className:a,dir:`auto`,title:e.value,children:e.value||`—`})}),(0,F.jsx)(`td`,{className:`${i} text-end`,children:(0,F.jsxs)(R,{variant:`ghost`,size:`sm`,disabled:n!==null,"aria-busy":n===e.index,onClick:()=>t(e),children:[n!==e.index&&(0,F.jsx)(Ne,{size:13,className:`mr-flip`}),x(`Undo`,`monoranks`)]})})]},e.index))})]})})}function Xn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card`,className:P(`min-w-0 rounded-xl border border-border bg-surface`,e),...t})}function Zn({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-header`,className:P(`flex flex-wrap items-center justify-between gap-3 px-[22px] pt-[18px]`,e),...t})}function Qn({className:e,...t}){return(0,F.jsx)(`h2`,{"data-slot":`card-title`,className:P(`inline-flex items-center gap-2 text-[15px] font-semibold text-ink`,e),...t})}function $n({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`card-body`,className:P(`px-[22px] pb-[22px] pt-4`,e),...t})}function er({text:e,children:t,className:n,align:r=`center`}){let i=_.useId(),[a,o]=_.useState(!1),s=()=>o(!0),c=()=>o(!1),l=t?_.cloneElement(t,{"aria-describedby":i,tabIndex:t.props.tabIndex??0}):(0,F.jsx)(`button`,{type:`button`,"aria-describedby":i,"aria-label":x(`More info`,`monoranks`),className:`inline-flex h-4 w-4 items-center justify-center rounded-full text-mute hover:text-ink focus-visible:text-ink focus-visible:outline-2 focus-visible:outline-brand`,children:(0,F.jsx)(O,{size:13,"aria-hidden":`true`})});return(0,F.jsxs)(`span`,{className:P(`relative inline-flex items-center`,n),onMouseEnter:s,onMouseLeave:c,onFocus:s,onBlur:c,onKeyDown:e=>{e.key===`Escape`&&c()},children:[l,(0,F.jsx)(`span`,{id:i,role:`tooltip`,className:P(`pointer-events-none absolute bottom-[calc(100%+6px)] z-50 w-max max-w-[260px] rounded-md bg-ink px-2.5 py-1.5 text-start text-[12px] font-normal leading-snug text-page shadow-md`,{center:`left-1/2 -translate-x-1/2`,start:`start-0`,end:`end-0`}[r],a?`visible opacity-100`:`invisible opacity-0`),children:e})]})}var tr={target:`_blank`,rel:`noopener`},nr=[`outreach`,`backlinks`,`competitors`,`keywords`,`report`];function rr(){let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(0);(0,_.useEffect)(()=>{w.grow().then(t).catch(()=>r(!0))},[i]);let o=!!e?.connected&&nr.some(t=>e[t]?.state===`pending`);if((0,_.useEffect)(()=>{if(!o||i>=4)return;let e=window.setTimeout(()=>a(e=>e+1),6e4);return()=>window.clearTimeout(e)},[o,i]),n)return null;if(!e)return(0,F.jsx)(`section`,{"aria-label":x(`What to do next`,`monoranks`),"aria-busy":`true`,className:`grid grid-cols-2 gap-5 max-[960px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[180px] animate-pulse bg-surface2`},e))});if(!e.connected)return null;let s=e.scope_url??``;return(0,F.jsxs)(`section`,{"aria-labelledby":`mr-grow-title`,className:`flex flex-col gap-3`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,F.jsx)(`h2`,{id:`mr-grow-title`,className:`text-[15px] font-semibold text-ink`,children:x(`What to do next`,`monoranks`)}),e.fetched&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(x(`Updated %s`,`monoranks`),e.fetched)})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsx)(or,{d:e.outreach,scope:s}),(0,F.jsx)(sr,{d:e.backlinks,scope:s}),(0,F.jsx)(cr,{d:e.competitors,scope:s}),(0,F.jsx)(lr,{d:e.keywords,scope:s})]}),(0,F.jsx)(ur,{d:e.report})]})}function ir({state:e,scope:t,empty:n}){let r=n;if(e===`no_access`)r=(0,F.jsxs)(F.Fragment,{children:[x(`The MonoRanks key of this site cannot read this yet. Allow it under Integrations in MonoRanks, or connect again.`,`monoranks`),` `,t&&(0,F.jsx)(`a`,{className:`font-medium text-brand-ink hover:underline`,href:ln(t,`grow-scope`),...tr,children:x(`Open Integrations`,`monoranks`)})]});else if(e===`off`)r=x(`Not available in your MonoRanks yet.`,`monoranks`);else if(e===`error`)r=x(`Could not reach MonoRanks. Retrying soon.`,`monoranks`);else if(e===`pending`)return(0,F.jsx)(`p`,{className:`m-0 animate-pulse text-[12px] text-mute`,role:`status`,children:x(`Checking…`,`monoranks`)});return(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:r})}function ar({title:e,badge:t,link:n,linkText:r,children:i}){return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[e,t]}),n&&(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(n,`grow-card`),...tr,children:[r,(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]}),(0,F.jsx)($n,{className:`flex flex-col gap-3 pt-3`,children:i})]})}function or({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Outreach`,`monoranks`),badge:n&&n.to_contact>0?(0,F.jsx)(L,{children:C(S(`%s to contact`,`%s to contact`,n.to_contact,`monoranks`),I(n.to_contact))}):void 0,link:n?.link||e?.link,linkText:x(`All targets`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[n.top.length>0?(0,F.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-2.5 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`a`,{className:`truncate text-[13px] font-semibold text-ink hover:underline`,href:e.url,...tr,children:[(0,F.jsx)(`bdi`,{children:e.title}),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`text-[12px] text-ink2`,children:[e.why,e.domain&&(0,F.jsxs)(F.Fragment,{children:[` · `,(0,F.jsx)(`bdi`,{className:`text-mute`,children:e.domain})]})]})]},e.url))}):(0,F.jsx)(ir,{state:`empty`,scope:t,empty:x(`Every target is contacted. MonoRanks looks for new ones each week.`,`monoranks`)}),(0,F.jsx)(`p`,{className:`m-0 text-[11px] text-mute`,children:x(`Sites worth asking for a link or a mention. MonoRanks never sends email; you reach out and set the status there.`,`monoranks`)})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No outreach targets yet. MonoRanks looks for pages worth a link each week.`,`monoranks`)})})}function sr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Backlinks`,`monoranks`),link:n?.link||e?.link,linkText:x(`All backlinks`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-5 gap-y-1`,children:[(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-good-ink`,children:[`+`,I(n.new)]}),(0,F.jsxs)(`span`,{className:`text-2xl font-semibold leading-none tabular-nums text-critical`,children:[`−`,I(n.lost)]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`websites linking to you, won and lost in 28 days`,`monoranks`)})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s website links to you`,`%s websites link to you`,n.domains,`monoranks`),I(n.domains))}),n.review>0&&(0,F.jsx)(L,{variant:`pill`,children:C(S(`%s to review for spam`,`%s to review for spam`,n.review,`monoranks`),I(n.review))})]}),n.top.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Newest strong links`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-x-3 gap-y-1 p-0 text-[12px]`,children:n.top.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`bdi`,{children:e.domain}),e.rank!==null&&(0,F.jsxs)(`span`,{className:`text-mute`,children:[` · `,C(x(`strength %s`,`monoranks`),I(e.rank))]})]},e.domain))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No backlink data yet. MonoRanks refreshes it weekly.`,`monoranks`)})})}function cr({d:e,scope:t}){let n=e?.state===`ok`?e:null;return(0,F.jsx)(ar,{title:x(`Competitors`,`monoranks`),badge:n&&n.gaps?(0,F.jsx)(L,{children:C(S(`%s keyword gap`,`%s keyword gaps`,n.gaps,`monoranks`),I(n.gaps))}):void 0,link:n?.link||e?.link,linkText:x(`All competitors`,`monoranks`),children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:n.top.map(e=>(0,F.jsxs)(`li`,{className:`grid gap-0.5`,children:[(0,F.jsxs)(`span`,{className:`text-[13px] font-semibold`,children:[(0,F.jsx)(`bdi`,{children:e.domain}),!e.picked&&(0,F.jsx)(`span`,{className:`ms-1.5 text-[11px] font-normal text-mute`,children:x(`suggested`,`monoranks`)})]}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:e.reason||C(S(`%1$s shared keyword, %2$s where they rank higher`,`%1$s shared keywords, %2$s where they rank higher`,e.shared,`monoranks`),I(e.shared),I(e.above_us))})]},e.domain))}),n.keywords.length>0&&(0,F.jsxs)(`div`,{className:`grid gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`They rank for these, you do not`,`monoranks`)}),(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1.5 p-0`,children:n.keywords.map(e=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:e.keyword}),e.volume!==null&&(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:C(x(`%s/mo`,`monoranks`),I(e.volume))})]})},e.keyword))})]})]}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No competitors yet. Pick some in MonoRanks to see the keywords they win.`,`monoranks`)})})}function lr({d:e,scope:t}){let n=e?.state===`ok`?e:null,r=({k:e,up:t})=>(0,F.jsxs)(`li`,{className:`flex items-baseline justify-between gap-3 text-[12px]`,children:[(0,F.jsx)(`bdi`,{className:`min-w-0 truncate`,children:e.keyword}),(0,F.jsxs)(`span`,{className:`shrink-0 tabular-nums ${t?`text-good-ink`:`text-critical`}`,children:[(0,F.jsxs)(`span`,{className:`sr-only`,children:[x(t?`up`:`down`,`monoranks`),` `]}),C(x(`%1$s → %2$s`,`monoranks`),I(e.from),I(e.to))]})]});return(0,F.jsx)(ar,{title:x(`Keyword movers this week`,`monoranks`),link:n?.link||e?.link,linkText:x(`All keywords`,`monoranks`),children:n?n.up.length||n.down.length?(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Up`,`monoranks`)}),n.up.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.up.map(e=>(0,F.jsx)(r,{k:e,up:!0},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]}),(0,F.jsxs)(`div`,{className:`grid content-start gap-1`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Down`,`monoranks`)}),n.down.length?(0,F.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.down.map(e=>(0,F.jsx)(r,{k:e,up:!1},e.keyword))}):(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:`—`})]})]}):(0,F.jsx)(`p`,{className:`m-0 text-[12px] text-ink2`,children:C(S(`Your %s tracked keyword held its place this week.`,`Your %s tracked keywords held their places this week.`,n.tracked,`monoranks`),I(n.tracked))}):(0,F.jsx)(ir,{state:e?.state??`pending`,scope:t,empty:x(`No tracked keywords yet. Track some in MonoRanks to see them move here.`,`monoranks`)})})}function ur({d:e}){if(!e||e.state!==`ok`&&e.state!==`empty`)return null;let t=e.state===`ok`?e.emails??[]:[],n=e.state===`ok`?e.reports??[]:[];return(0,F.jsx)(Xn,{className:`grid gap-3 px-5 py-3.5`,children:e.state===`empty`?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`text-[13px] text-ink2`,children:x(`No reports yet. Create a website report, a client report or a weekly email in MonoRanks to share progress.`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:x(`Reports`,`monoranks`)}),e.all_link&&(0,F.jsx)(R,{size:`sm`,variant:`ghost`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.all_link,`reports`),...tr,children:x(`Open reports`,`monoranks`)})})]}),(0,F.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[t.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.name})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,x(`Weekly email`,`monoranks`)]})]}),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-[12px] text-ink2`,children:[e.enabled&&e.next_label?(0,F.jsx)(`span`,{children:C(x(`Next send %s`,`monoranks`),e.next_label)}):null,(0,F.jsx)(`span`,{children:C(S(`%s recipient`,`%s recipients`,e.recipients,`monoranks`),I(e.recipients))}),(0,F.jsx)(L,{children:e.enabled?x(`On`,`monoranks`):x(`Off`,`monoranks`)})]})]},`e${t}`)),n.map((e,t)=>(0,F.jsxs)(`li`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-b border-grid py-2 last:border-b-0`,children:[(0,F.jsxs)(`span`,{className:`text-[13px]`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:e.scope||e.title})}),` `,(0,F.jsxs)(`span`,{className:`text-mute`,children:[`· `,e.client?x(`Client report`,`monoranks`):x(`Report`,`monoranks`),e.when?` · ${e.when}`:``]})]}),e.link&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsxs)(`a`,{href:ln(e.link,`latest-report`),...tr,children:[x(`Open report`,`monoranks`),(0,F.jsxs)(`span`,{className:`sr-only`,children:[` `,x(`(opens in a new tab)`,`monoranks`)]})]})})]},`r${t}`))]})]})})}var dr=`whitespace-nowrap border-b border-border px-[10px] py-[11px] text-start text-[12px] font-medium text-mute`,fr=`border-b border-grid px-[10px] py-3 align-middle group-last:border-b-0`;function pr(e,t){let n=e.replace(/<[^>]+>/g,``).trim();return n.length>t?n.slice(0,t-1)+`…`:n}function mr(e){try{let t=new URL(e);return t.pathname+t.search}catch{return e}}function hr({fix:e,labels:t}){let n=e.title||(e.field===`redirect`?e.from:x(`Site`,`monoranks`)),r=e.before?pr(e.before,90):null;return(0,F.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:t[e.field]??e.field}),(0,F.jsx)(`span`,{className:`min-w-0 truncate text-[12px] text-ink2`,children:e.field===`redirect`||e.field===`ai_bots`||e.field===`llms_txt`?(0,F.jsx)(`b`,{className:`font-semibold text-ink`,children:(0,F.jsx)(`bdi`,{children:n})}):(0,F.jsx)(`bdi`,{children:C(x(`on %s`,`monoranks`),n)})})]}),e.field===`alt`&&e.image&&(0,F.jsx)(`span`,{className:`truncate text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:C(x(`Image: %s`,`monoranks`),e.image)})}),e.field===`content`?(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Adds one answer-first paragraph at the top. Review the before/after in MonoRanks first.`,`monoranks`)}):(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-[12px]`,children:[(0,F.jsx)(`span`,{className:`text-mute`,children:r?(0,F.jsx)(`s`,{children:(0,F.jsx)(`bdi`,{children:r})}):x(`(empty)`,`monoranks`)}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`→`}),(0,F.jsx)(`span`,{className:`sr-only`,children:x(`changes to`,`monoranks`)}),(0,F.jsx)(`b`,{className:`font-semibold`,children:(0,F.jsx)(`bdi`,{children:pr(e.after,120)})})]}),e.note&&(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:(0,F.jsx)(`bdi`,{children:e.note})})]})}function gr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null);(0,_.useEffect)(()=>{w.overview().then(r).catch(e=>a(se(e,x(`Could not load the overview.`,`monoranks`))))},[]);async function f(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let p=n?.overview??null,m=typeof p?.to_review?.needs_value==`number`?p.to_review.needs_value:null,h=p?.to_review&&(p.to_review.total>0||(m??0)>0)&&p.to_review.review_url?p.to_review:null,g=n?p?(0,F.jsxs)(F.Fragment,{children:[x(`Weekly SEO, AEO and GEO audit of`,`monoranks`),` `,(0,F.jsx)(`code`,{children:n.host}),n.audited&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`last audit %s`,`monoranks`),n.audited)]}),p.pages_total>0&&(0,F.jsxs)(F.Fragment,{children:[` · `,C(x(`%1$s of %2$s published pages scored`,`monoranks`),I(p.pages_scored),I(p.pages_total))]})]}):void 0:`\xA0`,v=n?.connected?(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>f(`sync`,()=>w.sync(`overview`)),children:x(`Sync content now`,`monoranks`)}):null;return(0,F.jsxs)(fn,{section:`overview`,go:e,title:x(`Overview`,`monoranks`),description:g,actions:v,children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(_r,{}),n&&(!n.connected||n.revoked)&&(0,F.jsx)(vr,{revoked:n.revoked,go:e}),n&&n.connected&&!n.revoked&&!p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(br,{data:n}),(0,F.jsx)(rr,{})]}),n&&p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Health score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.health})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.health,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Technical, on-page, links, speed`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:C(S(`Site average, %s page`,`Site average, %s pages`,p.pages_scored,`monoranks`),I(p.pages_scored))})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`AEO score`,`monoranks`)}),(0,F.jsx)(bn,{n:p.deltas.aeo})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-[14px]`,children:[(0,F.jsx)(yn,{score:p.aeo,size:`lg`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Answer-first, structure, entities`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`How well AI answers can use your pages`,`monoranks`)})]})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Search clicks, 28 days`,`monoranks`)}),p.traffic&&(0,F.jsx)(bn,{n:p.traffic.delta_pct,unit:`%`,period:`previous28`})]}),p.traffic?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:I(p.traffic.clicks_28d)}),(0,F.jsx)(xn,{series:p.traffic.series}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`From Google Search Console, through MonoRanks`,`monoranks`)})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`text-2xl font-semibold text-mute`,children:`—`}),(0,F.jsx)(`span`,{className:`text-[11px] text-mute`,children:x(`Connect Google Search Console in MonoRanks to see clicks here.`,`monoranks`)})]})]}),(0,F.jsxs)(Xn,{className:`flex flex-col gap-2.5 px-5 py-[18px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-ink2`,children:x(`Fixes`,`monoranks`)}),p.fixes.ready>0&&(0,F.jsx)(L,{children:C(x(`%s ready`,`monoranks`),I(p.fixes.ready))})]}),(0,F.jsxs)(`div`,{className:`text-2xl font-semibold leading-none tabular-nums tracking-[-0.01em]`,children:[I(p.fixes.applied_30d),` `,(0,F.jsx)(`span`,{className:`text-[12px] font-normal text-ink2`,children:x(`applied in 30 days`,`monoranks`)})]}),h&&h.total>0&&(0,F.jsxs)(`a`,{className:`text-[12px] font-medium text-brand-ink hover:underline`,href:ln(h.review_url,`fixes-card`),target:`_blank`,rel:`noopener`,children:[C(x(`%s waiting for your approval in MonoRanks`,`monoranks`),I(h.total)),` →`]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.bots_rules?`good`:`muted`}),p.ai.bots_rules?x(`AI crawler rules on`,`monoranks`):x(`No AI crawler rules`,`monoranks`)]}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:p.ai.llms_txt?`good`:`muted`}),p.ai.llms_txt?x(`llms.txt published`,`monoranks`):x(`No llms.txt`,`monoranks`)]})]})]})]}),!n.revoked&&(0,F.jsx)(rr,{}),(0,F.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,3fr)_minmax(0,2fr)] items-start gap-5 max-[960px]:grid-cols-1`,children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Pages needing attention`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.app_url,`all-pages`),target:`_blank`,rel:`noopener`,children:x(`All pages in MonoRanks`,`monoranks`)})})]}),p.attention.length?(0,F.jsx)(`div`,{className:`overflow-x-auto rounded-b-xl pt-2`,children:(0,F.jsxs)(`table`,{className:`w-full border-collapse`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:dr,children:x(`Page`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Health`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`AEO`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr,children:x(`Biggest issue`,`monoranks`)}),(0,F.jsx)(`th`,{className:dr})]})}),(0,F.jsx)(`tbody`,{children:p.attention.map(e=>(0,F.jsxs)(`tr`,{className:`group hover:[&>td]:bg-surface2`,children:[(0,F.jsx)(`td`,{className:fr,children:(0,F.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,F.jsx)(`b`,{className:`font-semibold`,children:e.title||e.url}),e.url&&(0,F.jsx)(`code`,{className:`max-w-[180px] text-[11px]`,children:mr(e.url)})]})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.health})}),(0,F.jsx)(`td`,{className:fr,children:(0,F.jsx)(yn,{score:e.aeo})}),(0,F.jsx)(`td`,{className:`${fr} text-[12px]`,children:e.issue}),(0,F.jsx)(`td`,{className:`${fr} text-end`,children:e.page_url&&(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`fix-page`),target:`_blank`,rel:`noopener`,children:x(`Fix in MonoRanks`,`monoranks`)})})})]},e.post_id+e.url))})]})}):(0,F.jsx)(gn,{title:x(`Nothing needs attention`,`monoranks`),text:x(`Every scored page is above 60. The next audit may change that.`,`monoranks`)})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(Qn,{children:[x(`Ready to apply`,`monoranks`),p.ready.length>0&&(0,F.jsx)(L,{children:I(p.ready.length)}),p.ready.length>0&&(0,F.jsx)(er,{text:x(`Approved in MonoRanks. Each write is logged under Settings and can be undone for 30 days.`,`monoranks`)})]}),p.ready.length>1&&(0,F.jsx)(R,{variant:`primary`,size:`sm`,disabled:c!==null,"aria-busy":c===`all`,onClick:()=>f(`all`,()=>w.apply(`all`)),children:x(`Apply all`,`monoranks`)})]}),(0,F.jsxs)($n,{className:`flex flex-col pt-1.5`,children:[p.ready.length===0&&h&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 py-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[m===null?(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:C(x(`%s fixes are ready for your approval`,`monoranks`),I(h.total))}):(0,F.jsx)(`b`,{className:`text-[13px] font-semibold`,children:[h.total>0&&C(S(`%s ready to apply`,`%s ready to apply`,h.total,`monoranks`),I(h.total)),m>0&&C(S(`%s needs a value in MonoRanks`,`%s need a value in MonoRanks`,m,`monoranks`),I(m))].filter(Boolean).join(` · `)}),(0,F.jsx)(er,{text:x(m!==null&&m>0?`Type a value or draft one with AI in MonoRanks, approve it, and it is written here, with undo.`:`Approve them in MonoRanks and they are written here, with undo.`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Object.entries(h.by_field).sort((e,t)=>t[1]-e[1]).map(([e,t])=>(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(`bdi`,{children:n.labels[e]??e}),(0,F.jsx)(`span`,{className:`tabular-nums text-ink2`,children:I(t)})]},e))}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(h.review_url,`review-fixes`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})})]}),p.ready.length===0&&!h&&(0,F.jsx)(gn,{title:x(`No fixes waiting`,`monoranks`),text:x(`Fixes you approve in MonoRanks appear here, ready to write into WordPress.`,`monoranks`)}),p.ready.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),e.field===`content`&&e.page_url?(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review`,`monoranks`)})}):(0,F.jsx)(R,{size:`sm`,disabled:c!==null,"aria-busy":c===e.id,onClick:()=>f(e.id,()=>w.apply(e.id)),children:x(`Apply`,`monoranks`)})]},e.id))]})]}),(p.needs_review??[]).length>0&&(0,F.jsxs)(Xn,{children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{children:[x(`Needs review in MonoRanks`,`monoranks`),(0,F.jsx)(L,{children:I(p.needs_review.length)}),(0,F.jsx)(er,{text:x(`These changed in WordPress after they were reviewed, so they are not applied from here. Review them again in MonoRanks.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col pt-1.5`,children:p.needs_review.map(e=>(0,F.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-grid py-3 last-of-type:border-b-0`,children:[(0,F.jsx)(hr,{fix:e,labels:n.labels}),(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.page_url||p.site_url,`review-fix`),target:`_blank`,rel:`noopener`,children:x(`Review in MonoRanks`,`monoranks`)})})]},e.id))})]})]}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:t.urls.settings,onClick:t=>{t.preventDefault(),e(`settings`)},children:x(`All changes`,`monoranks`)})})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),f(`undo`,()=>w.undo(e,`overview`))}})})]})]})]})}function _r(){return(0,F.jsx)(`div`,{className:`grid grid-cols-4 gap-[14px] max-[960px]:grid-cols-2 max-[600px]:grid-cols-1`,children:[0,1,2,3].map(e=>(0,F.jsx)(Xn,{className:`h-[150px] animate-pulse bg-surface2`},e))})}function vr({revoked:e,go:t}){let n=y();return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(e?`Connect MonoRanks again`:`Connect MonoRanks`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:e?`critical`:`muted`}),x(e?`Key revoked`:`Not connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.urls.connect,`connect-step`),target:`_self`,children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:n.urls.settings,onClick:e=>{e.preventDefault(),t(`settings`)},children:x(`Open settings`,`monoranks`)})})})]}),(0,F.jsx)(yr,{n:3,later:!0,children:(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`See scores here and in your Posts list`,`monoranks`)})})]})]})}function yr({n:e,later:t,children:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`span`,{className:`flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${t?`bg-surface3 text-ink2`:`bg-ink text-page`}`,children:e}),(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:n})]})}function br({data:e}){let t=e.status,[n,r]=t===`unsupported`?[x(`Not shared yet`,`monoranks`),x(`This MonoRanks does not share audit results with the plugin yet. Scores stay in MonoRanks for now; the plugin asks again tomorrow.`,`monoranks`)]:t===`error`?[x(`MonoRanks not reached`,`monoranks`),x(`MonoRanks could not be reached for the audit results. The plugin tries again within the hour, or when you reload this screen.`,`monoranks`)]:[x(`Not scored yet`,`monoranks`),x(`MonoRanks has not scored this site yet. Scores appear here and in the Posts list after the first weekly audit.`,`monoranks`)];return(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Waiting for the first audit`,`monoranks`)}),(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`good`}),x(`Connected`,`monoranks`)]})]}),(0,F.jsxs)($n,{className:`flex flex-col gap-4`,children:[(0,F.jsx)(hn,{rows:[[x(`Content`,`monoranks`),e.last_sent?C(x(`%1$s published items sent %2$s`,`monoranks`),I(e.items),e.last_sent):e.send_failed&&!e.sending?x(`Not sent. Use "Sync content now".`,`monoranks`):(0,F.jsx)(`span`,{className:`text-mute`,children:x(`Sending…`,`monoranks`)})],[x(`Audit results`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n,(0,F.jsx)(er,{text:e.fetched?(0,F.jsxs)(F.Fragment,{children:[r,` · `,C(x(`checked %s`,`monoranks`),e.fetched)]}):r})]})]]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(e.app_url,`open-audit`),target:`_blank`,rel:`noopener`,children:x(`Open the audit in MonoRanks`,`monoranks`)})})})]})]})}function xr({className:e,type:t,...n}){return(0,F.jsx)(`input`,{type:t,"data-slot":`input`,className:P(`flex h-10 w-full max-w-[440px] rounded-lg border border-input bg-surface px-[14px] text-[13px] text-ink outline-none placeholder:text-mute focus:border-brand disabled:opacity-55`,e),...n})}function Sr({go:e}){let t=y(),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(t.notice),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1);(0,_.useEffect)(()=>{w.settings().then(e=>{r(e),p(e.revoked)}).catch(e=>a(se(e,x(`Could not load the settings.`,`monoranks`))))},[]);let[g,v]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(g===null||n?.connected)return;let e=!1,t=()=>{if(!(e||document.visibilityState!==`visible`)){if(Date.now()-g>6e5){v(null);return}w.settings().then(t=>{!e&&t.connected&&(r(t),p(!1),v(null))}).catch(()=>{})}},i=window.setInterval(t,4e3);return document.addEventListener(`visibilitychange`,t),()=>{e=!0,window.clearInterval(i),document.removeEventListener(`visibilitychange`,t)}},[g,n?.connected]);async function b(e,t){l(e);try{let e=await t();s(e.notice),r(e.data),window.scrollTo({top:0})}catch(e){s({type:`error`,text:se(e,x(`Something went wrong. Try again.`,`monoranks`))})}finally{l(null),d(null)}}let ee=!!n?.connected,te=!!n?.revoked;return(0,F.jsxs)(fn,{section:`settings`,go:e,title:x(`Settings`,`monoranks`),children:[(0,F.jsx)(mn,{notice:o}),i&&(0,F.jsx)(mn,{notice:{type:`error`,text:i}}),!n&&!i&&(0,F.jsx)(Xn,{className:`h-[260px] animate-pulse bg-surface2`}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-[9px] bg-surface2 [&_svg]:h-5 [&_svg]:w-5`,"aria-hidden":`true`,children:(0,F.jsx)(un,{which:`mark`})}),(0,F.jsx)(Qn,{children:x(`Connection`,`monoranks`)})]}),ee?(0,F.jsx)(er,{align:`end`,text:x(te?`MonoRanks no longer accepts this key. Connect again from MonoRanks or paste a new key below.`:`Sending published content to MonoRanks. Nothing else leaves this site.`,`monoranks`),children:(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:te?`critical`:`good`}),x(te?`Key revoked`:`Connected`,`monoranks`)]})}):(0,F.jsxs)(L,{variant:`pill`,children:[(0,F.jsx)(En,{tone:`muted`}),x(`Not connected`,`monoranks`)]})]}),(0,F.jsx)($n,{className:`flex flex-col gap-4`,children:ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hn,{rows:[[x(`Connector key`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`code`,{children:n.key_hint}),(0,F.jsx)(er,{text:n.key_via})]})],[x(`Last sync`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[n.last_sent_date?(0,F.jsx)(er,{text:n.last_sent_date,children:(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short})}):(0,F.jsx)(`span`,{className:`tabular-nums`,children:n.last_sent_short}),n.sending&&(0,F.jsx)(L,{children:C(x(`sending, batch %1$s of %2$s`,`monoranks`),I(n.sending.page),I(Math.max(1,n.sending.pages)))}),n.items>0&&(0,F.jsx)(L,{children:C(S(`%s published item`,`%s published items`,n.items,`monoranks`),I(n.items))}),n.last_error&&(0,F.jsx)(L,{variant:`warn`,children:n.last_error})]})],...n.next_audit?[[x(`Next audit`,`monoranks`),n.next_audit]]:[],n.app_password?.exists?[x(`Fixes written with`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`App password`,`monoranks`),(0,F.jsx)(er,{text:x(`Fixes are written with the "MonoRanks" Application Password. Revoke it in your profile to stop writes.`,`monoranks`)}),(0,F.jsx)(`a`,{href:n.app_password.revoke_url||n.profile_url,children:x(`Revoke`,`monoranks`)})]})]:[x(`Fixes`,`monoranks`),(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[x(`Not set up`,`monoranks`),(0,F.jsx)(er,{text:x(`Approve MonoRanks in WordPress so it can write the fixes you accept.`,`monoranks`)}),n.app_password?.available!==!1&&(0,F.jsx)(`a`,{href:ln(n.allow_url||n.connect_url,`allow-fixes`,`settings`),target:`_self`,children:x(`Allow`,`monoranks`)})]})],[x(`Works with`,`monoranks`),n.seo_plugin&&!n.seo_supported?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{variant:`warn`,children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`MonoRanks cannot write titles, descriptions, canonicals or noindex into %s yet, so those fixes are refused`,`monoranks`),n.seo_plugin)})]}):n.seo_plugin?(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:C(x(`%s detected`,`monoranks`),n.seo_plugin)}),(0,F.jsx)(er,{text:C(x(`titles and descriptions go into the fields %s reads`,`monoranks`),n.seo_plugin)})]}):(0,F.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(L,{children:x(`No SEO plugin`,`monoranks`)}),(0,F.jsx)(er,{text:x(`MonoRanks prints the approved title, description, canonical and noindex tags itself`,`monoranks`)})]})]]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(R,{variant:`primary`,disabled:c!==null,"aria-busy":c===`sync`,onClick:()=>b(`sync`,()=>w.sync(`settings`)),children:x(`Send content now`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Disconnect stops sending. Fixes already applied stay.`,`monoranks`),children:(0,F.jsx)(R,{disabled:c!==null,"aria-busy":c===`disconnect`,onClick:()=>b(`disconnect`,()=>w.disconnect()),children:x(`Disconnect`,`monoranks`)})})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(yr,{n:1,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Connect to MonoRanks`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-ink2`,children:x(`Sign in and approve. Takes a minute.`,`monoranks`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,size:`sm`,asChild:!0,children:(0,F.jsx)(`a`,{href:ln(n.connect_url,`connect-step`,`settings`),target:`_self`,onClick:()=>v(Date.now()),children:x(`Connect`,`monoranks`)})})})]}),(0,F.jsxs)(yr,{n:2,later:!0,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`b`,{className:`text-[13px] font-semibold text-ink`,children:x(`Or paste a connector key`,`monoranks`)}),(0,F.jsx)(er,{text:x(`Use this when your host blocks Application Passwords.`,`monoranks`)})]}),(0,F.jsx)(Cr,{data:n,busy:c,onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})]})]})})]}),ee&&(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{open:f,onToggle:e=>p(e.currentTarget.open),className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`Use a different key`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(Cr,{data:n,busy:c,hint:x(`In MonoRanks: Settings → API and MCP → New credential, content:write, this website.`,`monoranks`),onSubmit:(e,t)=>b(`connect`,()=>w.connect(e,t))})})]})}),(0,F.jsx)(Xn,{children:(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 px-[22px] py-4 font-medium text-ink2 hover:text-ink [&::-webkit-details-marker]:hidden`,children:[(0,F.jsx)(D,{size:14,className:`mr-flip transition-transform group-open:rotate-90`}),x(`What is sent`,`monoranks`)]}),(0,F.jsx)(`div`,{className:`border-t border-grid px-[22px] pb-[22px] pt-4`,children:(0,F.jsx)(hn,{rows:[[x(`Sent`,`monoranks`),x(`Published titles, a 40-word excerpt, dates, authors, categories, tags, SEO fields, image alt text and plugin status.`,`monoranks`)],[x(`Read back`,`monoranks`),x(`This website's audit results: scores, issues and the fixes you approved, shown here and in the Posts list.`,`monoranks`)],[x(`Never sent`,`monoranks`),x(`Drafts, private posts, comments, emails, passwords, plugin or theme settings.`,`monoranks`)],[x(`Can change`,`monoranks`),x(`SEO title, meta description, canonical, noindex, image alt text, redirects, one opening paragraph, AI crawler rules, llms.txt. Only after you approve each one.`,`monoranks`)]]})})]})}),(0,F.jsxs)(Xn,{children:[(0,F.jsxs)(Zn,{children:[(0,F.jsx)(Qn,{children:x(`Recent changes`,`monoranks`)}),(0,F.jsx)(`span`,{className:`text-[12px] text-mute`,children:x(`Last 50 · undo for 30 days`,`monoranks`)})]}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(Yn,{rows:n.log,busy:u,onUndo:e=>{d(e.index),b(`undo`,()=>w.undo(e,`settings`))}})})]}),!ee&&n.has_data&&(0,F.jsxs)(Xn,{className:`border-critical/40`,children:[(0,F.jsx)(Zn,{children:(0,F.jsxs)(Qn,{className:`text-critical`,children:[x(`Danger zone`,`monoranks`),(0,F.jsx)(er,{text:x(`Erases the connection, scores, redirects, AI files and change log. Written fixes stay.`,`monoranks`)})]})}),(0,F.jsx)($n,{className:`flex flex-col gap-3`,children:m?(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-[12px] font-medium text-critical`,children:x(`This cannot be undone. Delete everything?`,`monoranks`)}),(0,F.jsx)(R,{variant:`dangerSolid`,disabled:c!==null,"aria-busy":c===`delete`,onClick:()=>{h(!1),b(`delete`,()=>w.deleteEverything())},children:x(`Yes, delete all data`,`monoranks`)}),(0,F.jsx)(R,{variant:`ghost`,disabled:c!==null,onClick:()=>h(!1),children:x(`Cancel`,`monoranks`)})]}):(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`danger`,onClick:()=>h(!0),children:x(`Delete all MonoRanks data`,`monoranks`)})})})]})]})]})}function Cr({data:e,busy:t,hint:n,onSubmit:r}){let[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(e.api_base);function c(t){t.preventDefault(),r(i,e.show_address?o:void 0)}return(0,F.jsxs)(`form`,{onSubmit:c,className:`flex flex-col gap-3 pt-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-key`,className:`text-[12px] font-medium text-ink2`,children:x(`Connector key`,`monoranks`)}),n&&(0,F.jsx)(er,{align:`start`,text:n})]}),(0,F.jsx)(xr,{id:`monoranks-key`,name:`key`,type:`password`,autoComplete:`off`,placeholder:`mr_ws_… or mr_site_…`,required:!0,value:i,onChange:e=>a(e.target.value)})]}),e.show_address&&(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`label`,{htmlFor:`monoranks-address`,className:`text-[12px] font-medium text-ink2`,children:x(`MonoRanks address (development sites only)`,`monoranks`)}),(0,F.jsx)(xr,{id:`monoranks-address`,name:`api_base`,type:`url`,value:o,onChange:e=>s(e.target.value)})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(R,{variant:`primary`,type:`submit`,disabled:t!==null,"aria-busy":t===`connect`,children:x(`Save key`,`monoranks`)})})]})}function wr(){let[e,t]=te();return v(),e===`settings`?(0,F.jsx)(Sr,{go:t}):(0,F.jsx)(gr,{go:t})}var Tr=document.getElementById(`monoranks-admin`);Tr&&(0,g.createRoot)(Tr).render((0,F.jsx)(_.StrictMode,{children:(0,F.jsx)(wr,{})})); \ No newline at end of file diff --git a/languages/monoranks-fa_IR-admin.json b/languages/monoranks-fa_IR-admin.json index 18e46c6..3686d2d 100644 --- a/languages/monoranks-fa_IR-admin.json +++ b/languages/monoranks-fa_IR-admin.json @@ -1,5 +1,5 @@ { - "translation-revision-date": "2026-10-25T12:57:45+00:00", + "translation-revision-date": "2026-10-25T13:25:53+00:00", "generator": "WP-CLI/2.12.0", "source": "resources/admin", "domain": "messages", @@ -575,8 +575,11 @@ "%1$s published items sent %2$s": [ "%1$s مورد منتشرشده %2$s فرستاده شد" ], - "Not sent yet. Use \"Sync content now\" above.": [ - "هنوز فرستاده نشده. از «همگام‌سازی محتوا» در بالا استفاده کنید." + "Not sent. Use \"Sync content now\".": [ + "ارسال نشد. «همگام‌سازی محتوا» را بزنید." + ], + "Sending…": [ + "در حال ارسال…" ], "Audit results": [ "نتایج ممیزی" diff --git a/languages/monoranks-fa_IR.mo b/languages/monoranks-fa_IR.mo index 95057a6c22a42aa80da5176946f4ed28b840e14d..8cfa956654b69c2bb37ddc4a99929e389bd28e54 100644 GIT binary patch delta 4788 zcmYM&4Rp*`8prV)q#}_`Bt%G3BZMSKB9T;6#Cq)t_5MytB9#{=Di)FG?5d4WWmn|1 zrB>CRMjcglghNa9pxYjA>!mT4Q*YZ6%Be1Uw%Kj$_viliY|nH)_uiTRz0ZB_^PkD6 zYV=#(=;!$+tVNCCzfOL}L}S}l>KW5I?Ek76%u@)uunVT(vp4~Bu@r-`9-qO#BM)K-}((??%0^4zjuH2?qM(S=7S8rMw4R{1&~0$FDlSnWJ=>k&0B@(SdD$~t0?l{f<_YqMcAC#Mxh%g;isq_ zgi}d_a2%Fk4eAK|DPg5D2-T0qS1=Y;{i|^VzKi|vHul1;7+` zF_(ev+)Hj;k2A0dxwFi44thMkii`0CDg*t9LXJi)n2Xx!JXBGZp+Bxh1-Kq{n{IOY zyPx(w#vG)fVmpm0iYus8g_7SFu@h=%1^5D%p)yv7df(?b0{@D`F{-;Q);v@o#i)79 zk%!sC6MHZ|?7;fwXBw)?_VG55QK*ThBUv*=s2!|z#^1t3`X8Wfr*o)<8l2aELfviw z33i^2sD1(}@E1^-8jc?Ad;$%fd9LGYs0%isYGM}#;0ebw*n<8gQ~+186+Xg6*yQv} zi86!!a@2r$Dk%SjFgZ00{M_M z4aguE6a`7EQO__JT23 zME?N#V{EED!+3m|emZJL8<88wyo1f~Flxs~Q5ijnshjdejO?U^{9ovLj`sZo8v>&!jBzw3$&#lgmck_)Qrbe(NGa>KrOrzRV;^5 z6P!XVaLF0Jicc59V8$P!j_?WU`T(}4@hH?h38;DcqBb}fmDyPs#QJ764I(i$NU&xr zDs>l-Q!w?I~f<%E+f#?6)0_iwwB%E^>#Mpn*13nW&wQMPf4f7=!O)DIP_gZ6CI$ z0JAU}$6`6Uu>$YnJ2;nZYdycg_PX|iJ+>%f8PM4bKt(zcHPH<0f@P@c--1tz6g$vA zjJgXhp#r;&dY}IgyFeJOrXPdzuok1R?NIxjkm8}CiSkiZto}5tLhbApDgzHN$&bPu zX2*LEw`blDIaad}b#%K?MSC4{unp&@>q}AZTZPKhFQ_suZNGafgeE^<9|Uda0k8Eh))B1iNd9S9sh*oqo4jA;4!W- zHpMyEj2C`~N@*2_;@hZ9e26NVeW(F-ghN>O^Ipn`H4c8pI^FgQ!axfh? zplahwOvdj}#Tk)r?S=vLGf)9!p^CE*f5644h34|5zZ_SfjznL9GSWjsJ4!)S`4Chp zM?3ujbkQ$GeK2iw+>D8SWB_&j=>q#hJpmwwcm6HVoqVMJt-Yhr1>D|URDJI|F@;$D>RUgUC@EQ$55jPKH-<(xwI+?&7oz`MO? zLSW0Z%+&PE^t9>=8FBw>d!J;a_XzXV`u6&~zS_$xU6(6;`+OfKRZq+99+?(wzIdsC2!e`NkpxjuMpRG(6~_mP&lDA5z$cKJX@K~+srbk&D`qCk zd{hdW7NeJDG{>?M#}>14=_!1j0^+u~Qq zpZSKDKy1RU*o?g~yi?2lZZn)l5(9HF6<!#oWF?srSjiSKZr+SG5t`a(9Ig0h&yovHei1Y>tT<4w3~)619MOj z=b);4De6d8qRzey73db!#5?c_+>6TKIma(i^LTMK-a_3!!evYcoPe4)86QL4HerNR8iDp2ULE?Lr2ukvT-;TqB3>}b=`5Ch-Yye2KKSVIs+BRJk-3! z$e%gD3wtmZFp~An_cT}j{wnsRe*pD3)uR@=>AZgr^|<-Q z+j+uJ{TNi>$*4??LbrCFMMGzv<5-5e;g_hIs6s#d#PI^Qrhf?)z!mhzCR~jVoc=PR z974YowV@9j&!Fb}V_(j{9gVLUP>Qc%TWms|)sIf!pEPJZ824iYYJ%S(^F{;mXRh+{4Epo1y09D-z#dep-$4a@ z!g>F5e2V@pT!yIw?3c`8oKN42i*ZPzop&!Tpx?ngkS_`v&*CP04auJAJjmXVhDG$N zunmSJ*|UqlT>8CHJKBsqFlIaY;xP=s8dN4fLeccbX2;zTG<5a}s5izr{kiC( zUxGpSy3;?1%0L}z;jdAF{Rvy)b=1PQ9RGn~^qX-BcH~h|t&}3Q<2D;plGY*X`eLCw<#wZSA*X0tF5%g~?oO$7~tGcTi3 z_Ze~urVjIcjQJO8f$X8yVjN9>1M+7+<>hVs2^H9$VRnZ{FoM1ZRh;$6DViIo^}S!pkuP__i^1(bF^DqPtqt5mt491U93tYr}?D?eq`reFD^gqRF zyo!2iD$;C`zlh4nQS6MLr?GDrjYbA|LQFF%Rq^R|=jljHW+ryWS8)~Apw2di?J2+k z*bUQhEzZYv*obf7EViu$@1pK&JI2;T$QZX>us;KeGy^qJCdS}WRQ2z~mLkPS`o~aD z!Fg0*S5VjefLg#OgX6*=d>Vg^U9r_z`(4ljHP1{p4OQ`SoQtKX2`;0~{u&POG3KAn zxNDp}^91BLO+M=A_M(dRBIcvcPxlv~t}8)h>I9bHIm|=%@Co+9J$Rad8hj6nClUmP zXBzVg-o|ZMKFPlCJJ|;QKDrqHEoy-V^x$o52`tN)H|bx*gIF|$W5SM8TQcl6Q)&1z zuo{)pQVhmzs7&le70tV-6rV;F*##`ao2VkrnPvkiMg_7HD{!AP9y8q@Z3b$ceC)30 zZY7N_4D7;mJd8@&ZR9h>#Llo2&qWp0TBMH51IOVr?f3cy)WTI5j3<%$Ghg6w41CI% zzu_4y$3wH2i}j6bwoU0I`*m}eiWL#Se^Lly6z zQ5k!Pei)Wx1MH6d=#Rxt_$<1I(AY{N8qc6ocGc{x!(Q|^qpqt$7dBulKENo9UTA+=r7R@>(G1LEKsS_QG9E=e*MGr8 ze2glZ#6{LLRBET70?0-c=O(<1yHE=~&zJss+=Duj$R*Z6s0~eU(@>SqN2PM9)8B|L z`a4k{Oz%6^VqYIJfSTaDrS=C(GxnvQQfU9Ryb!5ha}xE*7g$7gu_t!JTGUhHzC>dR zjq9i#4J_u<4^z;v&=yRgxs~$?z_S>K_2|MMa2R%8W{Wlp_tE!TZp;|0#<%efp2L?` z@C}I5pW)vKtZ$N6+Fz|v9CQt{TE+R{oA_58wb};I=Q&&LNqCX*Nf?UV_*heM zC8BDm2*Yt5#$qMzz*DFr%P7@PG0uNE4ejVHRBGx_7u>)^3@Wp!9f1_KS%O{g52%b? zM;*~^48*&rvww&RBw~%7CmtK<&%rJ@sGM=uHxp^}#&Qh9{iw)mQ7Nx?#;>3jxPzMD zJ}Q9VwRXWs)O~|d?`NX!Ux-P#0w>}-sCmA}?!h#EqQNPcfOU4lb-0QC7LR{uVR$Ro znnjf><09L-@(Wg!Eb{D#i)rmS*)KMrT~ccD(A2@nmA8h({;%x`9-5r+MB}!`t&Q8g zCtQsiy~n*C?|a^AZ%yMiSL0T1tr`Pd44kN(UC<|}#(Ui5J?yP+tngM>CX_~bUM^_w PS2?1no99x|u+aYk{=8_9 diff --git a/languages/monoranks-fa_IR.po b/languages/monoranks-fa_IR.po index 4f7923f..a251d23 100644 --- a/languages/monoranks-fa_IR.po +++ b/languages/monoranks-fa_IR.po @@ -627,68 +627,68 @@ msgstr "دستی اضافه شده" #: dist/monoranks/src/Overview.php:41 #: dist/monoranks/src/PostPanel.php:152 -#: src/Overview.php:41 +#: src/Overview.php:44 #: src/PostPanel.php:152 msgid "Title" msgstr "عنوان" #: dist/monoranks/src/Overview.php:42 #: dist/monoranks/src/PostPanel.php:153 -#: src/Overview.php:42 +#: src/Overview.php:45 #: src/PostPanel.php:153 msgid "Meta description" msgstr "توضیح متا" #: dist/monoranks/src/Overview.php:43 #: dist/monoranks/src/PostPanel.php:156 -#: src/Overview.php:43 +#: src/Overview.php:46 #: src/PostPanel.php:156 msgid "Canonical" msgstr "کانونیکال" #: dist/monoranks/src/Overview.php:44 #: dist/monoranks/src/PostPanel.php:157 -#: src/Overview.php:44 +#: src/Overview.php:47 #: src/PostPanel.php:157 msgid "Noindex" msgstr "Noindex" #: dist/monoranks/src/Overview.php:45 -#: src/Overview.php:45 +#: src/Overview.php:48 msgid "Image alt" msgstr "متن جایگزین تصویر" #: dist/monoranks/src/Overview.php:46 #: dist/monoranks/src/PostPanel.php:151 -#: src/Overview.php:46 +#: src/Overview.php:49 #: src/PostPanel.php:151 msgid "Redirect" msgstr "تغییر مسیر" #: dist/monoranks/src/Overview.php:47 -#: src/Overview.php:47 +#: src/Overview.php:50 msgid "Opening paragraph" msgstr "پاراگراف آغازین" #: dist/monoranks/src/Overview.php:48 -#: src/Overview.php:48 +#: src/Overview.php:51 msgid "robots.txt" msgstr "robots.txt" #: dist/monoranks/src/Overview.php:49 -#: src/Overview.php:49 +#: src/Overview.php:52 msgid "llms.txt" msgstr "llms.txt" #. translators: %d: attachment ID #, php-format #: dist/monoranks/src/Overview.php:68 -#: src/Overview.php:68 +#: src/Overview.php:71 msgid "Image #%d" msgstr "تصویر #%d" #: dist/monoranks/src/Overview.php:70 -#: src/Overview.php:70 +#: src/Overview.php:73 #: tmp/i18n/screens/Overview.js:30 msgid "Site" msgstr "سایت" @@ -1289,8 +1289,12 @@ msgid "%1$s published items sent %2$s" msgstr "%1$s مورد منتشرشده %2$s فرستاده شد" #: tmp/i18n/screens/Overview.js:202 -msgid "Not sent yet. Use \"Sync content now\" above." -msgstr "هنوز فرستاده نشده. از «همگام‌سازی محتوا» در بالا استفاده کنید." +msgid "Not sent. Use \"Sync content now\"." +msgstr "ارسال نشد. «همگام‌سازی محتوا» را بزنید." + +#: tmp/i18n/screens/Overview.js:202 +msgid "Sending…" +msgstr "در حال ارسال…" #: tmp/i18n/screens/Overview.js:203 msgid "Audit results" diff --git a/languages/monoranks.pot b/languages/monoranks.pot index 1e82dea..db1d880 100644 --- a/languages/monoranks.pot +++ b/languages/monoranks.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-10-25T12:57:45+00:00\n" +"POT-Creation-Date: 2026-10-25T13:25:52+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: monoranks\n" @@ -640,68 +640,68 @@ msgstr "" #: dist/monoranks/src/Overview.php:41 #: dist/monoranks/src/PostPanel.php:152 -#: src/Overview.php:41 +#: src/Overview.php:44 #: src/PostPanel.php:152 msgid "Title" msgstr "" #: dist/monoranks/src/Overview.php:42 #: dist/monoranks/src/PostPanel.php:153 -#: src/Overview.php:42 +#: src/Overview.php:45 #: src/PostPanel.php:153 msgid "Meta description" msgstr "" #: dist/monoranks/src/Overview.php:43 #: dist/monoranks/src/PostPanel.php:156 -#: src/Overview.php:43 +#: src/Overview.php:46 #: src/PostPanel.php:156 msgid "Canonical" msgstr "" #: dist/monoranks/src/Overview.php:44 #: dist/monoranks/src/PostPanel.php:157 -#: src/Overview.php:44 +#: src/Overview.php:47 #: src/PostPanel.php:157 msgid "Noindex" msgstr "" #: dist/monoranks/src/Overview.php:45 -#: src/Overview.php:45 +#: src/Overview.php:48 msgid "Image alt" msgstr "" #: dist/monoranks/src/Overview.php:46 #: dist/monoranks/src/PostPanel.php:151 -#: src/Overview.php:46 +#: src/Overview.php:49 #: src/PostPanel.php:151 msgid "Redirect" msgstr "" #: dist/monoranks/src/Overview.php:47 -#: src/Overview.php:47 +#: src/Overview.php:50 msgid "Opening paragraph" msgstr "" #: dist/monoranks/src/Overview.php:48 -#: src/Overview.php:48 +#: src/Overview.php:51 msgid "robots.txt" msgstr "" #: dist/monoranks/src/Overview.php:49 -#: src/Overview.php:49 +#: src/Overview.php:52 msgid "llms.txt" msgstr "" #. translators: %d: attachment ID #: dist/monoranks/src/Overview.php:68 -#: src/Overview.php:68 +#: src/Overview.php:71 #, php-format msgid "Image #%d" msgstr "" #: dist/monoranks/src/Overview.php:70 -#: src/Overview.php:70 +#: src/Overview.php:73 #: tmp/i18n/screens/Overview.js:30 msgid "Site" msgstr "" @@ -1302,7 +1302,11 @@ msgid "%1$s published items sent %2$s" msgstr "" #: tmp/i18n/screens/Overview.js:202 -msgid "Not sent yet. Use \"Sync content now\" above." +msgid "Not sent. Use \"Sync content now\"." +msgstr "" + +#: tmp/i18n/screens/Overview.js:202 +msgid "Sending…" msgstr "" #: tmp/i18n/screens/Overview.js:203 diff --git a/readme.txt b/readme.txt index 6ea0a1a..bda9e93 100644 --- a/readme.txt +++ b/readme.txt @@ -172,6 +172,8 @@ Please report security bugs found in the source code of the MonoRanks plugin thr * **Fix:** Settings shows "Fixes: Not set up" with an Allow link when no MonoRanks app password exists, instead of saying fixes are written with one. * **Fix:** The "What to do next" cards show "Checking…" after one slow answer and try again within minutes, not an hour. * **Fix:** No "Could not connect" message on a site that is already connected. +* **Fix:** Content is sent right after connecting, on every way of connecting. +* **Fix:** After Disconnect, Connect works again for the same website. * **Enhancement:** Connect opens MonoRanks in the same tab and comes back there. * **Enhancement:** The connector key button now reads "Save key". diff --git a/resources/admin/src/lib/api.ts b/resources/admin/src/lib/api.ts index f65ea80..2ece252 100644 --- a/resources/admin/src/lib/api.ts +++ b/resources/admin/src/lib/api.ts @@ -27,6 +27,8 @@ export type OverviewData = { needs_review: { id: string; field: string; post_id: number; title: string; url?: string; image?: string; note?: string; before: string | null; after: string; page_url: string; from: string; op: string }[]; }; host: string; audited: string; next_audit: string; fetched: string; last_sent: string; items: number; + /** A send is running (the first one starts by itself after connecting); send_failed: nothing was sent and the last try failed. */ + sending?: boolean; send_failed?: boolean; app_url: string; log: LogRow[]; labels: Record; }; diff --git a/resources/admin/src/screens/Overview.tsx b/resources/admin/src/screens/Overview.tsx index c72b570..079c9de 100644 --- a/resources/admin/src/screens/Overview.tsx +++ b/resources/admin/src/screens/Overview.tsx @@ -253,7 +253,7 @@ function Waiting({ data }: { data: OverviewData }) { {__('Waiting for the first audit', 'monoranks')}{__('Connected', 'monoranks')} {__('Sending…', 'monoranks')}], [__('Audit results', 'monoranks'), {short}{results} · {sprintf(__('checked %s', 'monoranks'), data.fetched)} : results} />], ]} /> diff --git a/src/Overview.php b/src/Overview.php index c53d019..284bffa 100644 --- a/src/Overview.php +++ b/src/Overview.php @@ -29,6 +29,9 @@ public static function data() { 'next_audit' => $overview ? Admin::ago( $overview['next_audit_at'] ) : '', 'fetched' => Admin::ago( Insights::fetched_at() ), 'last_sent' => Admin::ago( isset( $conn['last_sent_at'] ) ? $conn['last_sent_at'] : '' ), + // The first send runs in the background right after connecting; only a failed send asks for "Sync content now". + 'sending' => $connected && ! empty( get_option( 'monoranks_sync', array() )['run_id'] ), + 'send_failed' => $connected && empty( $conn['last_sent_at'] ) && ! empty( $conn['last_error'] ), 'items' => $connected ? array_sum( Rest::status_payload()['post_types'] ) : 0, 'app_url' => $site_url, 'log' => self::log_rows( 10 ), diff --git a/src/Rest.php b/src/Rest.php index 160923c..29842b4 100644 --- a/src/Rest.php +++ b/src/Rest.php @@ -90,6 +90,8 @@ public static function ping() { 'version' => MONORANKS_CONNECTOR_VERSION, 'app_passwords' => function_exists( 'wp_is_application_passwords_available' ) && wp_is_application_passwords_available(), 'https' => is_ssl() || 0 === strpos( home_url(), 'https://' ), + // Whether the plugin holds a MonoRanks key: lets MonoRanks offer Connect again after a Disconnect here. + 'connected' => Connection::has_key(), ); } @@ -144,8 +146,9 @@ public static function pair( \WP_REST_Request $req ) { return new \WP_Error( 'monoranks_bad_pair', 'api_base (https) and a connector key are required', array( 'status' => 400 ) ); } Connection::update( array( 'api_base' => $base, 'key' => $key, 'site_id' => $site_id, 'via' => 'pairing', 'key_state' => 'ok', 'paired_at' => gmdate( 'c' ), 'paired_by' => wp_get_current_user()->user_login, 'last_error' => null ) ); - Sync::schedule_daily(); Grow::clear_all(); + // Send the content right away, as a pasted key or a one-time code does, without waiting for MonoRanks to ask. + Sync::start_soon(); return self::status(); } diff --git a/src/Sync.php b/src/Sync.php index 7993f89..33badc2 100644 --- a/src/Sync.php +++ b/src/Sync.php @@ -22,6 +22,23 @@ public static function start() { return self::run( 20 ); } + /** + * Starts a full sync in the background (WP-Cron, a few seconds from now), for when the request that connects the site + * must answer quickly: MonoRanks pairing the plugin waits for the answer. + */ + public static function start_soon() { + if ( ! Connection::has_key() ) { + return false; + } + update_option( 'monoranks_sync', array( 'run_id' => str_replace( '-', '', wp_generate_uuid4() ), 'page' => 1, 'pages' => null, 'attempt' => 0 ), false ); + self::schedule_daily(); + if ( ! wp_next_scheduled( self::STEP_HOOK ) ) { + wp_schedule_single_event( time(), self::STEP_HOOK ); + } + spawn_cron(); + return true; + } + public static function run( $budget = 25 ) { $state = get_option( 'monoranks_sync', array() ); if ( empty( $state['run_id'] ) ) { diff --git a/tests/integration/ConnectFlowTest.php b/tests/integration/ConnectFlowTest.php new file mode 100644 index 0000000..30a3c08 --- /dev/null +++ b/tests/integration/ConnectFlowTest.php @@ -0,0 +1,87 @@ +markTestSkipped( 'Set MONORANKS_WP_PATH to a local WordPress install to run the integration tests.' ); + } + defined( 'MONORANKS_CONNECTOR_VERSION' ) || define( 'MONORANKS_CONNECTOR_VERSION', 'test' ); + defined( 'MONORANKS_CONNECTOR_FILE' ) || define( 'MONORANKS_CONNECTOR_FILE', dirname( __DIR__, 2 ) . '/monoranks.php' ); + defined( 'MONORANKS_API_BASE' ) || define( 'MONORANKS_API_BASE', 'https://app.monoranks.com' ); + $this->conn = get_option( 'monoranks_connection', null ); + Connection::clear(); + wp_clear_scheduled_hook( Sync::STEP_HOOK ); + // Nothing leaves this machine: MonoRanks and the WP-Cron loopback are answered here. + add_filter( 'pre_http_request', array( $this, 'answer' ), 10, 3 ); + } + + protected function tear_down() { + remove_filter( 'pre_http_request', array( $this, 'answer' ), 10 ); + Connection::clear(); + wp_clear_scheduled_hook( Sync::STEP_HOOK ); + wp_clear_scheduled_hook( Sync::DAILY_HOOK ); + if ( is_array( $this->conn ) ) { + update_option( 'monoranks_connection', $this->conn, false ); + } + parent::tear_down(); + } + + public function answer( $pre, $args, $url ) { + $this->urls[] = $url; + return array( 'headers' => array(), 'body' => '{"ok":true}', 'response' => array( 'code' => 200, 'message' => 'OK' ), 'cookies' => array(), 'filename' => null ); + } + + public function test_ping_says_whether_the_plugin_holds_a_key() { + $this->assertFalse( Rest::ping()['connected'] ); + Connection::update( array( 'api_base' => 'https://app.monoranks.test', 'key' => 'mr_site_' . str_repeat( 'k', 30 ) ) ); + $this->assertTrue( Rest::ping()['connected'] ); + } + + public function test_pairing_starts_the_first_send_by_itself() { + $req = new \WP_REST_Request( 'POST', '/monoranks/v1/pair' ); + $req->set_param( 'api_base', 'https://app.monoranks.test' ); + $req->set_param( 'key', 'mr_site_' . str_repeat( 'p', 30 ) ); + $req->set_param( 'site_id', 'site-1' ); + Rest::pair( $req ); + $this->assertTrue( Connection::has_key() ); + $this->assertNotEmpty( get_option( 'monoranks_sync' )['run_id'] ); + $this->assertNotFalse( wp_next_scheduled( Sync::STEP_HOOK ), 'the send runs in WP-Cron right away' ); + $data = Overview::data(); + $this->assertTrue( $data['sending'] ); + $this->assertFalse( $data['send_failed'] ); + } + + public function test_only_a_failed_send_asks_for_sync_now() { + Connection::update( array( 'api_base' => 'https://app.monoranks.test', 'key' => 'mr_site_' . str_repeat( 'k', 30 ), 'last_error' => 'cURL error 28' ) ); + delete_option( 'monoranks_sync' ); + $this->assertTrue( Overview::data()['send_failed'] ); + Connection::update( array( 'last_sent_at' => gmdate( 'c' ), 'last_error' => null ) ); + $this->assertFalse( Overview::data()['send_failed'] ); + } + + public function test_disconnect_tells_monoranks_so_it_can_connect_again() { + Connection::update( array( 'api_base' => 'https://app.monoranks.test', 'key' => 'mr_site_' . str_repeat( 'k', 30 ) ) ); + $this->assertSame( 'disconnected', Actions::disconnect() ); + $this->assertContains( 'https://app.monoranks.test/api/connector/disconnect', $this->urls ); + $this->assertFalse( Connection::has_key() ); + $this->assertFalse( Rest::ping()['connected'] ); + } +}